Lovcode Cli banner
MarkShawn2020 MarkShawn2020

Lovcode Cli

AI community

Description

We hacked Claude Code open-source, debugged it from scratch, and made it actually work. Full-featured AI coding CLI — your code, your keys, your rules.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Lovcode CLI — Running Opus 4.6

Lovcode CLI

We hacked Claude Code open-source, debugged it from scratch, and made it actually work.
macOS / Linux / Windows (WSL) · Opus 4.6 / Sonnet / Haiku

The Story · Quick Start · What's Different · Features · License


The Story

Claude Code is arguably the best AI coding CLI in the world. But it's closed-source.

Then [claude-code-best](https://github.com/claude-code-best/claude-code) did the insane work of decompiling the entire thing — 43 tools, 100+ commands, 5000-line REPL, multi-provider API, MCP protocol, plugin system — all reverse-engineered from the compiled bundle.

**We took that, and actually made it run.**

It wasn't easy. The decompiled code was riddled with landmines:

  • API 500 errors — The prompt-caching-scope-2026-01-05 beta header sends cache_control.scope:"global" on system prompts. The server rejects this from non-official builds. We had to disable all experimental betas.
  • Empty streaming responses — Opus returns 200 headers but zero events, triggering a non-streaming fallback that sends thinking: {"type":"adaptive"} — which non-streaming doesn't support. We patched adjustParamsForNonStreaming to convert adaptive thinking to budget-based.
  • USER_TYPE: undefined — A build-time constant that was never set, causing User-Agent: (undefined, cli). We inject "external" at runtime.
  • Gates is not defined — A feature-flagged component referenced but never imported. Even wrapped in false ? ... : [], the assignment still evaluated and crashed.
  • Version mismatch — Attribution header checked cc_version, rejecti