add-captions

add-captions is a command for coding agents from DojoCodingLabs/remotion-superpowers. It costs 39 tokens per session (1,020 once invoked), scanned A, original, MIT.

A command that transcribes audio with Whisper and turns the transcript into animated, word-by-word subtitles for a Remotion video. Whisper is a speech-to-text system.

In plain words
What is it for?
Use it to add TikTok-style, YouTube-style, karaoke, or minimal captions, with choices for position, colours, and appearance.
Why use it?
It saves you from manually typing captions and timing each word to the audio.

Command

Part of the remotion-superpowers plugin — 2 skills, 13 commands, 3 agents, 2 hooks, 5 MCP servers shipped together

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/dojocodinglabs/remotion-superpowers/add-captions
Clone the repo
git clone --depth 1 https://github.com/DojoCodingLabs/remotion-superpowers

Or install remotion-superpowers, the plugin that ships this one along with the rest of its 2 skills, 13 commands, 3 agents, 2 hooks, 5 MCP servers.

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 add-captions

README.md
[![agentmods](https://agentmods.dev/badge/commands/dojocodinglabs/remotion-superpowers/add-captions.svg)](https://agentmods.dev/commands/dojocodinglabs/remotion-superpowers/add-captions)
Your own site
<a href="https://agentmods.dev/commands/dojocodinglabs/remotion-superpowers/add-captions"><img src="https://agentmods.dev/badge/commands/dojocodinglabs/remotion-superpowers/add-captions.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,020 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.00039 $0.01020
Opus 5 $0.00019 $0.00510
Sonnet 5 $0.00008 $0.00204
Haiku 4.5 $0.00004 $0.00102

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

Security

Grade A, and why

add-captions 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.

commands/add-captions.md · 141 lines

How it starts

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

Add Captions — TikTok-Style Animated Subtitles

You are helping the user add animated word-by-word captions to their Remotion video.

Load the remotion-production skill for the captions-workflow rule.

Workflow

1. Identify the Audio Source

Find the voiceover or primary audio file:

# Check for existing audio files
ls public/audio/ public/ 2>/dev/null | grep -E '\.(mp3|wav|m4a|ogg)$'

If no audio exists, suggest running /add-voiceover first.

2. Transcribe with Whisper

Generate word-level timestamps:

Use remotion-media generate_subtitles:
- input: [path to audio file]
- project_path: [project root path]

This returns an SRT file with timestamps. Save to public/captions/.

3. Install Captions Package

Ensure @remotion/captions is installed:

npx remotion add @remotion/captions

4. Choose Caption Style

Ask the user what style they want:

  • TikTok style (default) — Bold, centered, one word at a time, colored highlight
  • YouTube style — Bottom of screen, sentence at a time
  • Karaoke style — Words highlight as they're spoken
  • Minimal — Small, subtle, bottom-left

5. Create the Captions Component

import { useCurrentFrame, useVideoConfig } from "remotion";
import { createTikTokStyleCaptions } from "@remotion/captions";

// Parse the transcription into Remotion Caption objects
// Apply createTikTokStyleCaptions() for word-by-word timing

export const Captions: React.FC<{ captions: Caption[] }> = ({ captions }) => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();
  const currentTimeMs = (frame / fps) * 1000;

  const { pages } = createTikTokStyleCaptions({
    captions,
    combineTokensWithinMilliseconds: 800,
  });

  // Find current page based on time
  const currentPage = pages.find(
    (p) => currentTimeMs >= p.startMs && currentTimeMs < p.startMs + p.durationMs
  );

  if (!currentPage) return null;

  return (
    <div style={{
      position: "absolute",
      bottom: "15%",
      left: 0,
      right: 0,
      display: "flex",
      justifyContent: "center",
      padding: "0 40px",
    }}>
      <div style={{
        fontSize: 64,
        fontWeight: 800,
        textAlign: "center",
        textShadow: "2px 2px 8px rgba(0,0,0,0.8)",
        color: "white",
      }}>
        {currentPage.tokens.map((token, i) => {
          const isActive = currentTimeMs >= token.fromMs && currentTimeMs < token.toMs;
          return (
            <span key={i} style={{
              color: isActive ? "#FFD700" : "white",
              transition: "color 0.1s",
            }}>
              {token.text}
            </span>
          );
        })}
      </div>
    </div>
  );
};

Read the full file on GitHub · 141 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. 4d ago First seen · 141 lines · 39 tokens per session scan A 1559d452b6cb

Subscribe to this mod's changes

add-captions is a command published in the GitHub repository DojoCodingLabs/remotion-superpowers (116 stars, last pushed 6mo ago), licensed MIT. It adds 39 tokens to every session and 1,020 once invoked, about $0.0002 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-08-30.