Claude Code Rev is a restored source tree reconstruction of Claude Code that runs in a local development workflow using Bun.
The project addresses the problem that source maps alone cannot fully reconstruct a repository, as they typically omit type-only files, build-time generated files, private package wrappers, native bindings, dynamic imports, and resource files. The tool fills these gaps by replacing unrecoverable pieces with compatibility shims and degraded implementations, allowing the codebase to install and run. The restoration includes recovered CLI bootstrap paths, bundled skill content for claude-api and verify commands, compatibility layers for Chrome MCP and Computer Use MCP with realistic tool catalogs, and fallback prompts for planning and permission-classifier flows. Remaining gaps consist primarily of private or native integrations that could not be recovered from source maps.
This project suits developers who need a working Claude Code runtime in their local environment and want to experiment with or extend the codebase. It requires Bun 1.3.5 or newer and Node.js 24 or newer. The restored CLI supports multiple inference providers through GitHub-backed endpoints, specifically GitHub Models and GitHub Copilot, with authentication handled through environment variables or the GitHub CLI. Users can switch providers interactively within the CLI using the /provider command or select specific models with /model, with the tool filtering available options based on the active provider.
Development activity shows active restoration work beyond the initial source-map import, with recent efforts recovering CLI bootstrap paths, rewriting bundled skill content from placeholders into usable reference documentation, and replacing empty stub implementations with working fallback prompts. The project acknowledges that some modules still contain restoration-time fallbacks, meaning behavior may differ from the original Claude Code implementation, and private or native integrations remain in shim or reduced-behavior states where source maps provided insufficient information for full recovery.