Common issues and solutions for Claude Context Kit.
Run these commands to check your installation:
# Check hooks installed
ls ~/.claude/hooks/
# Check commands installed
ls ~/.claude/commands/
# Check settings configured
cat ~/.claude/settings.json | grep -A 20 "hooks"
# Check daemon files
ls ~/.claude/memory/daemon/
# Test daemon health (if running)
curl http://localhost:8741/healthSymptoms:
- Sessions not appearing in registry
- Memory not being injected
- No handoff files created
Solutions:
-
Check settings.json has hooks configured:
cat ~/.claude/settings.jsonShould contain
"hooks": { "SessionStart": [...], ... } -
Verify hook files exist:
# Unix ls -la ~/.claude/hooks/*.sh # Windows dir %USERPROFILE%\.claude\hooks\*.ps1
-
Check file permissions (Unix):
chmod +x ~/.claude/hooks/*.sh
-
Check PowerShell execution policy (Windows):
Get-ExecutionPolicy # If restricted: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
-
Test hook manually:
# Unix ~/.claude/hooks/session-start.sh # Windows PowerShell & "$env:USERPROFILE\.claude\hooks\session-start.ps1"
Symptoms:
/fork-detectreturns no results- Memory injection not working
- Connection refused errors
Solutions:
-
Check Python version:
python3 --version # Should be 3.8+ -
Install dependencies:
pip install flask sentence-transformers torch
-
Start daemon manually:
cd ~/.claude/memory/daemon python server.py
-
Check for port conflicts:
# Unix lsof -i :8741 # Windows netstat -ano | findstr :8741
-
Try different port: Edit
~/.claude/context-kit/config.json:{ "daemon": { "port": 8742 } }
Symptoms:
- No
<recalled-learnings>in responses - Memories stored but not retrieved
Solutions:
-
Verify daemon is running:
curl http://localhost:8741/health
-
Check database exists:
ls ~/.claude/memory/semantic-memory.db -
Check memories exist:
sqlite3 ~/.claude/memory/semantic-memory.db "SELECT COUNT(*) FROM memories;"
-
Lower recall threshold: Edit
~/.claude/context-kit/config.json:{ "memory": { "minConfidence": 0.30 } }
Symptoms:
/fork-detectshows no matches- "No similar sessions found"
Solutions:
-
Check sessions are indexed:
sqlite3 ~/.claude/memory/semantic-memory.db "SELECT COUNT(*) FROM transcript_chunks;"
-
Run migration for existing sessions:
/migrate-sessions -
Lower similarity threshold: Edit config:
{ "forkDetect": { "minSimilarity": 0.30 } } -
Check session registry:
cat ~/.claude/session-registry.json | head -50
Symptoms:
/resumeshows no pending sessions- Handoff not created after compaction
Solutions:
-
Check handoff directory:
ls ~/.claude/session-handoff/pending/ -
Verify PreCompact hook is registered:
cat ~/.claude/settings.json | grep PreCompact
-
Check for orphaned transcripts:
ls ~/.claude/session-handoff/orphaned/ -
Manually trigger handoff: Run
/post-compactafter seeing compaction message
Symptom: Scripts fail with "file not found" errors
Solution: Ensure paths in settings.json use proper escaping:
{
"hooks": {
"SessionStart": [
{ "command": "powershell.exe -ExecutionPolicy Bypass -File \"C:\\Users\\name\\.claude\\hooks\\session-start.ps1\"" }
]
}
}Symptom: Scripts work in PowerShell but not Git Bash
Solution: The kit uses PowerShell scripts on Windows. Ensure hooks reference .ps1 files, not .sh.
Symptom: Slow embedding generation
Solution: Ensure using Metal acceleration:
{ "embedding": { "device": "mps" } }Symptom: Wrong Python version used
Solution: Specify full path:
/opt/homebrew/bin/python3 -m pip install ...Symptom: Using CPU instead of GPU
Solutions:
-
Check NVIDIA driver:
nvidia-smi
-
Install CUDA toolkit:
# Ubuntu sudo apt install nvidia-cuda-toolkit -
Install PyTorch with CUDA:
pip install torch --index-url https://download.pytorch.org/whl/cu118
If issues persist, try a clean reinstall:
# Backup current config
cp ~/.claude/settings.json ~/.claude/settings.backup.json
cp ~/.claude/context-kit/config.json ~/.claude/context-kit/config.backup.json
# Remove installed components
rm -rf ~/.claude/hooks/session-start*
rm -rf ~/.claude/hooks/pre-compact*
rm -rf ~/.claude/hooks/user-prompt-submit*
rm -rf ~/.claude/hooks/stop*
rm -rf ~/.claude/memory/daemon
rm -rf ~/.claude/context-kit
# Re-run installer
cd claude-context-kit
node install.jsIf you can't resolve an issue:
-
Check existing issues: https://github.com/your-username/claude-context-kit/issues
-
Create new issue with:
- OS and version
- Node.js version (
node -v) - Python version (
python3 --version) - Relevant error messages
- Output of diagnostic commands above
-
Include debug logs: Enable debug mode:
{ "debug": { "enabled": true, "logLevel": "debug" } }