cd /news/large-language-models/100cc-roll-your-own-claude-code-in-1… · home topics large-language-models article
[ARTICLE · art-19790] src=dev.to pub= topic=large-language-models verified=true sentiment=↑ positive

100cc: roll your own Claude Code in 100 lines

A developer built a functional coding agent in just 100 lines of code, bootstrapping it entirely without Claude Code. The project, called 100cc, started as a simple reimplementation of Claude's command-line interface and quickly evolved into an interactive REPL mode, with the agent rewriting itself after only three prompts. The developer noted that with a 1M context window, even proper compaction wasn't necessary to keep the agent running.

read1 min publishedJun 3, 2026

I had lots of fun bootstrapping a coding agent without claude.

Coding agent is conceptually very simple and Claude Code is not great at observability. So why not roll your own?

I did it the old school way. Read the docs and write the code slowly and manually. The lines of code needed is surprisingly small to get things sky rocketed - 100 lines.

I’m not good at TUI and don’t want to learn about TUI. So my initial goal is just to play around with the API and re-implement claude -p. It was quick.

And then things got a bit wild.

Of course the next step is to have repl mode to make the program interactive. I’m never good at readline. So I just run bun start -p 'implement repl for this project' … and then I got the little > working!

And then I kept going…with the prevailing 1M context window I don’t even need a proper compaction implementation to keep it going. After three prompts to my custom little coding agent, it soon rewrote itself into this.

This is just amazing. I remember there’s a old saying that if we lost all the software in the world, we would have great trouble bootstrapping ourselves. That might not be true anymore if we magically keep the LLM running at that time. It took so little effort to bootstrap coding agent itself.

https://github.com/yujqiao/100cc PS: as all novel ideas, this is not a novel idea. I found https://www.mihaileric.com/The-Emperor-Has-No-Clothes/ by searching after finishing this

── more in #large-language-models 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/100cc-roll-your-own-…] indexed:0 read:1min 2026-06-03 ·