/ccam-sessions:session-searchfrom ccam-sessions
Searches Claude Code sessions tracked by the Agent Monitor by project, model, status, or date, and ranks by cost or recency.
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.
Locate Claude Code sessions in the Agent Monitor by project, model, status, or date.
The user provides: $ARGUMENTS
A free-form query naming any combination of:
EstateWise, /Users/.../repo)opus, sonnet, haiku, or a full model id substringactive, working, completed, errortoday, this week, or an ISO date / range matched against started_atby cost (default when cost is mentioned) or recent (default otherwise)If the query is empty, return the most recent sessions ranked by recency.
| Endpoint | Returns |
|---|---|
GET /api/sessions?limit=N | session list: id, status, model, cwd, started_at, ended_at, cost, metadata (thinking_blocks, turn_count, total_turn_duration_ms, usage_extras) |
GET /api/run/cwds | the distinct working directories that have sessions — use to resolve a fuzzy project name to exact cwd values |
GET /api/events/facets | distinct facet values (event types, tool names, models, statuses) for validating filters |
Fetch /api/run/cwds and /api/events/facets to map the user's loose terms to
real values: pick the cwd(s) whose path contains the project term, confirm the
model substring exists, and validate the status against known statuses. State
which concrete filters you settled on.
GET /api/sessions?limit=200 (raise the limit if the date window is wide). Filter
in-memory by cwd, model (substring, case-insensitive), status, and started_at
date window.
Sort by cost descending when the user asked "by cost"; otherwise by started_at
descending (most recent first). Keep the top 20 unless the user asked for more.
One row per session.
Count of matches, summed cost across matches, and the model / status distribution.
Markdown table: # | id (short) | status | model | cwd (basename) | started_at | cost.
Currency as USD to 4 decimal places; token / count fields with thousands separators.
If a filter resolved to zero rows, say so and show the closest available values
(e.g. the cwds that do exist) rather than fabricating results. 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 plugins ship this exact skill · first indexed Aug 10, 2026
5 skills in this plugin
/cwd-rollupRoll up Claude Code sessions by working directory (project) from Agent Monitor data — session count, total cost, total tokens, and last-active timestamp per cwd — so per-project activity can be compared at a glance. Use when summarizing where effort and spend went across projects.
/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.
/npx claudepluginhub hoangsonww/claude-code-agent-monitor --plugin ccam-sessionsOther plugins' skills for the same job