Description
Freehand is an agent harness designed to delegate core decisions directly to the underlying model rather than enforcing rigid programmatic flows. Built for developers working with frontier models, the repository provides a minimalist architecture consisting of a roughly two-word prompt, a single bash tool, a context that the model actively manages and edits itself, and a built-in meter to track context usage, cost, and execution time.
Read More
The project demonstrates significant competitive advantages when paired with frontier language models. According to evaluations provided in the repository, Freehand outperforms alternative frameworks such as Codex, Claude Code, Gemini CLI, OpenCode, Pi, and DeepSeek Harness. In benchmark settings, it scores highest while operating at the lowest cost among tested configurations, making it a compelling option for efficient automated agent workflows.
The codebase is structured to support flexible provider integrations, including an experimental GitHub Copilot provider via the official SDK, along with offline model metadata and pre-filled connection limits. Localization and documentation are provided across multiple language readmes, and the repository includes standard maintenance configurations, contribution guidelines, code of conduct, and third-party notices.
Targeted at developers and researchers experimenting with autonomous coding agents, Freehand minimizes overhead by reducing the number of auxiliary tools and relying on the model's self-editing context window. Limitations and experimental features are documented within the repository, such as the experimental Copilot integration and ongoing updates to desktop release assets. The project serves as an open-source testing ground for efficient, cost-effective agent harnesses driven by frontier language models.
- CategoryAI Coding Assistants
- Pricing ModelOpen source
- DeploymentCloud
- PlatformsWeb
FreeHand's Core Features
Agent harness designed to delegate decisions directly to the model
Minimalist configuration utilizing a ~200-word prompt
Single bash execution tool for streamlined operations
Model-managed context window that the assistant edits itself
Built-in meter for tracking context consumption, cost, and execution time
Outperforms frontier alternatives including Codex, Claude Code, and Gemini CLI
Optimized for high scoring at low operational cost across benchmarks
Experimental GitHub Copilot provider integration via official SDK
Support for offline model metadata and connection limits
Multilingual README documentation in English, French, Spanish, Japanese, Korean, and Chinese
Getting Started with FreeHand
Clone repository: git clone https://github.com/microsoft/FreeHand
Install dependencies: configure project dependencies using pyproject.toml and uv.lock
Configure settings: set up model providers, offline metadata, or optional processing tiers
Execute harness: run the agent harness using the single bash tool and model prompt setup
Monitor performance: track context usage, execution time, and cost via the built-in meter
FreeHand's Use Cases
- Autonomous Code Execution
- Cost-Effective Benchmarking
- Self-Managed Context Testing
- GitHub Copilot Integration










