Claude Code Integration
Claude Code is Anthropic's official AI coding assistant CLI.
Overview
| Property | Value |
|---|---|
| Tool Name | claude |
| Binary | claude |
| Tier | Paid |
| Capabilities | coding, analysis, complex, tool-use |
| Config Path | ~/.claude/settings.json |
Installation
npm install -g @anthropic-ai/claude-code
Verify installation:
claude --version
Configuration in Murmur
# ~/.mur/config.yaml
tools:
claude:
enabled: true
binary: claude
tier: paid
capabilities: [coding, analysis, complex, tool-use]
flags: [] # Additional flags to pass
When Murmur Routes to Claude
Claude is selected for:
- Complex tasks (complexity ≥ 0.5 in auto mode)
- Architecture work - refactoring, redesign, optimization
- Debugging - complex bug fixing, race conditions
- Tool use - file operations, code execution
- Analysis - code review, security analysis
Sync Features
MCP Servers ✅
mur sync mcp
Syncs MCP server configuration to ~/.claude/settings.json:
}
}
Hooks ✅
mur sync hooks
Claude Code hook events:
| Murmur Event | Claude Event |
|---|---|
UserPromptSubmit | UserPromptSubmit |
Stop | Stop |
BeforeTool | PreToolUse |
AfterTool | PostToolUse |
Patterns ✅
mur learn sync
Patterns are added to Claude's instruction context.
Skills ✅
Skills sync to Claude's custom instructions.
Pattern Extraction
Extract patterns from Claude Code sessions:
mur learn extract --auto
Murmur reads session transcripts from ~/.claude/projects/ and identifies:
- Corrections you made
- Coding standards you enforced
- Explanations you provided
Direct Usage
You can still use Claude directly:
claude "explain this code"
Or through murmur:
mur search "explain this code"
Cost Considerations
Claude Code uses Anthropic API credits. Murmur helps save costs by:
- Routing simple questions to free tools (Gemini)
- Tracking usage in
mur stats - Showing estimated spend
Troubleshooting
Claude Not Found
which claude
# If empty, add npm global bin to PATH:
export PATH="$PATH:$(npm root -g)/../bin"
Authentication Issues
Claude Code requires API key or OAuth:
claude login
Sessions Not Found
Pattern extraction needs access to ~/.claude/projects/. Ensure this directory exists and has session data.
See Also
- Smart Routing - When Claude is selected
- Pattern Extraction - Extract from sessions
- Anthropic Documentation