/Catalogue/Prompt/hoangsonww/hoangsonww-claude-code-agent-monitor-live-watch

Origin: github

live-watch

Polls the Agent Monitor /api/stats endpoint several times over a short window and reports the live deltas in active_sessions, active_agents, events_today, and ws_connections so you can see activity moving in real time. Use when watching the dashboard for live changes rather than a one-time snapshot.

by hoangsonww · updated 21h ago · imported from GitHub

Installs0+0/7d
Security score0/100
Retention 14d0%
GitHub stars1K

Skill logic

Execution graph
User message
Prompt rewrites behaviour
Response

SKILL.md

View on GitHub ↗

Live Watch

Watch the dashboard's live counters change over a short window by polling /api/stats a few times and reporting the deltas.

Input

The user provides: $ARGUMENTS

Interpreted as the watch shape: number of polls and/or interval (e.g. 5x3s = 5 samples 3 seconds apart). Defaults when empty: 5 samples, ~3 seconds apart (a ~15-second window). A bare number means that many samples at the default interval; a bare duration means the default sample count at that interval.

Data Sources

EndpointReturns
GET /api/stats (polled){ total_sessions, active_sessions, active_agents, total_agents, total_events, events_today, ws_connections, agents_by_status, sessions_by_status }

Method

Poll GET /api/stats once per interval for the configured number of samples, recording the timestamp and the four watched counters each time. Pace the polls with a short wait between requests; keep the total window short (seconds, not minutes) so it stays interactive.

If the very first poll fails to connect, the dashboard is down — stop and tell the user to start it with npm start (or npm run dev) from the repo root, then retry.

Report Sections

1. Watch Window

State the sample count, interval, and total elapsed window.

2. Sample Timeline

A Markdown table — one row per poll — with columns: #, time, active_sessions, active_agents, events_today, ws_connections.

3. Deltas

For each of the four watched counters, report the net change from the first to the last sample using ▲ (increase), ▼ (decrease), or = (no change). Note any mid-window spikes or dips visible in the timeline.

4. Verdict

One line: is the dashboard actively receiving traffic (counters moving) or idle (flat) over the window?

Output

  • Compact Markdown. The timeline table is the centerpiece.
  • Cite real values from each poll — never interpolate or invent samples.
  • Deltas use ▲/▼/= with the signed numeric change, e.g. events_today: ▲ +7.
  • Keep it scannable in a terminal — no padding beyond the table.

Discussion

No comments yet — start the thread.

Sign in to join the discussion.

/More from hoangsonww/Claude-Code-Agent-Monitor

hoangsonww· 21h agoSandbox
config-audit

Prompts · TypeScript · v0.1.0

Run a full audit of the user's Claude Code configuration via the Agent Monitor Config Explorer API: counts per surface (user vs project), duplicate or overlapping skills and subagents, hooks that run shell commands, and which surfaces are read-only vs mutable. Reads /api/cc-config/overview, /skills, /agents, /commands, /hooks, and /settings. Use when reviewing your Claude Code setup for sprawl, duplication, or risk.

#ai-agents#claude-agents#claude-code

0 1K
hoangsonww· 21h agoSandbox
hook-inventory

Prompts · TypeScript · v0.1.0

Inventory hooks across the user, project, and project-local settings plus the ~/.claude/hooks scripts directory — read through the Agent Monitor Config Explorer API — and flag hooks that POST to the network or run arbitrary commands. Reads /api/cc-config/hooks and /api/cc-config/hook-scripts. Use when auditing hook safety.

#ai-agents#claude-agents#claude-code

0 1K
hoangsonww· 21h agoSandbox
mcp-audit

Prompts · TypeScript · v0.1.0

Audit the configured MCP servers (user + project scope) via the Agent Monitor Config Explorer API: transport (stdio vs http), command/args and env variable names, headers, and the source file each definition came from. Reads /api/cc-config/mcp. Use when reviewing MCP integrations for hygiene, duplication, or unexpected transports.

#ai-agents#claude-agents#claude-code

0 1K
hoangsonww· 21h agoSandbox
memory-review

Prompts · TypeScript · v0.1.0

Review the file-based memory store via the Agent Monitor Config Explorer API: the user and project CLAUDE.md plus per-project auto-memory files under ~/.claude/projects/<slug>/memory/*.md. Groups by project, shows the index (MEMORY.md) vs per-fact files, and flags stale or oversized facts. Reads /api/cc-config/memory and /api/cc-config/file?path=. Use when curating agent memory.

#ai-agents#claude-agents#claude-code

0 1K