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:

  1. A1 (Strategy): Prompts prescribe workflows (e.g., Gemini CLI's "Research → Strategy → Execution" lifecycle; Codex's rg-first search rules).
  2. 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).
  3. 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):

HarnessStatic prefix (tokens)Default toolsContext management
Codex CLI~15.1K23Auto-summarization at 90% window
Gemini CLI~9.5K16Threshold compression + output masking
Claude Code~8.5K22Auto-summarization + output clearing
DeepSeek Harness~6.5K348,192-char pruning + 80% auto-summary
OpenCode~5.2K10Overflow summary + recent-tail retention
Pi~1.2K4Auto-summarization near window limit
FREEHAND~0.35K1 (bash)Model-side context self-management

Methodology

Freehand Design

The harness consists of three components:

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

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

  3. 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)

BenchmarkModelHarnessScore (%) ↑Cost ($) ↓
Terminal-Bench 4GPT-6-astraCodex54.65.88
FREEHAND57.13.12
Claude Opus 5.5Claude Code54.94.91
FREEHAND61.93.38
Gemini 4 CarbonGemini CLI49.513.72
FREEHAND57.18.76
OSWorld 2.1GPT-6-astraCodex68.314.94
FREEHAND76.23.96
Claude Opus 5.5Claude Code74.97.49
FREEHAND80.12.09
AutomationBenchGPT-6-astraCodex44.80.89
FREEHAND49.50.56

Aggregate (10 GPT-6-astra + Claude Opus 5.5 settings): Freehand scores 63.2% vs. 58.4% (first-party), at 3.23/taskvs.3.23/task vs. 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

  1. A1 removal: No prescribed workflows → fewer, higher-density turns.
  2. 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).
  3. 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 tierModelFirst-party lead over Freehand
Lower-tierGPT-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)
FrontierGPT-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 8.60vs.8.60 vs. 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:

  1. Mapping the crossover: How model scale, reasoning budget, and task horizon shift the point where presets stop helping.
  2. Post-training with shell-native interfaces: Training models directly with a shell, editable memory, and a meter may widen gains further.
  3. Multi-agent extension: Letting models decide how to divide work among sub-agents and spend explicit time/cost budgets.
  4. 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