What happens when Anthropic's most powerful coding agent gets reverse-engineered â and why that matters for anyone building AI tools.
Anthropic charges $20/month for Claude Pro, and Claude Code â their autonomous coding agent â sits on top of that, burning API credits every time it runs. For heavy users, that bill climbs fast. So when a Chinese developer reverse-engineered the leaked source and published a locally runnable version, 5,000 developers starred it within weeks.
Setting
cc-haha is a TypeScript project built from the leaked source code of Claude Code, Anthropic's terminal-based AI coding agent. The original Claude Code works by reading your codebase, writing and editing files, running commands, and iterating â all autonomously â guided by a natural language instruction you give it. The official version is cloud-only, tethered to Anthropic's API, and metered. cc-haha takes that same architecture and makes it run locally, adding a cross-platform desktop interface and scheduling features that the original never had.
The creator, NanmiCoder, also annotated the core modules â essentially writing a guided tour of how Claude Code actually thinks â so developers can learn from the internals, not just run the binary.
The Story
Imagine you're an indie maker shipping a SaaS product solo. You need Claude Code to refactor your authentication module, write tests for a new API endpoint, and then run the suite to confirm nothing broke. Normally you'd open a terminal, invoke the official Claude Code CLI, and watch the API meter tick. With cc-haha, you open the desktop app instead â a clean interface showing your file tree, a chat pane, and a permission dialog that asks before it touches anything sensitive.
You type: "Refactor the auth module to use JWT refresh tokens, then run the test suite." The agent reads the relevant files, proposes changes, pauses at the permission checkpoint (that's the 樊éć§ĺś â permission control â screen visible in the repo's UI screenshots), and waits for your approval before writing. When the tests pass, it reports back in plain language. You can also schedule this task to run every night at 2am using the built-in scheduled task feature â something the official Claude Code doesn't offer at all.
The desktop app covers Windows, macOS, and Linux. The Computer Use extension (added on top of the leaked base) means the agent can interact with on-screen UI elements, not just files and terminals â a capability Anthropic has been slowly rolling out in paid tiers.
For anyone who wanted Claude Code but found the per-session cost prohibitive, or who needed a white-labeled, self-hosted version they could embed in an internal tool, this project is the most complete open starting point available.
The Insight
The real value here isn't just "free Claude Code." It's the annotated source and the desktop wrapper together. The annotation makes it learnable â you can understand why the agent loops the way it does, how it decides when to ask permission versus act autonomously, and where the token budget logic lives. That understanding is worth money.
If you're a developer or indie maker, this is raw material for a product. On teum, cc-haha could be packaged as an agent (a deployable autonomous coding assistant with a specific workflow pre-configured) or a toolkit (the desktop app bundled with setup guides, permission templates, and scheduling recipes). Think: a pre-configured Claude Code agent for Rails refactoring, or a nightly code-review bot for small teams â things that would otherwise require a $50+/month subscription to a managed AI dev tool.
The scheduled task feature alone closes a gap that paid tools charge for. Cursor Pro runs $20/month. GitHub Copilot Enterprise is $39/user/month. A self-hosted, schedulable coding agent with a permission layer, built from this repo and packaged thoughtfully, is a realistic product at a fraction of that.
The ethical and legal territory of running leaked source is worth flagging honestly: this is a grey area, and Anthropic has not formally authorized redistribution. Anyone building on top of this should watch how the repo evolves and make their own informed call.
If you've already built something on top of Claude Code's architecture â a custom agent, a workflow automation, a specialized coding bot â the infrastructure to sell it across nine languages with Stripe payouts already exists at teum.io/sell. The hard part (the build) is done. The distribution part is one form.
íęľě´ ěě˝
cc-hahaë Anthropicě Claude Code ěě¤ ě˝ë뼟 기ë°ěźëĄ ëĄěťŹěě ě¤í ę°ëĽí AI ě˝ëŠ ěě´ě í¸ě ëë¤. ęłľě ë˛ě ęłź ëŹëŚŹ ë°ě¤íŹí UI, ęśí ě ě´, ě 기 ě¤í(ě¤ěźě¤ë§) 기ëĽě ę°ěśęł ěě´ ëšěŠ ëśë´ ěě´ íěŠí ě ěěľëë¤. ě ěŹí AI ěě´ě í¸ë ěëí ěíŹíëĄě°ëĽź ë§ë¤ě´ëł¸ ě ěë¤ëŠ´, teum.io/sellěě 9ę°ęľě´ ěë ë˛ěęłź Stripe ě ě° ę¸°ë°ěźëĄ ë°ëĄ í매í ě ěěľëë¤.
The annotation makes it learnable â you can understand why the agent loops the way it does, and that understanding is worth money.