← Back to Leaderboard
Fmicrosoft

A shell-first coding harness that lets the model steer execution and context

Engineering Health (Methodology)
A · 82/100
Maintenance Activity
● Updated today
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption16/25
Release Cadence11/20
License Clarity20/20
CLISelf-HostedAPI
Total Stars
★ 1,312
24h Growth
+327
7d Growth
+1,311
Forks
108

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

microsoft/FreeHand Star History (2026-11-23 - 2026-12-04) DAILY STAR HISTORY (12-DAY D1 TELEMETRY) +1.3k in 11d · avg +119/day 1.4k 693 0 2026-11-23: ★ 12026-11-24: ★ 12026-11-25: ★ 12026-11-26: ★ 12026-11-27: ★ 12026-11-28: ★ 12026-11-29: ★ 12026-11-30: ★ 42026-12-01: ★ 92026-12-02: ★ 612026-12-03: ★ 9852026-12-04: ★ 1,312 ★ 1.3k 11-23 11-28 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Freehand is a local Python agent harness with a deliberately small model-facing interface: a runtime description of roughly 350 tokens and a single bash tool. The model chooses the execution strategy, sets per-command timeouts, can detach jobs, and manages what remains in context instead of relying on fixed-threshold compaction. After each turn, the harness reports context size, token usage and cached share, cost, and elapsed time back to the model.

The pyproject.toml uses setuptools>=77 and names the distribution freehand-ai, while the CLI and import package are named freehand. Inference runs through a configured provider; OpenAI-compatible Chat Completions is the documented custom-endpoint route. Project instructions and skills load only in trusted folders, and the harness can connect to configured MCP servers without changing its one-tool model-facing design.

Key Capabilities & Differentiators

The CLI supports OpenAI through eligible ChatGPT subscriptions or an API key, Anthropic login, and custom OpenAI-compatible Chat Completions endpoints, including gateways such as LiteLLM. /model switches the active model and its provider without restarting the session. The terminal, browser and beta desktop interfaces support streaming Markdown, interrupts, session resume, per-turn undo and HTML export. The desktop adds a workbench with files, changes, Git and a terminal alongside the conversation.

The project’s published benchmark runs cover 11 settings across five suites with GPT-6-astra, Claude Opus 5.5 and Gemini 4 Carbon. In the Terminal-Bench 4 Opus comparison, Freehand scored 61.9% at $3.38 per task, versus 54.9% at $4.91 for Claude Code. That is a measured result for this pairing, not a general cost or accuracy expectation.

Trade-offs & Limitations

Compared with Claude Code or Codex, Freehand gives the model more latitude and supplies fewer built-in guardrails for planning, tooling and memory. The advantage is model-dependent: on Terminal-Bench 4, Claude Code with Claude Sonnet 5.5 scored 41.6% versus Freehand’s 34.9%; Codex with GPT-6 Sol scored 34.9% versus Freehand’s 29.2%. Test the intended model on representative work before assuming that fewer harness policies will improve cost or completion rates.

The security tradeoff is immediate: no built-in sandbox or approval prompt mediates execution. Commands inherit the user’s permissions and can access reachable files, credentials, environment variables and the network. Folder trust controls whether project instructions and skills load; it does not constrain command permissions. Treat per-turn undo as a workflow feature, not as a guarantee that external side effects can be reversed.

Hardware & Deployment Guide

The supported host platforms are macOS and Linux; the CLI and browser interface also run inside Linux on WSL2. The installer uses uv and provisions Python 3.12. freehand web opens the browser interface, freehand -c resumes the last session in the current directory, and freehand -p runs without an interactive UI. The beta desktop app requires a source build with Node 22.12 or later and an installed freehand CLI; signed installers are not published.

The harness runs locally, but the normal model path uses a configured API endpoint. A local model endpoint can be evaluated through the compatibility route if it implements the required Chat Completions behavior; offline operation is not established by the local install alone. There is no local GPU requirement for API inference. Size the host for its shell workloads and isolate untrusted work in a container or VM. The Python project is marked alpha, and no latest GitHub release is listed.

Model interface: Roughly 350 startup tokens and one bash tool; the model manages what stays in context.
Execution control: The model sets per-command timeouts and can detach jobs.
Run telemetry: Each turn exposes context size, token use and cached share, cost, and elapsed time to the model.
Provider routing: /model can switch both model and provider mid-session; compatible Chat Completions endpoints can be configured explicitly.
Headless mode: freehand -p separates activity on stderr from the final summary on stdout.
Trust boundary: Trusted folders gate loading AGENTS.md and project skills, but do not sandbox shell commands.
Best For

Teams piloting frontier-model coding agents on builds, tests and repository maintenance in a controlled environment, with a choice of providers and per-turn cost visibility.

Skip If

You require built-in execution approvals or sandboxing, signed desktop installers, or strong results from smaller models without validating your workload first.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLISelf-HostedAPI
curl -LsSf https://raw.githubusercontent.com/microsoft/FreeHand/main/install.sh | sh

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
FreeHand ★1.3k+1.3kPythonMITA shell-first coding harness that lets the model steer execution and context
Codewhale41.2k+38RustMITRust coding agent with swappable models, sandboxed execution, and turn receipts
aider50.3k+78PythonApache-2.0A Git-integrated terminal CLI for editing code with cloud or local models.
gemini-cli109.6k+376TypeScriptApache-2.0A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/microsoft/FreeHand.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

microsoft/FreeHand Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about FreeHand

How do I integrate Freehand into a script or connect it to a model gateway?

Use freehand -p "…" for headless execution. Activity goes to stderr and the final summary goes to stdout; that summary is not documented as a structured JSON response. Connect to OpenAI or Anthropic, or use --provider openai-chat with --api-base and --api-key-env for an OpenAI-compatible Chat Completions endpoint. Freehand can also connect to configured MCP servers.

Does Freehand need a GPU, and how should I size the host?

The API-backed path runs inference at the configured endpoint, so the Freehand host does not need a GPU for inference. Size the host for the commands and workloads the agent will run, including concurrent or detached jobs. If you host the model endpoint yourself, size that machine separately for the selected model and serving concurrency.

Can we use Freehand commercially and meet a self-hosting requirement?

The MIT license permits commercial use and redistribution, subject to its notice requirements. Account for applicable third-party notices and provider terms separately. Running the harness locally does not keep model requests on the machine: assess where prompts and tool output go, which MCP servers are configured, and what files and credentials the agent can access.

When is Freehand a better fit than Claude Code?

Pilot Freehand on representative tasks if you use a frontier model and can provide external isolation. In the Terminal-Bench 4 comparison with Claude Opus 5.5, Freehand scored 61.9% at $3.38 per task versus Claude Code’s 54.9% at $4.91. With Claude Sonnet 5.5, the ranking reversed: 34.9% versus 41.6%. Treat those results as model- and workload-specific, not as a reason to switch by default.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining microsoft/FreeHand? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature microsoft/FreeHand on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare