repo-ai
A local-first CLI that shows what a code change touches, runs the tests that can catch a break in a sandbox, and reports only what it observed.
- Context
- Open source, version 0.12 on PyPI, 2026
- My role
- Solo project: design, implementation, sandboxing, documentation and release engineering.
- Python
- SQLite FTS5 repository index
- pytest and node --test runners
- macOS Seatbelt and Linux bubblewrap sandboxes
- GitHub Actions
- Code on GitHub (opens in a new tab)
- Project site (opens in a new tab)
- PyPI package (opens in a new tab)
Try it: change the code, then ask repo-ai
Make one of four changes to a small project and see what repo-ai says it reaches, which tests it picks, and what those tests do.
Pick a change above to start.
- Pick a change
- Ask what it touches
- Verify: which tests can see it
- Run the selected tests
What’s happening
A tiny shop project: pricing, checkout and shipping, with one test file each. Pick a change; you’ll see its real diff.
Every output here is real: repo-ai 0.12.9 (PyPI) run on this sample project on 2026-11-28, one run per change.
In use
The problem
Coding agents produce changes faster than anyone can review them, and a green checkmark often means less than it seems. Which tests ran? Did they cover the change? Was that failure already there?
I built repo-ai to answer those questions with evidence, whether or not an agent wrote the change. It is the same instinct as my evaluation work at IBM: check the result against reality, not against the model’s own account of it.
How it works
Constraints
- Local only, with no telemetry. Network use happens only on explicit commands.
- It must never claim more than it saw. A pass means the selected tests passed, not that the task is correct.
- The working tree is never touched while verifying. Runs happen in a disposable copy.
Decisions
Context without a model
Task-aware file shortlists, change impact, test links and “why” explanations come from a local index. No agent, model, daemon or network is needed for that part.
Separate new failures from old ones
verify --run compares against the base commit, so failures that already existed are reported as pre-existing rather than blamed on the change. Stale evidence is flagged instead of reused.
Agents under isolation, if you want them
Optional missions drive a coding agent (Claude Code or Codex) in an isolated git worktree with frozen acceptance tests, a fail-closed spend cap, and explicit apply and undo. Tournaments abstain instead of crowning an arbitrary winner.
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 This covers only the tests that ran; it is not proof the change is correct.
What broke
In a live trial, two of three agent sessions were blocked by repo-ai itself: it copied a build-generated version file into the candidate and then reported it as a file the agent had created, and one 150 KB tool result overflowed a 64 KB capture and killed the run. Both were fixed with regression tests.
benchmarks/journey-live-v1/RESULTS.md; PR #125 (opens in a new tab)
`verify --run` could report a selected test file as passed when the full suite's own configuration never ran it. Such files now run on their own, and an edit no test runs is never reported as verified.
A hung test used to cost its process's whole time limit, and a timed-out Node file could be reported as passing. A per-test watchdog fixed both (one case went from 36.8 s to 7.1 s).
What’s next
Show that it helps agents: the README says plainly that it is “not yet demonstrated” that repo-ai makes a coding agent succeed more often than the same agent alone.
A confirmatory trial with independently written tasks and oracles.
docs/engineering/QUEUE.md
Make the Linux network-egress proxy the default after live-verifying it with a real provider CLI.
docs/engineering/QUEUE.md
Where it stands
Public beta, MIT licensed, installable from PyPI as repo-ai-cli: about 60,000 lines of Python with 3,500+ tests in CI. I publish what has and hasn’t been measured, including that a benefit for coding agents is not yet demonstrated.
Sources: github.com/hxxtsxxh/repo-ai README (fetched 25 November 2026); Résumé, November 2026.