snapshot

snapshot is a command for Claude Code from MadAppGang/magus. It costs 16 tokens per session (579 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 579 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.00016 $0.00579
Opus 5 $0.00008 $0.00290
Sonnet 5 $0.00003 $0.00116
Haiku 4.5 $0.00002 $0.00058

Measured 3d ago against content hash 45335aa74ef6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 3d 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 · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/terminal:snapshot

Advanced command — For most tasks, use /terminal:observe instead. It lists sessions and takes snapshots automatically. Use this command only when you need raw pane capture access.

Read the current screen content of an active tmux pane.

Usage

/terminal:snapshot
/terminal:snapshot {paneId}

Pane IDs use the format %N (e.g., %3) or headless:%N (e.g., headless:%0).

What It Does

Takes a capture-pane of an active tmux pane and returns the current content as text — exactly what a human would see looking at that terminal.

All sessions are tmux panes. capture-pane returns pane content with optional scrollback via the lines parameter.

How to Use

Snapshot a specific pane

If you know the pane ID:

/terminal:snapshot %3
/terminal:snapshot headless:%0

Snapshot with scrollback

To get more than the visible viewport:

mcp__tmux__capture-pane({ paneId: "%3", lines: 200 })

Returns the last 200 lines of scrollback history plus the current viewport.

Snapshot without a known ID (list first)

If you don't know the pane ID, the command will list available sessions first:

/terminal:snapshot

This will:

  1. Call mcp__tmux__list-sessions to show all tmux sessions
  2. Call mcp__tmux__list-panes to enumerate panes
  3. Capture the most relevant pane

Examples

See what's running in a server pane: After starting a dev server with /terminal:watch, use /terminal:snapshot %3 to check current log output.

Debug a TUI application: If you started vim, htop, or lazygit in a headless session, use snapshot to see the current screen state.

Monitor test results: While a test watcher is running, snapshot the pane periodically to see updated results.

Notes

  • capture-pane has access to tmux scrollback history — use lines: N to read more than the visible viewport.
  • For output longer than the visible pane, use lines: 200 or pipe command output to a temp file and Read it.
  • For persistent monitoring that waits for changes, use /terminal:observe {paneId} --watch instead.

Read the full file on GitHub · 78 lines

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. 3d 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 (9 stars, last pushed 3d ago), licensed MIT. It adds 16 tokens to every session and 579 once invoked, about $0.0001 per session on Opus 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.