An Agent Harness That Trusts the Model to Make the Calls
Most agent harnesses are control freaks. They decide what tools you get, when context gets trimmed, and how the loop should run—then hand the model a narrow lane to operate in. Freehand asks a different question: what happens if you just get out of the way and let a capable model manage its own runtime? The answer, according to the project's benchmarks, is that it gets faster, cheaper, and scores higher than the first-party harnesses from the major labs.
What It Does
Freehand, from Microsoft, is an agent harness built on a simple premise: give the model a short runtime description (about 200 words), a single bash tool, and control over its own context. That's it. Instead of a sprawling toolset and elaborate orchestration logic, the harness stays minimal and lets the model decide how to approach a task.
The project ships as a Python package (freehand-ai, Python 3.10+) on PyPI, with a CLI and web interface. It's MIT licensed and currently in alpha. The README notes it's part of the broader AgentOpt series, a collection of projects covering different parts of an agent system. There's a paper on arXiv if you want the full methodology, and the repo includes docs on usage, gateways, benchmarks, and security.
Why It's Cool
The headline result is hard to ignore: against Codex, Claude Code, Gemini CLI, OpenCode, Pi, and DeepSeek Harness, across five benchmarks and three model families, Freehand scored highest and cost least in every setting the team ran—and was fastest on average. The chart in the README shows a mean score of 63.2%, mean cost per task of $3.23, and mean normalized time of 31.7 minutes per task.
-
The design is almost aggressively simple. One bash tool and a 200-word runtime description is a stark contrast to harnesses that ship dozens of tools. The bet is that a frontier model doesn't need scaffolding so much as room to think.
-
The authors are honest about the limits. The README says plainly that this pays off with frontier models and that weaker models still do better with traditional harnesses. That's a refreshing bit of candor—they're not claiming this is universally better, just better in the regime they tested.
-
No sandbox, stated up front. The README puts a warning near the top: commands run with your permissions and nothing asks first. For code you don't trust, they point you to running it in a container or VM. It's the kind of thing you want to know before you start, not after.
The broader idea—giving the model ownership of its context and decisions—is the interesting part. If harnesses are mostly compensating for model weaknesses, then as models improve, the right move is to remove that compensation rather than add more of it. Freehand is a concrete test of that thesis.
How to Try It
The supported platforms are macOS and Linux, with the CLI and web interface also working in Linux under WSL2. Native Windows support is listed as coming soon.
Install on macOS or Linux with:
curl -LsSf https://raw.githubusercontent.com/microsoft/FreeHand/main/install.sh | sh
Or install from PyPI directly (Python 3.10+):
pip install freehand-ai
Before you point it at anything important, read the security model and, if you need isolation, the container guide. When you're ready to dig further, the usage docs and gateway docs cover configuration, and the benchmarks doc has the full results.
The repo is at github.com/microsoft/freehand.
Final Thoughts
Freehand is worth your attention if you're already working with a frontier model and you're curious whether your harness is doing more harm than good. It's alpha software with no sandbox by default, so treat it accordingly—container it for anything sensitive. But the core idea, that the best harness might be the one that gets out of the way, is a useful thing to have tested and published rather than just argued about. If the benchmarks hold up under your own workloads, it could simplify a lot of agent plumbing.
Follow @githubprojects for more developer tools and open source projects.