coding-agent-sessions
БесплатноЗапускает вложенные скриптыНе проверенFinds, reads, and reconstructs coding-agent sessions across Codex, Claude, OpenCode, OMO/Senpi, agy (Antigravity), omo-harness threads (agy, Claude Agent SDK…
от code-yeongyu★ 71 250 звёзд на GitHubОб этом скилле
Coding Agent Sessions
Find local coding-agent sessions across agent products before answering from memory. The skill is a typed SDK on Bun (scripts/sdk.ts); the same operations run as a command line (scripts/cli.ts) and as an MCP server (bun scripts/cli.ts mcp).
Start narrow
sessions.list, sessions.search and sessions.get scan the stores of the sources they select, so source is what makes them cheap: one source reads one product's store, no source reads every store on the machine. since, until, cwd, model and limit filter what the scan found; they do not shrink the scan. Read a transcript as a slice with transcript.read({ path: row.path }), which opens that one file and nothing else; sessions.get returns every event.
From a js eval cell or a bun script (skillDir is the folder holding this SKILL.md):
const { connect } = await import(`${skillDir}/scripts/sdk.ts`)
const cas = connect()
// 1. Recent work in one product: the cheapest useful call.
const recent = await cas.sessions.list({ source: ["senpi"], since: "7d", limit: 10 })
// 2. Which session did X: two or three query lanes, one or two sources, a time window.
const found = await cas.sessions.search({ source: ["claude", "codex"], query: ["dashboard PR", "대시보드"], since: "30d", limit: 5 })
// 3. Open the hit as a slice of its own file: the newest 8 KiB of whole events, with byte offsets. No scan.
if (found.kind === "ok" && found.results[0]) {
const hit = found.results[0]
const tail = await cas.transcript.read({ path: hit.path, maxBytes: 8192 })
const head = await cas.transcript.read({ path: hit.path, from: "head", maxBytes: 4096 }) // the first prompt and setup
}
The same calls from a shell:
bun scripts/cli.ts sessions list --source senpi --since 7d --limit 10
bun scripts/cli.ts sessions search --source claude --source codex --query "dashboard PR" --since 30d --limit 5
bun scripts/cli.ts transcript read --path <row path> --max-bytes 8192
Every SDK call answers { kind: "ok", ... } or { kind: "error", error: { code, message, next_action } } and never throws for a refusal. Act on next_action. The CLI prints the same JSON and exits non-zero on an error.
What each call costs
| Call | Reads | Use it for |
|---|---|---|
sources.list() |
nothing | source ids and aliases |
sessions.list / sessions.search with source |
the newest 2,000 transcripts of each selected source, parsed whole | finding sessions |
the same without source |
every store on the machine | only when you do not know the product |
transcript.read({ path }) |
that one file, at most maxBytes (default 32 KiB, max 1 MiB) from its head or tail |
reading what happened |
transcript.read({ session }) |
the scan of the selected sources to find the id, then the slice | when you only have an id |
sessions.get |
the scan, plus every event of the matched transcripts | the delegation tree, or a full raw event list when a slice is not enough |
Start with one or two sources and widen only when the first batch is empty. Prefer transcript.read slices (tail for how it ended, head for the original ask) over sessions.get events for long sessions.
Find, then read
- Expand fuzzy recall into lanes. When the user remembers a task vaguely ("that OpenCode bug", "the dashboard PR"), derive 3-6 short queries: product or tool names, repo and package names, exact error text, issue/PR/session ids, English and Korean phrasing, and verbs such as
fix,review,deploy. Pass them together asquery: [...]; each result'smatch_reasonssays which lane and which field matched (field: "user_message"means a prompt between the first and last one). - Narrow before widening. Add
source,since/until(YYYY,YYYY-MM,YYYY-MM-DD,today,yesterday,Nd),cwdandmodel(case-insensitive substrings). AddincludeSubagents: truewhen the work may have been delegated: child sessions are hidden by default, and each main row carriessubagent_count. - Read the hit.
transcript.readreturns whole events with their byte offsets.sessions.get({ session: [id] })returns the full first and last prompt, every event and thesubagentsarray, so opening a main session shows its whole delegation tree. - Verify against the raw file. Results are normalized; the row's
pathis the source of truth. Never answer "what happened" from a preview alone.
For broad, multi-month questions, split independent searches by keyword, repo/cwd, source and time window, run them in parallel (or in subagent lanes), and merge candidates by platform + id.
Rows
| Field | Meaning |
|---|---|
platform |
Source id: codex, claude, senpi, oh-my-pi, gajae-code, opencode, agy, omo-harness, openclaw, droid, amp, gemini, kimi, qwen, codebuff, roo-code, kilo-code, cline, kodu, cursor-cli, aider, kilo-cli, hermes, goose, crush, zed, kiro, `aside |
Установить coding-agent-sessions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл coding-agent-sessions?
Finds, reads, and reconstructs coding-agent sessions across Codex, Claude, OpenCode, OMO/Senpi, agy (Antigravity), omo-harness threads (agy, Claude Agent SDK, Codex app-server, omp, omo children) and 20 other local agent logs, through a typed TypeScript SDK. Use when asked to find or search past sessions, transcripts, or subagent runs, or to recover what an earlier session did.
Как установить скилл coding-agent-sessions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coding-agent-sessions запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic