swarm: Command for Claude Code

.claude/commands/render_promo.md

render_promo is a command for Claude Code from swarm-ai-research/swarm. It costs 0 tokens per session (721 once invoked), scanned A, original, MIT.

A command that renders a Remotion video project, where videos are created with React and code, into an MP4, GIF, or still image. It checks for the source project, installs missing dependencies, and type-checks the code before rendering.

In plain words
What is it for?
Use it to export the SWARM promotional video as an MP4, GIF, or selected still frame, optionally opening the result.
Why use it?
It gathers the setup and validation steps needed to produce a video file in one workflow. It also explains how to obtain the project if its source folder is missing.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is swarm-ai-research/swarm's own configuration. It tells Claude Code how to work on swarm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything swarm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to swarm-ai-research/swarm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/swarm-ai-research/swarm/main/.claude/commands/render_promo.md
Clone the repo
git clone --depth 1 https://github.com/swarm-ai-research/swarm

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 render_promo

README.md
[![agentmods](https://agentmods.dev/badge/commands/swarm-ai-research/swarm/render_promo/github.svg)](https://agentmods.dev/commands/swarm-ai-research/swarm/render_promo)
Your own site
<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/render_promo"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/render_promo/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 render_promo

Your own site · 80×15
<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/render_promo"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/render_promo.svg" alt="Reviewed on agentmods" width="80" 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 721 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.00000 $0.00721
Opus 5 $0.00000 $0.00360
Sonnet 5 $0.00000 $0.00144
Haiku 4.5 $0.00000 $0.00072

Measured 9d ago against content hash 497e50fa5558, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

render_promo 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 9d 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/render_promo.md · 96 lines

How it starts

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

/render_promo

Render the SWARM Remotion promo video to MP4, GIF, or still frame.

Note: The promo/ source code has been moved to swarm-ai-research/swarm-artifacts. Clone that repo first if promo/ is not present locally.

Usage

/render_promo [--format mp4|gif|still] [--frame N] [--open]

Examples:

  • /render_promo (renders MP4, opens it)
  • /render_promo --format gif
  • /render_promo --format still --frame 60

Behavior

Step 0: Check promo/ exists

If promo/ is not present, instruct the user:

promo/ not found. Clone it from the artifacts repo:
  git clone https://github.com/swarm-ai-research/swarm-artifacts.git /tmp/swarm-artifacts
  cp -R /tmp/swarm-artifacts/promo ./promo

Step 1: Install dependencies (if needed)

cd promo && npm ls remotion 2>/dev/null || npm install

Only install if node_modules is missing or incomplete.

Step 2: Type-check

cd promo && node_modules/.bin/tsc --noEmit

If type errors exist, fix them before rendering. Common issues:

  • Missing typescript dev dependency: npm install typescript --save-dev
  • Unicode escape sequences in JSX: use actual characters instead of \uXXXX

Step 3: Render

MP4 (default):

cd promo && npx remotion render SwarmPromo out/swarm-promo.mp4

GIF:

cd promo && npx remotion render SwarmPromo out/swarm-promo.gif --image-format=png --every-nth-frame=2

Still frame:

cd promo && npx remotion still SwarmPromo --frame=<N> out/thumbnail.png

Default frame for stills: 60 (shows the SWARM title fully animated). Frame 0 is too dark.

Step 4: Report and open

Rendered:
  Format:   <mp4|gif|still>
  Output:   promo/out/<filename>
  Size:     <file size>
  Duration: <seconds if video>

Then open the output:

open promo/out/<filename>

Project Structure

The Remotion project lives in promo/:

  • promo/src/Root.tsx — Composition definition (1170 frames, 30fps, 1920x1080)
  • promo/src/SwarmPromo.tsx — Scene sequencing via TransitionSeries
  • promo/src/scenes/*.tsx — Individual scenes
  • promo/src/theme.ts — Shared colors and fonts
  • promo/out/ — Render output (gitignored)

Read the full file on GitHub · 96 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. 9d ago First seen · 96 lines · 0 tokens per session scan A 497e50fa5558

Subscribe to this mod's changes

render_promo is a command published in the GitHub repository swarm-ai-research/swarm (41 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 721 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.