Freehand: The Bitter Lesson Comes to Agent Harnesses

Freehand is a general-purpose agent harness from Microsoft Research's AgentOpt series: at the start, the model sees only about 200 words of environment description and a single bash tool; the model sets its own timeout for each command, prunes its own context, and after each turn can see its context size, token count, cost, and elapsed time. The paper argues that rule-based prompts, dozens of preset tools, and fixed-threshold compression in mainstream frameworks act as crutches for weaker models but become constraints for frontier models.

Original title: Freehand: The Bitter Lesson Comes to Agent Harnesses

Freehand is a general-purpose agent harness from Microsoft Research's AgentOpt series: at the start, the model sees only about 200 words of environment description and a single bash tool; the model sets its own timeout for each command, prunes its own context, and after each turn can see its context size, token count, cost, and elapsed time. The paper argues that rule-based prompts, dozens of preset tools, and fixed-threshold compression in mainstream frameworks act as crutches for weaker models but become constraints for frontier models.

Why it matters Mainstream agent frameworks preset prompts, tools, and compression timing for the model; the authors claim that frontier models score higher and cost less when freed from these constraints

Likes 143 · Code stars 79

Reasons

  • The paper states that across five domains and three frontier model families in 11 configurations, Freehand outperformed each model's official framework (Codex, Claude Code, Gemini CLI) in all cases, with an average score increase of 5.1 points and a cost reduction of 49%; when rerun on the same hardware, other frameworks took 17%–62% longer
  • README breakdown: On Terminal-Bench 4, Claude Opus 5.5 with Freehand scored 61.9% at $3.38 per task, compared to 54.9% at $4.91 with Claude Code; on OSWorld 2.1, GPT-6-astra with Freehand scored 76.2%, compared to 68.3% with Codex
  • The authors also note counterexamples: On Terminal-Bench 4, when using lower-tier models such as GPT-6 Sol, Claude Sonnet 5.5, or DeepSeek V4.1 Flash, the official frameworks scored higher
  • MIT licensed, PyPI package freehand-ai, includes terminal, browser interface, and desktop beta; face-hug likes 143 (ranked 1 that day), code stars 79, representing attention only

Usage

  • pip install freehand-ai (or uv tool install freehand-ai), requires Python 3.10+; supports macOS and Linux, Windows via WSL2
  • Use freehand login to sign in with ChatGPT Plus / Pro, or use freehand login openai / anthropic to enter an API Key; can also connect to any OpenAI-compatible interface or LiteLLM gateway
  • Run freehand in a project directory to enter an interactive session, use freehand -p "fix the failing test" for headless execution, and use freehand web to open the browser interface

Risks

  • The README states it is an Alpha version, with no sandbox and no confirmation prompts: model commands execute directly with your permissions, so untrusted code must be run in a container or virtual machine
  • The authors recommend using it only with frontier models; with smaller models, the model's official framework may perform better
  • All evaluations were run by the authors, and cost figures vary with each model provider's pricing; the desktop version is an unsigned preview installer

Open · Code · Face-hug paper page

Hugging Face Daily Papers

Explore the latest AI Radar updates