DiffVouch is a local-first Go CLI and portable Agent Skill for reviewing Git diffs and GitHub pull requests. It reports blocking and non-blocking findings, explains recommended fixes, and gives each change a transparent rating out of 5.
The CLI is distributed as a standalone native executable. Users do not need Go, Python, Node.js, or a DiffVouch-hosted service to run it. Git is required. Codex or Claude Code is required only when using the corresponding subscription; API transport talks directly to OpenAI or Anthropic.
Download the archive for your operating system and architecture from
GitHub Releases, verify
it against checksums.txt, and place diffvouch (or diffvouch.exe) on your
PATH.
Developers with Go installed can install from source:
go install github.com/divyangchauhan/DiffVouch/cmd/diffvouch@latestConfirm the installation:
diffvouch --version
diffvouch --helpTagged releases are built for macOS, Linux, and Windows on AMD64 and ARM64.
Use an existing ChatGPT/Codex subscription:
diffvouch auth login openai
diffvouch auth status openaiUse an existing Claude subscription:
diffvouch auth login claude
diffvouch auth status claudeTo use usage-based APIs instead, securely store a key:
diffvouch auth set-key openai
diffvouch auth set-key anthropicDiffVouch prefers the operating-system credential manager and falls back to a
mode-0600 user secret file when no keyring backend is available. API transport
is never selected unless the user passes --transport api.
Review tracked and untracked working-tree changes:
diffvouch review --provider codexOther common scopes:
diffvouch review --provider claude --staged-only
diffvouch review --provider codex --base main
diffvouch review --provider codex --base main --committed-only
diffvouch review --provider codex --model gpt-5.6-sol --effort xhigh
diffvouch review --provider codex --transport api --model gpt-5.6-sol
diffvouch review --provider claude --format json --output review.jsonUse the result as a local quality gate:
diffvouch review --provider codex --fail-below 3.5
diffvouch review --provider codex --fail-on-severity highRepository-specific rules can be committed in .diffvouch.yml. DiffVouch reads
that policy from the trusted base commit so a change cannot suppress its own
review. A repository cannot select billable API transport or enable publishing.
Secret redaction is temporarily disabled because altering source lines produced false findings. Review the diff for credentials before running DiffVouch: the complete reviewable patch is sent unchanged to the selected AI provider.
DiffVouch does not operate a shared bot. Create a private GitHub App owned by you or by the organization that owns the repositories it will review:
diffvouch github app create
# For an organization-owned app:
diffvouch github app create --owner your-organizationThe command starts a temporary localhost callback and uses GitHub's App Manifest flow. It opens a preconfigured GitHub confirmation page with only:
- Pull requests: Read and write
- Contents: No access
- Webhooks: Disabled
- Subscribed events: None
After you confirm the generated name, DiffVouch exchanges the one-time manifest code, validates the generated credentials, stores the private key securely, and opens the repository installation page. You do not download a PEM or enter an App ID. Then verify access:
diffvouch github app status --repo owner/repositoryOn a headless machine, pass --no-browser and open the printed localhost URL
through a forwarded port. If the browser cannot reach the localhost callback, copy
the code query parameter from the failed redirect and finish with
diffvouch github app create --code CODE. The manual github app configure
command remains available for an existing app.
Review and publish a checked-out pull request:
diffvouch review --provider codex --pr 123 --publishOr discover the current branch's pull request from a base comparison:
diffvouch review --provider claude --base main --publishReviews appear as <app-slug>[bot]. DiffVouch creates a repository-restricted
installation token on demand, keeps it only in memory, revalidates the live PR
base and head, and posts exactly one COMMENT review with eligible inline
comments. It never approves or requests changes.
GitHub Enterprise Server is supported through --host, --api-base-url,
--web-base-url, and --github-host where its version supports App manifests.
The standalone Agent Skill remains available for Codex, Claude Code, Cursor, and other Agent Skills-compatible harnesses:
npx skills add divyangchauhan/DiffVouch \
--skill diffvouch-review \
--globalThen ask your agent:
Use $diffvouch-review to review my uncommitted changes.
go test ./...
go vet ./...
go build -trimpath ./cmd/diffvouchGoReleaser packages versioned standalone binaries when a v* tag is pushed.