Diagnose
System health check for Claudia's memory infrastructure. Run this when:
- •Memory tools seem unavailable
- •Session context isn't loading
- •User asks "is my memory working?"
- •Something feels off with persistence
Process
Step 1: Check MCP Tool Availability
First, verify what memory tools are available:
List your available tools that start with "memory."
Expected tools:
- •
memory.session_context - •
memory.remember - •
memory.recall - •
memory.about - •
memory.entity - •
memory.relate - •
memory.file - •
memory.batch - •
memory.end_session - •
memory.buffer_turn - •
memory.reflections - •
memory.predictions - •
memory.consolidate
If NO memory tools appear, the daemon isn't connected via MCP.
Step 2: Test Memory Connection
If tools are available, try a simple operation:
Call memory.session_context with no arguments
Possible outcomes:
- •Success with context: Memory system fully operational
- •Success but empty: Working but no data yet (new install)
- •Error/timeout: Daemon running but unhealthy
- •Tool not found: MCP connection broken
Step 3: Check Daemon Process
Run bash diagnostics:
# Check if daemon process is running ps aux | grep claudia_memory | grep -v grep # Check health endpoint curl -s http://localhost:3848/health || echo "Health endpoint not responding" # Check recent daemon logs tail -20 ~/.claudia/daemon-stderr.log 2>/dev/null || echo "No daemon log found" # Check database exists and has data ls -la ~/.claudia/memory/*.db 2>/dev/null || echo "No database found" sqlite3 ~/.claudia/memory/claudia.db "SELECT COUNT(*) as memories FROM memories; SELECT COUNT(*) as entities FROM entities;" 2>/dev/null || echo "Cannot query database"
Step 4: Report Results
Format the diagnosis as:
--- **Memory System Diagnosis** | Component | Status | Details | |-----------|--------|---------| | MCP Tools | ✅/❌ | [count] tools available | | Daemon Process | ✅/❌ | [PID or "not running"] | | Health Endpoint | ✅/❌ | [response or error] | | Database | ✅/❌ | [path, size, record counts] | | Session Context | ✅/❌ | [loaded or error] | **Overall:** [Healthy / Degraded / Not Connected] [If issues found, provide specific fix instructions] ---
Common Issues and Fixes
Issue: No memory tools available
Cause: MCP server not configured or not started
Fix:
- •Check
.mcp.jsonexists and has claudia_memory configured - •Restart Claude Code to reload MCP configuration
- •Check
~/.claudia/daemon-stderr.logfor startup errors
Issue: Daemon not running
Cause: Daemon crashed or was never started
Fix:
# Start the daemon manually cd ~/.claudia/daemon && source venv/bin/activate python -m claudia_memory & # Or reinstall cd [claudia-install-dir] && ./memory-daemon/scripts/install.sh
Issue: Health endpoint not responding
Cause: Python 3.14 compatibility issue (fixed in v1.21.1+) or daemon crashed after startup
Fix:
- •Check daemon logs:
tail -50 ~/.claudia/daemon-stderr.log - •Look for "RuntimeError" or "event loop" errors
- •Update to latest Claudia version:
npx get-claudia .
Issue: Database empty or missing
Cause: Fresh install or database corruption
Fix:
- •If fresh install: Normal, database populates as you use Claudia
- •If was working before: Check for database file, may need to restore from backup
Issue: MCP tools available but calls fail
Cause: Daemon process exists but is unhealthy
Fix:
- •Kill the old process:
pkill -f claudia_memory - •Restart Claude Code (this restarts the MCP server)
- •Check logs for specific errors
Automatic Recovery
If the daemon needs restart and user confirms:
# Kill any existing daemon pkill -f claudia_memory 2>/dev/null # Wait for cleanup sleep 2 # Verify it's stopped ps aux | grep claudia_memory | grep -v grep && echo "Still running, may need manual kill"
Then instruct user to restart Claude Code, which will spawn a fresh daemon via MCP.