Skip to main content
zenveil fix requires a Pro plan. Run zenveil upgrade to unlock it, or zenveil whoami to check your current plan.

Overview

zenveil fix uses Claude to generate a production-ready fix for a specific finding from the last scan. The fix is rendered with syntax-highlighted code blocks in your terminal. With --auto-pr, it creates a GitHub pull request with the fix applied.

Usage

Arguments

Flags

Examples

How it works

1

Load finding from cache

ZenVeil loads the finding from .zenveil-last-scan.json. Always run a fresh scan before fix if the codebase has changed.
2

Generate fix (AI)

The finding — including its title, description, evidence, OWASP category, location, and remediation guidance — is sent to Claude. The response streams token-by-token to your terminal.For secret findings (AWS keys, GitHub tokens, JWT tokens, Slack tokens), ZenVeil uses deterministic redaction instead of AI — faster and more accurate for these specific cases.
3

Open pull request (if --auto-pr)

If --auto-pr is provided, ZenVeil opens a GitHub PR:
  • Secret findings — redacts the secret directly in the file
  • .gitignore findings — adds the missing exclusion pattern
  • Other findings — adds the AI-generated fix as the PR description for a developer to apply
The PR includes the finding ID, severity, OWASP category, and a link to the full explanation.

Sample output

Step 3: Add to .gitignore
Step 4: Rotate in AWS Secrets Manager Store the new key in AWS Secrets Manager and retrieve it at runtime:

Opening pull request… Opened pull request: https://github.com/owner/my-app/pull/18