snapshot_agents — Claude Code prompt: what it does and install
snapshot_agents — a prompt for Claude Code and ChatGPT formats a snapshot of agent sessions. It shows labels, machines, session IDs, and any available links, notes, closeouts, and plans.
MIT ★ 395 updated 2026-11-16
.claude/commands/snapshot_agents.mdWhat snapshot_agents does
The prompt renders a summary for the agents passed into its template. Each entry includes a label, machine, and sessionid; links and a line of extra text appear when present. It also adds a session closeout and plan when those fields are available.
For the first six agents, an entry may include ultracode=on. That marker says substantive tasks run through a multi-agent workflow and asks the reader to wait for its results. If the input contains more than six agents, the summary gives the total count beyond the displayed entries.
What it helps with
- compile a short summary of agent sessions
- show session IDs beside agent labels
- include available plans and closeouts
- report how many agents exceed the first six
Example prompts for the agent
- Summarize the agents and their sessions.
- Show each agent's label, session ID, and plan.
- Create a session snapshot with available links and closeouts.
How to install snapshot_agents
Manually: put the files in place
.claude/commands/snapshot_agents.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about snapshot_agents
How do I install snapshot_agents in Claude Code?
Place snapshot_agents.md in .claude/commands/. Then invoke it with /snapshot_agents.
What does snapshot_agents do?
It formats agent-session details, including labels, machines, session IDs, and any available links, plans, or closeouts.
What does ultracode=on mean?
The marker indicates that substantive tasks use a multi-agent workflow and asks users to wait while results are gathered.
Source text
snapshot_agents.md · MIT
{{range $i, $a := first 6 .}}{{if $i}};{{end}}{{$a.Label}}{{with $a.Ultracode}}〔ultracode={{.}}{{if eq . "on"}}:每个实质任务都会跑多 Agent workflow,等结果时别催{{end}}〕{{end}}({{$a.Machine}},session_id={{$a.Session}}{{with $a.Link}},链接 {{.}}{{end}}){{with $a.Line}}:{{.}}{{end}}{{with $a.Closeout}}{{template "assistant/snapshot_closeout" .}}{{end}}{{with $a.Plan}};{{template "assistant/snapshot_plan" .}}{{end}}{{end}}{{if gt (len .) 6}} 等 {{len .}} 个{{end}}
© nwverse · MIT · nwverse/persona