Get decision graph memory running in 5 minutes using Claude Code.
- AI Counsel MCP server installed and configured in
~/.claude/config/mcp.json - At least one adapter working (Claude, Codex, etc.)
- Claude Code with MCP support enabled
- Write access to AI Counsel project directory
Edit config.yaml in your AI Counsel directory:
decision_graph:
enabled: true
db_path: "decision_graph.db"
similarity_threshold: 0.7
max_context_decisions: 3
compute_similarities: trueSave and restart Claude Code (or reload the MCP server).
In Claude Code, use the deliberate MCP tool:
Use the mcp__ai-counsel__deliberate tool with:
- question: "Should we use REST or GraphQL for our API?"
- participants: [
{"cli": "claude", "model": "opus"},
{"cli": "codex", "model": "gpt-5-codex"}
]
- rounds: 3
Expected: Deliberation completes and transcript saved to transcripts/ directory.
Use the query_decisions MCP tool:
Use the mcp__ai-counsel__query_decisions tool with:
- query_text: "API design"
- threshold: 0.5 # NEW! Adjust sensitivity (0.0-1.0, default 0.6)
- limit: 5
Threshold Guide:
- 0.3-0.5: Exploratory (more results, less precision)
- 0.5-0.7: Balanced (recommended)
- 0.7-0.9: High precision (fewer but more relevant)
Expected: Returns your stored decision with similarity score:
{
"type": "similar_decisions",
"count": 1,
"results": [
{
"id": "dec_abc123",
"question": "Should we use REST or GraphQL for our API?",
"consensus": "GraphQL recommended for flexible client queries...",
"score": 0.92,
"participants": ["claude/opus", "codex/gpt-5-codex"]
}
]
}Run a related deliberation to see context injection in action:
Use the mcp__ai-counsel__deliberate tool with:
- question: "What authentication should we use for the API?"
- participants: [
{"cli": "claude", "model": "opus"},
{"cli": "codex", "model": "gpt-5-codex"}
]
- rounds: 3
Check the generated transcript in transcripts/ - look for the "Decision Graph Context" section at the top. It should include:
## Decision Graph Context (Retrieved from Memory)
Found 1 similar past decision(s):
### 1. Should we use REST or GraphQL for our API? (similarity: 0.78)
**Consensus**: GraphQL recommended for flexible client queries...
**Participants**: claude/opus, codex/gpt-5-codexThis proves the system remembered your first decision and injected it as context!
No context injected in Step 4?
- Check
mcp_server.logfor "Decision Graph Context" messages - Wait 15-30 seconds after Step 2 (background similarity computation)
- Lower threshold in config:
similarity_threshold: 0.5 - Verify database exists: check for
decision_graph.dbin AI Counsel directory
query_decisions tool not available?
- Confirm
decision_graph.enabled: trueinconfig.yaml - Restart Claude Code to reload MCP server
- Check
mcp_server.logfor initialization errors
Decision not stored after Step 2?
- Check
mcp_server.logfor storage errors - Verify write permissions on project directory
- Run
ls -la decision_graph.dbto confirm file created
MCP tool not found?
- Verify MCP server configured in
~/.claude/config/mcp.json - Check MCP server is running: look for "ai-counsel" in MCP tools list
- Restart Claude Code
- Configuration Reference: Tune performance and thresholds
- Troubleshooting: Debug common issues
- Deployment Guide: Production setup with monitoring