r/ClaudeCode • u/Eliv_nurotic • 10h ago
Tips & Workflows Microsoft paper finds that frontier agents score higher at lower cost when the harness gives them only a shell and stops deciding for them. Freehand beat each model's own first-party harness every time, by 5.1 points on average at 49% lower cost.
Microsoft paper finds that frontier agents score higher at lower cost when the harness gives them only a shell and stops deciding for them.
Harnesses like Codex, Claude Code, and Gemini CLI wrap models in long prompts, 20+ tools, fixed timeouts, and automatic memory compaction. These presets fix choices before the model even sees the task.
They built Freehand: 1 bash tool, a chat history the model can edit, and a meter of tokens, cost, and time. Its prompt is about 200 words and sets no workflow.
Across 11 settings in 5 domains, Freehand beat each model's own first-party harness every time, by 5.1 points on average at 49% lower cost. With lower-tier models, the first-party harnesses won by 5.1 to 6.7 points.
•
u/AutoModerator 10h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
90
u/DukeMo 10h ago
I'll have to give it a read but most of the benefit of the harness is to make sure everything doesn't go to shit when things don't work correctly and or when your agent tries to do things outside of the boundary it's supposed to be in.
18
u/Marcospaulorc 6h ago
How safe is it to use Freehand? Could it be the case that safety measures applied in the harnesss can increase the cost?
173
u/Yourdataisunclean 10h ago
I feel like this is because a lot of the people who keep overcomplicating harnesses and other tools don't even know about things like the bitter lesson.
One of the best ways to get better at using AI tools is to study the field of AI in general. So many problems you encounter can be solved using approaches or ideas from 10-40 years ago. There really are fundamentals just like with any other domain in computer science.
14
u/ElBehaarto 8h ago
They didn't check their own Copilot harness?
4
u/Santa_Andrew 1h ago
I have built a handful of enterprise harnesses. And although this is true for frontier models it doesn't address the most major concerns when it comes to using a harness.
I would gladly give up a small score hit for the added security of a full tooled out harness. You can enforce data separation, access, limits, ect within the tool. Additionally, most of the applications that I have come across actually boil down to needing to do just a few things really well and just don't need the flexibility of a full shell.
The final reason is determinism. Most work flows (some industries more than others) have some set ways of doing some important things. It might be a particular computation or set of tasks but either way it's best to have it done in a deterministic manner. It also helps with auditing and accountability. The best harnesses will find the right mix of these types of tools and more flexle shell access based on the application.
I'll also push back on the cost a bit. I think this really depends on the type of data and the applications that the harness is used for.
13
u/crashtua 10h ago
btw, code mode (I believe claudflare introduced it first, but I might be wrong), where you have single call
_python(or call_js, or whatever) with a set of methods instead of tools is much better for daily usage, it using something like 60% less tokens in tasks like torrent trackers crapping, following releases(for sure, legal only content, like linux images), compared to give each tool an individual call. Modern models usually just compose all the calls in scripts and do all the job.
Afaik, claude models already doing this for a long time, they try to write python script to do everything :)
5
u/mother_a_god 8h ago
This is the same as skills. For earlier models skills were useful guides for how to do X..now, some skills can be holding frontier models back, as the skill overly constrains them.
5
u/Code-More 4h ago edited 4h ago
First party harnesses are vibe-coded slop. Who would've thunk it.
Mod them, check what they send. CC has several retarded parts from their default system prompt to tooling like Bash carrying a frankly stupid large manifest and it also does strange shit like spamming "The user hasn't heard from you in a while..." messages. It also has a bug; on Linux the harness does not understand how zram works and that it does not get eagerly reclaimed. You can have plenty of resources yet it will kill the process anyway.
The verifier messages make me sad. "D-d-d-don't do le malicious pleeez. Try safer method first, only raise to user at the end." - that's like telling AI it should hide things from the user. No wonder their anti-LLM training guardrail went out of control.
Who wrote that shit?!
Cleaning all this up both improved performance and reduced token spend. The only problems I have now are related to upstream infrastructure rollercoaster Ant does before new models. The difference is damage is largely emotional now, not to the project.
CC harness has Code Mode now, with like thousands of characters of intruct baked into it. Someone thought themselves a poet clearly because it works better with a 10th of that.
2
u/SchmidFactor 2h ago
How can I take them seriously when they use comic sans?!
But in all seriousness, I’ve found that in some of my use cases, Claude code performs noticeably worse than an external harness I built from scratch.
2
u/arturogarrido 1h ago
Makes sense that agents do better when the harness gets out of the way. Models have seen billions of shell examples, while custom tool schemas have to be learned on the fly. Curious how much of the 49% savings is just fewer tokens spent on tool definitions.
2
u/zunjae 5h ago
Who would’ve thought? Opus is ass in copilot but not in Claude. It’s because of the harness
1
u/Lopetan 4h ago
makes sense if you think about it as forming those decisions and pondering on the answers uses tokens and performance degrades
1
u/h0pscotch 4h ago
where's vscode 🤣
1
u/cornmonger_ 4h ago
i've noticed the same. not just the harness, but the governance
give it one good all-around shell tool and let it rip
1
u/Efficient-Chair6250 3h ago
I wonder if that's because models still have a hard time to align to what you ask for. They trained on a ton of CLI work, but they will see your harness and your skills the first time. They will also not learn your skills, but have to interpret them every call
1
u/DevMichaelZag Senior Developer 2h ago
I can crush a grocery-run benchmark if all it checks is whether I came home with groceries. Speed limit? Slows me down. Checkout? Unnecessary workflow overhead.
Same with agents. “Free up 20 GB.” Done. Deleted the database backups. If the grader only checks free space, that’s a perfect score.
I buy that a good model doesn’t need a six-step checklist. What I’d like to see is the same benchmark with a second score for what the agent broke while getting the job done.
1
u/kbr89 1h ago
To find out whether this applies to your own setup, test it on your own work instead of trusting the benchmark average. Take three or four real tasks from your repo and run each one twice: once with your full setup and once stripped (no custom workflow, a short rules file, no custom subagents). Compare the result and the cost of each run.
Do it separately for every model you use. The post says the first-party harnesses win again with lower-tier models, so a long setup can be helping your cheap model and slowing the expensive one, and only a per-model comparison shows which. Keep the stripped version for the model where it wins and leave the rest as it is.
1
u/Abject-Kitchen3198 1h ago
I hope they clone, fork or reinvent Pi as Copilot mode.
1
u/mathiswrong 41m ago
quick someone build a mac gui
0
u/iwantmy90sback 3h ago
I gave my web-AI chat a linux accout and some MCPs. Its brutally effective. I use boring pond.
0
u/michaelTM_ai 3h ago
The control in the abstract answers the "it's just fewer tools" read. Freehand also beat a bash-only harness that still fixed its workflow and timeouts, so a single shell wasn't what did it. What mattered was the model deciding when to stop waiting and what to remember, instead of a threshold compaction doing it.
The one thing they kept is a meter of tokens, cost and time that the model can see. I'd still keep the hard budget stop outside the model, though. A UT team's harness writeup last week had an agent switch off its own budget check mid task, so seeing the meter and obeying it are two different things.
Also the flip at the low end is in the abstract: with lower tier models the first party harnesses win again. Code: https://github.com/microsoft/FreeHand
-1
u/ByteFoundry 7h ago edited 4h ago
Isn't that just claude/codex/agy/pi in yolo mode with a short prompt that tells it to read all relevant files?
update:
I mispoke it is more than the yolo mode. It is the you have no guardrails whatsoever mode. No permission prompts no user in the loop. Pure here is a task I hear from you when it is done mode.
If you want to use this in any production environment you will still need some form of orchestration system around it that does the sandbox isolation, handback, merge. And when the task was not done correctly set it up again and start from the beginning.
But when I understand it correctly the message is simply: Don't drown your frontier models with things you only added to keep non frontier models in check.
The next really interesting test would be not only how many less tokens it burned but how well it adhered/followed the process/environment/company related mandatory steps.
1
u/Reason_He_Wins_Again 49m ago
Ill let you guys try this first. Seems like a good way to nuke a server.