Skip to content
cli-firstverifier-gatedopen source

Fix real bugs.
Verified, not vibed.

An open-source coding agent that plans a fix, edits inside a Docker sandbox, and runs your real test suite. It reports success only when the target test passes and nothing else regressed.

The package is neo-agent-cli on PyPI; the command it installs is neo. The short name was already taken by an unrelated project.
$ pip install neo-agent-cli

One real run, start to finish.

This is jaraco/path — a repository neo had never seen. The figures are from the actual run, not an illustration.

neo — fix
0.00×*
cheaper, same success
n=16, 100% in both arms
0
concurrent tasks, 8 hard kills
45/45 success, 8/8 genuine resumes
0
tasks through the soak run
120 mid-run kills, 15/15 checks
0/24
sandbox escape attacks held
plus 78 concurrent hostile runs, 0 findings

The integration is the point.

Any one of these layers exists elsewhere. What does not exist elsewhere is the four of them wired together so that a sandboxed edit, a real test suite, a crash-resumable scheduler, and a persistent memory all agree before anything is called done.

  1. 01

    Harness

    harness/

    Planner, step agent, and the verifier gate. Snapshots the repo, diffs pristine against work, and writes git-native output plus a grounded rationale on success.

  2. 02

    Execution

    execution/

    A fresh Docker container per command: read-only rootfs, no network, capabilities dropped, memory and pid limits. Stateless three-valued verification with flake detection.

  3. 03

    Runtime

    runtime/

    Process-per-task scheduler, checkpoint and resume across hard kills, an approval gate, and the adaptive model router with a per-call cost ledger.

  4. 04

    Memory + MCP

    memory/, mcp_server/

    A tree-sitter code graph and a SQLite decision store, exposed as five MCP tools over stdio — and consumed by the planner before it plans.

Success is a test result, not a claim.

Most agents finish when the model says it is finished. This one finishes when the suite says so. Everything below the gate only runs because the gate opened.

planstepsandboxedsuite greenverifybranchfails → retry
  1. 01plan

    A planner decomposes the fix

    The issue text, retrieved repo context, and any decisions memory has recorded about this repo go in. A checklist of small verifiable steps comes out.

  2. 02step

    An agent executes with bash, sandboxed

    Each command runs in a fresh container with no network and a read-only rootfs. The repo is bind-mounted so edits persist to the host, where the harness diffs them.

  3. 03verify

    The gate

    The target test must pass AND the full suite must show no regressions. Not one or the other. A failure sends the loop back to the step agent with the real output.

  4. 04output

    Git-native output, only on success

    A branch, a commit, a PR description, and a rationale.md grounded in what actually happened — written only once the gate has opened.

01harness/

Planner, step agent, verifier gate.

The loop is bash-only, with a fresh session per step and the task constraints re-injected each time. The original repo is never touched: the harness works on a snapshot and diffs it on the host.

  • Checkpoint and resume at step granularity
  • Protected paths — the agent cannot reach .git or tests
  • RECALL pulls older detail back out of the task trace
  • On success: branch, commit, PR description, rationale.md
mathutil.pyunified diff
@@ -12,7 +12,7 @@ def mean(values):
if not values:
raise ValueError('empty sequence')
return sum(values)
return sum(values) / len(values)
def median(values):
rationale.mdwritten on verified fixes

What was wrong. mean() returned the sum of the sequence rather than the arithmetic mean, so every caller received a value scaled by the element count.

What changed. Divided the accumulated sum by len(values), leaving the existing empty-sequence guard intact.

How it was verified. The target test passed and the full suite showed no regressions.

read-only rootfs

the image layer is immutable

--network none

no egress unless explicitly allowed

--cap-drop ALL

every Linux capability dropped

mem-limit

OOM-killed rather than starving the host

pids-limit

fork bombs collapse at the cap

fresh container

one --rm container per command

24/24 sequential attacks held78 concurrent hostile runs at widths 8/10/16 — 0 findings

Escape attempts against host mounts, the PID namespace, the Docker socket and cross-container networking all failed. A fork bomb collapsed at the pids limit, a 2 GB memory bomb was OOM-killed, and tmpfs hit ENOSPC at exactly the 256 MB cap.

02execution/

The agent runs inside a box it cannot open.

Every command gets a fresh container. The model can write to the repo — that is the job — and nothing else. When Docker is unavailable the sandbox raises rather than silently running unsandboxed.

One honest design finding, recorded rather than buried: the read-write bind mount lets a container write host disk unquota'd. There is no Docker primitive for bind-mount quotas, so it is inherent to the contract that lets the harness diff on the host.

03runtime/

Most calls do not need the expensive model.

Per call, the runtime predicts difficulty from two signals — the issue text itself, and whether the agent is visibly struggling in the conversation tail — then routes easy work to a cheap tier and escalates only when it must. Every call lands in a JSONL ledger, so the mechanism is measurable rather than asserted.

  • 96–97% of ON-arm calls ran on the cheap tier, and success never dropped because of routing.

  • The cheap tier's speed (p50 22s vs the expensive tier's p95 309s) meant more fix attempts fit the same wall-clock budget.

  • Escalation never sticks: after any expensive call, routing drops back to cheap unless struggle persists.

Task setArmSuccessCallsTokensCostWall
5 fixture bugsalways-expensive5/51738,680$0.0528575s
5 fixture bugsadaptive5/53169,615$0.0237300s
16-task setalways-expensive16/1681138,526$0.15052717s
16-task setadaptive16/1671136,436$0.0581812s
5 real OSS reposalways-expensive2/571329,438$0.30592992s
5 real OSS reposadaptive3/575302,801$0.0730581s
Source: README.md:58-63; cross-checked RESULTS.md:80-84

The first version made things worse.

The v1 predictor scored raw message text. Harness prompts are large by construction — system templates plus injected file context — so every call saturated at “hard” and the adaptive arm degenerated to always-expensive: 17 of 17 calls on the expensive tier, costing about twice the baseline. That result drove the v2 redesign: score only the issue portion of the first user message, add a struggle-based escalation signal, and add router-side 429 backoff.

baseline
$0.0241
adaptive, v1
$0.0467
worse, not better

Killed mid-run, and it still finished.

Forty-five tasks at concurrency forty-five, with eight killed simultaneously partway through. Every one resumed from its checkpoint and completed. No task was lost and no container leaked.

running45
hard-killed mid-run8
resumed from checkpoint8
verified success45

Then the same scheduler, for 5.15 simulated task-hours

soak run, one long-lived scheduler
tasks
3,600
mid-run kills
120
checks passed
15/15
latency p95 drift
1.02x
artifacts per task
7.06 -> 7.07
leaked workers
0

The soak also found a real bug: five of 3,600 workers died on a Windows PermissionError when a supervisor read a file a worker was atomically replacing. It was fixed with a bounded replace-retry, and the re-run showed zero occurrences.

04memory/, mcp_server/

It remembers what went wrong last time.

A tree-sitter code graph and a SQLite decision store. The planner queries the store for decisions recorded against this repo before it plans, so a mistake made once does not have to be made again.

measured, n=5 × 1 rep — directional only
calls
35 → 27
−23%
tokens
−24%
147,916 → 112,390
repeated mistakes
3 → 0

Both arms solved every task. Memory did not change task-solving power on this set; it changed efficiency, and stopped three repeats of a documented past mistake.

Five MCP tools, over stdio

any MCP client
  • query_structuretree-sitter code graph — functions, classes, calls, imports
  • query_decisionsdecision and pattern memory across tasks
  • record_decisionwrite a decision back into the store
  • task_statusstructured state for one task
  • list_reposrepos the graph has indexed

Neo is also an MCP client. It consumes any external stdio MCP server, so the memory layer and outside tooling meet on the same protocol.

What it does not do

  • The code graph is Python-only.
  • Retrieval is keyword and structural, not semantic or embedding-based.
  • Context is bounded by file and line counts — there is no tokenizer.

Run against code it had never seen.

Five real OSS repos at pinned SHAs, one genuine bug introduced in each and encoded as a failing regression test. The adaptive arm finished 3/5 against always-expensive's 2/5, at 24% of the cost.

Where it fell short

Absolute success drops on unfamiliar repos. All three failing agents located their bug but ran out of turns before applying the edit — a model-capability limit, not a machinery one.

  • verifiedjaraco/path

    Verifier-gated success in one attempt, with git output, approval gate and memory ingestion. The first attempt failed honestly and exposed a real harness bug — a binary-artifact diff crash — which was then fixed.

    1 attempt · 6 calls · $0.053
  • verifiedpython-semver

    Pristine baseline → broken-state detection → in-sandbox fix → verified, with flake flagging and git output. 15/15 checks.

the five-repo routing ablation, pinned SHAs
more-itertoolsarrowinflectboltons

Point it at a failing test.

Bring your own endpoint and key. The offline demo needs neither, and runs the real loop, the real gate, and the real git output against a scripted model.

The package is neo-agent-cli on PyPI; the command it installs is neo. The short name was already taken by an unrelated project.

$ pip install neo-agent-cli

Installs the `neo` command. The distribution is named neo-agent-cli because `neo` was already taken on PyPI.

The discipline is the product.

A harness that reports its own success is worth exactly as much as its willingness to report failure. So the verifier gate is absolute, the negative results stay on the page, and every number here carries the sample size it was measured at.

Adversarial passes over the MCP server, the CLI, and the sandbox found one real data leak, which was fixed and pinned by 101 adversarial tests. That is on the page for the same reason the cost wins are.

No logos. No testimonials. The credibility is the numbers.

built with
Python 3.10litellmDockertree-sitterMCP Python SDKargparsestdlib dashboard

Deferred, and said plainly rather than implied: SWE-bench numbers, multi-language support, and a published package. None of those exist yet.

Fix a real bug with it.

Clone it, point it at a failing test, and read the rationale it writes when the suite goes green.