17d56d0e01
Clean break, no compatibility alias. Renames the product name, the CLI binary (`ccam` -> `agenthub`), the env var prefix (`CCAM_` -> `AGENTHUB_`), the Prometheus metric namespace (`ccam_*` -> `agenthub_*`), the tmux session prefix (`ccam-lane-<id>` -> `agenthub-lane-<id>`), the per-repo runtime profile directory (`.ccam/profile` -> `.agenthub/profile`), the lanes state root (`~/.claude/ccam-lanes` -> `~/.claude/agenthub-lanes`), the bundled plugins (`plugins/ccam*` -> `plugins/agenthub*`) and their slash commands (`/ccam-doctor` -> `/agenthub-doctor`, `/ccam:*` -> `/agenthub:*`). Because there is no alias, an existing install has to be updated by hand: rename its `.ccam/profile` directory and any `CCAM_*` variables, and reinstall the plugin under its new name. Two other name families are deliberately left alone here, since they are not just strings: the `Claude-Code-Monitor` repository/marketplace name, and the `agent-dashboard` npm package plus its `~/.claude/agent-dashboard` runtime directory, which holds the live database and needs a migration rather than a rename. Verified: server 1406/1406, client 459/459, `grep -i ccam` clean across tracked files, `openapi.yaml` regenerated (95 paths, unchanged count).
53 lines
1.6 KiB
Markdown
53 lines
1.6 KiB
Markdown
---
|
|
description: >
|
|
One-line summary of key Agent Monitor metrics — active sessions, total
|
|
cost from the pricing engine, events today from daily_events, top tool
|
|
from tool_usage, and current model from the most recent session. Use for
|
|
a fast at-a-glance check without leaving the terminal.
|
|
---
|
|
|
|
# Quick Stats
|
|
|
|
One-line summary of key Agent Monitor metrics.
|
|
|
|
## Input
|
|
|
|
The user provides: **$ARGUMENTS**
|
|
|
|
Options: empty (default), "cost" (cost only), "sessions" (sessions only), "tokens" (token summary).
|
|
|
|
## Data Sources
|
|
|
|
| Endpoint | Returns |
|
|
|----------|---------|
|
|
| `GET /api/stats` | `{ total_sessions, active_sessions, active_agents, total_agents, total_events, events_today, ws_connections, agents_by_status, sessions_by_status }` |
|
|
| `GET /api/pricing/cost` | `{ total_cost, breakdown }` |
|
|
| `GET /api/analytics` | tokens (total_input, total_output, total_cache_read, total_cache_write — baselines pre-summed), tool_usage, daily_sessions, daily_events |
|
|
| `GET /api/sessions?limit=1` | Most recent session for model/status |
|
|
|
|
## Output
|
|
|
|
Produce a single-line or compact summary:
|
|
|
|
**Default format:**
|
|
```
|
|
📊 127 sessions | 💰 $4.2301 total cost | 🔧 4,892 events | ⚡ 3 active | 🏆 Top tool: Read (1,204)
|
|
```
|
|
|
|
**Cost format:**
|
|
```
|
|
💰 Total: $4.2301 | Sonnet: $3.1200 | Opus: $0.9800 | Haiku: $0.1301 | Cache efficiency: 67%
|
|
```
|
|
|
|
**Sessions format:**
|
|
```
|
|
📋 127 total | ✅ 98 completed | ❌ 12 errored | 🏃 3 active | 💤 14 abandoned | Rate: 87%
|
|
```
|
|
|
|
**Tokens format:**
|
|
```
|
|
🔤 Input: 2.4M | Output: 890K | Cache Read: 1.8M | Cache Write: 340K
|
|
```
|
|
|
|
Keep it short enough to scan in a terminal prompt.
|