/ccam-sessions:cwd-rollupfrom ccam-sessions
Rolls up Claude Code sessions by working directory from Agent Monitor data, showing session count, total cost, total tokens, and last-active timestamp per project. Useful for summarizing effort and spend across projects.
Ships in ccam-sessions. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Aggregate session activity per working directory (project).
The user provides: $ARGUMENTS
top N → keep only the N highest-cost (or highest-count) projects.| Endpoint | Returns |
|---|---|
GET /api/run/cwds | the distinct working directories that have sessions — the rollup key set |
GET /api/sessions?limit=N | session list: id, status, model, cwd, started_at, ended_at, cost, metadata (usage_extras with token counts) |
GET /api/pricing/cost | fleet cost: total_cost, breakdown[{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] — for the fleet total to compute each cwd's share |
GET /api/run/cwds for the canonical list of working directories. Apply the
$ARGUMENTS filter (substring match) if one was given.
GET /api/sessions?limit=1000. Bucket sessions by cwd.
For each working directory compute:
cost field across the bucket.usage_extras (sum the four into a total, and keep input + output as the
"billable text" subtotal).started_at (or ended_at) in the bucket.GET /api/pricing/cost for total_cost; show each cwd's cost as a percentage of the
fleet total.
Sort by cost descending by default (or count if the user asked); apply top N.
Markdown table: project (cwd basename) | sessions | total tokens | cost | % of fleet | last active | models.
Currency as USD to 4 decimal places; token counts with thousands separators; sort
cost-descending. Add a final TOTAL row summing the columns. Only count tokens that
the session metadata actually carries — if usage_extras is absent for a session,
note it as excluded rather than guessing. If the dashboard is unreachable, tell the
user to start it with npm start from the repo root.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/session-cleanupIdentify stale and empty Claude Code sessions in the Agent Monitor and explain the cleanup endpoint (POST /api/settings/cleanup), always showing the exact list of what WOULD be removed before anything is deleted. Cleanup permanently deletes data, so this skill previews first and requires explicit user confirmation. Use when tidying the monitoring database.
/session-searchFind Claude Code sessions tracked by the Agent Monitor by project (cwd), model, status, or date, then rank the matches by cost or recency. Pulls the session list and the distinct cwd / facet values so filters use real values rather than guesses. Use when locating a session — "find my EstateWise sessions", "which Opus runs errored this week", "most expensive sessions in /repo".
/5 plugins ship this exact skill · first indexed Aug 10, 2026
npx claudepluginhub hoangsonww/claude-code-agent-monitor --plugin ccam-sessionsOther plugins' skills for the same job