Back to all projects

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

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.

pricing.pycheckout.pyshipping.pytest_pricing.pytest_checkout.pytest_shipping.pysourcetests
~/shop
Pick a change above to start.
  1. Pick a change
  2. Ask what it touches
  3. Verify: which tests can see it
  4. 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

repo-ai 0.12.9 on a small sample project
A real session, recorded 25 Nov 2026 with repo-ai 0.12.9 from PyPI on a small sample project: one function changed, impact and verify pick 2 of 3 test files, then the suggested targeted run. (Running the tests through `verify --run` needs repo-ai's own OS sandbox, which couldn't start inside the recording environment; the README output below shows that step.)

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

verify (CLI)src/repo_ai/cli.pyChange mapperverify/changes.pyTest selectorverify/select.pyRun strategyverify/strategy.pyDisposable copyverify/isolate.pyOS sandboxsandbox.pyBase comparedocs/VERIFY.mdEvidence storeverify/evidence.pyReportverify/report.pyverify (CLI)src/repo_ai/cli.pyChange mapperverify/changes.pyTest selectorverify/select.pyRun strategyverify/strategy.pyDisposable copyverify/isolate.pyOS sandboxsandbox.pyBase comparedocs/VERIFY.mdEvidence storeverify/evidence.pyReportverify/report.py
What happens when you run verify: from the diff to a report that is never stronger than its evidence. Steps: verify (CLI), then Change mapper, then Test selector, then Run strategy, then Disposable copy, then OS sandbox, then Base compare, then Evidence store, then Report.Source: github.com/hxxtsxxh/repo-ai: src/repo_ai/verify/*.py module docstrings, verify/engine.py imports, docs/ARCHITECTURE.md

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.
Real output from the README: verify --run after editing one function in a small project.

What broke

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.

    README (opens in a new tab)

  • 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.

How this works

The whole site is one night photograph made of light. Scroll to develop each exposure; the light follows your pointer.

Keyboard

J or K
Next or previous exposure (home page)
C
Camera settings: shutter, aperture, ISO, ND filter
P
Pause or play all motion
S
Sound on or off
⌘K, Ctrl K or /
Jump to a project, page or skill
?
This help

Everything here is also plain text: each project has its own page, and the résumé has a text version.