Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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 as query: [...]; each result's match_reasons says which lane and which field matched (field: "user_message" means a prompt between the first and last one).
  2. Narrow before widening. Add source, since/until (YYYY, YYYY-MM, YYYY-MM-DD, today, yesterday, Nd), cwd and model (case-insensitive substrings). Add includeSubagents: true when the work may have been delegated: child sessions are hidden by default, and each main row carries subagent_count.
  3. Read the hit. transcript.read returns whole events with their byte offsets. sessions.get({ session: [id] }) returns the full first and last prompt, every event and the subagents array, so opening a main session shows its whole delegation tree.
  4. Verify against the raw file. Results are normalized; the row's path is 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
Полный SKILL.md на GitHub

Установить coding-agent-sessions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.npmignoreAGENTS.mdagents/openai.yamlreferences/agy.mdreferences/all-platforms.mdreferences/claude.mdreferences/codex.mdreferences/omo-harness.mdreferences/opencode.mdreferences/senpi.mdscripts/cli.tsscripts/package.jsonscripts/sdk.tsscripts/src/finder.tsscripts/src/fsx.tsscripts/src/json.tsscripts/src/ops.tsscripts/src/results.tsscripts/src/rows.tsscripts/src/runtime.tsscripts/src/scanners.tsscripts/src/sources/agy.tsscripts/src/sources/aider-kiro.tsscripts/src/sources/aside.tsscripts/src/sources/claude.tsscripts/src/sources/codex.tsscripts/src/sources/common.tsscripts/src/sources/json-stores.tsscripts/src/sources/jsonl-stores.tsscripts/src/sources/message-stores.tsscripts/src/sources/omo-harness.tsscripts/src/sources/opencode-files.tsscripts/src/sources/opencode.tsscripts/src/sources/pi-family.tsscripts/src/sources/sqlite-stores.tsscripts/src/sqlite.tsscripts/src/time.tsscripts/src/transcript-fold.tsscripts/src/transcript-read.tsscripts/src/transcript.ts

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить coding-agent-sessions с