AI agent memory and context management for Claude Code.
You need Claude Code installed first.
# macOS/Linux
curl -fsSL https://claude.ai/install.sh | bash
# Verify
claude --versionInstall the Claude Code plugin and let it handle everything:
# 1. Add the plugin
claude plugins add fyrsmithlabs/marketplace
# 2. Run auto-setup in Claude Code
/contextd:installThis automatically:
- Downloads contextd binary (or uses Docker if binary unavailable)
- Configures MCP settings in
~/.claude/settings.json - Validates the setup
Restart Claude Code and you're done!
If you prefer manual control:
Step 1: Install Binary
Choose one:
# Homebrew
brew install fyrsmithlabs/tap/contextd
# Binary Download
# Download from: https://github.com/fyrsmithlabs/contextd/releases/latest
tar -xzf contextd_*.tar.gz
chmod +x contextd ctxd
mv contextd ctxd ~/.local/bin/
# Docker
docker pull ghcr.io/fyrsmithlabs/contextd:latestStep 2: Configure with CLI
ctxd mcp install # Auto-configure MCP settings
ctxd mcp status # Verify configurationOr configure manually by adding to ~/.claude/settings.json:
{
"mcpServers": {
"contextd": {
"type": "stdio",
"command": "contextd",
"args": ["--mcp", "--no-http"]
}
}
}For Docker:
{
"mcpServers": {
"contextd": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-v", "${HOME}/.config/contextd:/root/.config/contextd", "ghcr.io/fyrsmithlabs/contextd:latest", "--mcp", "--no-http"]
}
}
}Restart Claude Code
After adding the config, restart Claude Code. These MCP tools become available:
| Category | Tool | Purpose |
|---|---|---|
| Memory | memory_search |
Find relevant past strategies |
memory_record |
Save new memories | |
memory_feedback |
Rate memory helpfulness | |
memory_outcome |
Report task success/failure | |
memory_consolidate |
Merge related memories | |
| Checkpoint | checkpoint_save |
Save context snapshot |
checkpoint_list |
List available checkpoints | |
checkpoint_resume |
Resume from checkpoint | |
| Remediation | remediation_search |
Find error fix patterns |
remediation_record |
Record new fixes | |
remediation_feedback |
Rate fix helpfulness | |
troubleshoot_diagnose |
AI-powered error diagnosis | |
| Search | semantic_search |
Smart search with grep fallback |
repository_index |
Index repo for semantic search | |
repository_search |
Search indexed code by meaning | |
| Context | branch_create |
Isolate sub-tasks with token budgets |
branch_return |
Return results from branch | |
branch_status |
Check branch progress | |
| Conversation | conversation_index |
Index past conversations |
conversation_search |
Search conversation history | |
| Reflection | reflect_report |
Generate self-reflection report |
reflect_analyze |
Analyze behavioral patterns |
See MCP Tools API Reference for full documentation.
Data stored in ~/.config/contextd/vectorstore/ by default.
# Backup
tar czf contextd-backup.tar.gz ~/.config/contextd/
# Restore
tar xzf contextd-backup.tar.gz -C ~/contextd bundles:
- chromem - Embedded vector database (zero external dependencies)
- FastEmbed - Local ONNX embeddings (no API calls)
Everything runs locally. No external services required.
Optional: Set VECTORSTORE_PROVIDER=qdrant to use external Qdrant instead.