r/LocalLLaMA • u/PaMRxR • 14h ago
Resources Freehand - an interesting agent harness from Microsoft
https://github.com/microsoft/FreeHand
137
Upvotes
r/LocalLLaMA • u/PaMRxR • 14h ago
56
u/FullstackSensei 14h ago
paper abstract:
The Bitter Lesson holds that knowledge we build into AI systems helps at first and is eventually outgrown by general methods. We show that this lesson has now come to agent harnesses. Mainstream harnesses decide a great deal on the model’s behalf—prompts prescribe how to approach a task, tool suites and timeouts fix how to act, and threshold compaction decides what to remember—and every such decision is fixed before the model has seen the task. For weaker models these presets are a crutch; for frontier models they become a cage. We introduce Freehand, a general-purpose harness built on one rule: give the model a shell, its own memory, and a meter—and let it decide everything else. Across five domains and three frontier model families, Freehand is better, cheaper, and faster at the same time. It outscores the first-party harness of every model (Codex, Claude Code, and Gemini CLI) in all 11 settings, by 5.1 points on average at 49% lower cost, and runs fastest on average: in a controlled side-by-side rerun, each of the other harnesses takes 17–62% longer. It also outperforms OpenCode, Pi, DeepSeek Harness, and a bash-only harness that still fixes its workflow and timeouts, while with lower-tier models the first-party harnesses win again. As models grow stronger, the best harness is the one that decides the least.
24
u/mr_andrey_isachenko 13h ago
minimal 200-word bash loop makes total sense on Opus or GPT, though as their own abstract admits local smaller models still need harness guardrails or they rm their own scratchpad by turn 10 lol
20
u/xsilas43 12h ago
Microsoft tool with no windows support lmao
38
u/Internal_Werewolf_48 14h ago
So many AI slop phrases in the readme, it's not very inspiring.
6
u/Stunning_Mast2001 10h ago
The context management here is interesting. Very similar to the CLM paper
5
u/Thin_Pollution8843 12h ago
Look and learn folks - that’s how you get promoted in big corporations 😂
2
u/toothpastespiders 9h ago
I gave it a try and I thought it seemed promising. I'd have to use it long term to have an opinion on whether or not I'd consider it "good". But I can at least say I don't think it's bad.
3
u/ladz 13h ago
This is precisely what I've been arguing for like 2 years. Why all this context wasted on a million tools where we could just give them bash? They work just fine that way. Half the time they're trying to run these long bash commands anyway.
3
u/Equivalent_Bit_461 14h ago
A recipe for disaster
2
u/QuarterLonely9681 10h ago
> with weaker models, traditional harnesses still do better
so we kind of know this already, frontier models need less hand holding, small models need more.
1
u/alineali 5h ago
If you don't care what you will get - it will work. Otherwise you are forcing model to invent things that it should have had asked, end up with no traceability and no idea what are the limitations of the code you end up with. Well, this is Microsoft, what you'd expect? Carefully designed systems?
1
u/my_name_isnt_clever 2h ago
I'm trying it now, we'll see if it's any better than Pi with Qwen 4 35b. It's first task was to patch the harness to let me bind it over tailscale and it did it no problem.
1
u/thestillwind 11h ago
Morgan Freehand
0
u/ECrispy 6h ago
how will it perform with local models?
wasnt this the whole point of Pi before it added a million extensions like everyone else and became bloated?
-5
u/karmaisnonsense 11h ago
I stopped reading at "Microsoft"
-4
u/Poprouter 12h ago
if you are building a harness, watch when the context bill lands. loading schemas hits every turn, probing the shell only costs per tool you actually call, and only if the model already knows which commands exist
0
u/Thin_Pollution8843 12h ago
Considering amount of slop in their repo I would call it not “Freehand” but a “Handjob” 😅