agentleFS
zillydevzillydev/claude-code-manager/skills/session-read/SKILL.md

session-read

Skill4 starsChanged 3 days agoMITView on GitHub

Use when asked about a Claude Code or Antigravity CLI (`agy`) session (by id, message-id range, or recent project work), before reading `~/.claude/projects/**/*.jsonl` or `~/.gemini/antigravity-cli/conversations/*.db` by hand, or for cross-session questions (patterns, recurring failures, corrections, retros). Read-only via `ccm session` and `ccm sessions`.

  • Installs packages

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Use ccm (fallback: claude-code-manager.

    line 15
  2. Very specific:

    Start with ccm session info <s> (~300 tok).

    line 24
  3. Very specific:

    Budgets: default 6K tokens (--budget 20k or -o <file> for uncut.

    line 47
  4. Distinctive:

    Run the bundled script for your harness:

    line 55
  5. Very specific:

    Read <dir>/answer.md with your file-reading tool (ignore truncated workflow return output).

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Reading sessions

  • Many sessions (patterns, recurring failures, corrections, retros, "how we did X before"): read across-sessions.md beside this file and use ccm sessions. Never loop ccm session — fork/resume copies make up ~1/3 of transcript lines and double-count.
  • One session, no id yet ("my last session on this repo"): find <s> with ccm sessions list --project <name> --since 7d.

Never read, grep, or jq raw session files. Claude Code .jsonl files are mostly base64 images, thinking signatures, and duplicated tool output. Antigravity CLI splits each session across brain/<id>/.system_generated/logs/transcript[_full].jsonl (step text) and conversations/<id>.db (Esc-canceled steps, backgrounded command final statuses, call/result pairing), so neither raw file is complete.

Target and addresses

Use ccm (fallback: claude-code-manager; if neither exists, tell the user to run cargo install --path crates/cli in a claude-manager checkout and stop).

  • <s>: session id, unique 4+ char prefix (8 is typical), or file path (.jsonl, conversations/<id>.db, or transcript[_full].jsonl). Searches ~/.claude and ~/.gemini/antigravity-cli; --root / --agy-root (before session) override them and omit the other CLI unless its env var (CLAUDE_CONFIG_DIR / CCM_AGY_ROOT) is set.
  • Turn: printed #n <kind> <8-char-id> (- if uuid-less). Address by n (digits only — no #) or any unique 4+ hex prefix of a message id.
  • Call: <turn>.<k>, 1-based (13.4, 8fa93966.4).
  • Range: --from <addr> --to <addr> (inclusive; either end optional; accepts <turn> or <turn>.<k>). Works on prompts, outline, read, find, chunks, files, and commands. Pass both when the user gives two message ids.

Reading one session

Start with ccm session info <s> (~300 tok). Its provider line names the CLI and its next line chooses the path:

  1. Fits (<= 6K tok, or <= 40K tok via file): ccm session read <s>, or ccm session read <s> -o <scratch-file> and inspect with your file-reading tool. Put -o files in a scratch/temp dir (create parent dirs first; -o does not mkdir -p), never in the repo working tree.
  2. Too large, targeted question: locate, then fetch.
Command (ccm session …)Gives you
prompts <s> [--full]User turns, slash/! commands, and question answers (answer). Truncated at 600 chars unless --full.
outline <s> [--preview N]One entry per prompt/reply (tools, failures, size, closing text), task turns, and segments.
find <s> '<regex>'Rust regex (-s case-sensitive, -F literal, --max N default 40); one line per matching block (×N = N matches; snippet and result L<n> are match 1 only).
read <s> --from <a> --to <b>Conversation text (--detail prose|calls|results|full, default calls, --cap N). Keep calls and show specifics.
show <s> <turn>[.<k>]Whole turn or one call's input + result. On <turn>.<k> only: --lines a-b (or a-), --grep '<regex>' -C 2.
files <s>Files touched by file tools only (shell edits like sed/cp/git are omitted).
commands <s> [--failed]Shell commands in order. --failed checks exit status only (cmd | tail can hide as ok; search results with find).

find filters: --in prose,calls,results, --role user|assistant, --op shell|read|edit|write|ask|agent, --tool <name> (--op/--tool drop prose).

Evidence rule: user turns (prompts, find --role user) prove user intent/decisions. Assistant prose is a claim; tool output or the user's reply is the fact.

  1. Too large, whole-span question (summary, handoff, "what went wrong"): use the workflow below.

Output and coverage

  • Budgets: default 6K tokens (--budget 20k or -o <file> for uncut; info/chunks unbudgeted; sizes = chars / 4). read, prompts, outline, and show <turn>.<k> print an exact continuation command; find, files, and commands ask you to narrow --from/--to or use -o.
  • recap turns: compaction summaries (Claude Code compaction or Agy checkpoint). read collapses them to one line and find skips them; show <s> <turn> prints one whole.
  • Not read inline: Claude Code subagent transcripts, workflow runs, and rewound branches (info counts them). Subagent briefs live in Agent/Task/invoke_subagent calls (run_workflow for Agy workflows). Background reports land in a later task turn (outline or find --tool task, then show <s> <turn>.1). Agy subagent conversationIds from invoke_subagent can be opened directly with ccm session info <subagent-id>.

Whole-span workflow

  1. Plan: ccm session chunks <s> [--from <a> --to <b>] --target 50k --json
  2. mkdir -p <dir> (empty scratch dir) and tell the user in one line the chunk count and models/tiers you are starting.
  3. Run the bundled script for your harness:
    • Claude Code (Workflow): scriptPath = <skill-dir>/session-digest.js, args: {"plan": <chunks JSON>, "question": "<question>", "dir": "<dir>"} (optional: bin if ccm is absent; readModel/readEffort/answerModel/answerEffort only if asked — defaults sonnet/medium → opus/high).
    • Antigravity CLI (run_workflow): ScriptPath = <skill-dir>/session-digest.py, Args: {"plan": <chunks JSON>, "question": "<question>", "dir": "<dir>"} (optional: bin, read_model default "flash", answer_model default "pro").
    • No workflow tool: one subagent per chunk (read --from <from> --to <to> -o <dir>/chunk-<i>.txt, read whole, return cited evidence), then merge.
  4. Read <dir>/answer.md with your file-reading tool (ignore truncated workflow return output). Spot-check key claims at their cited addresses with show or read, then answer citing turns.

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.