A self-healing, real-time analytics dashboard that monitors every heartbeat of your Claude Code infrastructure.
All 17 tabs cycling automatically β Overview through Velocity
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β 4,211 382K 89.9K $8.8K 99.8% 17 β
β SESSIONS MESSAGES TOOL CALLS API VALUE CACHE HIT TABS β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β β’ SSE streams every 3 seconds β’ Self-heals on failure β
β β’ SQLite single source of truth β’ 8 LaunchAgent daemons β
β β’ Zero-downtime reloads β’ Autonomous watchdog β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#00ff88', 'primaryTextColor': '#fff', 'primaryBorderColor': '#00ff88', 'lineColor': '#00ff88', 'secondaryColor': '#0a1628', 'tertiaryColor': '#0d1117', 'clusterBkg': '#0d1117', 'clusterBorder': '#00ff88'}}}%%
flowchart TB
subgraph CCC["β‘ CLAUDE COMMAND CENTER β‘"]
direction TB
subgraph PRESENTATION["π₯οΈ PRESENTATION LAYER"]
direction LR
BROWSER["Browser Dashboard\nββββββββββ\n15 Interactive Tabs\nChart.js Visualizations"]
SSE["SSE Live Stream\nββββββββββ\n3s Real-Time Updates\nAuto-Reconnect"]
end
subgraph SERVER["π SERVER LAYER"]
direction LR
API["API Server\nββββββββββ\nThreadingHTTPServer\n12 REST Endpoints"]
STREAMER["DataStreamer\nββββββββββ\nMD5 Change Detection\nBroadcast to Clients"]
end
subgraph INTELLIGENCE["π§ INTELLIGENCE LAYER"]
direction LR
BRAIN["Autonomous Brain\nββββββββββ\nPattern Detection\nAnomaly Alerts"]
INTEL["Intelligence Layer\nββββββββββ\nLeverage Points\nOptimization"]
HEAL["Self-Heal Engine\nββββββββββ\n8 Error Patterns\n89% Recovery Rate"]
end
subgraph DATA["πΎ DATA LAYER"]
direction LR
SQLITE[("SQLite\nclaude.db\nββββββββββ\nSessions β’ Stats\nRouting β’ Events")]
PIPELINE["Data Pipeline\nββββββββββ\nTranscript Scanner\nToken Aggregator"]
end
end
OPERATOR(("π€ OPERATOR"))
OPERATOR <==>|"http://localhost:8766"| BROWSER
BROWSER <-->|"EventSource"| SSE
SSE <--> API
API <--> STREAMER
STREAMER --> SQLITE
API --> SQLITE
BRAIN --> SQLITE
INTEL --> BRAIN
HEAL -.->|"auto-fix"| PIPELINE
PIPELINE -->|"sync"| SQLITE
HEAL -.->|"monitor"| API
subgraph DAEMONS["π§ LAUNCHAGENT DAEMONS"]
WATCHDOG["Watchdog\nββββββββββ\nAlways-On Guardian"]
BOOTSTRAP["Bootstrap\nββββββββββ\nAuto-Start"]
end
WATCHDOG -.->|"keepalive"| API
WATCHDOG -.->|"monitor"| HEAL
BOOTSTRAP -.->|"init"| DAEMONS
style CCC fill:#0d1117,stroke:#00ff88,stroke-width:3px
style PRESENTATION fill:#0a1628,stroke:#00ff88,stroke-width:2px
style SERVER fill:#0a1628,stroke:#00d9ff,stroke-width:2px
style INTELLIGENCE fill:#0a1628,stroke:#ff6b6b,stroke-width:2px
style DATA fill:#0a1628,stroke:#ffd700,stroke-width:2px
style DAEMONS fill:#0a1628,stroke:#9945ff,stroke-width:2px
style OPERATOR fill:#00ff88,stroke:#fff,stroke-width:2px,color:#0d1117
π Self-healing architecture β Every layer monitors the one below it
| # | Tab | Key Metrics | Visual |
|---|---|---|---|
| 1 | Overview | 4.2K sessions, 382K messages, 89.9K tools | Charts + Cards |
| 2 | Memory | 88 knowledge items, 98 unique tags | Donut + Bars |
| 3 | Activity | Daily messages, session heatmap | Time Series |
| 4 | Cost | $8.8K API value, 21.5x ROI, $200/mo sub | Stacked + Gauge |
| 5 | Projects | 19 repos, 10.6K commits, 3.9M LOC | Table + Stats |
| 6 | Commands | 65 commands, 10 categories | Frequency |
| 7 | Routing | 1.2K queries, DQ 0.665, 52.5% savings | Distribution |
| 8 | Co-Evolution | 289 mods, self-improvement tracking | Timeline |
| 9 | Context Packs | 8 packs, 3.7K tokens | Pack Cards |
| 10 | Session Outcomes | 2.8K analyzed, 55.6% success | Pie + Trends |
| 11 | Productivity | 38.5% score, 17.3K writes, 27.6K reads | Bar + Line |
| 12 | Tool Analytics | 89.9K calls, 20 tools, 100% success | Bar + Table |
| 13 | Supermemory | 5K items, 871 learnings, 152 reviews due | Spaced Rep |
| 14 | Cognitive | Flow state, fate prediction, energy map | Line + Heatmap |
| 15 | Infrastructure | 8/8 daemons, 1.2K heals, 89% recovery | Status Grid |
| 16 | Autonomy | Streak detection, longest runs, tool patterns | Timeline + Bars |
| 17 | Velocity | 10D vector field, VAAC signals, composition | Radar + Line |
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#00ff88', 'primaryTextColor': '#fff', 'lineColor': '#00d9ff', 'secondaryColor': '#0a1628', 'tertiaryColor': '#0d1117'}}}%%
flowchart LR
T["π Session\nTranscripts"] --> FIX["π§ fix-all-dashboard-data.py\nScan + Aggregate"]
FIX --> SYNC["π sqlite-to-jsonl-sync.py\nBridge Layer"]
SYNC --> SQL["ποΈ ccc-sql-data.py\nExport JSON"]
SQL --> GEN["βοΈ ccc-generator.sh\nRender 505K HTML"]
GEN --> API["π ccc-api-server.py\nServe Live + SSE"]
API --> BROWSER["π₯οΈ Browser\nReal-Time Dashboard"]
style T fill:#1a1a2e,stroke:#00ff88,color:#fff
style FIX fill:#1a1a2e,stroke:#00d9ff,color:#fff
style SYNC fill:#1a1a2e,stroke:#00d9ff,color:#fff
style SQL fill:#1a1a2e,stroke:#00d9ff,color:#fff
style GEN fill:#1a1a2e,stroke:#ffd700,color:#fff
style API fill:#1a1a2e,stroke:#00ff88,color:#fff
style BROWSER fill:#00ff88,stroke:#fff,color:#0d1117
π‘ Transcript to dashboard in 5 pipeline stages β SQLite is the single source of truth
The system that fixes itself before you notice anything is broken
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SELF-HEALING ARCHITECTURE β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β WATCHDOG βββββΆβ SELF-HEAL βββββΆβ BOOTSTRAP βββββΆβ AUTOPILOT β β
β β β β ENGINE β β β β β β
β β Always-On β β 8 Patterns β β Daemon Mgmt β β Autonomous β β
β β 60s Checks β β Auto-Fix β β LaunchAgent β β Operations β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β PROTECTION LAYERS β β
β β β β
β β L1: Watchdog ββmonitorβββΆ L2: KeepAlive ββrestartβββΆ L3: Bootstrap β β
β β L4: Wake Hook ββtriggerβββΆ L5: Self-Heal ββdeep scan every 6hβββΆ Fix β β
β β β β
β β 1,195 Runs β’ 89% Recovery β’ 3 Auto-Healed (24h) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Layer | Component | Interval | Capability |
|---|---|---|---|
| 1 | Watchdog | 60s | Monitors all daemons, restarts failures |
| 2 | KeepAlive | launchd | OS-level auto-restart via LaunchAgent |
| 3 | Bootstrap | Login | Ensures entire infrastructure is alive |
| 4 | Wake Hook | Sleep | Triggers bootstrap after system wake |
| 5 | Self-Heal | 6h | Deep health scan, 8 error patterns, auto-fix |
Full installation from a fresh clone
Prerequisites: Python 3.12+, macOS (for LaunchAgent), SQLite 3
# 1. Clone
git clone https://github.com/Dicoangelo/claude-command-center.git
cd claude-command-center
# 2. Install dev dependencies
python3 -m venv .venv && source .venv/bin/activate
pip install -e '.[dev]'
# 3. Create symlinks (scripts β ~/.claude/scripts/)
for f in scripts/ccc-*.py scripts/ccc-*.sh; do
ln -sf "$(pwd)/$f" ~/.claude/scripts/$(basename "$f")
done
# 4. Initialize the database
sqlite3 ~/.claude/data/claude.db < config/schema.sql
# 5. Generate the dashboard
make generate
# 6. Start the server
make serve
# β http://localhost:8766/dashboard
# 7. (Optional) Install LaunchAgent for always-on mode
cp deploy/com.claude.api-server.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/com.claude.api-server.plist# Live dashboard (syncs data + starts server + opens browser)
ccc-live
# Static dashboard (generates HTML file)
ccc
# Server only
python3 scripts/ccc-api-server.py --port 8766
# Health check
curl http://localhost:8766/api/healthmake help # Show all targets
make test # Run test suite (138 tests)
make lint # Lint with ruff
make typecheck # Type check with mypy
make backup # Backup SQLite database
make all # Lint + format + typecheck + testGET /dashboard # Live dashboard with injected SSE client
GET /api/stream # SSE event stream (real-time updates)
GET /api/stats # Session stats and usage data
GET /api/cost # Cost data and savings
GET /api/routing # Routing metrics and DQ scores
GET /api/sessions # Session outcomes
GET /api/tools # Tool usage statistics
GET /api/git # Git activity metrics
GET /api/health # System health check
GET /api/fate # Cognitive fate predictions
GET /api/cognitive # Cognitive OS state
GET /api/memory/stats # Memory store statistics
POST /api/memory/query # Query across all memory stores# Self-heal engine (8 error patterns, auto-fix)
python3 scripts/ccc-self-heal.py
# Watchdog guardian (60s health checks)
python3 scripts/ccc-watchdog.py
# Bootstrap all daemons
bash scripts/ccc-bootstrap.sh
# Quick status check
bash scripts/ccc-status.sh
# Autonomous brain (pattern detection)
python3 scripts/ccc-autonomous-brain.py
# Intelligence layer (leverage points)
python3 scripts/ccc-intelligence-layer.py| Layer | File | Size | Purpose |
|---|---|---|---|
| π₯οΈ | dashboard/claude-command-center.html |
505K | 17-tab generated dashboard |
| π | scripts/ccc-api-server.py |
26K | Live server + SSE streaming |
| βοΈ | scripts/ccc-generator.sh |
78K | Static HTML generator |
| ποΈ | scripts/ccc-sql-data.py |
23K | SQLite β JSON exporter |
| π§ | scripts/fix-all-dashboard-data.py |
34K | Transcript scanner + aggregator |
| π | scripts/sqlite-to-jsonl-sync.py |
5K | SQLite β JSONL bridge |
| π | scripts/integrate-untracked-data.py |
12K | Untracked data integration |
| π | scripts/dashboard-sql-loader.py |
12K | SQL data loader |
| π§ | scripts/ccc-autonomous-brain.py |
26K | Pattern detection + anomalies |
| π‘ | scripts/ccc-intelligence-layer.py |
20K | Leverage point analysis |
| π‘οΈ | scripts/ccc-self-heal.py |
36K | Self-healing engine (8 patterns) |
| ποΈ | scripts/ccc-watchdog.py |
5K | Always-on guardian |
| π€ | scripts/ccc-autopilot.py |
6K | Autonomous operations |
| π | scripts/ccc-migrate-to-sqlite.py |
9K | Migration tooling |
| π | scripts/ccc-bootstrap.sh |
1K | Daemon bootstrap |
| π | scripts/ccc-status.sh |
3K | Quick health check |
| πΎ | config/datastore.py |
16K | SQLite ORM layer |
| π | config/schema.sql |
14K | Database schema (20 tables, 42 indexes, 6 views) |
| πΏ | scripts/ccc-backup.py |
3K | SQLite backup with rotation |
| π§ | deploy/com.claude.api-server.plist |
<1K | LaunchAgent daemon config |
| π§ͺ | tests/ |
12K | 138 tests (API, SQL data, self-heal, datastore, backup) |
# 1. Copy LaunchAgent plist
cp deploy/com.claude.api-server.plist ~/Library/LaunchAgents/
# 2. Load the daemon (auto-starts, auto-restarts)
launchctl load ~/Library/LaunchAgents/com.claude.api-server.plist
# 3. Verify
curl http://localhost:8766/api/health
# β {"status": "healthy", "daemons_count": 12}
|
Server won't start
Port 8766 may be in use. Kill the stale process and retry:
lsof -ti:8766 | xargs kill -9
python3 scripts/ccc-api-server.pyDashboard shows stale data
Regenerate from SQLite:
make fix-data # Scan transcripts β SQLite
make generate # Regenerate HTML from SQLiteSSE not connecting (LIVE indicator stays yellow/red)
- Verify the server is running:
curl http://localhost:8766/api/health - Check browser console for CORS errors
- SSE only works over HTTP β opening the HTML file directly (
file://) shows STATIC mode
ROI numbers look wrong
Verify pricing matches Anthropic's current rates:
python3 -c "from pricing import PRICING; print(PRICING)"
# Should show: opus input=$5/MTok, output=$25/MTok, cache=$0.50/MTokIf wrong, update ~/.claude/config/pricing.py.
LaunchAgent not starting
# Unload and reload
launchctl unload ~/Library/LaunchAgents/com.claude.api-server.plist
launchctl load ~/Library/LaunchAgents/com.claude.api-server.plist
# Check logs
tail -20 /tmp/ccc-api-server.logDatabase locked
SQLite WAL mode supports concurrent reads but only one writer. Check for stale connections:
fuser ~/.claude/data/claude.db 2>/dev/null
# Kill stale processes if neededπ€ Build Log (click to expand)
| Date | Action | Outcome |
|---|---|---|
| 2026-02-14 | Engineering hardening | 42 tests, CI/CD, pyproject.toml, schema.sql, Makefile, type hints, backup script |
| 2026-02-14 | ROI fix + UI polish | Cost tab pricing fix, live /api/cost, nav overflow, text clamp |
| 2026-02-13 | Cost model overhaul | Token-level pricing ($200/mo sub), symlink consolidation, README accuracy |
| 2026-02-12 | Live SSE streaming | Real-time dashboard with 3s updates, LIVE indicator |
| 2026-02-12 | Token pipeline fix | Backfilled daily_stats from sessions table (79 rows) |
| 2026-02-12 | Recovery data fix | Mapped SQLite Row objects to proper JS format |
| 2026-02-12 | 17-tab audit | All tabs verified clean (zero undefined/NaN/Invalid Date) |
| 2026-02-12 | Private repo created | 20 files, 16,613 lines committed |
| 2026-01-31 | Self-healing engine | 8 error patterns, 89% recovery rate |
| 2026-01-29 | Autonomous brain | Pattern detection + anomaly alerts |
| 2026-01-21 | SQLite migration | Replaced JSONL files with unified database |
| 2026-01-19 | Intelligence layer | Leverage point analysis |
| 2026-01-17 | 17-tab dashboard | Full analytics suite with Chart.js |
| 2026-01-14 | Initial API server | REST endpoints on port 8766 |
| 2026-01-09 | Watchdog + Bootstrap | LaunchAgent daemon infrastructure |
Architecture: Built entirely with Claude Code (Opus 4.6) β sovereign AI infrastructure monitoring sovereign AI infrastructure.


























