media

media is a command for Claude Code from yuting0624/antigravity-for-claude-code. It costs 38 tokens per session (715 once invoked), scanned A, original, MIT.

A command for having Gemini analyze an audio, video, or image file and produce a timestamped summary. It also saves the complete transcript to a file when the input contains speech.

In plain words
What is it for?
Use it to transcribe recordings, analyze images or videos, find information at particular times, and answer a focused question about a file. It supports choosing an analysis tier, increasing the timeout, and converting unsupported media formats.
Why use it?
It handles media that a text-focused coding agent cannot directly hear or watch. It also documents format conversion and options for long recordings or simpler versus more demanding analysis.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Part of the antigravity plugin — 2 skills, 11 commands, 1 agent, 2 hooks shipped together

Good fit Use it to transcribe recordings, analyze images or videos, find information at particular times, and answer a focused question about a file. It supports choosing an analysis tier, increasing the timeout, and converting unsupported media formats.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yuting0624/antigravity-for-claude-code/media
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/yuting0624/antigravity-for-claude-code

Made for: Claude Code.

Or install antigravity, the plugin that ships this one along with the rest of its 2 skills, 11 commands, 1 agent, 2 hooks.

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 media

README.md
[![agentmods](https://agentmods.dev/badge/commands/yuting0624/antigravity-for-claude-code/media/github.svg)](https://agentmods.dev/commands/yuting0624/antigravity-for-claude-code/media)
Your own site
<a href="https://agentmods.dev/commands/yuting0624/antigravity-for-claude-code/media"><img src="https://agentmods.dev/badge/commands/yuting0624/antigravity-for-claude-code/media/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 media

Your own site · 80×15
<a href="https://agentmods.dev/commands/yuting0624/antigravity-for-claude-code/media"><img src="https://agentmods.dev/badge/commands/yuting0624/antigravity-for-claude-code/media.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 715 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.00715
Opus 5.5 $0.00015 $0.00286
Sonnet 5.5 $0.00008 $0.00143
Haiku 4.5 $0.00004 $0.00072

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

Security

Grade A, and why

media 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.

commands/media.md · 52 lines

What it actually says

Claude Code can't hear audio or watch video, and doing it locally means an ffmpeg + speech-model stack. Gemini is natively multimodal — so delegate the perception to agy and keep the judgment here.

Input: $ARGUMENTS

Do this:

  1. Resolve the file. First arg is the path; anything else (that isn't a flag) is the focus/question. If no file was given, ask which one (AskUserQuestion) — don't guess.

  2. Delegate (the engine handles format pre-flight, the digest contract, and writes the full transcript to a file):

    agy-media <file> [focus] [--convert] [--tier pro|flash] [--timeout 20m] [--out <path>]
    
    • Default tier is pro (better timestamps/diarization); --tier flash is fine for short/simple clips.
    • Long media needs headroom: raise --timeout (e.g. 20m) for anything over a few minutes. If it still times out (exit 12), split the file into ~30-min chunks and run them separately.
    • Exit 5 = unsupported format. agy mishandles .m4a / .aiff (common for voice memos) even though Gemini accepts them. The engine prints the exact conversion command — re-run with --convert to have it converted automatically (macOS afconvert, else ffmpeg).
  3. Ingest ONLY the digest it prints (summary · timestamped outline · key points · quotes · action items · visuals · uncertainty notes). Do not read the whole transcript file into context — a 1-hour recording is ~10k words and re-reading it every turn is exactly the cost blow-up this plugin exists to avoid. The transcript file is there so you can grep/read slices on demand.

  4. Verify before you rely on it (transcription is not ground truth):

    • Check the transcript file actually exists (the engine warns if it doesn't).
    • The digest flags unclear audio and uncertain names/numbers — treat those as unverified. For any load-bearing figure, name, or quote, read that timestamp's slice from the transcript file (e.g. grep -n "\[12:3" <transcript>) rather than trusting the summary.
    • Say plainly which claims you confirmed and which are still the model's guess.
  5. Report: the digest's substance (not a re-paste), where the transcript lives, and what you verified. If the user asked a specific question, answer it with [mm:ss] citations so they can jump to the source.

Good uses: meeting/interview notes, a screencast or demo video, a voice memo, a conference talk, a UI walkthrough, an architecture diagram or screenshot.

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 First seen · 52 lines · 38 tokens per session scan A 93bd8eb754f7

Subscribe to this mod's changes

media is a command published in the GitHub repository yuting0624/antigravity-for-claude-code (416 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 715 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-08-30.