Open Claude Code
Open Source Claude Code CLI — Reverse Engineered & Rebuilt

An open source implementation of Anthropic's Claude Code CLI,
built from decompiled source intelligence using ruDevolution.
Release automation: The nightly workflow gates publication on source validation, tests, AI analysis, and registry checks. A successful run is the evidence of completion; failed runs do not advance checkpoints. Capability proposals require review before implementation. See the release workflow and ADR-004.
⚡ Quick Start
# Run instantly (no install)
npx @ruvnet/open-claude-code "explain this codebase"
# Or install globally
npm install -g @ruvnet/open-claude-code
occ "hello"
# Interactive mode
occ
Requires: ANTHROPIC_API_KEY environment variable set.
export ANTHROPIC_API_KEY=sk-ant-...
npx @ruvnet/open-claude-code "what files are in this directory?"
Skills and Claude Code plugin
Three shared skills cover CLI usage, diagnosis, and release verification. Choose one installation method to avoid duplicate skills.
Install with npx skills
The tested skills installer requires Node 22.20 or newer (Node 24 recommended). OCC itself requires Node 20 or newer.
npx [email protected] add ruvnet/open-claude-code --agent claude-code --skill occ-use occ-diagnose occ-verify-release
OCC 2.1.2 also loads these project skills from .claude/skills, including the installer's symlinks. Project skills override user skills. Invoke them with OCC's Skill tool or slash commands.
Install the native Claude Code plugin
In Claude Code:
/plugin marketplace add ruvnet/open-claude-code
/plugin install occ@ruvnet-occ
/occ:occ-use
/occ:occ-diagnose
/occ:occ-verify-release
Restart Claude Code after installation if the current session has not loaded the new skills.
claude plugin update occ@ruvnet-occ
claude plugin uninstall occ@ruvnet-occ
The occ plugin uses the same skills/ sources. It installs no hooks, MCP servers, credentials, or background processes. It guides use of the separately published CLI. This native Claude Code package does not imply compatibility between OCC's custom PluginLoader and all third party Claude plugins.
Reproduce installation tests
# From a repository checkout, with Node 24 and Claude Code installed:
node scripts/plugin-e2e.mjs
# Test public GitHub distribution after publishing:
node scripts/plugin-e2e.mjs ruvnet/open-claude-code
The suite installs and removes real skills and plugins in disposable profiles, checks all three Claude skill expansions with a local model fixture, and verifies OCC discovery. Live provider behavior is tested separately by scripts/live-package-e2e.mjs. Tested installer: skills 1.7.2; Claude Code: 2.1.283.
Upstream behavior fixes in 2.1.3
Implemented and tested against the public Claude Code 2.1.295 and 2.1.296 changelog:
| Behavior | OCC support |
|---|
| Hook failure policy | Command and HTTP hooks honor onFailure: "block"; exit 2 vetoes execution |
| PreToolUse veto | continue: false and structured deny block the call and return an error result to the next model turn |
| PostToolUse MCP output | updatedMCPToolOutput replaces results for MCP tool names |
| Large text reads | Read.allow_large: true bypasses the implicit 2,000 line limit; explicit offset/limit remain active |
| Encoding safety | Edit, MultiEdit and NotebookEdit reject invalid UTF8 before any write |
| Delegation safety | Child tools intersect parent tools and inherit permission checks and hooks |
| Model call budget | --max-turns limits model requests, including tool continuations |
Large text reads have hard ceilings of 16 MiB and 100,000 lines. HTTP hook responses have a 1 MiB limit. Typed hook timeouts use seconds; legacy flat hook timeouts retain milliseconds. Plain command stdout remains supported.