Graff · Open-source AI coding harness

Run coding tasks. Check what actually works.

Graff connects your model to your repository, runs coding tasks, and checks the result.

Use your Codex, Kimi or Grok subscription, or another supported provider.

Download for macOS

Apple Silicon · macOS 14+Other downloads

GitHub Getting started
Install via terminal
curl -fsSL https://github.com/justrach/codegraff/releases/latest/download/install.sh | sh
Illustration of the Graff evolutionary coding harness running AI coding agents through parallel task stations.

From model to working environment

What is a coding agent harness?

A coding agent harness connects a model to repository context, file edits, terminal commands and tests. It manages the steps between a task request and the resulting code.

Execute

Run repository tasks

Edit files, run terminal commands, call MCP tools, route across models, and coordinate coding-agent workers.

Evaluate

Measure agent outcomes

Score success, cost, speed, tool errors, and verification evidence instead of trusting a confident final message.

Improve

Reuse stronger strategies

Keep higher-fitness prompts and agent strategies so future runs reuse what worked while preserving useful diversity.

Graff records how strategies perform and uses those results to select future configurations. You can inspect the code, evaluation setup and recorded outcomes.

Explore Graff evaluations →

20/21

terminal passes · Graff / Grok 4.6

17/21

terminal passes · Graff / Kimi K3

$0.31

per pass · recorded Grok run

$0.21

per pass · recorded Kimi run

Later FrontierHarness runs on the selected 21-task terminal slice, with extra evaluation instructions. Cost per pass uses historical list-price totals and includes failed attempts. Explore the results and comparison conditions →

Graff's core loop

Keep a record of what works. Use it on the next task.

Illustration of Graff's run, score, select, and reuse loop for AI coding-agent strategies.
Run · Score · Select · Reuse

Graff turns completed work into a fitness signal, keeps a diverse archive of strong strategies, and uses that archive to guide future runs.

01Run

Try agent variants.

Graff samples agent strategies and runs them against real repository work.

02Score

Measure the outcome.

Record completion, cost, time and errors for each strategy.

03Select

Keep useful strategies.

Store selected variants in a MAP-Elites archive, grouped by task and provider class.

04Reuse

Reuse selected strategies.

Future runs sample stronger strategies more often while preserving useful diversity.

Graff owns the evolutionary loop. CodeDB improves what Graff or another coding agent can see. CodeDB Pro accelerates repeated local tool work.

Run, search, edit. Choose what you need.

Use Graff to run coding tasks, CodeDB to find relevant code, and Pro to batch local reads and edits. Graff and CodeDB can each work independently.

EVOLVE

Free · open source

graff

Run the task.

Connect your model and tools, run repository tasks, and evaluate which strategies complete the work.

MAP

Free · independent

CodeDB

Map the repo.

Local structural code intelligence that works with Graff or another supported coding agent. It maps symbols, outlines, callers, and dependencies.

MOVE

Paid upgrade

CodeDB Pro

Batch the work.

Keep a local daemon ready for repeated searches, reads, diffs and edits. Address changes by symbol name.

Graff and CodeDB are free and open source. CodeDB Pro is an optional paid upgrade.

Choose the tool for the work.

Compare a whole-file read, a CodeDB outline and a Pro edit. Each example shows what the agent asks for and what the tool returns.

See the measured calls ↓
same task · measured example

Structural lookup

$ codedb outline src/auth.ts

→ SessionStore       L18
→ validateToken      L61
→ handleAuth         L94
→ refreshSession     L137
  exact scope found

Context returned

47 tokens

8 symbols mapped

The result changes with the tool. The task does not.

CodeDB · Free local code intelligence

Find the code for your coding agent.

Give your agent a map of definitions, callers and dependencies. CodeDB runs locally and connects over MCP, so you can keep the coding client you already use.

curl -fsSL https://codedb.codegraff.com/install.sh | bash

Works out of the box with Claude Code, Codex, Gemini CLI, Cursor, Windsurf, Devin.

See the CodeDB search guide or read how local code intelligence reduces agent context.

Illustration of CodeDB tracing a precise structural path through a software repository.
Context
Find the files, symbols and source excerpts relevant to your task.
Symbols
Read definitions and file outlines with focused source context.
Impact
See callers and dependencies before changing shared code.
Local
The index and working data stay on the machine.

Step 01

Orient around the task.

CodeDB gives the client likely files, symbols, dependencies, and focused source excerpts.

codedb context "fix session refresh"

Step 02

Read the right symbol.

Outline maps the file first. Symbol reads pull the exact definition instead of pouring the whole file into context.

codedb symbol refreshSession --body

Step 03

Trace the impact.

Callers and dependency lookups show the agent what the change can affect before it edits anything.

codedb callers refreshSession

Measured on one 2,318-line file

Read the relevant code. Spend less context.

One real 2,318-line file measured three ways. Results vary by repository and task, so the methodology stays visible.

Understand a 2,300-line file

29× leaner than the raw dump

865 tok

with CodeDB Pro

codedb 6,305 tok25,324 toktoday

Search the whole codebase

codedb’s search engine ships inside Pro

built in

with CodeDB Pro

codedb 2,160 tok5,938 toktoday

Edit one function

Pro only · codedb reads, it doesn’t edit

1.9 KB

with CodeDB Pro

169 KBtoday

codedb-pro 0.2.9 · same 2,318-line file · raw read vs structural read vs exact symbol

Same query

6.4×

faster on a 4.7 GB repo

zigrep5.2ms
ripgrep33.1ms

hyperfine · macOS arm64 · n=10

What CodeDB Pro adds.

Read the docs ↗

Persistent local daemon

The toolchain stays warm instead of paying process startup on every call.

one local process

Batched operations

Read, search, diff, and edit in parallel over one request.

10 reads in 7ms

Symbol-safe edits

Target functions by name, guard the revision, and verify the write on disk.

1.9 KB vs 169 KB

Focused tool suite

Purpose-built local tools for search, reads, patches, diffs, memory, and parallel work.

search · read · edit · verify

CodeDB works on your machine.

CodeDB Pro is a local daemon with zero runtime dependencies on supported binaries. Tool operations do not send code, paths, queries, edits, or results to a remote MCP host.

Supported clients: Claude Code, Codex, Gemini CLI, Cursor, Windsurf, Devin.

CodeDB stays free. Add Pro when you need it.

graff and CodeDB remain free. Pro is an annual local-tooling license with a 14-day refund, keys by email, and no auto-renew lock-in.

Individual

$99

per year · 1 seat

All tools, every supported editor, one engineer.

Team

$160

per year · 2 seats

$80 per seat. Save $38 versus two solo licenses.

Team Plus

$349

per year · 5 seats

$69.80 per seat. Same-day checkout link by email.

Get Pro for 5 seats

Engineering organization · 10+ seats

Volume pricing, annual invoicing, and MSA on request.

Discuss a team rollout ↗

The short answers.

What do the Graff benchmark results show?+

The later FrontierHarness runs passed 20 of 21 selected terminal tasks with Grok 4.6 and 17 with Kimi K3. Both used additional evaluation instructions. These are results for that task slice and setup, not full Terminal-Bench leaderboard scores. The comparison article includes costs, DeepSWE outcomes, source records and evaluation conditions.

What is Codegraff?+

Codegraff is the project behind Graff, a free, open-source AI coding harness. Graff runs repository tasks with your model and tools, evaluates results, and reuses selected strategies. CodeDB adds local code search and context. CodeDB Pro adds batching and editing tools.

What is a coding agent harness?+

A coding agent harness connects an AI model to the tools it needs to work: repository context, file edits, terminal commands and tests. It also manages execution and records outcomes. Graff combines that execution layer with evaluation and strategy selection.

How does Graff reuse what works?+

Graff evaluates agent variants and stores selected strategies in a MAP-Elites archive. Later runs can draw on those strategies while continuing to explore alternatives. Selection changes the harness configuration; the base model weights stay the same.

Can I use CodeDB without Graff?+

Yes. CodeDB connects over MCP to supported clients including Claude Code, Codex, Gemini CLI, Cursor, Windsurf and Devin. You can use it with Graff or your existing coding agent.

Is CodeDB free?+

Yes. CodeDB is free and open source. CodeDB Pro is an optional paid upgrade with a persistent local daemon, batched operations and symbol-safe editing.

Do CodeDB tools upload my code?+

CodeDB and Pro process repository data locally. Their tool operations do not upload code, paths, queries or edits to a remote MCP host. Your coding agent may send context to its model provider; that is a separate data path.

Do I need to change editors?+

No. CodeDB speaks MCP and works with Claude Code, Codex, Gemini CLI, Cursor, Windsurf, and Devin. Remove it and your agent falls back to its built-in tools.

What platforms are supported?+

The current Pro binaries support macOS arm64 and Linux x86_64 with zero runtime dependencies.

Try Graff on your repository.

Download the macOS app or install the CLI, connect a supported model provider, and give Graff a task. Start with a change whose result you can check with your own tests.