Anchor
An MCP server that records AI coding agent attempts, runs your test suite against each in isolated git worktrees, and reports pass/fail verdicts to help you choose the fix that actually works.
README
Anchor
Anchor watches AI coding agents work on your codebase, records what they did and why, and tells you which attempt actually worked — measured by your test suite, not by reading diffs.
Everything is local. No accounts, no cloud, no telemetry.
Download
Download for Windows →
(Anchor_0.1.0_x64_en-US.msi, 7 MB)
Double-click the .msi and it installs to C:\Program Files\Anchor\.
Windows will show "Windows protected your PC" the first time. That is because the installer is not code-signed — a signing certificate costs several hundred dollars a year, and this is a free project. Click More info → Run anyway. If you would rather not, build from source instead; the instructions are below and the result is identical.
Windows only for now. The code is cross-platform but macOS and Linux have not been built or tested, so there is nothing honest to hand you yet.
The problem
You ask an agent to fix a bug. It fixes it. You ask again in a fresh session and get a different fix. Both look reasonable. Both compile. You have no way to tell which one is right except by reading them closely and guessing.
Anchor removes the guessing. Run the task three times on three branches, and it executes your real test suite against each one in an isolated git worktree:
attempt 1 6 passed 0 failed ← merge this
attempt 2 3 passed 3 failed test_streak_resets, test_tz_rollover, test_grace_day
attempt 3 5 passed 1 failed test_tz_rollover
No model decides pass or fail. That verdict is your test runner's exit code and output, recorded as a fact.
Open a project
Launch Anchor and point it at any git repository. On first open it reads:
- your git history (last 90 days), and
- Claude Code session transcripts for that folder, if you have any.
Click a file and you get every edit ever made to it, oldest to newest, each one showing the prompt that caused it. Where Anchor can prove the link from a recorded tool call it says so; where it only inferred it from timestamps, it says that too rather than pretending to be sure.
Connect it to Claude Code
Anchor's tools reach Claude Code over MCP. Claude Code starts the server itself, so Anchor does not need to be open for the tools to work.
Anchor is not added to your PATH. Typing anchor serve will not work — you
need the full path to the binary. The easy way is to let Anchor write the line
for you:
Settings → Claude Code connection → Copy
That gives you something like:
claude mcp add anchor -- "C:\Program Files\Anchor\anchor.exe" serve --project "C:\path\to\your\project"
Paste it into a terminal and run it. Then check it worked:
claude mcp list
You want to see anchor: ✔ Connected.
Once connected, Claude can call:
| Tool | What it does |
|---|---|
anchor_run_tests |
Runs your suite against a branch in an isolated worktree |
anchor_get_past_failures |
What was already tried on a file, and what broke |
anchor_log_attempt |
Registers an attempt so attempts can be grouped |
anchor_compare_attempts |
Every attempt in a task with its verdict |
anchor_record_decision |
Records which one you picked |
No tool merges, commits, pushes, deletes a branch, or writes to CLAUDE.md.
Claude can recommend a winner; you merge it.
anchor_run_tests takes no command argument — it runs only the command you
configured and confirmed, so a model cannot talk Anchor into running something
else.
Run a split test
Using the full path again — substitute wherever your copy lives:
"C:\Program Files\Anchor\anchor.exe" split --prompt "freeze the streak when a day is missed" --n 3
That creates three branches, one worktree per lane, and prints the exact instruction to give Claude Code for each. Work them in any order — Anchor queues a test run when a commit lands on a lane, and opens Compare when all three have results.
Then, in chat: "use attempt 2" — Claude merges it with ordinary git. Nothing merges without you saying so.
Clean up the losers once you've decided:
"C:\Program Files\Anchor\anchor.exe" split --cleanup <task_id> --yes
What it writes
Only two things, ever: <project>/.anchor/ (its database and temporary
worktrees), and a delimited block in CLAUDE.md that you approve by hand. It
never edits your source files.
The CLAUDE.md block is a short list of what has already been tried and failed,
so an agent is less likely to hand you the same wrong approach a fourth time.
It is off by default, only ever written when you press the button, and only ever
replaces the region between its own markers — everything you wrote by hand is
preserved byte for byte.
To be precise about what that achieves: it is a text file the agent reads. It does not train or change the model, and it does not guarantee better output.
Build from source
Needs Node 18+, Rust (stable), a C toolchain (on Windows: Visual Studio Build
Tools with "Desktop development with C++"), and git on your PATH.
git clone https://github.com/kimgeon555-lab/anchor.git
cd anchor
npm install
npm run app
The first build compiles a few hundred crates and takes several minutes. That gives you a development build that reloads as you edit.
To produce the installer yourself:
npm run app:build
The .msi lands in src-tauri/target/release/bundle/msi/, and a standalone
anchor.exe in src-tauri/target/release/. Both the app and the CLI are that
one binary.
Honest status
Version 0.1. It works, and it has been used on real projects — but it is new, and you should know its edges:
- Windows only, in practice. Built and tested on Windows 11. Nothing else has been packaged or verified.
- Not code-signed, so Windows will warn you on first run.
- Claude Code is the only agent whose transcripts are read today. Session sources sit behind one trait, so adding another is a single implementation.
- You need a real test suite. Anchor's whole premise is that your tests decide. Without them it can still record history, but it cannot pick a winner.
- Test worktrees don't have your dependencies. A fresh worktree has no
node_modulesand no virtualenv. Test commands that need an install step will fail environmentally — Anchor tells you when that's what happened rather than reporting it as a test failure. - If Anchor can't parse your runner's output it reports counts unknown instead of inventing numbers.
Documentation
Full documentation is in docs/ — twelve pages covering the
interface, the timeline, compare, the test runner, search, agent context, the
data model, and troubleshooting.
Licence
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。