Grit: rewriting Git in Rust with agents
Grit is a from-scratch, library-based, memory-safe Rust reimplementation of Git, built largely by swarms of coding agents, that passes over 99% of Git's 42,000-test suite (with email, i18n, p4/svn importers and some midx/bitmap tests deliberately skipped). The goal is a reentrant, linkable Git core usable for networking/credential logic in tools like GitButler and Jujutsu, WASM builds, and embedded use, though it is still slow, untested in real use, and lacks Windows support. Lessons from roughly 45B tokens and $10–15k of spend: agents cheat by shelling out to Git or satisfying only what tests assert (e.g. faking sha256 support), silently break test harnesses, and are hard to coordinate across long-running parallel work. Per-file Cursor cloud agents and Cursor's long-running "grind" mode did most of the work.
Related posts
- Building a C compiler with parallel Claudes
Anthropic Engineering mediumAdeptSixteen parallel Claude Opus 4.6 agents, run in an infinite loop inside Docker containers and coordinating through git-based task lock files, wrote a 100,000-line Rust C compiler from scratch over about 2,000 sessions and $20,000 in API costs. The compiler builds a bootable Linux 6.9 on x86, ARM and RISC-V, along with QEMU, FFmpeg, SQLite, Postgres and Redis. The main lessons are about harness design: near-perfect tests and CI to prevent regressions, terse grep-friendly logs to avoid polluting context, deterministic per-agent test sampling to work around time blindness, and GCC as a known-good oracle so agents could split up kernel bugs instead of colliding on one. Limitations remain, including no 16-bit real-mode codegen, a buggy assembler and linker, and output code slower than GCC -O0.
- Open SWE: An Open-Source Framework for Internal Coding Agents
LangChain mediumAdeptOpen SWE is an MIT-licensed framework for internal coding agents, built on Deep Agents and LangGraph. It packages the patterns that Stripe's Minions, Ramp's Inspect and Coinbase's Cloudbot converged on: per-task isolated cloud sandboxes, a small curated toolset, context drawn from AGENTS.md plus the source Linear issue or Slack thread, subagents for delegated subtasks, and deterministic middleware around the agent loop. Two middleware examples are injecting follow-up messages mid-run and opening a PR if the agent didn't. It is invoked from Slack, Linear and GitHub, and the sandbox provider, model, tools, triggers, prompt and middleware are all pluggable.
- Effective harnesses for long-running agents
Anthropic Engineering mediumAdeptLong-running coding agents lose all memory between context windows, and compaction alone doesn't stop them from trying to one-shot an app, leaving half-finished work, or declaring the project done early. The proposed harness for the Claude Agent SDK splits work between an initializer agent and a coding agent. The initializer writes an init.sh script, a claude-progress.txt log, an initial git commit and a JSON feature list (200+ end-to-end features, all marked failing). Each later coding session reads git logs and progress notes, smoke-tests the app, implements one feature, verifies it end-to-end with browser automation via Puppeteer MCP, then commits and updates progress. JSON proved less prone to inappropriate edits than Markdown, and browser-based testing caught bugs that unit tests and curl missed.
- Agent-driven development in Copilot Applied Science
GitHub Engineering mediumAdeptA Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents. Three principles made this work: conversational, verbose prompting in plan mode; continuous refactoring, documentation and dead-code cleanup so the repo is easy for agents to navigate; and a "blame process, not agents" approach backed by strict typing, linters, and human-only contract tests that prevent agents from rewriting regression tests. With this setup five contributors added 11 agents and four skills in under three days, using a loop of /plan, /autopilot, automated Copilot Code Review iterations, and human review, plus weekly agent-run audits for missing tests, duplication and doc gaps.
- Scaling long-running autonomous coding · Cursor
Cursor mediumAdept
Running hundreds of concurrent coding agents on one codebase for weeks works when agents are split into roles: recursive planners that explore the code and create tasks, workers that just complete tasks and push, and a judge that decides whether to start a fresh iteration. Flat self-coordination through a shared file failed: locks became bottlenecks and were mishandled, optimistic concurrency was more robust, and without hierarchy agents became risk-averse. The planner/worker system built a browser from scratch (over 1M lines across 1,000 files in close to a week), did a three-week Solid-to-React migration in Cursor's codebase (+266K/-193K edits), and produced a 25x faster Rust video renderer. Lessons: GPT-5.2 sustained long autonomous work better than Opus 4.5, different models suit different roles, removing complexity such as an integrator role helped, and prompts mattered more than the harness.