website/docs/getting-started/ide-setup.md
Configure your IDE for optimal beads integration.
The recommended approach for Claude Code:
# Setup Claude Code integration
bd setup claude
This installs:
bd prime when Claude Code startsbd dolt push before context compactionHow it works:
bd prime automaticallybd prime injects ~1-2k tokens of workflow contextbd CLI commands directlyVerify installation:
bd setup claude --check
If you prefer manual configuration, add to your Claude Code hooks:
{
"hooks": {
"SessionStart": ["bd prime"],
"PreCompact": ["bd dolt push"]
}
}
# Setup Cursor integration
bd setup cursor
This creates .cursor/rules/beads.mdc with beads-aware rules.
Verify:
bd setup cursor --check
# Setup Aider integration
bd setup aider
This creates/updates .aider.conf.yml with beads context.
Verify:
bd setup aider --check
For VS Code with GitHub Copilot, use the MCP server:
# Install MCP server
uv tool install beads-mcp
Create .vscode/mcp.json in your project:
{
"servers": {
"beads": {
"command": "beads-mcp"
}
}
}
For all projects: Add to VS Code user-level MCP config:
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/Code/User/mcp.json |
| Linux | ~/.config/Code/User/mcp.json |
| Windows | %APPDATA%\Code\User\mcp.json |
{
"servers": {
"beads": {
"command": "beads-mcp",
"args": []
}
}
}
Initialize beads and reload VS Code:
bd init --quiet
See GitHub Copilot Integration for detailed setup.
bd primeAll integrations use bd prime to inject context:
bd prime
This outputs a compact (~1-2k tokens) workflow reference including:
Why context efficiency matters:
For MCP-only environments (Claude Desktop, no shell access):
# Install MCP server
pip install beads-mcp
Add to Claude Desktop config:
{
"mcpServers": {
"beads": {
"command": "beads-mcp"
}
}
}
Trade-offs:
See MCP Server for detailed configuration.
Ensure git hooks are installed for auto-sync:
bd hooks install
This installs:
Check hook status:
bd info # Shows warnings if hooks are outdated
Run a complete health check:
# Check version
bd version
# Check project health
bd doctor
# Check hooks
bd hooks status
# Check editor integration
bd setup claude --check # or cursor, aider