JC

justrach/codegraff

Developer tools
336 stars 30 forks Quality 65 Trend 25NOASSERTION

An AI coding agent for your terminal. One small binary, no dependencies.

Overview

An AI coding agent for your terminal. One small binary, no dependencies.

README

CodeGraff

An AI coding agent for your terminal. One small binary, no dependencies.

Want a desktop app? Harness runs graff with chat, review, files, and terminals in one window.

Install · What it does · MCP · Desktop app · SDKs · Evaluations · Development

Install

On macOS or Linux:

curl -fsSL https://github.com/justrach/codegraff/releases/latest/download/install.sh | sh

On Windows, in PowerShell (no WSL needed):

irm https://github.com/justrach/codegraff/releases/latest/download/install.ps1 | iex

It verifies the download against the release’s SHA256SUMS, installs graff.exe under %LOCALAPPDATA%\Programs\graff\bin and adds that to your user PATH. The desktop app, Harness, installs graff for you.

graff login                      # sign in
graff                            # start an interactive session
graff -p "Explain this project"  # ask one question, answer on stdout

graff update installs the latest stable release, and graff update --beta the newest beta. Both check the download against the release’s SHA256SUMS.

What it does

Describe a task in plain English. Graff reads and edits files, runs commands, uses browser tools, and hands parts of the work to sub-agents.

  • Build: “Build a small app to track my workouts.”
  • Investigate: “Find out why this page is slow.”
  • Work with data: “Turn these CSVs into one clean spreadsheet.”
  • Compare: “Try three approaches and test which works best.”

Sub-agents work in parallel, each with its own context. A workflow runs phases of parallel children in sequence and passes results on through {{prev}}.

Context stays small: stable setup is reused, large tool outputs become handles the model pages through with read_tool_result, and /compact shortens the transcript.

Extensions and policy

Optional formatters run after verified file edits. Native extensions add bounded request callbacks and data-only panels in Harness; executable callbacks require explicit local trust. Plugin management enables, disables, registers and reloads metadata without copying foreign plugin trees or auto-running their hooks. Hard policies restrict providers, tools, MCP, skills, plugins and web search independently of ordinary approvals. Formatters and executable extensions are off by default and do not add text to the model’s prompt. Optional language servers provide real diagnostics, hover, definitions and references through a read-only lsp tool and model-free CLI. LSP is off by default; it uses explicitly configured, already installed servers.

MCP servers

graff mcp add github                        # by name, from codegraff.com/mcp
graff mcp add https://mcp.example.com/mcp   # a remote server
graff mcp add notes -- npx -y some-mcp      # a local command
graff mcp add github --everywhere           # every project, and Harness

graff mcp add checks the server works before saving it. Browse servers by name at codegraff.com/mcp. Local servers start the first time one of their tools is used, and "shared": true runs one copy per machine for every session (macOS and Linux). /mcp shows them in a session. Config reference: assets/skills/mcp-config.md.

Desktop app

Harness is the desktop app for graff, a native app built with Rust and GPUI. Pick graff, or another installed coding agent, and a model for each conversation. Review changes next to the chat, with files, a browser, and terminals in the same window. It works locally without an account; turn on sync to follow a session from another device.

Harness in the built-in Codegraff Dark theme. Synthetic example conversation.

  • macOS (Apple Silicon, macOS 12+): download Harness, drag it to Applications, and open it. It is signed and notarized, bundles graff, puts graff on your terminal PATH, and keeps graff up to date.
  • Windows (x86_64): portable build. Unpack it and run harness.exe.
  • Linux: build from source, see the Harness README.

Use it from code

from harness_sdk import Harness
with Harness(yolo=True, model="gpt-5.5") as h:
    print(h.ask("what is 2+2?"))
import { runAgent } from "@codegraff/sdk";
for await (const ev of runAgent({ prompt: "summarize README.md", yolo: true })) {
  if (ev.type === "text") process.stdout.write(ev.text);
}

The SDKs in sdk/ are generated from graff --json and graff --schema. graff serve runs sessions over HTTP, graff mcp serve lets other MCP clients hand graff small tasks, and Embedding graff covers --no-local-tools with a sandbox MCP.

Evaluation results

The recorded live evaluation covers 12 PR tasks, with three runs per task. A task passes when at least two runs pass. See the results receipt for the recorded evidence. The live, in-house, and FrontierHarness evaluations use different protocols and should be read separately.

Development

path what it is
src/ agent engine, line REPL, and ACP
apps/ Chrome native-messaging extension
graff-evals/ live, in-house, FrontierHarness
docs/ ADRs, architecture, images, install, embedding
sdk/ generated TypeScript / Python
scripts/ tier-1/2, PTY probes, release

The desktop app has its own repository, justrach/harness. The fullscreen terminal UI is also maintained separately: graff tui launches an installed graff-tui beside the graff executable, or otherwise from PATH. It does not download it.

scripts/install-hooks.sh          # once
scripts/eval-tier1.sh             # offline checks
python3 scripts/eval-tier2.py     # model-backed, opt-in

Tier 1 is zig fmt, the 600-line ceiling, test reachability, zig build test (suite count never shrinks), named goal/loop/todo invariants, and SDK drift. Docs-only pushes skip it. In-house PR fixtures: graff-evals/ (--suite inhouse).

Enterprise

From the release after v0.0.302.22, an organization needs a commercial license for any use of graff, including on its own machines, cloud, CI and network, if it meets any one of the tests under License. Contact [email protected] for a license, support, and deployment help. What the measured harness comparisons mean for a budget: evals/enterprise-cost.md.

License

Modified GNU AGPL-3.0 (LICENSE). Network use triggers Section 13. Authors Rach Pradhan (justrach) and Yu Xi Lim (yxlyx) reserve the right to offer proprietary or hosted versions. A recipient’s AGPL licence is perpetual unless they breach it. Commercial permission without copyleft exists only if both authors grant it jointly in writing, and is revocable.

Companies need a commercial license. Every version after v0.0.302.22 adds one term. Your organization, counted together with its affiliates, needs a commercial license for any use of graff (including on its own machines, cloud, CI and network) if it meets any one of these:

  • it has raised more than US$500k in total from investors or lenders;
  • its net worth or latest valuation is more than US$500k;
  • its gross revenue was more than US$100k in its last fiscal year or any 12-month period.

A company that crosses a line must contact us within 5 working days. Individuals always use graff under the AGPL, whatever they earn, and so do organizations that meet none of these tests. Earlier versions keep the license they shipped with. Unsure? Treat yourself as covered and contact [email protected].

Contributing. All contributions require prior agreement to the Contributor Assignment and License Agreement (CLA.md) (see CONTRIBUTING.md), under which contributions are irrevocably assigned to the Licensors and become part of codegraff governed by LICENSE.

Built in Zig 0.17 dev · AGPL-3.0 (modified) · architecture · CHANGELOG · uxlog

View the full README on GitHub

Install

This server does not publish a one-line install command.

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →