mc — Morph Code
A compiled fork of Claude Code with WarpGrep semantic code search, multi-provider LLM support, and subagent orchestration. Ships as a single native binary per platform.
Install
curl -fsSL subagents.com/install | bash
Or with npm:
npm install -g @morphllm/morphcode
Usage
mc
mc -p "refactor the auth module"
mc -p "explain this codebase" --print
mc --model claude-sonnet-4-6
mc --model opus
mc agents
What's different from Claude Code
WarpGrep agent — Semantic code search powered by Morph. The warpgrep subagent understands code structure, not just text patterns. Always registered alongside Explore and Plan.
Compiled binary — Ships as a native Mach-O / ELF binary (like Claude Code itself). Starts instantly, no runtime dependencies.
Multi-provider LLM — Set PI_ENGINE=on to route through OpenAI, Google, Mistral, or any provider supported by pi-ai.
Explore & Plan agents — Always enabled. The Explore agent prefers WarpGrep over regex grep when available.
Agents
$ mc agents
6 active agents
Built-in agents:
Explore · haiku — Fast codebase exploration
Plan · inherit — Architecture and implementation planning
warpgrep · haiku — Semantic code search via Morph
general-purpose · inherit — Research, code search, multi-step tasks
claude-code-guide · haiku — Questions about features and usage
statusline-setup · sonnet — Configure status line
Environment variables
ANTHROPIC_API_KEY | Yes (or OAuth via mc auth login) | Anthropic API access |
MORPH_API_KEY | No | Enables WarpGrep and FastApply tools |
OPENAI_API_KEY | No | For PI_ENGINE multi-provider mode |
GOOGLE_API_KEY | No | For PI_ENGINE multi-provider mode |
PI_ENGINE | No | Set to on to route LLM calls through pi-ai |
Platform binaries
Published to npm as platform-specific packages:
| macOS Apple Silicon | @morphllm/morphcode-darwin-arm64 |
| macOS Intel | @morphllm/morphcode-darwin-x64 |
| Linux x64 | @morphllm/morphcode-linux-x64 |
| Linux arm64 | @morphllm/morphcode-linux-arm64 |
| Windows x64 | @morphllm/morphcode-windows-x64 |
Development
cd packages/subagent-cli
bun run --preload ./stubs/globals.ts ./src/entrypoints/cli.tsx
bun build --compile _entry.ts --outfile dist/mc --target bun
npx vitest --run
bun run --preload ./stubs/globals.ts ./src/entrypoints/cli.tsx agents
Architecture
Built on Claude Code v2.1.88 source, compiled to a native binary via bun build --compile.
Key modifications:
src/tools/AgentTool/built-in/warpGrepAgent.ts — WarpGrep subagent
src/tools/WarpGrepTool/WarpGrepTool.ts — WarpGrep as a Claude Code Tool
src/tools/AgentTool/builtInAgents.ts — Explore/Plan always enabled, warpgrep registered
src/engine/ — Pi-mono integration layer for multi-provider LLM
src/query/deps.ts — LLM call routing (Anthropic default, pi-ai when PI_ENGINE=on)
stubs/ — Build-time stubs for unavailable Anthropic-internal packages
.github/workflows/publish-morphcode.yml — Multi-platform binary build and npm publish