/session:session-agent-list [query] [--tool <name>] [--live] [--compact|--exec|--ledger]from session
List Claude Code, Codex, Muse, OpenCode, Antigravity (agy), and borg1 sessions on this machine as action-ready cards with resume commands, filterable by tool and by what is running now. Use when the user asks to list, find, or resume a past session, which sessions touched a repo, or which sessions are in use. Not for a saved HTML project/session map or its incremental updates (session-map), or orienting inside the current session (session-recap).
Ships in session. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Find Claude Code, Codex, Muse, OpenCode, Antigravity (agy), and borg1
sessions on this machine and render them in the canonical card format — so the
user can triage by end state, see what is running, get back into a session, or
read what it did.
session-handoff). Cleanup of what a card reveals routes to
session-loose-ends.[3] it stays [3] across re-filters and re-listings; new finds keep
counting up; filtered-out sessions leave gaps. "Open [3]" must always be
safe. Ordinals are never stored beyond the conversation.references/format-spec.md. The 22 elements, glyph
budget, delimiter ladder, and card anatomy are converged design — modes
reorder or drop fields, never invent them, and the spec's "do not regress"
list is binding.[query]) and conversation, derive the
filter: time window, tool (--tool, or "my Muse sessions"), running now
(--live, or "what's in use"), repo/topic, or free text. No query →
recent sessions across all six tools. The flags pick the view: none → full cards,
together (the default listing), --compact → orientation-compact
triage, --exec → respawn console, --ledger → what-it-did ledger (all
defined in the spec).session-inventory list --json (see Data sources)
with the scope's --tool, --live, and --since. It returns every
session's ID, name, spawn dir, times, lineage, liveness, transcript path,
and the resume command safe to show, plus a per-tool census. Filter to
scope before reading anything deeply — read transcript heads/tails, not
whole transcripts, and only for sessions that survive the filter.title where present;
otherwise generate one from the first user turn plus the tail — never
render an untitled card), repos and worktrees touched, handoff in/out
evidence, and the work item / milestone when the transcript names one
(triple form — never a bare ID). Take spawn dir, name, lineage, liveness,
and commands from the inventory; never rebuild them by hand.⇥; merge + cleanup → ✔; merge without cleanup → ◒;
otherwise ● open. Conflicting signals → state the evidence on the card,
never guess silently.One read-only CLI ships inside this skill and reads all six stores. Resolve it in this order and reuse the result for the whole session:
SI="$(command -v session-inventory || true)" # 1. explicit PATH install, if any
[ -x "$SI" ] || SI="<skill-base>/scripts/session-inventory" # 2. base dir announced when this skill loaded
if [ ! -x "$SI" ]; then # 3. well-known placements
for d in "$HOME/.claude/skills/session-agent-list" "$HOME/.agents/skills/session-agent-list" "$HOME/.borg1/skills/session-agent-list"; do
[ -x "$d/scripts/session-inventory" ] && SI="$d/scripts/session-inventory" && break
done
fi
"$SI" list --json --tool muse --live
No uv on the machine? python3 "$SI" ... works identically (stdlib only,
Python ≥3.11). Interface: docs/session-inventory-cli.md in the session
plugin.
| Tool | Store the CLI reads | Resume (by UUID) | Name source |
|---|---|---|---|
| Claude Code | ~/.claude/projects/<cwd-slug>/<uuid>.jsonl | cd <spawn-dir> && claude --resume <uuid> | /rename title |
| Codex | $CODEX_HOME/sessions/YYYY/MM/DD/rollout-*.jsonl (default ~/.codex) | codex resume <uuid> | thread name (also resumable) |
| Muse | ~/.local/share/muse/session-index.db + per-session dirs | cd <workspace> && muse resume <uuid> | canonical name (also resumable) |
| OpenCode | ~/.local/share/opencode/opencode.db (table session_v2, else session; when session_v2 exists, session rows missing from it are legacy_only, no resume) | cd <dir> && opencode --session <id> | slug |
Antigravity (agy) | ~/.gemini/antigravity-cli/conversation_summaries.db + brain/<id>/.system_generated/logs/transcript.jsonl | cd <spawn-dir> && agy --conversation <uuid> | — (title / preview; /rename edits title) |
borg1 (borg1) | ~/.borg1/sessions/<id>.jsonl + ~/.borg1/run/<pid>.json | cd <spawn-dir> && borg1 --resume <uuid> | /rename name (also resumable) |
live: yes / no / unknown, with live_basis) comes
from each tool's own evidence: Claude Code's ~/.claude/sessions/<pid>.json
registry (PID alive and start time matching), Codex writer locks held open,
Muse .session.lock whose PID is a running muse, OpenCode processes,
interactive agy processes (--conversation/--resume/-r → yes, bare
working-directory match → newest-only unknown), and borg1
~/.borg1/run/<pid>.json entries whose PID is a live borg1 process (plus
interactive borg1 --resume <ref>).
A lock file alone never means running — stale locks are common.census.<tool>.hidden_subagents; report the count in the
coverage footer. --include-subagents lists them.unreadable: true and
counted, never silently dropped. Exit 1 means a whole store could not be
read: render what came back and name the failed source in the footer.$CODEX_HOME or other
variables.| Thought | Reality |
|---|---|
| "A resume command on every card is convenient" | The card changes which actions it hands you. Closed → transcript only; handed off → the doc leads. |
| "Abbreviate the UUID, it appears three times" | Deliberate redundancy — identity line, resume command, file path each serve a different hand. Abbreviation is legal only in the ledger footer. |
| "The task ID is enough context" | Never a bare work-item ID — triple form: ID (plain name — one-line definition). |
| "This state needs a new glyph" | The glyph budget is strict: seven glyphs, one meaning each. A new glyph requires a removed one. |
| "Signals conflict — pick the likeliest state" | State the evidence on the card. A wrong ✔ hides a resume candidate; a wrong ● invites resuming a finished thread. |
| "The user seems lost in this session" | That is session-recap. This skill fires for finding other sessions. |
| "The titles are long — I'll wrap line 1" | Compact's line 1 is fixed. Budget the title (ellipsize in compact); never change the layout. |
| "This evidence matters — I'll add a section under the listing" | No invented zones. Glyph + state word in compact; evidence renders on the full card. |
| "The lock file is there, so it's running" | Locks outlive their process. Trust the inventory's live verdict and show its basis; unknown never renders as running. |
| "The name is friendlier — resume by name" | The UUID is exact and never collides. Resume by UUID; the name rides along on the identity line and as an extra by-name line. |
| "I'll just list the directories myself" | The inventory resolves names, liveness, subagents, and safe commands. Hand-rolled discovery drifts from it. |
references/format-spec.md — the binding output format (21 elements,
glyphs, taxonomy, anatomy, golden example, projections).session-recap — orientation inside the current session; this skill finds
sessions across the machine.session-handoff — writes the handoff docs whose lineage (⇤/⇥) this skill
only reads.session-loose-ends — acts on the loose ends a ◒ card reveals.session-map — persists a cross-project inventory, renders an HTML map,
and updates changed evidence using this skill's native collector.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub smorinlabs/smorinlabs-skills --plugin session8 skills in this plugin
/session-handoffPackage the current session into a self-contained handoff that a fresh session, possibly on another machine, can act on cold. Use when the user says "hand this off", "write a handoff", or wants to continue this work in a new session or on another machine. Not for recapping the current session (session-recap), launching a side idea in a new Rex tab (session-spinoff), or moving this same conversation to another Rex session (session-move)./session-loose-endsSweep the session for loose ends such as uncommitted or unpushed work, stale worktrees, zombie background jobs, unkept promises, and tracking drift. Reports each with a recommendation and cleans up only what the user approves. Use when the user asks "any loose ends?", "anything to clean up?", or "tie this off". Not for a full recap (session-recap) or for cleaning up objects registered in brot (brot)./session-mapBuild and maintain a saved HTML map of projects and agent sessions, showing related work, current owners, progress, closure candidates, and copyable tab-navigation commands. Use for "map my sessions", "build a project and session dashboard", "update the session map", or "regenerate the map from its inventory". Supports full inventory, incremental updates, and rendering saved data. Not for a quick session listing (session-agent-list), orientation inside one conversation (session-recap), or executing cleanup (session-loose-ends)./session-moveMove a Rex window (a tab in the Rex app) from one Rex session to another on the same computer. Rex cannot move a window between sessions, so this recreates it in the destination with the same agent (Claude Code, Codex, Muse, Antigravity, or borg1), the same conversation resumed by ID, the same working directory, and the same window name, then closes the old window. Use when the user says "move this window to <session>", "move this tab to another session", "session move", or wants a running agent conversation relocated between Rex sessions. Not for launching a new side idea in a fresh agent (session-spinoff), continuing work in a new conversation or on another machine (session-handoff), copying a conversation into a new worktree (agent-fork), or general Rex tab and session control (rex)./session-recapOrient in a session that was left idle, compacted, or reopened cold, covering what it is about, done versus open, live git and PR state, and ranked next steps. Use when the user asks "catch me up", "where was I", or "what was I doing", or returns to a repo unsure where things stand. Not for mid-flight progress of active work (session-status) or cleanup (session-loose-ends)./session-spinoffSpin an idea that came up mid-session (a bug, feature, or fix, often in another repo) off into a fresh Claude Code, Codex, Muse, Antigravity (agy), or borg1 agent in a Rex tab, on a new worktree, with a self-contained brief as its first prompt, monitoring kickoff in Rex to clear early trust and permission blockers so the current session keeps its focus and context. Use when the user says "spin this off", "launch this in Rex", "start a new session for this in <repo>", or wants a side idea worked on separately. Not for continuing the current work elsewhere (session-handoff), forking this conversation (agent-fork), moving a running conversation to another Rex session (session-move), or general Rex tab and session control (rex).