Skip to content
cccskills
FreePublished on 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.

The English summary is being prepared. Showing the original description.

Works withGemini
See how to install

Files included (2)

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

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Report a problem with this skill