Summary (Overview)
- Core thesis: The paper applies the "Bitter Lesson" to agent harnesses—the scaffolding that connects LLMs to environments. Mainstream harnesses pre-decide strategy, execution tools, and memory management before seeing a task; for frontier models, these presets become a "cage" rather than a "crutch."
- Freehand harness: Built on a single principle—"give the model a shell, its own memory, and a meter—and let it decide everything else." It uses a ~200-word prompt, a single bash tool with model-controlled timeouts, and an editable transcript file for context self-management.
- Results: Across 5 benchmarks and 3 frontier model families (11 settings), Freehand outscores every first-party harness (Codex, Claude Code, Gemini CLI) by 5.1 points on average at 49% lower cost, and runs fastest on average (other harnesses take 17–62% longer in controlled reruns).
- Crutch-to-cage reversal: With lower-tier models, first-party harnesses win (by 5.1–6.7 pp); with frontier models, the order reverses completely—confirming the hypothesis that presets help weaker models but hurt stronger ones.
- Mechanism: Gains come from removing prescribed workflows/tools (primary driver), eliminating polling/reminder loops, and enabling horizon-adaptive memory curation (context resets at subtask boundaries).
Introduction and Theoretical Foundation
The paper frames agent harnesses as systems that "decide a great deal on the model's behalf" across three axes:
- A1 (Strategy): Prompts prescribe workflows (e.g., Gemini CLI's "Research → Strategy → Execution" lifecycle; Codex's rg-first search rules).
- A2 (Execution): Fixed tool suites and timeouts (e.g., Codex exposes 23 tools within a ~15.1K-token static prefix; Claude Code bundles 22 tools).
- A3 (Memory): Threshold-triggered auto-compaction (e.g., Codex summarizes at 90% context window; Claude Code at ~window−33K).
The core hypothesis:
"For frontier models, the decisions a harness fixes in advance—how to approach a task, how to act, and what to remember—cost more than they save; leaving these decisions to the model improves both performance and cost."
The theoretical basis is the Bitter Lesson [5]: built-in human knowledge helps initially but is outgrown by general methods. The authors argue presets pay off only while the errors they prevent outweigh the adjustments they block—a balance that flips as models learn to use in-task evidence (error messages, test results, runtime estimates).
Key audit findings (Table 1):
| Harness | Static prefix (tokens) | Default tools | Context management |
|---|---|---|---|
| Codex CLI | ~15.1K | 23 | Auto-summarization at 90% window |
| Gemini CLI | ~9.5K | 16 | Threshold compression + output masking |
| Claude Code | ~8.5K | 22 | Auto-summarization + output clearing |
| DeepSeek Harness | ~6.5K | 34 | 8,192-char pruning + 80% auto-summary |
| OpenCode | ~5.2K | 10 | Overflow summary + recent-tail retention |
| Pi | ~1.2K | 4 | Auto-summarization near window limit |
| FREEHAND | ~0.35K | 1 (bash) | Model-side context self-management |
Methodology
Freehand Design
The harness consists of three components:
-
Descriptive ~200-word prompt (A1): Describes only how the loop works, the interface, and the status footer. Explicitly states: "Nothing else is decided for you. How you approach the task, how you use your context, and so on are all yours to manage." No workflows, no runtime reminders.
-
Single bash primitive (A2): One function tool—
bash(command, timeout_s?)—with no task-specific wrappers. The model sets its own execution duration per command, writes custom scripts, and builds domain tools on the fly. Replying without a tool call terminates the loop. -
Direct context self-management (A3): The conversation history is exposed as an editable JSON file (
transcript.json) in the provider's native message format. The model can prune, condense, or reorganize turns; it can even insert base64-encoded screenshots as native image blocks (gaining vision without a vision tool). After each turn, a status footer reports: turn index, context size, cumulative tokens, cost, and elapsed time.
Experimental Setup
- Models: GPT-6-astra, Claude Opus 5.5 (all 5 benchmarks), Gemini 4 Carbon (Terminal-Bench 4 only) — all at high reasoning effort.
- Benchmarks: Terminal-Bench 4 (63 tasks), Terminal Bench Science (70), Agents' Last Exam (105), OSWorld 2.1 (108 GUI tasks), AutomationBench (600).
- Baselines: First-party harnesses (Codex, Claude Code, Gemini CLI), third-party (OpenCode, Pi, DeepSeek Harness), and bash-only mini-swe-agent.
- Protocol: 191 evaluation rounds (2–5 rounds per benchmark), identical containers and official verifiers, unified pricing and normalized runtime.
Empirical Validation / Results
Main Results (Table 2, selected settings)
| Benchmark | Model | Harness | Score (%) ↑ | Cost ($) ↓ |
|---|---|---|---|---|
| Terminal-Bench 4 | GPT-6-astra | Codex | 54.6 | 5.88 |
| FREEHAND | 57.1 | 3.12 | ||
| Claude Opus 5.5 | Claude Code | 54.9 | 4.91 | |
| FREEHAND | 61.9 | 3.38 | ||
| Gemini 4 Carbon | Gemini CLI | 49.5 | 13.72 | |
| FREEHAND | 57.1 | 8.76 | ||
| OSWorld 2.1 | GPT-6-astra | Codex | 68.3 | 14.94 |
| FREEHAND | 76.2 | 3.96 | ||
| Claude Opus 5.5 | Claude Code | 74.9 | 7.49 | |
| FREEHAND | 80.1 | 2.09 | ||
| AutomationBench | GPT-6-astra | Codex | 44.8 | 0.89 |
| FREEHAND | 49.5 | 0.56 |
Aggregate (10 GPT-6-astra + Claude Opus 5.5 settings): Freehand scores 63.2% vs. 58.4% (first-party), at 6.70, with fastest average runtime (31.7 min vs. 32.0–36.5 min). All gains statistically significant (p < 0.001).
Cost Reduction Mechanisms
- A1 removal: No prescribed workflows → fewer, higher-density turns.
- A2 removal: Static prefix drops from ~5.2K–15.1K tokens to ~0.35K (−93% to −98%); cumulative input tokens fall 44–91% (e.g., OSWorld 2.1 Astra: 12.66M → 1.11M).
- A3 removal: On short tasks (AutomationBench, ~14 turns), 99.8% of tasks need zero context edits; on long tasks (TB-Science Opus), self-management compresses input from 24.54M to 8.92M tokens (−64%).
Controlled Ablations
- Removing context self-management: Accuracy unchanged (67.7% vs. 67.5% on ALE), cost +19% (ALE) and +7% (TB4).
- Restoring Codex prompt + tools: Accuracy drops 3.8 pp (ALE) and 2.5 pp (TB4); cost +68% and +53%. → Prescriptive prompts and tools are the primary driver of both score loss and cost inflation.
- mini-swe-agent comparison: Even with bash-only interface, its six-step checklist and 30-second timeout cost 35% more and 3.5 pp lower score.
Crutch-to-Cage Reversal (Figure 5)
| Model tier | Model | First-party lead over Freehand |
|---|---|---|
| Lower-tier | GPT-6 Sol | +5.7 pp (Codex wins) |
| Claude Sonnet 5.5 | +6.7 pp (Claude Code wins) | |
| DeepSeek V4.1 Flash | +5.1 pp (DeepSeek Harness wins) | |
| Frontier | GPT-6-astra | −2.5 pp (Freehand wins) |
| Claude Opus 5.5 | −7.0 pp (Freehand wins) | |
| Gemini 4 Carbon | −7.6 pp (Freehand wins) |
Trajectory-Level Findings
- Task-adapted scripting: On ALE (Astra), 85.1% of Freehand calls run multi-stage pipelines vs. 51.5% for Codex.
- No polling loops: Codex averages 11.6 PTY polls/task on ALE vs. 0 for Freehand.
- Memory curation scales with horizon: Context editing rises from 0.2% (AutomationBench) to 58.6–64.3% (TB-Science) to 77.8–91.7% (OSWorld 2.1).
- Case study: On microarch-modeling, Freehand caps peak context at 48.7K (vs. Codex's 241.6K) with 6 subtask-boundary resets, finishing at 25.13 (−66% cost).
Theoretical and Practical Implications
Theoretical Implications
- Challenges the prevailing paradigm: Parallel work (Zhang et al. [26], Hu et al. [27]) argues strong external control remains essential; this paper demonstrates the opposite for frontier models—autonomy at the harness layer yields stronger performance.
- Crutch-to-cage as a general principle: The reversal is model-capability-dependent, not harness-implementation-dependent (the same DeepSeek Harness helps V4.1 Flash by +5.1 pp but hurts GPT-6-astra by 6.0 pp).
- Division of responsibility: Decisions about how to solve a task belong to the model; safety boundaries (permissions, sandboxing, budgets) belong to the execution environment.
Practical Implications
- Cost reduction: ~50% lower cost per task translates directly to reduced compute, energy, and financial overhead for agent deployment.
- Domain generality: One harness (no domain-specific tools) works across terminal, scientific, knowledge-work, GUI, and workflow tasks—reducing engineering effort.
- Safety: Freehand's design pairs naturally with OS-level sandboxing rather than prompt-level rules, suggesting a path to agents that are both more capable and easier to secure.
Conclusion
The paper's central claim: "As models grow stronger, the best harness is the one that decides the least." Freehand demonstrates this across 11 settings with frontier models, achieving better scores, ~half the cost, and faster runtime simultaneously.
Future directions identified:
- Mapping the crossover: How model scale, reasoning budget, and task horizon shift the point where presets stop helping.
- Post-training with shell-native interfaces: Training models directly with a shell, editable memory, and a meter may widen gains further.
- Multi-agent extension: Letting models decide how to divide work among sub-agents and spend explicit time/cost budgets.
- OS-level integration: Pairing Freehand's minimal harness with sandboxing and permission systems for secure, capable agents.
Key quote:
"What served weaker models as a crutch becomes, for frontier models, a cage."
Related papers
- FlyingStart: Learned Cross-Token Warm Starts for Fixed-Point Decoding in Recurrent-Depth Language Models
FlyingStart learns a linear warm-start map for recurrent-depth language models, cutting decoding layers by 14–19% while matching accuracy and preserving the exit rule's safety certificate.
- Learning from Recurrence: Internalizing Depth-Induced Preferences in Looped Language Models
Preference write-back, a self-distillation method where looped language models learn from their own deeper recurrent outputs, improves reasoning accuracy by up to 46% without external supervision.
- Online Environment Repair for Coding Agents
Online Environment Repair reduces coding RL reward hacking from 36.9% to 0.06% by patching exploited evaluation environments during training, boosting held-out Pass@8 from 21.7% to 46.7%.