Skip to main content
Back to trending

FreeHand

Freehand is an agent harness that leaves the decisions to the model: a ~200-word prompt, one bash tool, a context the model edits itself, and a meter for context, cost and time. With frontier models it beats Codex, Claude Code, Gemini CLI, OpenCode, Pi and DeepSeek Harness, scoring highest at the lowest cost in every setting we ran.

  • agent-harness
  • agentopt
  • ai-agents
  • cli
  • coding-agent
  • llm-agents
  • terminal-agent
View on GitHub
Stars
1,119
Forks
92
+ today
+7
Created
18d

Ranking data as of December 5, 2026 (UTC).

Star History

Today, hour by hour

1,119 stars
1,1121,119

Overview

Freehand is an agent harness that leaves the decisions to the model: a ~200-word prompt, one bash tool, a context the model edits itself, and a meter for context, cost and time. With frontier models it beats Codex, Claude Code, Gemini CLI, OpenCode, Pi and DeepSeek Harness, scoring highest at the lowest cost in every setting we ran. It ranks #23 on GitTiger, gaining +7 stars on December 5, 2026 (UTC).

The project is written in Python and has 92 forks. It was created 18d ago.

AI-generated summary of the repository README — may contain errors.

What it is

Freehand is an agent harness from Microsoft that deliberately strips the scaffolding back: instead of encoding procedure in prompts and tool plumbing, it hands the model a short brief of roughly 200 words, a single bash tool, and a context file the model maintains itself. The listing says it also keeps a meter on context use, spend and elapsed time.

Capabilities

The project's own account is that Freehand outperforms Codex, Claude Code, Gemini CLI, OpenCode, Pi and the DeepSeek Harness with frontier models, taking the best score at the lowest cost in every configuration the authors ran. Those comparisons are the maintainers' claims and are not independently reproduced here. A Python package, freehand-ai, is published on PyPI alongside a released paper. The design assumes commands execute with your own files, credentials, network and environment, so untrusted repositories are expected to be isolated in a container or VM. The project reports no telemetry and says it talks only to the model service and MCP servers you configure.

Getting started

Install steps and the container guidance live in the repository README and docs/container.md; the metadata supplied here does not include the commands.

Installation
git clone https://github.com/microsoft/FreeHand.git
cd FreeHand
# see README for setup

Frequently Asked Questions

Does Freehand collect usage data?

No. The README states the tool has no telemetry and communicates only with the model service and the MCP servers a user configures.

Is it safe to run on an untrusted repository?

The project advises against doing so directly: commands run with your credentials, files and network access, so untrusted code belongs in a container or virtual machine, and AGENTS.md or project skills load only inside folders you have trusted.

Which model providers can it drive?

The supplied evidence only discusses frontier models in general and names no specific providers, so check the README for the current support list.