Papiha Joharapurkar

Freehand - Agent Harness paper

'The Bitter Lesson holds that knowledge we build into AI systems helps at first and is eventually outgrown by general methods' ~ Freehand: The Bitter Lesson Comes to Agent Harnesses. This paper is #1 on HuggingFace today and here are some of my notes/learnings/thoughts/takeaways.

  • Paper argues that for smaller models, the agent harness is useful. The harness refers to prompts on how to approach a task, tools and instructions on how to act, threshold rules to remember - in summary, decisions already taken before the model acts.
  • This is good for smaller models that don't have planning capabilities, or the ability to build tools, or ways to collect context/memories
  • However, harnesses are a 'cage' for frontier level models and control should be returned back to them. These models should be able to make decisions related to
  • 1) what to do next i.e. the model strategy 2) how to act on environment, how long to wait - execution 3) what context to carry into next turns i.e. memory

  • The paper entitles this new harness: Freehand, which is to give model a shell, it's own memory, and meter/tracking and lets it decide everything else
  • can build it's own tools
  • memory is editable file so it can be pruned, condensed, checkpointed, can add screenshots within the file (vision tool)
  • meter for context size, tokens, cost, elapsed time
  • Results are really good!
  • For frontier models i.e. GPT-6 Astra, Opus paired with the alternative harness - it yields lower costs out of any harness and the fastest average runtime
  • Task scores are even higher!
  • The reason is that the paper argues that there's less procedural overhead with this alternative harness so models do not have to satisfy the procedures, but can organize work depending on task
  • Reducing tool calls/MCP schemas reduces the token bloat on each turn but model can create and draw on custom tools as needed
  • For small workflows, context is small and less turns are needed
  • When it came to the trajectory logs, the higher costs and costs can be further explained by:
  • programs can be created for each task
  • eliminate polling/loops as model has control
  • memory can be curated on need basis

Thoughts

  • When it comes to implementation, I'm curious about learning more about how we can make such a harness applicable in industry/enterprise
  • For instance, how can we ensure that our rules/procedural knowledge is being maintained if we know that the model has bash permissions and therefore that it could potentially modify rules/permissions/it's own harness configuration and grant itself additional permissions (throwback to the Huggingface x OpenAI incident)
  • I know if I ask a model for the quickest fix it will sometimes give me a bandaid solution versus the best fix so I'm also curious about how the model - although it has access to the meter, - does it not have it's performance degraded as a result of it's access to this knowledge i.e. prioritizes quick fix solutions because it sees that there have been high token spend so far in the task.

Overall it's not that harnesses are unnecessary - these are helpful for small models but we need to identify the line where harnesses start becoming a constraint for frontier models.

All daily logs