agentleFS
code-yeongyucode-yeongyu/coding-agent-sessions-ts/skill/SKILL.md

coding-agent-sessions

Skill2 starsChanged 5 months agoMITView on GitHub

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.

  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. robertoatila/jarvis-skill-registry★ 8same name
    2. hugefiver/dsmm★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill to find and read local coding-agent session history.

    line 8
  2. Distinctive:

    Run the wrapper from this skill directory:

    line 15
  3. Very specific:

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

    line 34
  4. Distinctive:

    Read promising hits before making claims:

    line 45
  5. Distinctive:

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

    line 51
  6. Distinctive:

    Search includes redacted JSONL event text by default, so tool calls and transcript body text can match even when prompt previews do not.

    line 77
  7. Very specific:

    Use repeated --platform flags.

    line 99

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.