Claude Code rebuilt in Go: 12ms cold start, one binary, 3% done
A ground-up Go rewrite of Claude Code that trades a 500K-line TypeScript monolith for a single static binary with a 12ms cold start.

What it does Gopher Code is a ground-up rewrite of Anthropic’s Claude Code agentic coding assistant in Go. It aims to replace the original’s 513K-line TypeScript monolith—and its Node.js and Electron dependencies—with a single static binary that starts in 12ms. The project replicates Claude Code’s subsystem architecture, from SSE streaming and tool execution to session management and a Bubble Tea terminal UI, using idiomatic Go and zero runtime dependencies.
The interesting bit The authors audited 1,885 TypeScript source files and catalogued 594 parity tasks across 24 subsystems, tracking everything from keybindings to error messages. They use golden-file tests captured from Claude Code v2.1.88 transcripts to verify that message normalization, prompt assembly, and query loops behave identically. It is less a greenfield project and more a forensic porting exercise.
Key highlights
- ~3% overall parity so far; the Model & Provider subsystem leads at 57%, while most others sit at 0–22%
- 33 built-in tools and 60+ slash commands are planned, but most handlers remain stubs
- Replaces the original’s Ink/React renderer with Bubble Tea and
Promise.allconcurrency with goroutines - L1–L4 parity test suite uses captured TypeScript transcripts to enforce behavioral equivalence
- Cross-compiles in seconds to any Go target; no
npm install, no native addons, no V8 heap
Caveats
- The rewrite is in early research phase: CLI, keybindings, voice, IDE support, plugins, and remote bridge are all at 0% parity
- Tool skeletons exist, but validation, permissions integration, and UI are largely missing
- Not affiliated with Anthropic, so this is strictly an independent experiment
Verdict Worth following if you want to see how a massive TypeScript codebase maps to Go, or if you crave a hackable, low-dependency coding agent. For production work, the official Claude Code is the only sensible choice right now.
Frequently asked
- What is ProjectBarks/gopher-code?
- A ground-up Go rewrite of Claude Code that trades a 500K-line TypeScript monolith for a single static binary with a 12ms cold start.
- Is gopher-code open source?
- Yes — ProjectBarks/gopher-code is an open-source project tracked on heatdrop.
- What language is gopher-code written in?
- ProjectBarks/gopher-code is primarily written in Go.
- How popular is gopher-code?
- ProjectBarks/gopher-code has 879 stars on GitHub.
- Where can I find gopher-code?
- ProjectBarks/gopher-code is on GitHub at https://github.com/ProjectBarks/gopher-code.