Skip to content

Latest commit

 

History

History
70 lines (58 loc) · 2.42 KB

File metadata and controls

70 lines (58 loc) · 2.42 KB

Claude Code Patch Manifest & Installation Guide

This project maintains a custom-patched version of Claude Code. The following guide explains how to install and sync your local environment.

🚀 Installation & Patching

We use a unified install.sh script to handle the entire setup process.

Prerequisites

  • Bun: Follow the official guide to install Bun.
  • Claude Code Source: You must have the original Claude Code src directory available on your machine.

Setup Instructions

  1. Navigate to the repository root.

  2. 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.
  3. Launch the patched CLI:

    bun run dev

🛠️ Patch Manifest

The following files in the patch/ folder are applied to the codebase during installation.

MODIFIED FILES (System Logic Overrides)

These files override original Claude Code logic (e.g., adding Ollama support, tweaking UI, or skipping auth):

  • src/entrypoints/cli.tsx
  • src/entrypoints/init.ts
  • src/hooks/useDeferredHookMessages.ts
  • src/screens/REPL.tsx
  • src/services/api/client.ts
  • src/services/api/logging.ts
  • src/services/api/withRetry.ts
  • src/services/voice.ts
  • src/utils/context.ts
  • src/utils/debug.ts
  • src/utils/handlePromptSubmit.ts
  • src/utils/model/model.ts
  • src/utils/model/providers.ts
  • src/utils/modifiers.ts

ADDED FILES (New Features & Tooling)

These files provide new functionality or facilitate the build process:

  • .gitignore
  • bunfig.toml
  • docs/ (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.ts
  • src/entrypoints/sdk/ (Types for the SDK)
  • src/ink/global.d.ts.ts
  • src/services/api/ollamaShim.ts (Ollama integration)
  • src/skills/bundled/ (Custom skill manifest)
  • src/tools/ (Tungsten and Workflow tool constants)
  • src/types/connectorText.ts
  • tsconfig.json