regenerate-demo

regenerate-demo is a command for Claude Code from SquareWaveSystems/squarebox. It costs 0 tokens per session (329 once invoked), scanned A, original, MIT.

A command for recreating the animated terminal demo shown in a project README. It uses VHS to record the scripted terminal session and produces a GIF file.

In plain words
What is it for?
Use it after changing the setup flow or when changing the demo's recording settings, provided VHS and its required tools are installed.
Why use it?
It keeps the demo aligned with changes to the setup process instead of leaving the README with an outdated recording.

Command for Claude Code

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.

agentmods
npx agentmods add commands/squarewavesystems/squarebox/regenerate-demo
Clone the repo
git clone --depth 1 https://github.com/SquareWaveSystems/squarebox

Made for: Claude Code.

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 regenerate-demo

README.md
[![agentmods](https://agentmods.dev/badge/commands/squarewavesystems/squarebox/regenerate-demo.svg)](https://agentmods.dev/commands/squarewavesystems/squarebox/regenerate-demo)
Your own site
<a href="https://agentmods.dev/commands/squarewavesystems/squarebox/regenerate-demo"><img src="https://agentmods.dev/badge/commands/squarewavesystems/squarebox/regenerate-demo.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00329
Opus 5 $0.00000 $0.00164
Sonnet 5 $0.00000 $0.00066
Haiku 4.5 $0.00000 $0.00033

Measured 4d ago against content hash 2432e3515ac8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

regenerate-demo 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 4d 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.

.claude/commands/regenerate-demo.md · 38 lines

What it actually says

Regenerate the demo animation for the README.

Prerequisites

Make sure VHS and its dependencies are installed:

If VHS is not installed, install it before proceeding. On macOS: brew install vhs. On Linux, download the latest .deb or binary from the VHS GitHub releases page.

Steps

  1. Work from the current review branch and keep the generated asset with the source changes that produced it.

  2. If the setup flow changed, update demo/setup-demo.sh. It simulates the first-run experience and should match setup.sh. Keep these sections in sync:

    • Git identity prompts
    • GitHub CLI auth
    • AI coding assistant selection
    • Text editor (including Helix), default-editor, and TUI selection
    • Multiplexer and shell selection
    • SDK selection (Node.js, Python, Go, .NET, Rust)
  3. If the user wants to change the recording settings (dimensions, theme, timing), update demo/demo.tape.

  4. Run VHS to regenerate the animation:

    vhs demo/demo.tape
    

    This produces demo/squarebox-setup.gif.

  5. Verify the output looks correct by checking the file size and extracting a few sample frames with ffmpeg if available.

  6. Confirm README references the tracked demo/squarebox-setup.gif asset and include the regenerated GIF in the same review as the flow changes.

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. 4d ago First seen · 38 lines · 0 tokens per session scan A 2432e3515ac8

Subscribe to this mod's changes

regenerate-demo is a command published in the GitHub repository SquareWaveSystems/squarebox (71 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 329 tokens. 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-08-30.