snapshot

snapshot is a command for Claude Code from MadAppGang/magus. It costs 38 tokens per session (472 once invoked), scanned A, original, MIT.

A command for capturing the current contents of a terminal pane as text. A terminal pane is one section of an interactive terminal session.

In plain words
What is it for?
It helps check test results, server logs, command prompts, and other terminal output.
Why use it?
It lets the agent inspect what a running command currently shows, including output that may have appeared earlier in the pane.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the terminal plugin — 5 skills, 7 commands, 1 agent shipped together

Good fit It helps check test results, server logs, command prompts, and other terminal output.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/madappgang/magus/snapshot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/MadAppGang/magus

Made for: Claude Code.

Or install terminal, the plugin that ships this one along with the rest of its 5 skills, 7 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for snapshot

README.md
[![agentmods](https://agentmods.dev/badge/commands/madappgang/magus/snapshot/github.svg)](https://agentmods.dev/commands/madappgang/magus/snapshot)
Your own site
<a href="https://agentmods.dev/commands/madappgang/magus/snapshot"><img src="https://agentmods.dev/badge/commands/madappgang/magus/snapshot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for snapshot

Your own site · 80×15
<a href="https://agentmods.dev/commands/madappgang/magus/snapshot"><img src="https://agentmods.dev/badge/commands/madappgang/magus/snapshot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00472
Opus 5.5 $0.00015 $0.00189
Sonnet 5.5 $0.00008 $0.00094
Haiku 4.5 $0.00004 $0.00047

Measured 1mo ago against content hash 722491bf26bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

snapshot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/terminal/commands/snapshot.md · 57 lines

What it actually says

/terminal:snapshot

Advanced command — for most tasks, use /terminal:observe instead; it lists slots and captures them in one step. Use this command for raw capture control.

Reads the current screen content of a slot exactly as a person would see it in that terminal.

Usage

/terminal:snapshot [slot] [--lines N] [--visual]
  • slot defaults to 1.
  • --lines N includes the last N lines of scrollback above the viewport.
  • --visual returns a rendered image of the pane instead of text.

How to Use

Snapshot a slot

/terminal:snapshot 2
→ mcp__plugin_terminal_mux__capture-pane({ slot: 2 })
→ text content; structuredContent { "slot": 2 }

Snapshot with scrollback

/terminal:snapshot 1 --lines 200
→ mcp__plugin_terminal_mux__capture-pane({ slot: 1, lines: 200 })

Visual snapshot

/terminal:snapshot 2 --visual
→ mcp__plugin_terminal_mux__screenshot-pane({ slot: 2 })

Renders the pane as an image, useful for TUI layouts where text capture loses structure.

Errors

A slot that was never opened is an error (slot 2 does not exist; open it with open-pane or by running something in it, per spec). capture-pane is a reading tool: it never creates a pane. mcp__plugin_terminal_mux__list-slots shows which slots exist.

Notes

  • For output longer than the viewport, --lines 200, or pipe the command's output to a file and Read it.
  • For monitoring that waits for a change, use /terminal:observe {slot} --watch instead.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -21 lines · +22 tokens per session 722491bf26bf
  2. 1mo ago First seen · 78 lines · 16 tokens per session scan A 45335aa74ef6

Subscribe to this mod's changes

snapshot is a command published in the GitHub repository MadAppGang/magus (13 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 472 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.