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
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- explore-appSkill
- verify-uiSkill
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
- Very specific: line 15
Use ccm (fallback: claude-code-manager.
- Very specific: line 24
Start with ccm session info <s> (~300 tok).
- Very specific: line 47
Budgets: default 6K tokens (--budget 20k or -o <file> for uncut.
- Distinctive: line 55
Run the bundled script for your harness:
- Very specific: line 59
Read <dir>/answer.md with your file-reading tool (ignore truncated workflow return output).
≈ “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.
Files
Reading sessions
- Many sessions (patterns, recurring failures, corrections, retros, "how we did X before"): read
across-sessions.mdbeside this file and useccm sessions. Never loopccm 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>withccm 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, ortranscript[_full].jsonl). Searches~/.claudeand~/.gemini/antigravity-cli;--root/--agy-root(beforesession) 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 byn(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 onprompts,outline,read,find,chunks,files, andcommands. 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:
- Fits (
<= 6Ktok, or<= 40Ktok via file):ccm session read <s>, orccm session read <s> -o <scratch-file>and inspect with your file-reading tool. Put-ofiles in a scratch/temp dir (create parent dirs first;-odoes notmkdir -p), never in the repo working tree. - 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.
- Too large, whole-span question (summary, handoff, "what went wrong"): use the workflow below.
Output and coverage
- Budgets: default 6K tokens (
--budget 20kor-o <file>for uncut;info/chunksunbudgeted; sizes =chars / 4).read,prompts,outline, andshow <turn>.<k>print an exact continuation command;find,files, andcommandsask you to narrow--from/--toor use-o. recapturns: compaction summaries (Claude Code compaction or Agy checkpoint).readcollapses them to one line andfindskips them;show <s> <turn>prints one whole.- Not read inline: Claude Code subagent transcripts, workflow runs, and rewound branches (
infocounts them). Subagent briefs live inAgent/Task/invoke_subagentcalls (run_workflowfor Agy workflows). Background reports land in a latertaskturn (outlineorfind --tool task, thenshow <s> <turn>.1). Agy subagentconversationIds frominvoke_subagentcan be opened directly withccm session info <subagent-id>.
Whole-span workflow
- Plan:
ccm session chunks <s> [--from <a> --to <b>] --target 50k --json mkdir -p <dir>(empty scratch dir) and tell the user in one line the chunk count and models/tiers you are starting.- 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:binifccmis absent;readModel/readEffort/answerModel/answerEffortonly if asked — defaultssonnet/medium→opus/high). - Antigravity CLI (
run_workflow):ScriptPath=<skill-dir>/session-digest.py,Args:{"plan": <chunks JSON>, "question": "<question>", "dir": "<dir>"}(optional:bin,read_modeldefault"flash",answer_modeldefault"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.
- Claude Code (
- Read
<dir>/answer.mdwith your file-reading tool (ignore truncated workflow return output). Spot-check key claims at their cited addresses withshoworread, then answer citing turns.
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
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.

