This project maintains a custom-patched version of Claude Code. The following guide explains how to install and sync your local environment.
We use a unified install.sh script to handle the entire setup process.
- Bun: Follow the official guide to install Bun.
- Claude Code Source: You must have the original Claude Code
srcdirectory available on your machine.
-
Navigate to the repository root.
-
Run the unified installer:
./install.sh /path/to/original/claude/src
This script will:
- Prompt for the source path if not provided.
- Apply files from the
patch/directory to the root. - Install dependencies via
bun install. - Run the local module stubber (
npm run stub) to prepare the environment.
-
Launch the patched CLI:
bun run dev
The following files in the patch/ folder are applied to the codebase during installation.
These files override original Claude Code logic (e.g., adding Ollama support, tweaking UI, or skipping auth):
src/entrypoints/cli.tsxsrc/entrypoints/init.tssrc/hooks/useDeferredHookMessages.tssrc/screens/REPL.tsxsrc/services/api/client.tssrc/services/api/logging.tssrc/services/api/withRetry.tssrc/services/voice.tssrc/utils/context.tssrc/utils/debug.tssrc/utils/handlePromptSubmit.tssrc/utils/model/model.tssrc/utils/model/providers.tssrc/utils/modifiers.ts
These files provide new functionality or facilitate the build process:
.gitignorebunfig.tomldocs/(various documentation files)package.json(Custom dependencies)scripts/create_launcher.sh(Global CLI launcher setup)scripts/deep-sweep-stubber.ts(Dynamic module stubbing)scripts/sync-public.sh(Sync utility for public repo)src/@anthropic-ai/sandbox-runtime.tssrc/entrypoints/sdk/(Types for the SDK)src/ink/global.d.ts.tssrc/services/api/ollamaShim.ts(Ollama integration)src/skills/bundled/(Custom skill manifest)src/tools/(Tungsten and Workflow tool constants)src/types/connectorText.tstsconfig.json