Other coding harnesses: Codex, Gemini CLI, opencode, Aider, OpenHands, mini-SWE-agent

Six open-source coding agents compared by design choice, read from source at pinned versions and run on the same task. Child page of Topic: agentic-harnesses. Data as of October 2026. Reading: 30 min, plus 22 in closed details.
The idea in one sentenceEvery coding harness runs the same loop; what differs is five choices around it (how the model writes an action, what stops the loop, how an edit is applied, what contains a command, and what the model sees next), and on the same task those choices, not the task, decided where a small model failed.

Fig. 1 is the evidence: the same task (two planted bugs in the running example) given to each harness with the same local 4B model MEASURED. Only Aider, the harness that takes the most decisions away from the model, fixed both. Every other run went wrong at one of the first three choices, and the steps take them in that order.

  1. Eight runs, one task, one model. Each row is one recorded run and each block one model call, in order; a block's height is the prompt tokens that call sent, its colour what the call did (blue acted and got a real result, orange an error or refusal, yellow a silent no-op, grey prose, an empty reply or a side call, purple a subagent). A row's area is what the run read: 3,384 tokens for Aider's whole-file run, 322,241 for OpenHands.
  2. Choice 1, the action: Codex. Four refused calls in a row: the model filled the optional justification argument with an empty string and Codex refused it each time; the fifth call was prose until the 2,048-token output cap. No bug fixed (section 1).
  3. Choice 2, the stop rule: Gemini CLI and opencode. Gemini CLI fixed top_words, saw one failure left, then sent an empty reply, which ends its loop. opencode found the bug through its explore subagent (purple), then described the fix in prose; a reply with no tool call ends its loop too (section 2).
  4. Choice 3, the edit: OpenHands and mini-SWE-agent. OpenHands' str_replace refused five edits whose search text was indented wrongly (five of its seven orange calls), until our 30-iteration cap; every call resends the whole history, so its row climbs. mini-SWE-agent's sed matched nothing and exited 0 (yellow); in text mode it "verified" with a check that passes with the bug, and submitted (section 3).
  5. Aider fixed both, in 3 calls and in 7. The harness picked the files, applied the edits, ran the tests itself and sent back only the remaining failure (the green stream); the grey calls are commit messages and history summaries. Choices 4 and 5 (containment, context) decided no run here; sections 4 and 5 show what they change.

One run per setting: a demonstration of mechanisms, not a ranking. Drag the figure to turn it; click a row in section 2's figure to open a run call by call.

You need: the agent loop (model call, tool call, result, repeat), built from zero in the parent's Loop lab. Not here, each owned by its own page: Claude Code itself (Claude Code, taken apart); how to build a harness, the action boundary, tool design and the edit-format bench (Building a harness); window budgets, caching and compaction in general (Context engineering); the threat model behind sandboxes (Agent security); benchmark scores and how much a harness moves them (Coding benchmarks, Harnesses for training and evaluation); 23 harnesses on nine axes (the parent's Harness atlas tab).

Text actions: the model writes its action inside the reply in an agreed format and the harness finds it with a regular expression; the alternative is a native tool call.
Matcher ladder: the sequence of ever looser ways an edit tool tries to find the text it must replace.
Loop detector: a harness check that notices repeated calls or text and nudges or stops the model.
Sandbox mode and approval policy: what a command can touch, and who must say yes before it runs; two separate settings.
Compaction (or condensation): replacing older history with a model-written summary when the window fills.
Repository map: Aider's ranked summary of a repository's definitions, sent up front instead of letting the model search.

MEASURED: runs recorded on 6 October 2026 on the parent topic's running example (textstats, two planted bugs) with a local model (Qwen3-4B-Instruct-2507, 4-bit, mlx-lm 0.32.0, Apple M1 Pro) and Claude Haiku 4.5 through Claude Code 2.1.289 in headless mode. Every source claim is read from the code at the pinned version in the Versions table and linked to its lines.

Codex CLIGemini CLIopencodeAiderOpenHands SDKmini-SWE-agent
Made by, languageOpenAI, RustGoogle, TypeScriptAnomaly (ex-SST), TypeScriptthe Aider-AI project, PythonOpenHands contributors, Pythonthe Princeton and Stanford team behind SWE-bench, Python
1 How the model actstool callstool callstool callstext: edit blocks in the replytool callsone bash tool call, or one fenced block in text
2 Loop ends whena reply has no tool call; no step capa reply has no tool call; loop detectora reply has no tool call; no step capno loop: one reply, up to 3 automatic retriesfinish tool or plain text; 500 iterationsa command prints the submit line
3 Edits files withapply_patch, its own patch grammarreplace: exact, then three looser matchesedit: nine matchers in turnSEARCH/REPLACE, whole file or diff, as textfile_editor str_replaceshell commands (sed, heredocs)
4 Contained by default byOS sandbox (Seatbelt, bubblewrap)a TOML policy; sandbox opt-inallow/ask/deny rules, allow by default; no sandboxgit: every edit is a commitnothing locally; Docker workspace opt-innothing locally; Docker opt-in
5 Context when it fillssummary at 90% of the windowsummary at 50%, then a self-check callsummary at the usable windowolder chat summarised; repo map ranked to a budgetcondenser: keep first 4, summarise the middle past 80 eventsnothing: the run fails
Steal thisthe sandbox as the boundary, not the promptloop detection and policy filesharness as a server; per-model prompts and toolsthe repository map; edit formatsan event log you can replay and condensethe smallest loop that scores well

Every cell is from the source at the version in the Versions table; the sections below link the lines. Every run, call by call, is in the Same task, every harness tab.

Same model, same prompts: without a stop the model writes the harness's side too

No stop at the action recorded

Reply cut after the first action recorded

Highlights:  action block    output the model invented    cut away, never seen by the harness . Under each reply: what the harness did with it and the real output the model saw next. Replies are shown up to 1,800 characters (the stored copies keep 3,000).

1. How the model writes an action: tool calls or text

Five of the six send tool definitions (name, description, JSON schema) and get back a structured call; the API ends the reply there with a finish reason (tool_calls in the OpenAI format, tool_use in Anthropic's), so the inference server enforces the action boundary. Aider, and mini-SWE-agent's opt-in text mode, use text actions instead: Aider's SEARCH/REPLACE blocks, or exactly one ```mswea_bash_command block per reply, found by a regex. Text works with any model that writes text, which is why Aider chose it in 2023, before OpenAI shipped function calling on 13 June 2023 (OpenAI). The cost: now the harness must stop the model at its action. Why and how is Building a harness' section 2; here is what each choice did on our task.

Aider does not need the stop: its protocol is "reply once, with the edits", so the model never waits for an observation inside a reply. A loop that does (run ls, see the listing, decide) needs a server-side stop: a stop sequence, or the chat template's end-of-turn token, which an open model emits after an action because it was trained to. claude -p, the only route to Claude here (a subscription, no API key), has no stop-sequence option. So mini-SWE-agent's text mode ran with Claude Haiku 4.5 twice through a small adapter: reply passed through untouched, and reply cut right after the first action block.

  1. Call 1: both fine. One thought, one action (ls -la on the left, a find on the right); the harness runs it and returns the listing.
  2. Call 2: the uncut reply is refused. Left: the same cat README.md twice, so "Expected exactly 1 action, found 2" and nothing runs. Right: three blocks, cut after the first, so cat ./README.md runs.
  3. Call 3: one action each. Left: the README and a test listing, which runs. Right: four blocks written, the first kept.
  4. Call 4: the model writes the harness's side. Left: actions with invented outputs between them; the parser counts 9 blocks and refuses. Right: the reply opens with an invented exchange about a file it never read, then its first action, which runs.
  5. Call 5: the cut run believes its own story. Right: "All tests are passing successfully", then the submit command alone: the run ends, no file changed. Left: cd /empty, a directory it invented: "No such file or directory".
  6. Call 6: a fix, a test and a submit in one reply. A sed edit, the test command with an invented "All tests passed!" as its output, and the submit line: three blocks, refused, so nothing runs.
  7. Call 7: one action. pwd && ls -la runs.
  8. Call 8: the longest invented exchange. The parser counts 11 action blocks and refuses the reply.
  9. Call 9: refused again. 7 blocks, among them invented file contents; the fifth refusal in nine calls.
  10. Call 10: the end. A reply that starts inside an invented output and holds the submit command as its only block: it runs, and the run ends with no file changed.

Result. Uncut: up to 11 action blocks (the parser's count) in one reply, ending with "All tests passed!" and the submit command; 5 refusals in 10 calls, no file changed. Cut: every command that ran was one the model asked for, yet the run also ended with no edit, because the model wrote its invented exchange before its first action ("The core.py file appears to be empty", a file it never read) and later claimed the tests passed. The cut text was still generated and paid for: 8,932 output tokens for 5 calls MEASURED.

What it buys. A client-side cut stops the harness from acting on invented output; it does not stop the model from believing it. Only a real message list with a server-side stop does. Aider, whose protocol needs no observation inside a reply, fixed both bugs through the same adapter in 3 calls and 25 s (section 3). The local 4B model never invented output in text mode: it ran behind a chat server whose template ends the turn with an end-of-turn token after one action, so training plus the template gave the boundary, not the harness. The parent's Loop lab met the same wall (Haiku once ran on for 95,162 characters until the harness kept only the text up to the first action).

The cost on the tool-call side is schema surface: every optional field with a rule attached is one more way for a weak model to fail. Codex gave our local model 12 tools; on its first call the model filled the optional justification argument of exec_command with an empty string, Codex answered "justification requires an explicit sandbox_permissions" (handlers/mod.rs line 101), and the model resent the same call three more times. OpenHands injects a required security_risk field into every tool that changes something; our model once misspelt it security_rika, which the schema rejected.

2. What stops the loop, and what catches a loop that will not stop

Three of the six end when a reply has no tool call (Codex, Gemini CLI, opencode), with no step cap by default. OpenHands ends on a finish tool or plain text, caps at 500 iterations, and answers an empty reply with "Please use a tool to proceed with the task." mini-SWE-agent ends when a command's output starts with the line COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT and exits 0 (the check is on the output, not the command text: local.py 45 to 56). Aider has no agent loop: one reply, its edits applied, then lint and tests, and at most 3 "reflected" retries carrying the errors (base_coder.py 924 to 945); the human is the outer loop.

The guards differ more than the stop rules. Gemini CLI counts the same tool call five times in a row, or a 50-character chunk of text repeated ten times, as a loop; after 30 turns a separate model call checks for "unproductive" loops every 5 to 15 turns and needs 0.9 confidence; the first detection injects a nudge, the second stops the turn (loopDetectionService.ts). opencode's doom-loop guard turns three identical tool calls in a row into a permission question (processor.ts). OpenHands' stuck detector scans the last 20 events for repeated action and observation pairs, nudges once, then stops. mini-SWE-agent ends a run after three consecutive format errors and at a $3 cost limit. Codex has none: nothing stops a repeating call.

What it buys. "A reply with no tool call means done" is cheap and model-agnostic, but it cannot tell finishing from explaining: opencode and Codex both ended our runs on prose with both tests still failing, and Gemini CLI on an empty reply with one left. Aider's rule is the opposite, the harness runs the tests (--auto-test) and feeds back only the failure, and it was the only one to finish. A stop rule that consults a verifier is worth more than a smarter model here; the general case is Building a harness' section 10. And a guard needs a cheap first stage: Codex's repeated justification call (section 1) is exactly what opencode's three-in-a-row rule or Gemini CLI's five-in-a-row rule would have caught.

Each loop, read from source
Codex CLI
run_turn samples the model, runs any tool calls, sends their output back and repeats; a reply with no tool call ends the turn, unless a Stop hook objects and injects a continuation (turn.rs 150 to 170). There is no step or turn limit; when the window fills mid-task it compacts and keeps going (lines 601 to 650). Every request allows parallel tool calls; a read-write lock lets tools that declare themselves parallel-safe run together (parallel.rs).
Gemini CLI
Split in two: GeminiClient runs one streamed model turn (compress if needed, check for loops, pick a model, stream), and the caller runs the tools and sends results back; in headless mode that caller is a while (true) in nonInteractiveCli.ts. Session turns are unlimited by default (maxSessionTurns -1). Tools run in parallel by default; every tool schema gets an injected wait_for_previous argument the model sets to serialise a call, and file edits always run one at a time (scheduler.ts).
opencode
runLoop reloads the session's messages from its database on every pass, makes one streamed model call, runs the tool calls, and stops when the last reply has no tool call (prompt.ts). No step limit unless an agent sets steps. Malformed calls are repaired: wrong-case tool names are fixed; unknown ones go to a hidden invalid tool that returns an error instead of crashing the turn.
Aider
Coder.run() takes one user message; run_one() sends it, applies the edits in the reply, commits, runs the linter and (if asked) the tests, and if anything failed sends a "reflected" message with the errors. The model never calls a tool, and shell commands it suggests in a ```bash block need an explicit yes: --yes-always answers no to them (io.py).
OpenHands SDK
A Conversation owns a list of typed events (messages, actions, observations, condensations), and LocalConversation._run() repeats: check status, check the stuck detector, call agent.step(), check confirmation, budget and the iteration cap (local_conversation.py). Because state is an event log, a conversation can be persisted, resumed and replayed.
mini-SWE-agent
DefaultAgent.run() renders two messages (system, task), then repeats step() = execute_actions(query()) until a message with role exit appears (default.py 88 to 128). The whole agent class is 190 lines at v2.4.6 (the README still says "some 100 lines"). Limits: steps unlimited by default, cost limit $3, three consecutive format errors (lines 26 to 33). Control flow is by exceptions: a format error, a limit or a submission each raises, and its message is appended to the history.

How each recorded run ended: the stop rule decided more outcomes than the model did

One square per model call, in order MEASURED, classified from the recordings by src/derive_ends.py: acted and got a real result; acted and got an error or a refusal; acted with a sed that exited 0 and printed nothing (a silent no-op); replied with prose or nothing; a side call (session title, commit message, history summary); a subagent's call. The end reason is on the right. Codex: four refused calls, then prose hit the 2,048-token cap. Gemini CLI: an empty reply ends the loop. opencode: prose describing the fix, no edit call. OpenHands: our 30-iteration cap. mini-SWE-agent (tool calls): three replies in a row with no tool call. Click a row to open the run call by call.

3. How an edit is applied: the format and the matcher ladder

An edit names text to find and text to put in its place. Models copy the "find" text imperfectly (indentation, trailing spaces, typographic quotes), so each harness tries a matcher ladder, ever looser ways to find it, and differs in what it does when every rung fails. That second choice decided two of our runs.

  1. One edit, six ladders. Each column is one harness's edit tool; each glass plate a matcher, tried back to front until one finds a unique match; in front, what the model is told when none does. The dot is a search text copied a little wrong, as models do.
  2. Codex: four rungs, first match wins. apply_patch: exact, then ignoring trailing spaces, then trimmed, then with typographic dashes and quotes mapped to ASCII (seek_sequence.rs). The first match wins, and a hunk is searched for only after its @@ line.
  3. Gemini CLI: four rungs, the last one fuzzy. replace: exact; "flexible" (each line compared with its whitespace trimmed, the replacement re-indented); a regular expression with \s* between tokens; then a fuzzy sliding window accepting a weighted Levenshtein distance of up to 10% of the search length (edit.ts). The second-model "edit correction" older write-ups describe exists but is off by default (disableLLMCorrection: true, config.ts).
  4. opencode: nine rungs, then the compiler speaks. edit: nine matchers: exact, line-trimmed, block-anchor (first and last line fixed, the middle scored by Levenshtein similarity, threshold 0.65), whitespace-normalised, indentation-flexible, escape-normalised, trimmed-boundary, context-aware and multi-occurrence (edit.ts); a comment credits Cline and Gemini CLI for the ideas. After each edit, language-server diagnostics for the file are appended to the tool result, so the model sees a type error in the same turn.
  5. Aider: exact, after small fixes. SEARCH/REPLACE: exact, or after small fixes (leading whitespace, a stray blank line, ... elision); the edit-distance matcher many describe sits after an unconditional return and never runs (editblock_coder.py 157 to 187). A block that fails comes back with a "Did you mean" snippet of the closest lines.
  6. OpenHands: two rungs, then a refusal. file_editor str_replace: old_str must match once; the only retry strips surrounding whitespace (editor.py). The tool also does view, create, insert and undo_edit. Recorded: five refusals in one run, each "No replacement was performed".
  7. mini-SWE-agent: no rungs at all. No edit tool; files are edited with sed and heredocs, as the prompt teaches. A pattern that matches nothing exits 0 and prints nothing. Recorded: six sed commands that changed nothing.

What the recordings show MEASURED. OpenHands' model found both bugs, then sent str_replace five times with an old_str indented one level too deep and missing two of the docstring's three closing quotes; each came back "No replacement was performed, old_str ... did not appear verbatim", a clear error the model could not act on, until our 30-iteration cap. mini-SWE-agent's model ran sed -i 's/return sorted(counts.items(), key=lambda kv: -kv[1])[:n]/.../' six times: in sed's pattern language [1] and [:n] are character classes, not literal brackets, so nothing matched, sed exited 0, and the model never learned why. A loud refusal at least tells the model something; a silent no-op tells it nothing. This is the agent-computer-interface argument (tools designed for a model as the user: Building a harness' section 5): a bash-only harness relies on the model knowing sed; strong models do, a 4B model did not.

Forgiving has a cost too: on a 4B model's unified diffs, Aider's udiff applier applied 8 of 10 where git apply refused almost all, but 6 of those 8 failed the check (Building a harness, its "Edit format bench" tab, which also ran Codex's matcher and saw a model put the line it was changing on the @@ line, so the line to remove could never be found).

The same first fix in two text formats: a patch anchored on context, and a block that quotes the old code

*** Begin Patch
*** Update File: textstats/core.py
@@ def tokenize(text):
-    return re.findall(r"[a-z]+", text.lower())
+    return re.findall(r"[a-z]+(?:'[a-z]+)?", text.lower())
*** End Patch

Codex's patch format, written by hand to its grammar (not from a run). apply_patch is not a JSON function: it is a freeform tool whose input is constrained by a 19-line Lark grammar, so the model writes raw patch text that the server forces to parse (apply_patch.lark). The @@ line names a context anchor, not line numbers, so a patch survives small shifts in the file.

textstats/core.py
```python
<<<<<<< SEARCH
def tokenize(text):
    """Split text into lowercase words. Apostrophes inside words are kept."""
    return re.findall(r"[a-z]+", text.lower())
=======
def tokenize(text):
    """Split text into lowercase words. Apostrophes inside words are kept."""
    # Use a regex that matches sequences of lowercase letters, including those with apostrophes
    # This will match "don't" as one word, not split it
    return re.findall(r"[a-z']+", text.lower())
>>>>>>> REPLACE
```

The local model's second fix, verbatim from our recording (Aider, --edit-format diff) MEASURED. The pattern [a-z']+ passes the test but would also keep a leading or trailing apostrophe ("'quoted'"); the tests do not check that.

Aider's edit formats, and what whole-file against diff cost on our task

Aider picks the format per model: diff (SEARCH/REPLACE), whole (reprint the file), udiff, diff-fenced, a V4A patch format like Codex's, and editor-* variants for architect mode (edit formats); an unknown model, such as a local one, defaults to whole (models.py). With whole our model reprinted core.py with both fixes at once (3 calls, 42 s); its first request was 879 prompt tokens against 2,655 for diff, because the SEARCH/REPLACE instructions and worked examples are long (5,407 characters of system prompt against 1,191). With diff (7 calls, 138 s) it fixed top_words, Aider committed and ran the tests, sent back the one remaining failure, and the model fixed tokenize; two calls wrote commit messages and two identical calls summarised the history.

4. What contains a command: sandbox and approval defaults

Two separate questions: what can a command touch (an operating-system sandbox, a container, or your whole machine) and who says yes before it runs (nobody, a human, a policy that denies). The six sit at every corner, and the corner moves when nobody is there to approve, in headless runs and CI.

  1. A command the model wants to run. Six harnesses side by side, each with a command (the dot) on its way to your machine at the back (files, network). Two dials stand between: who approves it (the plate in front) and what contains it (walls round the command).
  2. Who says yes, by default. Yellow plates ask a human: Codex (on-request), Gemini CLI (its TOML policy files ask for edits and the shell), Aider (any shell command the model suggests needs an explicit yes) and mini-SWE-agent (before each command). No plate: opencode (allow by default) and OpenHands (NeverConfirm).
  3. What contains it, by default. Only Codex has walls up: Seatbelt on macOS, bubblewrap plus seccomp on Linux, network off in workspace-write. Faint walls are opt-in: Gemini CLI's -s, OpenHands' DockerWorkspace, mini-SWE-agent's Docker environment. Aider's net is git underneath: edits are reversible, commands are not. opencode has no OS sandbox.
  4. Nobody there to approve. Headless or "yes to everything" (dashed): Codex's codex exec forces the approval policy to never, but the sandbox stays on; Gemini CLI's gemini -p denies anything that would need approval; Aider's --yes-always answers no to the shell commands the model suggests; mini-SWE-agent's --yolo stops asking. The orange streams reach your machine with nothing in the way; only Codex's stop at a wall. Read from source at the pinned versions; why both dials are needed, and what an attacker does with each gap, is Agent security.
Each harness's sandbox and approval model, read from source
Codex CLI
Two independent dials: a sandbox mode (read-only by default, workspace-write for a trusted folder, danger-full-access) and an approval policy (on-request by default, never, or granular) (config_toml.rs). On macOS the sandbox is Seatbelt (sandbox-exec with four .sbpl profiles, deny by default); on Linux, bubblewrap for files plus seccomp for the network, with Landlock kept only as a deprecated fallback (linux-sandbox). In workspace-write the network stays off unless you enable it. codex exec (headless) forces the approval policy to never, so the sandbox is all that stands between the model and your machine (exec).
Gemini CLI
Approval modes default, auto_edit, plan and yolo, decided by TOML policy files: read-only tools are allowed, edits and the shell ask (write.toml). Headless, the engine's default is deny: gemini -p without --yolo or --approval-mode auto_edit cannot edit or run anything (policy-engine.ts). The sandbox is off by default; -s relaunches the whole CLI inside macOS Seatbelt (profile permissive-open: writes only to the project, temp and cache folders, network open), or Docker, Podman, gVisor or LXC on Linux (sandbox.ts).
opencode
Rules of the form permission, pattern, action (allow, ask, deny); the last matching rule wins. Defaults allow almost everything: only reading .env files, touching paths outside the project and doom loops ask (agent.ts). Shell commands are parsed with tree-sitter so an "always allow" can be stored as a prefix such as git checkout *. There is no OS sandbox. In opencode run, any question is rejected unless you pass --auto.
Aider
No sandbox. The safety net is git: dirty files are committed first, every applied edit becomes its own commit with a model-written message, and /undo checks out the previous version of the changed files and soft-resets that commit (git docs). That undoes edits; it isolates nothing.
OpenHands SDK
Confirmation policy NeverConfirm by default; ConfirmRisky asks at HIGH risk and for UNKNOWN. The LLMSecurityAnalyzer does no analysis of its own: it returns the security_risk value the acting model wrote into its own call (llm_analyzer.py, field injected by tool.py), so the agent grades itself; a regex analyser for patterns such as rm -rf exists as a second layer. LocalWorkspace runs commands on your machine; isolation comes from DockerWorkspace, which starts an agent-server container and drives it over HTTP. In our run the model rated reads LOW and pip install pytest MEDIUM, which it ran inside the container when pytest was missing, although the test file runs with plain python3.
mini-SWE-agent
The mini command asks before each command unless you pass --yolo, and runs on your machine; Docker, Podman, Singularity and bubblewrap environments are one setting away. Every action is a fresh subprocess (local.py), so cd and export do not persist between steps; in exchange sandboxing is "literally just switch out subprocess.run with docker exec", and runs are trivial to parallelise.

What it buys. A sandbox on by default (Codex) means the prompt does not have to be trusted and headless mode stays safe; a deny-by-default headless policy (Gemini CLI) is safe but surprises people ("why did nothing get edited?"); allow-by-default with no sandbox (opencode) is fastest and trusts the model with your machine; git (Aider) makes edits reversible but not commands; a self-graded risk field (OpenHands) is not a reviewer. Codex no longer keeps a hard-coded list of safe commands: Starlark execpolicy rules decide allow, prompt or forbid, and the built-in "dangerous" check only knows forced rm (is_dangerous_command.rs).

How our runs were contained, and two Gemini CLI traps met on the way

opencode and OpenHands ran inside throwaway Docker containers we started (opencode has no sandbox; the OpenHands SDK used its local workspace inside the container), mini-SWE-agent with its Docker environment, Codex with its own Seatbelt workspace-write, Gemini CLI with its own Seatbelt (-s), and Aider with no sandbox (it runs no model-suggested command under --yes-always; only our test command).

In a folder it does not trust, Gemini CLI printed "Approval mode overridden to "default" because the current folder is not trusted", which in headless mode means every edit is denied, --yolo or not. And setting GOOGLE_GEMINI_BASE_URL makes the CLI pick its "gateway" sign-in type, which its own validator then rejects ("Invalid auth method selected"; auth.ts); choosing the API-key sign-in in the settings keeps the custom base URL.

A Codex process that outlives the session

Since 0.157.0 an interactive codex session starts codex app-server --managed-daemon by default (the release note: "Enabled automatic background-server startup for eligible interactive sessions"). Per a user report (issue #48195, opened 25 September 2026; still open, with no maintainer reply and no change to the default, when read on 26 October, while downstream packagers switch auto-start off themselves), the daemon keeps running after every Codex window is closed, runs from a copy of the roughly 374 MB platform package under ~/.codex/packages/, keeps the environment of the session that started it, and a detached loop checks for updates five minutes after start and then hourly, restarting the backend. codex features disable daemon_auto_start (or daemon_auto_start = false in config.toml) turns it off. The sandbox confines tool calls; it says nothing about what the harness itself leaves running.

5. What the model sees: the first request, compaction and the repository map

Context is paid for before the model has done anything. The first request of each run carries the harness's system prompt and every tool definition, and every later call resends it all with the history appended. The principles (window budgets, caching, what to compact) are Context engineering's; here is what each harness actually sends and keeps.

Prompts and tools are chosen per model family: Codex gives an unknown model a fallback prompt and 12 tools, opencode picks its system prompt and even its edit tool by matching the model id; a provider-agnostic harness has to carry a dialect per family.

Per-model prompts and tools, and which project instruction files each reads

Prompts and tools are per model. Codex gives an unknown model the 20,903-byte fallback prompt (model_info.rs) and 12 tools, among them five multi-agent tools and three "goal" tools but no apply_patch: unknown models are expected to call it through the shell. For OpenAI's own models a test pins the default set: exec_command and write_stdin (a shell, long-running processes on a pseudo-terminal), update_plan, request_user_input, apply_patch, view_image, tool_search (which loads MCP and multi-agent tools on demand) and web_search (prompt_caching.rs). opencode chooses its system prompt by matching the model id: anthropic.txt for Claude, gemini.txt, codex.txt, beast.txt for older GPT models, default.txt (8,528 bytes) for anything else (system.ts); ids containing gpt- get a Codex-style apply_patch instead of edit and write (registry.ts). A provider-agnostic harness has to carry a dialect per model family. OpenHands assembles its prompt from Python sections (28,492 bytes of static text, with dynamic repository, skills and date sections).

Tool sets. Gemini CLI: about 17 tools reach the model in a default interactive session (15 in our headless run): read_file, list_directory, glob, grep_search (ripgrep), replace, write_file, run_shell_command, web_fetch, google_web_search, write_todos, invoke_agent (subagents), activate_skill and others (config.ts). Two often-listed tools are not model-visible in this version: read_many_files serves only the @file syntax, and save_memory is gone: the prompt tells the model to edit GEMINI.md with the ordinary file tools. OpenHands' default coding preset gives terminal (a tmux session), file_editor, task_tracker, plus the built-ins finish and think: five tools (default preset); every tool schema gets two injected fields, summary and, for tools that change something, security_risk, so the model must classify the risk of its own action on every call. opencode sent our model 10 tools, mini-SWE-agent one (bash), Aider none.

Project instruction files. Codex reads AGENTS.md, one per directory from the git root down to the working directory (an AGENTS.override.md wins in its directory), 32 KiB in total (agents_md.rs). Gemini CLI reads GEMINI.md from ~/.gemini, then from each trusted root up to the git root; one in a subdirectory loads only when a tool first touches that directory, and files can @import others five levels deep. opencode takes the first of AGENTS.md, CLAUDE.md, CONTEXT.md between the working directory and the project root (and ~/.claude/CLAUDE.md globally), plus nested AGENTS.md files attached when the read tool opens a file below them. OpenHands ignores AGENTS.md or CLAUDE.md unless load_project_skills=True. Aider reads no memory file automatically (conventions are a file you add with --read); mini-SWE-agent reads none.

Before reading a single file, Gemini CLI sent 11,452 tokens and mini-SWE-agent under 900

The first request of each local-model run, in characters as sent on the wire, split into system prompt, tool definitions and user content (task, plus Aider's repository map and files), with the prompt tokens the server counted MEASURED. Gemini CLI: 32,924 characters of system prompt and 15 tools in 17,722 characters (counted afterwards with the model's own chat template, because the gateway's stream carried no usage; the same count reproduces the server's numbers on the opencode run exactly). opencode: 9,602 characters of system prompt and 21,144 characters of tool definitions for 10 tools, the bash description alone 4,628, so 7,247 prompt tokens (Codex's, at 9,210, and Gemini CLI's, at 11,452, were larger). OpenHands: 15,228 characters of system prompt and 17,056 characters of tools (the task_tracker description alone is 5,051), 7,196 tokens. Every tool's description and the full prompt text are in the Same task, every harness tab.

When the window fills: compaction

Triggers: Codex at 90% of the window, Gemini CLI at 50% with a second call that critiques the summary, opencode at the usable window, OpenHands past 80 events, Aider when the chat passes a budget; mini-SWE-agent never compacts, so a run that overflows fails.

Each compaction design, read from source, with its output limits
  • Codex compacts at 90% of the window: OpenAI models compact on the server; others get a 426-byte "CONTEXT CHECKPOINT COMPACTION" prompt and a rebuilt history of the summary plus the most recent user messages (compact prompt). Tool output kept in history is cut to the model's limit (10,000 tokens for bundled models) plus 20%, keeping head and tail (history.rs).
  • Gemini CLI starts at 50%: the oldest 70% of the history becomes an XML <state_snapshot>, then a second "probe" call asks the model to critique and improve its own summary (chatCompressionService.ts). Two calls per compression, at half the window: Google trades tokens for a better summary. Shell output over 40,000 characters is saved to a file and truncated; read_file stops at 2,000 lines.
  • opencode summarises the older part when the last turn's tokens reach the usable window (compaction.ts). Two traps: compaction is silently off for a custom model with no limit.context in the config (the session then fails when the window fills), and the cheap "prune old tool outputs" step is off by default. Tool output is cut at 2,000 lines or 50 KB, with the full text saved to a file.
  • OpenHands' condenser in the default preset keeps the first 4 events and a recent tail, and has a model summarise the middle once the history passes 80 events or the token cap, into a state summary with fields such as COMPLETED, PENDING, CODE_STATE and TESTS (llm_summarizing_condenser.py). A bare Agent has no condenser. Terminal output over 30,000 characters is cut in the middle and saved to a file.
  • Aider summarises older chat in a background call ("*Briefly* summarize this partial conversation about programming") once it passes a budget.
  • mini-SWE-agent: none, on purpose. The history is linear, every step appends and the whole list is sent each time, so the trajectory is exactly the prompt, easy to read and to train on. Long outputs are cut in the observation template (over 10,000 characters: the first and last 5,000). A run that overflows the window fails.

When the window fills: Gemini CLI compacts at half the window and keeps the newest 30%; mini-SWE-agent never compacts

The history at the moment each harness compacts, and what survives: kept verbatim against summarised by a model call. Widths are to scale for Gemini CLI (oldest 70% summarised) and opencode (a recent tail of 25% of the usable window, clamped to 2,000 to 15,000 tokens); the others are drawn schematically, since their split is counted in messages or events, not tokens.

Same repository, three situations: predict which files climb when default.py enters the chat, then step

Aider 0.86.2's own RepoMap class run on the source of mini-SWE-agent v2.4.6 (59 Python files under src/minisweagent/, prefix dropped) MEASURED: bars are the PageRank values Aider computed; blue files are in the map at this budget, grey ones ranked but cut, green ones in the chat (sent in full, never in the map). Script: src/repomap_lab.py.

The map text Aider would send

Aider's repository map: choosing for the model instead of letting it search

A repository does not fit in a prompt. Three answers are in use: search on demand (the model runs grep, glob and read itself: Claude Code, Codex, opencode, mini-SWE-agent), an embedding index (chunks retrieved by similarity: Cursor), and a ranked summary sent up front, Aider's repository map. Aider was built in 2023 for models with small windows and no tool calls, so it could not let the model search; it chooses for it. Files you add are sent in full; everything else is summarised by the map, cut to a token budget (--map-tokens, 1,024 by default when the model's window is unknown, as for a local model).

  1. Tags. tree-sitter parses every file into definitions (class, function and method names, with lines) and references (uses of a name).
  2. A graph of files. For every name both defined and referenced, an edge runs from each using file to each defining file, weighted mul × √(number of uses); mul starts at 1 and is multiplied by 10 if your message mentions the name, by 10 if it is a long (8 or more characters) snake_case, kebab-case or camelCase name, by 0.1 if it starts with an underscore, by 0.1 if more than five files define it, and by 50 if the using file is in the chat (repomap.py lines 487 to 514).
  3. Personalised PageRank (the random-surfer score, restarting at the files you care about): each file in the chat, each file whose name you typed and each file whose path contains a word you typed gets 100/N added to its restart weight (N files; here 100/59 = 1.69) (lines 383 to 445).
  4. Rank flows to definitions: each file's rank is split across its outgoing edges by weight and summed per (defining file, name), so the map lists the most important definitions. Files already in the chat are skipped: their full text is sent anyway.
  5. Fit the budget: a binary search finds how many ranked definitions fit, stopping once the map is within 15 percent of the budget, above or below (lines 676 to 703). That is why a 2,048-token budget produced a 2,233-token map below.

The stepper beside this runs it on a real repository; predict which files climb when default.py enters the chat, then watch.

  1. Nothing in the chat, no message. PageRank restarts uniformly, so files whose names are used everywhere rank highest. With nothing in the chat, generic utilities win: utils/serialize.py (rank 0.130), whose recursive_merge is called from many files, tops the list.
  2. agents/default.py enters the chat. Adding it gives it the restart weight and multiplies its outgoing edges by 50, so the files it uses (agents/interactive.py, exceptions.py) climb. Its restart weight is 100/59 = 1.69; it is now sent in full and left out of the map (green).
  3. Plus a message. The message "Make DockerEnvironment retry when docker exec times out" pulls in environments/docker.py twice over (its stem matches "docker", and so does a path component) and also models/utils/retry.py, only because the ordinary word "retry" equals that file's name: restart weight 3.39 each, and both jump into the top three. Name matching cannot tell a word from an intent.

What it buys. The map costs no model calls (a parser and a graph library, then input tokens on each request), where agentic search pays a model call per grep; it is recomputed when files change (--map-refresh) but ranks only what the parser sees (strings, configs and dynamic dispatch carry no tags). Every tool-calling harness here lets the model search instead; Aider's idea survives as a cheap first message, a few hundred tokens of "what is where" before the first grep.

Repository map: what is simplified, and one more prediction

No published figure to reproduce; by construction these are Aider's own numbers. The budgets were passed straight to get_ranked_tags_map; in a real session with no files in the chat Aider first multiplies the budget by --map-multiplier-no-files (default 2). Token counts use the tokenizer Aider attaches to gpt-4o; a different model's tokenizer gives slightly different counts.

Predict: which file rises if your message names get_model_class? The identifier gets the x10 mention multiplier on every edge into models/__init__.py, and no file name matches it.

6. Sub-agents, extensions and the harness as a server

Four of the six can be extended with MCP servers, hooks, skills and sub-agents; Aider and mini-SWE-agent deliberately cannot. The difference that matters most for building on one is the last column: whether the harness is a library or service you can drive, or a terminal program.

HarnessMCPHooksSkills, pluginsSub-agentsDrive it from code
Codex CLIas a client12 events (PreToolUse, PermissionRequest, PreCompact, Stop, ...)skills, pluginsup to 6 threadsPython and TypeScript SDKs over JSON lines; codex mcp-server was removed in rust-v0.154.0 (release notes)
Gemini CLIyes11 events (BeforeTool, AfterTool, BeforeModel, AfterModel, PreCompress, ...)skills; extensions: a folder with a gemini-extension.json bundling MCP servers, context files, commands, hooks and skills, installed from a GitHub URLinvoke_agent; local, or remote over A2Aheadless gemini -p
opencodeyesJavaScript plugins: tool.execute.before, permission.ask, experimental.session.compactingskills (it also reads .claude/skills)task tool, built-in general and explore; custom agentsan HTTP server: everything runs behind it
Aidernonenonenonenone; architect mode (a planner model, an editor model)a Python scripting API; watch mode (AI comments in your editor's files)
OpenHands SDKyesClaude Code's event names (PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, SessionEnd, Stop)skills in the SKILL.md format, pluginsyesa Python SDK and an agent server with a REST and WebSocket API
mini-SWE-agentnonenonenonenonea 190-line Python class; one bash tool

The harness as a server. opencode runs everything behind an HTTP API: opencode serve starts a headless server, the terminal UI starts the same server in a worker thread and talks to it, and even opencode run boots a local server first (serve.ts). At this version the UI is TypeScript on OpenTUI and SolidJS, and the repository has no Go (older write-ups describe a Go/Bubble Tea UI). The split is what lets one session be driven from the terminal, a desktop app, an editor or a script. OpenHands gets the same from its event log: a conversation is typed events, so it can be persisted, replayed, condensed and served.

What a sub-agent buys, recorded. Our opencode run delegated twice to the explore subagent, which ran in its own 5-tool context (3,091 tokens on its first call) and found the bug in top_words; the main agent then answered in prose ("update the sorting key to include alphabetical ordering for ties") without calling edit, and the loop ended (section 2). Delegation kept the main context small; it did not make the model act. When to delegate at all is Context engineering's subject.

7. Where the loop runs: your terminal, a cloud agent, or a loop you rent

The same loop also runs on someone else's machine, and that moves what you can check: an edit as it lands (terminal), a pull request afterwards (cloud agent), or only the permission policy (hosted loop).

  1. Terminal: the loop runs in your process. The loop, its context policy, the tools and the permission checks run on your side (front); only the model calls cross to the provider (back). This is the six harnesses on this page: you can review each edit as it lands.
  2. Cloud agent: the loop moves out. Codex cloud, Jules: the loop, its context, a container that runs the tools, and the model all sit with the provider; what comes back is a pull request you review afterwards.
  3. Hosted loop: you keep the permission policy. OpenAI's Agents API, Claude Managed Agents: the loop, its context policy and compaction run at the provider; your side keeps the permissions (approve or deny each tool call) and your tools, if you host the sandbox.

Codex cloud gives each task its own workspace (a container with your repository checked out, a setup script, a default "universal" image, agent internet access off by default) and keeps running while your computer sleeps; codex cloud exec --attempts 1-4 runs best-of-N and codex apply brings a result home (Codex cloud, CLI reference, environments). The pattern: interactive work in the terminal, a fleet of parallel attempts for small, well-specified fixes. Jules (Google) clones a GitHub repository into a cloud VM, writes a plan for you to approve, makes the change and opens a pull request (jules.google). With a hosted loop the parts of the harness that most change behaviour (context policy, compaction, the loop itself) leave your process; Anthropic's ant beta:sessions connect attaches a terminal to a running Managed Agents session to watch it and approve or deny tool calls. Hosted runtimes are compared on Topic: agentic-frameworks (tab Production stack); launch dates and partners are in the dated table below.

What the runs show, and what they cost

Harness, modelOutcomeWhat decided it
Aider diff and whole, local 4B; Aider diff, Haikuboth bugs fixedThe harness chose the files and ran the tests; the model wrote edits once and got only the remaining failure back.
Gemini CLI, local 4Bone of twoIts first reply made four tool calls at once (a topic note, a directory listing and two file reads); it fixed top_words with replace, ran the tests, saw one failure left, then sent an empty reply, which ends the loop (6 calls, inside Seatbelt).
Codex CLI, local 4BnoneAn optional schema field (justification) filled wrongly, repeated four times, then prose until the 2,048-token output cap: 5 calls, 47,636 input tokens. Codex's own usage report and our proxy's sum agree to the token.
opencode, local 4BnoneFound the bug through a subagent, then described the fix in prose instead of calling edit: 13 calls, one of them a separate call that generated the session title.
OpenHands, local 4Bnonestr_replace refused five edits whose search text had the wrong indentation; stopped at our 30-iteration cap (lowered from 500).
mini-SWE-agent, local 4B, both modesnoneA sed pattern that silently matched nothing (tool calls: 23 calls, 86,231 input tokens). In text mode it escaped [1] but not [:n], then "verified" with its own check, top_words('a a b b c c', 2), which prints [('a', 2), ('b', 2)] even with the bug because Counter keeps first-seen order, and submitted (6 calls).
mini-SWE-agent text mode, HaikunoneNo server-side stop at the action: invented output (section 1).

Why the simplest protocol won here. An agent loop hands a weak model many decisions (which tool, which arguments, when to stop), and each is a chance to slip. Aider takes most of them away: its repository map and file-mention rule pick what the model reads, the model answers once with edits, and the harness, not the model, runs the tests and returns only the failure. With a strong model the balance changes: mini-SWE-agent's bash-only loop is the fixed harness of SWE-bench's "Bash Only" view, runs "in the mini-SWE-agent environment, so scores compare models rather than harnesses" (swebench.com), and its README reports scores above 74% on SWE-bench Verified; how far a harness moves strong models' scores is on Coding benchmarks and the parent's section 7.

One run per setting, one task: enough to see mechanisms, not to rank products; fix the model and effort, repeat runs and report cost beside the score before comparing harnesses. At scale the ranking itself depends on the model: four harnesses (OpenCode, Codex CLI, Pi CLI, DeepAgents) with four models on six benchmarks, 52,168 trajectories, changed order across models and benchmarks, with OpenCode first on average across models; task success and finishing with a valid, gradable result could favour different pairings (When Agents Fail: Model or Harness (arXiv 2610.32483)). Sampling at the server default (temperature 0) except Gemini CLI, which sends temperature 1 and top_p 0.95 itself; the local server was shared with other jobs, so seconds are not compared. Em-dashes in model output were replaced with commas in the stored recordings, and paths were rewritten to /work.

Every call resends the whole history: OpenHands' 30 calls read 95 times the tokens of Aider's whole-file run

Prompt tokens summed over every model call of each recorded run, coloured by outcome (both tests pass, one, none) MEASURED. OpenHands' 30 calls used 322,241 input tokens, about 95 times Aider's whole-file run (3,384) derived, because the whole event history is resent each step: input tokens grow with the square of the run length. The local server's prompt cache made the repeated prefix fast to process; it did not make it smaller, and paid APIs price cached reads lower, which is why the order of the prompt matters (Context engineering). Click a bar to open the run.

Versions and dated facts (as of October 2026)

Everything here goes stale in weeks; the mechanisms above were read at these versions. Checked 6 October 2026, later entries as dated.

Harness, licenceRead hereSince then (to 17 October 2026; Codex and Gemini CLI to 26 October)
Codex CLI, Apache-2.0rust-v0.160.1, 5 Oct 20260.162.0 to 0.164.0 (23 Oct: ten /presets slots, enterprise MCP auth through Codex account grants, credential masking in remote Bash); Responses API only
Gemini CLI, Apache-2.0v0.62.0, 29 Sep 20260.64.0, 0.65.0 (20 Oct, fixes only; the 0.66.0 preview says it is "not being optimized for Gemini 4"); free and consumer users moved to Antigravity CLI on 18 June 2026
opencode, MITv1.18.34, 30 Sep 20261.19.x and OpenCode 2; Console breach disclosed 17 October
Aider, Apache-2.0main 5dc9490 (= 0.86.2)slowed: last commit 22 May 2026
OpenHands, MITSDK v1.53.0, 5 Oct 2026flagship repository is now "Agent Canvas"
mini-SWE-agent, MITv2.4.6SWE-agent itself in maintenance-only mode
Dated facts in full: releases, stars, tiers, cloud and hosted agents
Harness, licenceRead hereSince, and other dated facts
Codex CLI, Apache-2.0tag rust-v0.160.1, 5 October 2026Launched April 2025 in TypeScript; going native announced 30 May 2025, now the Rust workspace codex-rs (discussion #1174). It speaks only the Responses API: wire_api = "chat" is now a config error (model-provider-info). 127,966 GitHub stars on 6 October 2026 (GitHub API). Docs moved from developers.openai.com to learn.chatgpt.com/codex; "Codex" is also a cloud service and part of the ChatGPT desktop app. 0.162.0 (8 October): managed Git worktrees, task pinning; 0.163.0 (15 October): mid-turn steering, parallel runs of independent read-only tools (changelog).
Gemini CLI, Apache-2.0v0.62.0, stable of 29 September 2026Announced 25 June 2025 (Google blog). 0.64.0 (13 October) makes file writes and state saves atomic (releases). Since 18 June 2026 it no longer serves the free Code Assist tier or Google AI Pro and Ultra subscribers, who were moved to the new Antigravity CLI; it remains for paid Gemini API keys, Code Assist Standard and Enterprise, and Vertex AI (Google Developers Blog, 19 May 2026). The README and quota page still describe the old free tier below a banner announcing the change.
opencode, MITv1.18.34, 30 September 2026Repository moved from sst/opencode to anomalyco/opencode; 211,898 GitHub stars on 6 October 2026; the site claims "over 16M developers every month" (vendor figure) (GitHub API, opencode.ai). Since 1.19.0 (11 October) opencode upgrade --major moves an install to OpenCode 2 and updates are no longer automatic; 1.x was at 1.19.3 on 16 October (releases). 17 October 2026: Anomaly disclosed a breach of the OpenCode Console, a legacy hosted system being decommissioned; 1.4% of Console users were affected, all with external provider API keys linked, and were told to revoke and rotate their OpenAI, Anthropic and Google keys (OpenCode on X): a key stored with a hosted service is as safe as that service. Subscriptions: Anthropic's terms let subscription (OAuth) credentials be used only by Claude Code and Anthropic's own apps (legal and compliance); opencode removed its Claude Pro/Max login plugin in v1.3.0 (22 March 2026; release) after a January 2026 issue reported the login broken (issue #7410); Claude works with an API key; ChatGPT Plus and Pro, GitHub Copilot and GitLab Duo logins work (providers doc).
Aider, Apache-2.0main at 5dc9490 (its code for the parts cited matches 0.86.2, which we ran)First released May 2023. Latest GitHub release v0.86.0 (9 August 2025), but tags v0.86.1 and v0.86.2 exist, PyPI's latest is 0.86.2 (12 February 2026), and the last commit to main is from 22 May 2026 (PyPI, tags): slowed, not stopped.
OpenHands, MITSoftware Agent SDK v1.53.0, 5 October 2026Formerly OpenDevin (arXiv 2407.16741). In 2026 it split: the flagship repository now headlines "Agent Canvas", a self-hosted control centre that can run OpenHands, Claude Code, Codex or Gemini CLI, while the agent lives in the Software Agent SDK, the part you would build on.
mini-SWE-agent, MITv2.4.6The SWE-agent paper (2024) argued that an agent's tools are an interface to design, an agent-computer interface (ACI; paper), and framed guard rails as a trade-off: whether one helps "depends on how well it reduces common model errors compared to whether such restrictions hamper models' preferred workflows". A year later the same team released mini-SWE-agent: "as LMs have become more capable, a lot of this is not needed at all" (README). SWE-agent is now in maintenance-only mode and recommends mini-SWE-agent. Version 2 made native tool calling the default; the version 1 style is the opt-in textbased model class.
Cloud and hostedchecked October 2026Codex cloud tasks start from ChatGPT on the web, mobile or desktop, the CLI (codex cloud, experimental), @codex on GitHub and GitLab (beta) issues, Linear and Slack; its environment page is now titled "Codex Cloud (Legacy)". Jules out of beta 6 August 2025, a command-line tool 2 October 2025, an API 3 October 2025 (changelog), a Gemini CLI extension hands tasks to it (extension); latest changelog entry 9 March 2026. Antigravity (Google) launched 18 November 2025 in public preview with Gemini 3: an editor view, an Agent Manager for several agents across editor, terminal and browser, and Artifacts (task lists, plans, screenshots, recordings) that move verification from the token stream to a document you can comment on (launch post); Antigravity 2.0 (19 May 2026) is a separate agent-first desktop app with "no IDE" (2.0 post). OpenAI's Agents API, public beta 10 September 2026: OpenAI runs the loop, with sandboxes it hosts, on your infrastructure, or at partners (Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop, Vercel) (OpenAI). The same day Anthropic added an auto permission policy to Claude Managed Agents (public beta since 8 April 2026) and ant beta:sessions connect (release notes). Meta Muse Code: "Meta's coding agent for the terminal and CI, built for Muse Spark", with "approvals and an OS sandbox on from the first run" and a headless muse exec; public preview; launch date not confirmed from a dated Meta source (docs).
The rest of the field from the old notes, checked
goose
Rust, Apache-2.0, desktop app and CLI. Block contributed it as a founding project of the Linux Foundation's Agentic AI Foundation on 9 December 2025, beside Anthropic's MCP and OpenAI's AGENTS.md (Linux Foundation); the repository moved to aaif-goose/goose in spring 2026. Every capability, including the developer tools (shell, write, edit), is an MCP extension. Recipes are shareable YAML task packages that a scheduler can run on cron (docs). Its default permission mode is fully autonomous; an optional "Adversary Mode" has a second agent watch tool calls (security).
Cline
VS Code agent, Apache-2.0, with Plan and Act modes (read-only reasoning before any change, the pattern Claude Code's plan mode and Gemini CLI's plan share); native subagents since v3.58.0 (12 February 2026) and a CLI that runs interactive or "fully headless" (release). The site claims "11M+ developers" (vendor figure; the old note said 5M installs).
Roo Code, Kilo Code
Roo Code, a fork of Cline, was shut down on 15 May 2026 and its repository archived (README). Kilo Code started by merging Cline and Roo features; its current core derives from opencode. Anaconda announced it is acquiring Kilo Code on 15 July 2026 (Anaconda); Kilo claims "10T+ tokens processed every month" (vendor figure).
Pizza Bot
"An inbox for long-running AI work" on a DeepAgents and LangGraph runtime, Apache-2.0, "developed at Amazon" but published under its own GitHub organisation, not AWS's; v1.0.0 on 8 September 2026 (repo). The idea it carries: background agents need a place where finished work arrives as items to review, not a terminal someone watches.
Model access is a dependency
On 28 August 2026 OpenAI said it would wind down its contract supplying models to Cursor after SpaceX's acquisition of Cursor (14 August), with a proposed shutoff on 12 November 2026, the maximum notice its contract allows, citing "our experience with Elon Musk's companies violating contracts" (OpenAI, Cursor). With the subscription-login rules above, it makes the same point twice: a harness that is not the model maker's own runs on terms it does not control.
Not coding harnesses
The old note also listed the Gemini app for Windows (10 September 2026, opened with Alt + Space; Google) and the Google Home MCP server (early access; needs a Google Home Premium Advanced subscription and a Google Cloud project; Google Home Developers). The second lets an agent act on physical devices, which belongs to the Personal agents page's trust discussion.

Depth

How the runs were made

The task: the parent topic's running example, a two-file Python package textstats with two planted bugs (a regular expression that splits "don't" into two words, and a sort that ignores alphabetical order on ties), and the prompt "The tests in this repository fail. Find out why and fix the code so they pass. Do not edit the tests." Every model request went through a small logging proxy, so all runs are shown the same way in the Same task, every harness tab. Codex cannot talk to a chat-completions server, so the local model sat behind a LiteLLM gateway that translates the Responses API into chat completions (Gateways and routing covers gateways); Gemini CLI speaks only the Gemini API, and the same gateway serves Gemini-style generateContent routes.

Gemini CLI's HTTP client waits only 60 seconds for response headers (fetch.ts) and retries a failed request up to 10 times (retry.ts): against a slow shared local server, each retry piled another 11,000-token prompt onto the server, and on our first attempt the overlap crashed it. We serialised every request in our proxy and ran it again; the run on the page is the rerun. A free local model crashes a mini-SWE-agent run unless cost tracking is set to ignore_errors, because a computed cost of zero counts as an error. Claude runs used claude -p with every Claude Code tool switched off, behind an adapter; Claude costs in the runs tab are API-price equivalents. The full list of checked claims is in this page's source (src/coverage.json).

Corrections to the two old notes

This page replaces "Open-source harnesses" and absorbs "OpenAI and Google harnesses". Each claim was checked against a primary source on 6 October 2026; these did not survive as written.

Old note saidChecked
opencode: 165k+ stars, about 5M monthly developers211,898 stars; the site now claims over 16M (vendor figure)
opencode's TUI is Go and Bubble TeaTypeScript on OpenTUI and SolidJS at v1.18.34; no Go in the repository
Anthropic blocked third-party OAuth in January 2026; OpenAI sponsors opencodeNo dated Anthropic announcement found; its terms forbid it, and opencode removed the plugin in v1.3.0 (22 March 2026). No source for sponsorship: dropped
OpenAI cut Cursor off "invoking a trust clause", ten weeks' noticeA change-of-control wind-down of a custom contract, announced 28 August 2026, proposed shutoff 12 November (about eleven weeks)
Aider: nothing tagged since August 2025; undo is git revertv0.86.1 and v0.86.2 tagged, 0.86.2 on PyPI 12 February 2026; /undo checks out the previous file versions and soft-resets the commit
goose joined the Agentic AI Foundation in April 2026Founding project on 9 December 2025; the repository moved in spring 2026
Cline 5M+ installs; Roo Code community-maintained since May 2026; Kilo is a Cline and Roo superset11M+ claimed; Roo Code shut down 15 May 2026, archived; Kilo's current core is opencode-derived, and Anaconda is acquiring it
SWE-agent: add guard rails only when their false-positive rate is about zeroNot in the paper or the ACI docs; the paper frames guard rails as a trade-off against the model's preferred workflow
mini-SWE-agent: about 100 lines, about 65% on SWE-bench Verified190 lines in v2.4.6; its README reports above 74%
AWS released Pizza BotDeveloped at Amazon, published under its own organisation; v1.0.0 on 8 September 2026
Codex: about 114k stars; Landlock and seccomp on Linux; approval modes suggest, auto, full-access; MCP server mode127,966 stars; bubblewrap and seccomp (Landlock is a deprecated fallback); sandbox modes and approval policies are separate settings; codex mcp-server removed in rust-v0.154.0
A Codex desktop app on 11 September with max and ultra effort, ExternalMessage, resume and fork, per-turn service tiersThose are the Python SDK's release python-v0.154.0 (10 September); Codex lives in the ChatGPT desktop app, and 11 September was a ChatGPT desktop update
Deep Research inside Codex (9 September); a "persistent Codex"Not confirmed from a primary source here: dropped
Agents API integrations: Blaxel, Cloudflare, E2B, ModalNine partners: also Daytona, DigitalOcean, Oracle, Runloop, Vercel
Antigravity is a VS Code fork; 2.0 is the IDE's next versionThe launch post does not say "fork"; 2.0 is a separate desktop app with no IDE
Google Home MCP from 16 September; Muse Code launched 2 SeptemberBoth products confirmed; neither date confirmed
Gemini CLI: save_memory and read_many_files tools, an LLM that corrects failed editsNeither tool is model-visible in v0.62.0; edit correction exists but is off by default

Confirmed as written: Gemini CLI's free tier moved to Antigravity CLI in June 2026; Claude Code reads AGENTS.md from 2.1.277 (only when there is no CLAUDE.md); Jules dates; OpenHands was OpenDevin (arXiv 2407.16741). The old note's ARC Prize "Provider Adapter" score is not repeated: the parent topic records a disagreement between sources.

Interview rehearsal: seven design questions
What is the action boundary, and who enforces it?
The point where the model must stop generating so the harness can run the action and return the real result. With native tool calls the inference server enforces it (the reply ends with a tool-call finish reason); with text actions the harness must, by a stop sequence or by training plus the chat template. Without it, the model writes invented results.
mini-SWE-agent runs every command in a fresh subprocess. Why, and what does it cost?
Independent actions make sandboxing a one-line swap (docker exec) and runs easy to parallelise and replay. The cost: no persistent shell state, so cd and export must be repeated in each command.
Compare three compaction designs.
Codex: summarise at 90% of the window, keep recent user messages (server-side for OpenAI models). Gemini CLI: at 50%, summarise the oldest 70% into a state snapshot, then a second call critiques it. opencode: at the usable window, keep a recent tail of 25% (2k to 15k tokens) verbatim. Earlier and two-pass costs tokens but keeps more working room and a better summary.
How would you sandbox an agent's shell on macOS and on Linux?
macOS: Seatbelt profiles via sandbox-exec, deny by default, write only to the workspace, network off (Codex, Gemini CLI -s). Linux: bubblewrap for the file system plus seccomp for the network (Codex), or a container. Keep it on in headless mode, where nobody approves.
SEARCH/REPLACE text, a str_replace tool, or a patch grammar?
Text blocks work with any model and batch many edits in one reply but need a parser and a format per model. A str_replace tool is simple and exact but fails on whitespace drift unless the harness adds matchers (opencode has nine, Gemini CLI four). A patch grammar (Codex) is compact for multi-file changes and can be enforced at decoding time, but the model must be trained on it.
Your agent repeats the same failing tool call. What do you add?
Detection in the harness: identical-call counting (Gemini CLI after 5, opencode after 3), then a nudge, then a stop or a question to the user; a step limit as the last resort. Also look at the tool: a clearer error message or a smaller schema may remove the cause (Codex's justification rule in section 2).
How does Aider decide what to show the model of a repository it cannot fit?
tree-sitter tags, a file graph weighted by identifier references, personalised PageRank toward the files in the chat and the names in the message, then a binary search for the most ranked definitions that fit the token budget. See section 5.

Sources are linked where each fact is used; source code is linked at the pinned commit of each repository (the Versions table).