Skip to content
←Back to Papers

PAPER DEEP DIVE

Agent HarnessLLM AgentContext Management

Freehand: The Bitter Lesson Comes to Agent Harnesses

Freehand gives frontier models one bash tool, an editable transcript, and a resource meter, leaving all other decisions to the model. Across 11 frontier settings it beats each first-party harness by 5.1 points on average at 49% lower cost and the fastest mean runtime; on lower-tier models the order reverses.

Paper Metadata

Title: Freehand: The Bitter Lesson Comes to Agent Harnesses (arXiv:2612.02442v1, 2026-12-01)
Authors: Zezi Zeng, Yuke Zhao, Muzhao Tian, Yifan Yang, Qi Dai, Bei Liu, Kai Qiu, Bohan Zhuang, Jihua Zhu, Chong Luo (the paper notes work done during an internship at MSRA; code is released under the Microsoft organization on GitHub)
Links: arxiv.org/abs/2612.02442 · project page
Code status: released at github.com/microsoft/FreeHand (MIT license, PyPI package freehand-ai). The README marks the project Alpha and states it ships no sandbox: model commands run with the invoking user's permissions, and containers or VMs are recommended for untrusted code.

One-Sentence Summary

Freehand gives a frontier model one bash tool, an editable transcript file, and a one-line resource meter, and leaves every other decision to the model; across 11 frontier-model settings it beats each model's first-party harness by 5.1 points on average at 49% lower cost, with the fastest mean runtime.

1. Background and Motivation

An LLM agent consists of a model and a harness: the loop that sends context to the model, executes its actions, and returns observations. The paper's starting point is that mainstream harnesses have grown heavy around this loop. Auditing eight widely used harnesses (Codex, Gemini CLI, Claude Code, DeepSeek Harness, OpenCode, Pi, GitHub Copilot CLI, Aider) through source code and isolated API requests, the authors find the added machinery concentrated on three axes: behavioral rules for how to approach a task (A1), specialized action and observation interfaces (A2), and threshold-triggered context compaction (A3).

These presets are not mistakes. They encode hard-won experience with models that could not yet plan over long horizons, build their own tools, or keep their context in order. The authors' criterion is explicit: a preset pays off as long as the errors it prevents outweigh the correct adjustments it blocks. But a preset is fixed before the task begins, while the model decides with evidence the task produces along the way — an error message, a test result, an estimate of how long a job will run. As models get better at using that evidence, the balance flips.

A fixed command timeout illustrates the cost of the flip. A 30-second cutoff rescues an agent stuck at an interactive prompt, yet it also cuts off computations the model expected to run for minutes: in one Terminal-Bench 4 run, the cutoff turns a single wait into 334 polling calls at more than ten times the cost of an agent that sets its own timeout. The budget is identical in both cases; what differs is who decides how long the command deserves to run.

The hypothesis follows: for frontier models, the decisions a harness fixes in advance — how to approach a task, how to act, what to remember — cost more than they save, and leaving them to the model improves both performance and cost. This is the structure of Sutton's Bitter Lesson: built-in human knowledge helps at first and is later outgrown by general methods, here the model's own judgment at run time.

Longitudinal audits of production coding agents show hidden instruction stacks, especially tool definitions, expanding across releases; multi-thousand-token static prefixes, specialized tool suites, and automatic threshold compactors are the industry norm. The paper asks the opposite question: what happens on frontier models when external prescriptions across strategy, action interfaces, and context management are removed simultaneously?

2. Preliminaries: What Harnesses Decide Outside the Loop

Single-agent harnesses share one ReAct-style observe–reason–act loop: assemble context, invoke the model, execute actions, append observations. The audit locates everything else on three axes. The static prefix below sums default instructions and enabled built-in tool schemas.

HarnessStatic prefixDefault toolsDefault context management
Codex CLI~15.1K23Auto-summarization at 90% of window
Gemini CLI~9.5K16Threshold compression + masking of tool responses above 256 KiB
Claude Code~8.5K22Auto-summarization near window limit + historical output clearing
DeepSeek Harness~6.5K34Middle-pruning of outputs over 8,192 chars + 80% auto-summary (16% tail kept)
OpenCode~5.2K10Overflow summary + recent-tail retention
Pi~1.2K4Auto-summarization at window minus 16,384
Freehand~0.35K1 (bash)Model-side context self-management

Table 1: audited task-execution mechanisms (excerpt of paper Table 1).

On A1, Gemini CLI's ~3.9K-word prompt prescribes a Research → Strategy → Execution lifecycle with an adaptive LLM loop checker from turn 30; Codex's ~3.3K-word prompt codifies rg-first search, parallel read/call batching, and testing guidelines; Claude Code requires reads before edits and injects recurring system-reminder blocks alongside tool outputs. On A2, everyday operations — file reads, structured patches, search, web fetch, sub-agent orchestration — are wrapped into dozens of built-in tools, with GUI control mounted through extension protocols such as MCP. On A3, history is an append-only log the model cannot prune; staying inside the window is delegated to passive, threshold-triggered compaction.

Two notions matter for the experiments. The static prefix is carried on every request, so more tools and finer rules mean a larger fixed per-turn charge. Threshold compaction rewrites history via an LLM summarizer once a window fraction is reached, with no say from the model over what survives. Freehand's answers are a ~0.35K-token prefix and a history the model can edit as a file.

3. Method: Returning Three Decisions to the Model

Freehand keeps the core observe–reason–act loop and returns A1, A2, and A3 entirely to the model. Its model-facing surface has three parts: a ~200-word system prompt, a single bash interface, and a one-line per-turn status footer. The prompt describes only how the loop operates, which interface and context-editing capability exist, and which resource metrics the footer reports, stating: "Nothing else is decided for you. How you approach the task, how you use your context, and so on are all yours to manage." It prescribes no workflow, coding convention, or tool preference, and injects no runtime reminders.

Architecture comparison between mainstream harnesses and Freehand

Figure 1 (paper Figure 2): mainstream harnesses wrap the model in behavioral rules, runtime reminders, preset tool suites, and threshold auto-compaction; Freehand exposes a ~200-word runtime description, one bash interface, and runtime context self-management.

3.1 One bash primitive with model-set timeouts

Freehand exposes a single function tool, bash(command, timeout_s?), with no task-specific wrappers; replying without a tool call terminates the loop cleanly. Commands run via bash -lc in the task working directory and return combined stdout/stderr with the exit code. timeout_s defaults to 120 seconds from config.json, and the model may specify any duration between 1 and 86,400 seconds — a long simulation or a full-system build can be waited out in one call instead of being cut off and polled. The range check in the released runtime matches Appendix B of the paper verbatim:

# src/freehand/runtime/agent.py (_tool_specs and runtime validation)
"name": "bash",
"parameters": {
    "type": "object",
    "properties": {
        "command": {"type": "string"},
        "timeout_s": {"type": "integer",
                      "description": "seconds before the command is killed"},
    },
    "required": ["command"],
    "additionalProperties": False,
}
# runtime validation in the same file:
if timeout < 1 or timeout > 86400:
    return f"bash: timeout_s must be between 1 and 86400 seconds, ..."

The primitive is a general, Turing-complete execution interface: the model draws on the system ecosystem of utilities and libraries and writes custom scripts and domain tools at the granularity each problem demands. The paper stresses that the gain is not merely "fewer tools": mini-swe-agent, which also exposes only bash but fixes its workflow and timeouts, still trails Freehand by 3.5 points at 35% higher cost on Terminal-Bench 4. What is returned is control, not simplicity alone.

3.2 The editable transcript: memory as a file

After each turn, Freehand serializes the active conversation message array in the provider's native API schema to transcript.json inside the session directory (the FREEHAND_SESSION environment variable, default /freehand). The model can inspect, prune, condense, or reorganize historical turns and bulky outputs through bash. Before the next dispatch the harness checks whether the file changed: if so it adopts the edited array, automatically reverting with error feedback when the edit is malformed or rejected by the provider API, then appends the current turn's tool output and the status footer. The revert path relies on .state/transcript.last_good.json, the last version the API accepted.

Because the transcript carries the native message format, viewing images needs no dedicated image tool: the model base64-encodes a screenshot or figure through bash, inserts it as a native image block into transcript.json, sees it on the next turn, and removes it through the same mechanism when stale. On GUI tasks the model inserts and prunes cropped screenshots exactly this way (Section 4.5).

Cache economics are an easy-to-miss part of the design. Unedited prefixes retain standard provider prompt-cache hits; an edit trades one partial cache rebuild against permanently lower context volume on all subsequent turns. On short tasks the model barely edits (history is untouched on 99.8% of AutomationBench tasks), so management overhead is zero; on multi-hour tasks, pruning at subtask boundaries outweighs the rebuild cost.

3.3 The meter: one footer line instead of rules

After each turn the harness appends one line reporting the turn index, active context size, cumulative input/output tokens (with cache hits), cumulative cost, and elapsed time. The format is fixed in the runtime's status_line:

# src/freehand/runtime/agent.py (status_line)
return (f"[harness] turn {m['turn']} | context {m['last_context_tokens']:,}{window} tokens "
        f"| total in {m['input_tokens']:,} (cached {m['cached_tokens']:,}) "
        f"out {m['output_tokens']:,}{cost} | {(now() - m['t0']) / 60:.1f} min elapsed")

With explicit resource feedback, the model decides whether, when, and how to curate its working memory: short trajectories stay untouched, long ones shed stale intermediate outputs at natural subtask boundaries. The harness never rules on when to compact; it only publishes the readings. The full prompt in Appendix B is verbatim identical to src/freehand/prompt.md in the repository, and the same prompt and interface are used across every model and benchmark without model- or domain-specific tuning.

3.4 The loop as a whole

graph TD
  A[Task statement task.md] --> B[Assemble context
read transcript.json] B --> C[Model reasons
sets strategy and per-command timeout] C --> D{Tool call?} D -- bash command timeout_s --> E[Execute via bash -lc
return stdout stderr exit code] E --> F[Write transcript.json
append one-line resource footer] F --> G{Did the model edit the transcript?} G -- yes --> H[Adopt edited array
revert with error if API rejects] G -- no --> I[Keep history as is
unedited prefix hits prompt cache] H --> B I --> B D -- no tool call --> J[End loop
hand over to official verifier]

Figure 2: the Freehand loop, drawn from Section 3 and Appendix B of the paper and runtime/agent.py in the repository. The harness only serializes, executes, and adopts edits; all three decision axes sit on the model side.

Freehand adds no new component to the agent loop; it changes who makes the decisions inside it and gives the model the means to make them. One general mechanism replaces many special-purpose ones — file tools, image viewers, compactors, memory interfaces, GUI toolkits — and the same harness runs terminal, scientific, knowledge-work, GUI, and enterprise-workflow tasks without any domain-specific tool.

4. Experiments

4.1 Setup and main results

The evaluation covers 11 model–benchmark settings across three frontier families, all at high reasoning effort: GPT-6-astra and Claude Opus 5.5 on five benchmarks each, plus Gemini 4 Carbon on Terminal-Bench 4. The benchmarks are Terminal-Bench 4 (63 systems/security tasks), Terminal-Bench Science (70 scientific computing tasks), Agents' Last Exam (105 research/engineering tasks), OSWorld 2.1 (108 Ubuntu GUI tasks), and AutomationBench (600 enterprise workflow tasks). Baselines are each model's first-party harness (Codex, Claude Code, Gemini CLI), plus OpenCode, Pi, and DeepSeek Harness on the 10 astra/Opus settings, and the bash-only mini-swe-agent (v2.4.6) on Terminal-Bench 4. All harnesses are pinned to their latest default versions at evaluation time and run in identical containers with official verifiers, spanning 191 evaluation rounds (2–5 per benchmark); Freehand's cross-round score SD is 0.2–4.0 pp. Costs use unified list prices, and runtimes are normalized onto a shared hardware scale per Appendix H.

Five-benchmark mean score versus per-task cost

Figure 3 (paper Figure 1): five-benchmark mean score against per-task cost (log scale). Every baseline lies in the shaded region bounded by Freehand's dashed lines — costlier and lower-scoring.

Across all 11 settings Freehand achieves both the highest official score and the lowest per-task cost. Against first-party harnesses it gains +5.1 pp on average (up to +7.9 on OSWorld 2.1 astra, +7.6 on Terminal-Bench 4 Carbon, +7.0 on Terminal-Bench 4 Opus) while mean per-task cost falls 49%, from USD 7.34 to USD 3.73 (−30% to −74% per setting). Macro-averaged over the 10 astra/Opus settings: Freehand 63.2% / USD 3.23 / 31.7 min, first-party 58.4% / USD 6.70 / 33.0 min, Pi 59.3% / USD 4.49 / 36.5 min, DeepSeek Harness 57.4% / USD 12.76 / 35.1 min, OpenCode 56.8% / USD 5.16 / 32.0 min.

BenchmarkModelFirst-party score / cost (USD)Freehand score / cost (USD)Δ score (pp)
Terminal-Bench 4GPT-6-astraCodex 54.6 / 5.8857.1 / 3.12+2.5
Terminal-Bench 4Claude Opus 5.5Claude Code 54.9 / 4.9161.9 / 3.38+7.0
Terminal-Bench 4Gemini 4 CarbonGemini CLI 49.5 / 13.7257.1 / 8.76+7.6
TB ScienceGPT-6-astraCodex 58.1 / 12.9963.8 / 7.71+5.7
TB ScienceClaude Opus 5.5Claude Code 54.3 / 12.8655.2 / 8.16+0.9
Agents' Last ExamGPT-6-astraCodex 63.6 / 4.4567.5 / 1.92+3.9
Agents' Last ExamClaude Opus 5.5Claude Code 62.2 / 2.2966.5 / 1.16+4.3
OSWorld 2.1GPT-6-astraCodex 68.3 / 14.9476.2 / 3.96+7.9
OSWorld 2.1Claude Opus 5.5Claude Code 74.9 / 7.4980.1 / 2.09+5.2
AutomationBenchGPT-6-astraCodex 44.8 / 0.8949.5 / 0.56+4.7
AutomationBenchClaude Opus 5.5Claude Code 47.9 / 0.2754.4 / 0.19+6.5

Table 2: per-setting results against each model's first-party harness (excerpt of paper Table 2; scores in %, costs in USD per task at unified list prices).

Macro averages over ten settings

Figure 4 (paper Figure 3): mean score, per-task cost, and normalized net runtime over the ten astra/Opus settings.

The GUI result deserves attention: Freehand has no GUI tooling yet beats GUI-equipped first-party and open-source stacks on OSWorld 2.1 — 76.2% / USD 3.96 / 12.0 min on astra and 80.1% / USD 2.09 / 15.5 min on Opus, at roughly one quarter of first-party cost and half the runtime. The model writes pyautogui scripts through bash, batches inputs, and verifies locally with cropped-screenshot checks.

4.2 Where the cost savings come from

Request-level token accounting traces the savings to the three returned axes. A1: freed from mandated workflow stages, uniform operational rituals, and recurring reminders, models pace work around each task's structure and difficulty, converging in fewer, higher-density turns. A2: the static prefix drops from ~5.2K–15.1K tokens to ~0.35K (−93% to −98%), and, more importantly, the choice of interaction mode and abstraction granularity returns to the model. Cumulative input tokens fall 44%–91% relative to first-party harnesses across the 11 settings: OSWorld 2.1 astra 12.66M → 1.11M (−91%), Opus 8.44M → 2.15M (−75%); ALE astra 2.70M → 0.59M (−78%); TB4 astra 3.32M → 0.99M (−70%), Carbon 6.94M → 3.89M (−44%). A3: on short workflows (AutomationBench, ~14 turns) history is untouched on 99.8% of tasks — zero management overhead, yet 51%–67% fewer tokens via leaner turns; on multi-hour TB-Science (Opus), active self-management compresses cumulative input from 24.54M to 8.92M tokens (−64%), far outweighing partial cache rebuilds.

4.3 Controlled ablations: attributing the gains

To rule out runner differences, the authors ablate individual axes inside the same Freehand loop (GPT-6-astra; ALE 3 rounds, TB4 5 rounds). Replacing model-side self-management with 90% threshold auto-compaction leaves accuracy statistically unchanged (ALE 67.7±1.0 vs 67.5±0.4; TB4 56.8±2.1 vs 57.1±3.0) but raises per-task cost by 19% (USD 2.28 vs 1.92, cumulative input +56%) and 7% (USD 3.35 vs 3.12, +41%). Keeping Freehand's loop and self-management while restoring Codex's system prompt and specialized toolset worsens both axes: ALE 67.5% → 63.7% (−3.8 pp) at +68% cost (USD 1.92 → 3.23); TB4 57.1% → 54.6% (−2.5 pp) at +53% cost (USD 3.12 → 4.78). Prescriptive prompts and specialized tools are the primary driver of score loss and cost inflation; context self-management mainly adds further savings on long-horizon tasks.

Configuration (GPT-6-astra)ALE score / cost (USD) / inputTB4 score / cost (USD) / input
Freehand67.5% / 1.92 / 0.59M57.1% / 3.12 / 0.99M
Without self-management (90% threshold compaction)67.7% / 2.28 / 0.92M56.8% / 3.35 / 1.40M
+ Codex prompt and tools63.7% / 3.23 / 1.33M54.6% / 4.78 / 2.11M
Codex native63.6% / 4.45 / —54.6% / 5.88 / —
mini-swe-agent (bash-only, fixed template and 30 s timeout)—53.7% / 4.21 / —

Table 3: controlled factor ablations inside one loop (paper Figure 4 and Appendix E; input = cumulative input tokens).

Ablation score-cost trajectories

Figure 5 (paper Figure 4): removing self-management raises cost at unchanged accuracy; restoring Codex's prompt and tools lowers accuracy while sharply inflating cost.

4.4 From crutch to cage: the capability reversal

The central hypothesis predicts that the net effect of the same presets flips from positive to negative as the model strengthens. Paired 5-round experiments on Terminal-Bench 4 test this directly. On three lower-tier models the first-party harnesses clearly help: Codex leads Freehand by 5.7 pp on GPT-6 Sol (34.9% vs 29.2%), Claude Code by 6.7 pp on Claude Sonnet 5.5 (41.6% vs 34.9%), and DeepSeek Harness by 5.1 pp on DeepSeek V4.1 Flash (28.9% vs 23.8%). On frontier models the order reverses completely: within the same families Freehand leads by 2.5 pp on GPT-6-astra and 7.0 pp on Claude Opus 5.5, and by 7.6 pp over Gemini CLI on Gemini 4 Carbon. The identical DeepSeek Harness build (0.2.2rc2) that aids the weak model by +5.1 pp trails Freehand by 6.0 pp on astra and 4.4 pp on Opus, indicating the reversal reflects model capability rather than harness implementation quality.

Reversal between lower-tier and frontier models

Figure 6 (paper Figure 5): on Terminal-Bench 4, first-party harnesses lead by 5.1–6.7 pp on lower-tier models; Freehand leads by 2.5–7.6 pp on frontier models.

4.5 Trajectories: what the model does with control back

Request-level logs show three behavioral shifts. The most visible is task-adapted programmatic execution: on ALE (astra), 85.1% of Freehand calls run multi-stage pipelines or bespoke Python scripts, versus 51.5% for Codex. Polling and reminder loops disappear alongside it: Codex averages 11.6 write_stdin PTY polls per task on ALE against 0 for Freehand, while Claude Code injects 38–199 runtime reminders per task across benchmarks, roughly doubling model turns at matched command counts. Memory curation tracks the task horizon: the share of tasks editing context rises smoothly from 0.2% on AutomationBench to 58.6%–64.3% on TB-Science and 77.8%–91.7% on GUI OSWorld 2.1, where models insert and prune cropped screenshots directly through transcript.json.

Context self-management distribution and per-turn memory trajectories

Figure 7 (paper Figure 6): (a) the share of tasks editing transcript.json scales monotonically with task horizon; (b) on microarch-modeling, Codex's context climbs monotonically to 241.6K while Freehand resets at six subtask boundaries with a 48.7K peak.

Paired cases make the mechanism concrete. On OSWorld 2.1 Task 029, Codex spends 202 turns and USD 19.53 for a score of 0.00, while Freehand takes 25 turns and USD 2.00 for 0.96; on Task 038, Codex uses 545 turns and USD 72.68 against Freehand's 36 turns and USD 1.52 for 1.00. On the pure-GUI railway booking Task 065, Freehand batches pyautogui inputs with local verification and passes on astra at USD 9.95 (Codex fails at USD 57.45) and on Opus at USD 3.62 (Claude Code: 931 turns, USD 34.55). On ALE's sec_10k_financial_parsing, OpenCode's read tool loads a full 78-page PDF into context at turn 3, and every later call re-carries that payload (44 calls, 9.09M input tokens, USD 13.09); Freehand batch-converts filings on disk with pdftotext and pipes only target snippets through grep/sed, matching accuracy (0.915 vs 0.914) in 27 calls, 1.16M tokens, and USD 2.66 with zero context edits.

Trajectory case studies of three harness-preset bottlenecks

Figure 8 (paper Figure 7): paired trajectory cases for specialized tools, fixed timeouts, and heavy prompts; coin stacks are to scale within each pair.

The fixed-timeout penalty is starkest on ctr-optimization: mini-swe-agent's hardcoded 30 s cutoff interrupts 60% (38/63) of TB4 tasks; on this task it polls 334 times across 403 calls for USD 70.77, while Freehand sets workload-matched timeout_s values, waits up to 24 minutes in a single call, and finishes in 42 calls for USD 2.28 (5-round means USD 3.92 vs 45.99, a 12× gap). Its six-step SWE template also causes premature exits or post-fix regressions on kv-live-surgery (2/5 vs Freehand's 5/5). Heavy prompts induce false refusals of benign tasks: on ALE's zdock (scoring protein-dimer docking poses), native Codex refuses at turn 1 in 3/3 rounds; a single-variable ablation that swaps in only Codex's system prompt — interface and loop unchanged, and despite zero biosecurity clauses — triggers turn-1 refusals in 10/10 runs versus 10/10 passes for unmodified Freehand.

5. Runtime Normalization and Statistical Verification

The 191 rounds span multiple dates, host generations, concurrency levels, and API endpoints, so raw wall-clock comparisons would conflate harness speed with infrastructure noise. The authors first partition each trial's net duration $T_{\text{net}}$ (wall clock minus upstream 429/5xx backoff) into model wait $T_{\text{llm}}$ and local execution $T_{\text{exec}}=T_{\text{net}}-T_{\text{llm}}$; for overlapping concurrent API calls (e.g., DeepSeek Harness sub-agents), $T_{\text{llm}}$ takes the union of request intervals rather than their sum, preserving real concurrency speedups. Controlled probes then yield an API speed multiplier $\rho_{\text{api}}$ (hierarchical 15-minute, hourly, 3-hour, and daily windows) and a host-by-concurrency multiplier $\rho_{\text{exec}}$ (microbenchmarks across 8 hardware tiers, anchored to a reference 32-core Zen 3 host at concurrency 4), rescaling both components onto a shared scale:

$$T_{\text{aligned}}=\frac{T_{\text{llm}}}{\rho_{\text{api}}}\cdot\bar{\rho}_{\text{api}}^{(m)}+\frac{T_{\text{exec}}}{\rho_{\text{exec}}}.$$

Here $\bar{\rho}_{\text{api}}^{(m)}$ anchors the API term back to each model's historical median API speed so magnitudes stay interpretable on that model's typical scale. Self-consistency checks: for identical harness versions evaluated one month apart on AutomationBench, cross-round mean runtime gaps shrink from 25%–56% before normalization to 0.6%–5.2% after, while comparisons already run concurrently on matched hosts shift in relative ratio by less than 1%. To avoid relying on any post-hoc calibration, the authors also run a fresh same-machine, same-API, same-time-window 5-way lockstep rerun (44 common tasks, 440 trials): Freehand is fastest at 6.25 min (1.00×) with the highest mean score (69.1%), ahead of Pi at 7.24 min (1.17×), first-party at 7.18 min (1.22×), DeepSeek Harness at 6.89 min (1.28×), and OpenCode at 8.70 min (1.62×) — the others take 17%–62% longer.

Statistical tests treat the task, never the task-by-round trial, as the independent unit. Writing $y^{F}_{ir}$ and $y^{B}_{ir}$ for Freehand's and a baseline's score, cost, or runtime on task $i$ in round $r$, within-task round averages give the paired difference $d_i=\bar{y}^{F}_i-\bar{y}^{B}_i$, and the grand mean $\Delta=\frac{1}{N}\sum_{i=1}^{N}d_i$ coincides exactly with the difference of means in the main table; for right-skewed costs the mean cost ratio $R=\bar{c}^{F}/\bar{c}^{B}$ is also reported ($R<1$ means cheaper). Confidence intervals come from a two-level paired cluster bootstrap (B=20,000, fixed seed 20261201): resample N tasks with replacement, shared across harnesses, then resample each harness's rounds independently within every drawn task. Primary p-values come from a task-level paired sign-flip permutation test with 50,000 random sign assignments:

$$p=\frac{1+\#\{|\bar{d}^{(b)}|\geq|\bar{d}_{\mathrm{obs}}|\}}{50{,}000+1}.$$

Family-wise error is controlled with Holm–Bonferroni at two granularities — all 42 main-table comparisons and the 11 first-party comparisons ($\alpha=0.05$) — with Wilcoxon signed-rank and paired t-tests as sensitivity checks: 33/42 comparisons survive Holm correction under the permutation mean test and 41/42 under Wilcoxon (including 11/11 first-party comparisons). For the claim that removing self-management leaves accuracy unchanged, the authors report TOST 90% bootstrap intervals against a $\pm 3$ pp equivalence margin rather than treating a non-rejected null as equality. The capability reversal itself is tested with a paired difference-in-differences on the identical 63 Terminal-Bench 4 tasks:

$$\delta_{i}=\bigl(\bar{s}^{\mathrm{FH}}_{\mathrm{frontier},i}-\bar{s}^{\mathrm{FP}}_{\mathrm{frontier},i}\bigr)-\bigl(\bar{s}^{\mathrm{FH}}_{\mathrm{lower},i}-\bar{s}^{\mathrm{FP}}_{\mathrm{lower},i}\bigr),$$

testing $H_0:\mathbb{E}[\delta_i]=0$ via permutation, bootstrap, paired t, and Wilcoxon. Aggregate score gains and cost reductions in the main table are significant under task-level paired tests ($p \lt 0.001$).

6. Limitations

Stated by the authors: safety boundaries live outside the harness. The Impact Statement specifies that Freehand, like any agent with shell access, is designed to run inside isolated containers or VMs with scoped credentials (as in all experiments), and the README marks it Alpha with no sandbox. The authors frame this as a division of responsibility: task-solving decisions belong to the model, while permissions and sandboxing belong to the execution environment rather than prompt-level rules. Baseline cost records are also incomplete: a subset of baseline trials (notably Gemini CLI on TB4 and 6–10 Codex/Claude Code trials per round on ALE) report usage that is only a lower bound on true cost, which makes every cost-reduction test in Freehand's favor conservative. The conclusion further acknowledges that the crossover point is unmapped — how model scale, reasoning budget, and task horizon shift where presets stop helping remains open — and that today's frontier models are post-trained largely on first-party tool schemas, so training directly with a shell, an editable memory, and a meter may widen the gains further.

Editorial judgment (separate from the paper's evidence): main-table costs use unified list prices and may differ from actual billing with discounts and cache-pricing differences; scores follow each benchmark's official verifier, and the "+5.1 pp on average" headline is a macro average whose task-count-weighted micro counterpart is reported separately in Appendix G — the two should not be interchanged. The GUI advantage depends on an environment that permits model-written pyautogui scripts and base64 screenshot inspection; under environments that restrict script execution or image injection, that path may not hold. The reversal evidence spans three model families and five benchmarks, and with the crossover unmapped, "how much harness a given model needs" still has to be measured per model and task rather than extrapolated from this paper.

7. Conclusion and Outlook

The paper reframes harness components as decisions made before the model has seen the task, with an explicit payoff criterion: a preset helps only while the errors it prevent outweigh the adjustments it blocks. Freehand returns strategy, execution, and working memory to the model through a shell, an editable memory, and a meter, and is simultaneously better, cheaper, and faster across 11 frontier settings while the order reverses on lower-tier models. Ablations attribute the accuracy gains to removing prescribed workflows and tools, and the additional long-horizon savings to self-managed memory. The authors' forward directions include mapping the crossover to guide how much harness a given model needs; training models directly with a shell, editable memory, and meter; extending the principle to sub-agent division of labor and explicit time/cost budgets; and pairing the design with OS-level sandboxing and permission systems so that greater capability and easier security boundaries coexist.

For agent-runtime engineering, the direct implication is that static prefixes, tool suites, and compaction thresholds are design variables to be re-examined per model capability tier, not defaults where more is safer. The audit table, ablation protocol, and task-level statistical methods supplied here are ready-made instruments for checking whether one's own harness presets have become a cage.

Golden Quote

"As models grow stronger, the best harness is the one that decides the least." — paper conclusion

Related Papers

WASD: Writing Agents Steer Dreams

WASD: Writing Agents Steer Dreams

A reasoning agent steers a frozen world action model by rewriting the future frames it imagines, instead of sending language corrections or actions. WASD-Zero lifts LIBERO-Recover recovery from 52.2% to 67.0% on OpenWAM and from 42.7% to 61.4% on Cosmos at a median 30.2k tokens per episode; WASD-Tune adds post-training on its own guided successes and reaches 71.8%.

Xi Lin, Zhixu Li, Wenqian Zhang · 44 views · Dec 1, 2026
World-action modelsFailure Recovery
Dec 1, 2026
Letting Models Manage Their Own Context: Where We Stand

Letting Models Manage Their Own Context: Where We Stand

The authors let models decide when and what history to compact through NOOA's context API, then compare model-driven and harness-driven management from 8K to 512K tokens on document research and machine learning engineering. Effective use improves accuracy and can reduce input tokens, while suffix KV-cache reuse lowers prefill compute by 4-15% without measurable accuracy loss.

Alessio Devoto, Avinash Vem, Tara Safavi · 316 views · Nov 25, 2026
Agent HarnessContext Management
Nov 25, 2026
GUARD: Stabilizing Recursive Self-Improvement with Regret Guidance

GUARD: Stabilizing Recursive Self-Improvement with Regret Guidance

Autonomous AI agents pair a frozen base model with an editable harness of prompts, skills, tool rules, and memory. Recursive self-improvement (RSI) adapts this harness from experience without weight updates, yet self-editing without external graders often backfires: reflection and scalar scores conflate what an edit newly broke with what remains unsolved, causing local regressions, skill forgetting, and memory bloat. We introduce GUARD (Grader-free Unsupervised Environment Design [UED] with Adaptive Rule Distillation), a closed-loop framework for reference-free continual harness evolution. Our key insight is to decompose each task into pre-execution self-checks and guide harness updates via directional regret. Each round grades trajectories against these checks, pinning mastered rules while prioritizing newly broken behaviors, and selects among parallel candidate edits by critic-free group-relative fitness. A Soft-HURT gate then promotes an edit only when gains outweigh regressions, scoping specialized fixes to prevent over-triggering and guaranteeing non-regression on its gated buffer. At test time, one frozen harness runs in a single pass. Across benchmarks on memory, skill evolution, continual task streams, and domain reasoning, GUARD consistently improves performance without catastrophic forgetting or memory pollution while substantially cutting deployment token usage.

Minghe Zhang, Xuetao Kang, Yifei Ming · 472 views · Nov 17, 2026
LLMAgent Harness
Nov 17, 2026
Self-Improvement Memory Enables Continual Recursive Self-Improvement

Self-Improvement Memory Enables Continual Recursive Self-Improvement

This paper introduces Continual Recursive Self-Improvement (CRSI) for agent harnesses and Self-Improvement Memory (SIM), a structured record that links recurring root causes to selected edits, rationales, and predicted or observed outcomes. Starting from a harness evolved on a source benchmark or model, CRSI resumes optimization after a dataset or model transition rather than restarting. Across six cross-dataset settings, full SIM has the highest final held-out score and beats harness-only transfer by 2.43 to 4.35 points; across four Opus-to-Gemini model-family transfers it beats the harness-only continuation by 3.60 to 11.33 points. A ten-run paired coding study reports a mean gain of 2.36 points over continuation without SIM (95% CI 1.05 to 3.68, p=0.003).

Xin Yu, Fei Xia, Jiaqi Pan · 491 views · Nov 13, 2026
Agent HarnessRecursive self-improvement
Nov 13, 2026

As an Amazon Associate, we earn from qualifying purchases.