Freehand Lets Models Manage Workflow and Memory: Where a Minimal Harness Saves Cost

Freehand uses a short prompt, one Bash interface and editable context. Its workflow, memory and resource feedback help explain reported savings, while the 11-setting and 10-setting results, weaker-model findings and execution boundaries remain distinct.
Agent harnesses usually make advance decisions about tools, workflows, timeouts and memory management. As models improve, do those decisions still help? Freehand, released by Microsoft Research and university collaborators, returns some choices to the model and tests what a simpler harness changes.
It retains the observe-reason-act loop while providing a core system prompt of about 200 words, one Bash interface, and context the model can edit itself. Resource usage remains visible so the model can adjust its approach.


The paper (opens in a new tab) reports an average gain of 5.1 percentage points at 49% lower cost than first-party harnesses across 11 settings covering five benchmarks and three frontier-model families. Results reverse with weaker models, indicating that the approach depends on the model's ability to make appropriate decisions.
Having fewer tools is therefore only part of the finding. The tasks, underlying models and responsibilities delegated to the model and operator also matter.

The project is titled Freehand: The Bitter Lesson Comes to Agent Harnesses, and its code is public (opens in a new tab). The source report also introduces corresponding author Yifan Yang of Microsoft Research Asia and a related conference presentation scheduled for December 15–16; these are researcher background and event information.

A simpler allocation of decisions, rather than the removal of the execution loop
The paper groups harness intervention into three areas. Task strategy includes prompts and reminders that may prescribe an approach before the model has seen the task. Execution choices include the tool collection, operation granularity and fixed timeouts.
The third area is memory. A harness may compact conversation history when it crosses a threshold. That timing may not suit the current task, and removed material may still be needed.

The source report illustrates this with a computation that needs 20 minutes but is interrupted by a fixed 30-second timeout, requiring background execution and repeated polling. A newly discovered clue might likewise disappear during automatic compaction.
Freehand asks the model to manage these decisions in context. Its approximately 200-word runtime prompt describes the environment, tool interface, context file and completion mechanism, leaving the subsequent workflow to the model.
One Bash interface handles execution and memory
The execution entry point is bash(command, timeout_s?). The model can run commands, use libraries, or write task-specific scripts and parsers. A small interface does not mean limited capabilities: what it can do still depends on the surrounding environment.
The source report describes timeouts ranging from 1 to 86,400 seconds, with a default of 120 seconds. The model can request a longer wait for substantial computations, reducing workarounds for uniformly short timeouts while also taking responsibility for that choice.
Conversation history resides in transcript.json using the provider's native message format. Through Bash, the model can read and revise the file, condensing completed work while keeping results that remain relevant.
This moves decisions about when and what to summarize into the task itself. The current public documentation also offers optional automatic compaction, disabled by default; the central research design should not be interpreted as a permanent prohibition on all automatic memory handling.
Images can use the same path. The source report describes converting an image to Base64, inserting it in the appropriate message format, viewing it on the next turn, and removing it from history when no longer needed.
The point is to let the model manage its working materials, not to create visual capabilities from nothing. Correct formatting, image support and accurate editing of the history still affect the result.
Resource feedback shows what the current approach costs
After each turn, Freehand supplies status information including the turn number, context tokens, cumulative input and output tokens, cost and elapsed time. The model can use this to continue, change methods or organize its context.
Execution access alone would not tell it how much a particular route had already consumed. The feedback lets subsequent choices take account of both progress and resources.
The 49% and roughly 52% figures describe different experiment sets
The overall paper result covers GPT-6-astra, Claude Opus 5.5 and Gemini 4 Carbon across 11 settings, with a 5.1-point score advantage and 49% lower cost. These are the team's reported evaluations; AINRK did not rerun the benchmarks.
A later table in the source report covers only 10 settings for the first two models. Freehand averages 63.2%, compared with 58.4% for first-party harnesses, 59.3% for Pi, 57.4% for DeepSeek Harness and 56.8% for OpenCode.
In that same 10-setting comparison, average task cost is $3.23 for Freehand and $6.70 for first-party harnesses, a reduction of about 52%, with an average runtime of 31.7 minutes. These figures should not be merged with the 11-setting overall result.

The source report's detailed results remain below. Each should be read alongside its model, benchmark, cost and runtime rather than treating a single average score as sufficient for every deployment choice.

Less intervention does not provide execution isolation
The official repository warns that Freehand is an alpha without a built-in sandbox or approval prompts. Commands run with the operator's permissions, and the surrounding environment determines access to files, networks, credentials and environment variables.
That is a separate issue from how concise the task strategy is. A shorter prompt may remove restrictions on a capable model, but it does not establish isolation or guarantee correct context and resource management.
The work re-examines familiar harness choices through experiments: which rules help the model in use, which may constrain it, and which boundaries the operator must retain. Its evidence has defined conditions and needs to be judged against the actual model and task.
Edited by AINRK using the original Zhixingxing AI report and the official paper and repository. Evaluation figures remain attributed to the research team. Images and tables are retained from the source report; AINRK did not install the tool or reproduce the experiments.
Related topics
After reading
Join the AINRK community
Read how to join the community and connect with people working in AI.




