57dc91585d
Internal SmartGift build of a Claude Code monitoring dashboard. Lanes: a durable unit of parallel agent work, one per working directory, tracked across session restarts. Managed lanes are git worktrees the dashboard provisions and can reset or remove behind a three-check destroy guard and a counted preflight; adopted lanes are directories you already own and are never destroyable. Pipelines: a lane moves through pipeline stages. A stage the agent declares with evidence renders green; a stage inferred from the tool-event stream renders dashed amber and never counts as done. Detection is forward-only within a 30-minute window, and never writes the declared stage. Workspace: one page at /run with a lane grid, the selected lane's pipeline, and a full Claude console behind a disclosure.
31 lines
825 B
Markdown
31 lines
825 B
Markdown
---
|
|
description: One-line Agent Monitor health + counts summary from /api/stats
|
|
---
|
|
|
|
Fetch the dashboard stats and print a single-line health summary.
|
|
|
|
Run:
|
|
|
|
```bash
|
|
curl -s -m 5 http://localhost:4820/api/stats
|
|
```
|
|
|
|
Then print exactly one line summarizing health and key counts from the JSON,
|
|
in this shape:
|
|
|
|
```
|
|
✅ UP | 127 sessions | 3 active | 1 agents | 4,892 events | 42 today | 2 ws
|
|
```
|
|
|
|
Pull the numbers from these fields: `total_sessions`, `active_sessions`,
|
|
`active_agents`, `total_events`, `events_today`, `ws_connections`.
|
|
|
|
If the `curl` command fails (non-zero exit, empty body, or unparseable JSON),
|
|
print instead:
|
|
|
|
```
|
|
❌ DOWN | dashboard not reachable at http://localhost:4820 — start it with `npm start` from the repo root
|
|
```
|
|
|
|
Do not modify any data. Output only the single summary line — no preamble.
|