Local-first repository intelligence and skeptical, sandboxed change verification for AI-assisted engineering, with optional provider-neutral coding agents.
pip install repo-ai-cli==0.12.8 Copy PIP instructions
Know what a change actually did before you trust it.
repo-ai is a local-first CLI for AI-assisted (and ordinary) software work. It indexes your repository offline, tells you what a change touches and which tests can show a break, runs those tests sandboxed in a disposable copy against the base commit, and reports exactly what was observed — never more. Coding agents are optional: when you opt in, repo-ai can drive them under isolation, frozen acceptance tests and explicit apply/undo.
Status: 0.9 is a beta. The verification core is the most tested part (below). Many commands are experimental and say so; the full matrix with evidence is in docs/STATUS.md. Not yet demonstrated: that repo-ai makes a coding agent succeed more often than the same agent alone.
Python 3.10–3.14 on macOS, Linux or Windows. Runtime dependencies: pathspec (+ tomli on 3.10). The PyPI distribution is repo-ai-cli (repo-ai was taken by a similar name); the command and the Python package are repo-ai / repo_ai. If you installed a 0.9.0.devN pre-release wheel, remove it first: pipx uninstall repo-ai.
pipx install repo-ai-cli # or: python -m pip install repo-ai-cli repo-ai --version # the command is repo-ai Stable GitHub releases also carry the wheel, sdist, SHA256SUMS, a CycloneDX SBOM and build-provenance attestations.
cd your-git-project repo-ai quickstart # where you are and what to run next repo-ai init --agent none # build the local index under .repo-ai/ (+ a .gitignore block) # ...edit some code... repo-ai verify # read-only: changed units, linked tests, confidence, the command repo-ai verify --run # run them sandboxed in a disposable copy of the working tree repo-ai evidence # does the last result still cover the working tree? Real output (trimmed) of verify --run on a two-file project (calc.py, test_calc.py) after editing mean():
verifying 1 selected test file(s) in the seatbelt sandbox, in a disposable copy of the working tree… command: pytest [inferred from the test files] pass test_calc.py (0.3s) selected 1 of 1 test files; confidence MEDIUM: some of the change rests on static evidence only (imports or file names), not on runtime evidence PASSED: every selected test passed (the full suite was not run) 1 passed source tree unchanged evidence saved; `repo-ai evidence` shows whether it still covers the working tree. This covers only the tests that ran; it is not proof the change is correct. repo-ai uninstall --agent all removes everything repo-ai created (--dry-run shows it first).
repo-ai init --agent claude # CLAUDE.md block, skills, confidence-gated context hooks claude # context arrives with each prompt when repo-ai has evidence repo-ai never adds permission allow-rules or bypassPermissions. Details: docs/CLAUDE_CODE.md.
repo-ai agents list # offline: what is installed; no model call repo-ai agents route # which provider would be chosen and why; no model call repo-ai do "make mean() return 0 for an empty list" --dry-run # plan only (the default) repo-ai do "make mean() return 0 for an empty list" --agent codex \ --allow-write calc.py --run --allow-live-provider # live, isolated, consented repo-ai apply # explicit; re-verifies after applying repo-ai undo # restores the original bytes Execution needs a clean committed checkout, explicit write paths, pytest or node --test, and a sandbox backend (macOS or Linux; missions are not supported on Windows). --tournament codex,agy runs independent candidates against the same frozen tests and abstains unless exactly one distinct candidate passes; shortlist explains an abstention. On a real suite with failures your task does not touch, --expect-fix TEST declares the tests the task must fix: the result is then PASS_WITH_PRE_EXISTING_FAILURES, listing what still fails, never a plain PASS. A candidate that deletes a docstring or comment stating a requirement is named in the result. Recipes: docs/roadmap/REALITY-ENGINE-USAGE.md.
"Live" means a model-generated change was independently re-verified through repo-ai on this project's development machine, with small n. Your account, quota and platform decide what works for you; agents route reports it without spending anything.
Local only, no telemetry. Network use happens only on explicit commands (live missions, --online skill vetting, sandbox pull). Secrets are quarantined or shown as rule + path:line, never the value. Repository text is data, never instructions. Writes never leave the repository or follow symlinks. repo-ai privacy audit lists every store and whether it is committed. Threat model: docs/SECURITY.md, docs/VERIFY-THREAT-MODEL.md.
CONTRIBUTING.md · SECURITY.md (report vulnerabilities privately) · CODE_OF_CONDUCT.md · SUPPORT.md · MIT licence (LICENSE); bundled third-party evaluation tasks keep their own licences (notices).
Both files in this release have provenance metadata.
ai-agents claude-code code-intelligence code-verification codex developer-tools sandbox testing
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




