Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor/plugin install ccam-sessionsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hoangsonww/claude-code-agent-monitor/session-search)<a href="https://agentmods.dev/skills/hoangsonww/claude-code-agent-monitor/session-search"><img src="https://agentmods.dev/badge/skills/hoangsonww/claude-code-agent-monitor/session-search/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/hoangsonww/claude-code-agent-monitor/session-search"><img src="https://agentmods.dev/badge/skills/hoangsonww/claude-code-agent-monitor/session-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00086 | $0.00706 |
| Opus 5 | $0.00043 | $0.00353 |
| Sonnet 5 | $0.00017 | $0.00141 |
| Haiku 4.5 | $0.00009 | $0.00071 |
Grade A, and why
session-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Session Search
Locate Claude Code sessions in the Agent Monitor by project, model, status, or date.
Input
The user provides: $ARGUMENTS
A free-form query naming any combination of:
- project / cwd — a working-directory path or basename (e.g.
EstateWise,/Users/.../repo) - model —
opus,sonnet,haiku, or a full model id substring - status —
active,working,completed,error - date —
today,this week, or an ISO date / range matched againststarted_at - ranking —
by cost(default when cost is mentioned) orrecent(default otherwise)
If the query is empty, return the most recent sessions ranked by recency.
Data Sources
| 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 |
Report Sections
1. Resolve 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.
2. Pull candidates
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.
3. Rank
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.
4. Matches
One row per session.
5. Summary
Count of matches, summed cost across matches, and the model / status distribution.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 66 lines · 86 tokens per session scan A b0841a96c7f7
session-search is a skill published in the GitHub repository hoangsonww/Claude-Code-Agent-Monitor (991 stars, last pushed 4d ago), licensed MIT. It adds 86 tokens to every session and 706 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
commit-optimization
Use when configuring settings.json to reduce fuse-commit-pro's context token usage.
ideating
Generates and explores ideas. Use when capturing fleeting thoughts, brainstorming, exploring a problem space before committing to a direction, or reviewing stored ideas to decide what to pursue.
prime
Session prime — start a fresh session by reading project state to orient yourself. Use this when you have no project context yet or the user asks to "prime the session", "read state", or start work.
delegating-to-codex
Delegates a task to OpenAI Codex running as an interactive session in a herdr pane - uses the user's ChatGPT subscription, visible in herdr, steerable mid-session. Use when delegating work to codex, offloading a task to a GPT model (sol, terra, luna), or running a second opinion from a non-Claude frontier model. Not…
handoff
Capture current work context for handoff to another agent/developer. Gathers git state, todos, and modified files into a structured handoff document saved to the related spec folder.
notion-to-blog
Transfer a blog post from Notion to the Wasp blog. Fetches content, downloads and optimizes images, and creates a properly formatted MDX file.