Caution
This project is experimental and vibe-coded.
Built on top of Pi, reusing its agent runtime, model providers, and login credentials.
LLM-generated behavioral diffs for code changes.
Pseudodiff analyzes the current Git checkout against its default branch and asks a read-only Pi agent to explain the behavioral change.
- Node.js 22.19 or newer
Development additionally requires pnpm 11.
npx pseudodiffThe default model is openai-codex/gpt-5.6-sol. Override it with --model:
npx pseudodiff --model anthropic/claude-haiku-4-5pnpm install
pnpm devBy default, Pseudodiff compares the merge-base of the inferred default branch
and HEAD to the current working tree. This includes committed branch changes,
staged and unstaged edits, and non-ignored untracked files. Override branch
inference with --base <ref>. Pseudodiff never fetches or mutates the checkout.
If the checkout changes while analysis is running, Pseudodiff discards the result
and asks you to rerun it rather than presenting an inconsistent explanation.
Pseudodiff respects provider API-key environment variables such as
ANTHROPIC_API_KEY and OPENAI_API_KEY. It also reuses credentials created by
Pi's /login, including supported subscription authentication.
Build and run the packaged executable locally:
pnpm build
node dist/cli.jsRun every verification step:
pnpm checkThe development toolchain includes the commit-pinned
anti-slop Oxlint plugin under its MIT
License. See THIRD_PARTY_NOTICES.md for provenance
and attribution.