본문으로 건너뛰기
cccskills
무료GitHub에 공개

coding-agent-sessions

MUST USE when asked to find, read, list, search, inspect, fetch, export, or reconstruct coding-agent sessions across Codex, Claude Code/Desktop, Aside, OpenCode, Senpi/pi, OpenClaw, Factory Droid, Amp, Gemini/Kimi/Qwen CLIs, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, Kiro, Goose, Hermes, Crush, Zed, or unknown local agent logs. Uses the repo-backed TypeScript coding-agent-sessions CLI for transcripts, session IDs, rollout JSONL, state SQLite, Claude histories, Aside messages.jsonl, OpenCode sessions, child linkage, cwd/model/time/token filters, archives, and cost clues.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Gemini
설치 방법 보기

포함된 파일(2)

  • SKILL.md5.3 KB
  • scripts/find-agent-sessions1.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Coding Agent Sessions

Use this skill to find and read local coding-agent session history. Prefer the repo-backed TypeScript CLI bundled with coding-agent-sessions-ts; it keeps the same JSON contract as the original Python finder and is the canonical command surface for this skill.

Command Surface

Run the wrapper from this skill directory:

scripts/find-agent-sessions list --limit 20
scripts/find-agent-sessions find "commit" --from 7d --platform codex --platform opencode
scripts/find-agent-sessions find --query "deploy" --query "token usage" --workers 64
scripts/find-agent-sessions find "deploy" --cwd sionicai --cwd storm-cli
scripts/find-agent-sessions read <session-id> --platform codex --grep "find-agent-sessions.py"

find is an alias for search; read is an alias for get.

Search Strategy

For fuzzy recall, expand the user's memory into 3-6 query lanes before searching: product names, repo/package names, exact error text, issue or thread IDs, English/Korean phrasing, and likely verbs such as fix, review, plan, deploy, or merge.

Use repeated --query flags so match_reasons shows which wording found a hit:

scripts/find-agent-sessions find \
  --query "opencode bug" \
  --query "fix opencode" \
  --query "OpenCode parent session" \
  --include-subagents \
  --workers 64

Read promising hits before making claims:

scripts/find-agent-sessions read <session-id> --platform <platform>

When the full transcript is too large, read only matching event snippets:

scripts/find-agent-sessions read <session-id> --platform codex --grep "find-agent-sessions.py"

Output Contract

The CLI prints JSON. Results include:

FieldMeaning
platformRegistered platform key such as codex, claude, aside, opencode, droid, kodu, or aider.
idSession ID or stable file-derived ID.
pathRaw transcript or index path.
cwdWorking directory when recoverable.
created_at, updated_atTimestamps when recoverable.
provider, modelProvider and model metadata.
first_user_message, last_user_messagePrompt previews.
usageToken or cost clues when present.
parent_idParent session ID for child sessions.
agentSubagent label when present.
subagent_countNumber of linked child sessions.
detail_hintReady-to-run read command.
match_reasonsSearch-only query/field/snippet explanations.

Search includes redacted JSONL event text by default, so tool calls and transcript body text can match even when prompt previews do not. read/get --grep returns matched_events with event_index, event_type, timestamp, query, and a bounded redacted snippet; grep-mode leaves events empty while normal read/get keeps full events.

Filters

FilterMeaning
--platformRepeatable platform filter; pass one platform per flag.
--rootExtra root to scan; repeatable.
--from, --toDate bounds: YYYY-MM-DD, YYYY-MM, YYYY, today, yesterday, or 7d.
--cwdWorking-directory substring; repeatable values are ORed.
--modelModel substring.
--limitMaximum results.
--queryRepeatable query lane.
--workersParallel worker count.
--include-subagentsInclude child sessions as standalone results.
--grepread/get only: repeatable event-text query for concise matched_events.
--excerpt-charsread/get --grep snippet width. Default: 240.

Use repeated --platform flags. Comma-separated platform values intentionally fail because they hide mistakes.

Subagents

Main-session listing hides child sessions by default and reports subagent_count. Use --include-subagents when delegated work may contain the answer. Reading a main session returns linked child-session metadata when the source exposes it.

Troubleshooting

ProblemFix
Missing Codex sessionsCodex scans CODEX_HOME, ~/.codex, ~/.codex-local-gui-cli-remote, ~/.codex-gui-cli-remote, and ~/.codex-gui-cli when present. Set CODEX_HOME or pass --root /path/to/.codex for isolated stores.
Missing OpenCode sessionsSet OPENCODE_HOME or pass the storage root.
Missing Claude sessionsPass the relevant ~/.claude/projects or transcript root.
Full read output is too largeUse read <session-id> --grep <text> to return bounded event snippets.
Wrapper cannot find the CLICheck .repo-root in this skill directory and run pnpm install && pnpm build in that repository.
Search is slowNarrow platforms, add date/cwd filters, or raise/lower --workers for the machine.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고