Please or Register to create posts and topics.

Lightweight alternative to Claude Code?

I like using coding agents from the terminal, but I’m getting tired of tools that bring along a whole Node.js environment and a huge dependency tree just to run a CLI. I’d like to experiment with something smaller that I can build as a single binary and easily run on different machines, preferably written in Go. It doesn’t need to be production-ready since this is mostly for tinkering and learning how these coding agents work internally. Are there any open-source projects along those lines?

For tinkering, I’d keep the scope small and pick something where you can actually follow the agent loop without digging through a massive codebase first. GoCode is worth checking out for that. It’s written in Go, runs as a single binary, and still has the usual pieces you’d want to poke at, like file edits, shell commands, model providers, and approval around tool calls.

The fun part here is being able to trace how the whole thing works from the terminal prompt down to tool execution and session state, then change pieces without dragging a Node stack along with it. There’s an open source Claude Code rewrite in Go that lines up pretty closely with what you described. You can check it out here https://github.com/projectbarks/gopher-code . It’s a ground-up Go rewrite that builds to one binary, and even though the project was archived before reaching full parity, there’s enough of the architecture there to make it interesting for learning and experimenting.