--- name: monitor description: Monitor all Claude instances, AI tool status, and system health across accounts. Shows active sessions, token usage, mesh node health, and integration status. allowed-tools: Bash, Read, Grep, Glob --- # /monitor — CoM System Monitor Real-time status of all AI tools, Claude instances, and infrastructure. ## Panels: ### 1. Claude Code Sessions (All Instances) - Check session.log for recent activity: `tail -20 ~/.claude/session.log` - Check active VS Code Claude instances: `powershell.exe -Command "Get-Process code -ErrorAction SilentlyContinue | Select ProcessName, Id, StartTime"` - Check Brave Claude extension: `powershell.exe -Command "Get-Process brave -ErrorAction SilentlyContinue | Measure-Object | Select Count"` - Check WSL Claude sessions: `wsl -d ParrotOS -- bash -c "ps aux | grep claude | grep -v grep"` - Check VS Code tunnel status: `powershell.exe -Command "code tunnel status 2>&1"` ### 2. AI Tool Status Check each tool's process/state: - **Claude Code (primary)**: VS Code extension active? Session log recent? - **Claude Brave Extension**: Browser extension running? Check Brave process count. - **Kilo Code v5.10.4**: Extension loaded? `powershell.exe -Command "& '\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd' --list-extensions | Select-String kilo"` - **GitHub Copilot (gpt-4.1)**: Extension loaded? `powershell.exe -Command "& '\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd' --list-extensions | Select-String copilot"` - **Gemini (Archivist)**: Check `~/.gemini/` OAuth validity and last activity timestamp. ### 3. MCP Server Health For each configured MCP server, report: - slack: SLACK_BOT_TOKEN set? `echo ${SLACK_BOT_TOKEN:+OK}` - github: GITHUB_TOKEN set? `echo ${GITHUB_TOKEN:+OK}` - brave-search: BRAVE_API_KEY set? `echo ${BRAVE_API_KEY:+OK}` - filesystem-synos: X: drive accessible? `ls " Lib/stuff/Development/Syn_OS{Master Repo}" >/dev/null 2>&1 && echo OK` - memory, sequential-thinking, context7, playwright, desktop-commander: NPX available? `which npx` ### 4. ARCANUM Mesh + Tailscale - Tailscale peers: `tailscale status` (or `powershell.exe -Command "tailscale status"`) - Expected nodes: - () — this PC - oracle () — laptop - () — linux node - VS Code tunnel: `` — check if service is running - SSH readiness: `powershell.exe -Command "Get-Service sshd -ErrorAction SilentlyContinue | Select Status"` ### 5. System Resources Quick health: disk free, memory usage, CPU load, top processes. - Disk: `powershell.exe -Command "Get-PSDrive C,X -ErrorAction SilentlyContinue | Select Name,Used,Free"` - Memory: `powershell.exe -Command "(Get-CimInstance Win32_OperatingSystem | Select FreePhysicalMemory,TotalVisibleMemorySize)"` - Top processes: `powershell.exe -Command "Get-Process | Sort-Object WorkingSet64 -Descending | Select-Object -First 10 Name,@{N='MB';E={[math]::Round($_.WorkingSet64/1MB)}}"` ### 6. Account Status - **Primary (diablo)**: This session — check session.log timestamps, token usage if available - **Aux (aux)**: Check if concurrent sessions exist via Brave extension - **Billing**: Both are Pro subscriptions. Primary has Max access (tax return sprint). - **Cross-account**: Centralize all work products into primary Notion workspace ### 7. Agent Ecosystem Health - Total agents: 20 (verify `ls ~/.claude/agents/ | wc -l`) - Skills: 16 (verify `ls ~/.claude/skills/ | wc -l`) - A2A registry: `cat ~/.claude/a2a/agent-cards.json | python3 -m json.tool | grep '"name"' | wc -l` - Constitution: `test -f ~/.claude/a2a/constitution.md && echo OK` - HEARTBEAT: `test -f ~/.claude/HEARTBEAT.md && echo OK` ## Output Format Compact dashboard with status indicators per panel: - [OK] = healthy - [WARN] = degraded or missing optional component - [FAIL] = critical component down - [N/A] = not applicable or not configured