session-search · hoangsonww — скилл для Claude Code: поиск сессий и установка
Находит сессии Claude Code в Agent Monitor по проекту, модели, статусу или дате и сортирует их по стоимости или времени. Пригодится, когда нужно отыскать нужный запуск среди сохранённых сессий.
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-search -a claude-codeЧто делает session-search
Скилл сопоставляет название проекта с реальными рабочими путями, проверяет модели и статусы по доступным значениям, затем фильтрует список сессий. Результаты сортируются по стоимости или дате запуска; по умолчанию показываются самые свежие. Пустой запрос тоже возвращает последние сессии.
В отчёте есть таблица с ID, статусом, моделью, проектом, датой и стоимостью, а также число совпадений, общая стоимость и распределение по моделям и статусам. Для поиска используются данные Agent Monitor: если панель недоступна, запустите её командой npm start из корня репозитория. Без работающей панели поиск не выполнится.
Какие задачи решает
- найти сессии по рабочему каталогу проекта
- отфильтровать запуски по модели и статусу
- проверить сессии за выбранный период
- отсортировать результаты по стоимости или свежести
- сравнить число запусков и их суммарную стоимость
Примеры запросов агенту
- Найди сессии проекта EstateWise за эту неделю и отсортируй по свежести.
- Покажи запуски Opus со статусом error за эту неделю.
- Найди самые дорогие сессии в
/repo.
Как установить session-search
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-search -a claude-code2Вручную: положить файлы
~/.claude/skills/session-search/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/session-search/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-search -a codex2Вручную: положить файлы
.agents/skills/session-search/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-search -a cursor2Вручную: положить файлы
.cursor/skills/session-search/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install hoangsonww/Claude-Code-Agent-Monitor session-search2Вручную: положить файлы
.github/skills/session-search/SKILL.md1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-search -a gemini-cli2Командой платформы
gemini skills install https://github.com/hoangsonww/Claude-Code-Agent-Monitor --path plugins/ccam-sessions/skills/session-searchВручную: положить файлы
.devin/skills/session-search/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-search -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о session-search
Как установить session-search в Claude Code?
Выполните npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-search -a claude-code. Файл скилла устанавливается по пути ~/.claude/skills/session-search/SKILL.md.
Что делает session-search?
Ищет сессии Agent Monitor по проекту, модели, статусу и дате. Сортирует совпадения по стоимости или времени запуска и выводит таблицу с итогами.
Что нужно для работы session-search?
Нужна доступная панель Agent Monitor. Если она не запущена, запустите npm start из корня репозитория.
Исходный текст
SKILL.md · MIT
--- name: session-search description: > Find 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". --- # 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 against `started_at` - **ranking** — `by cost` (default when cost is mentioned) or `recent` (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. ## Output 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.
© hoangsonww · MIT · hoangsonww/Claude-Code-Agent-Monitor
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — session-search от других авторов.