media
Understand an audio / video / image file — Antigravity (agy/Gemini) transcribes and analyzes it, returning a timestamped digest while the full transcript goes to a file.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/yuting0624/antigravity-for-claude-code/HEAD/commands/media.md -o ~/.claude/commands/media.mdmedia.md
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.Run the Antigravity CLI (Gemini) as a collaborating AI inside Claude Code, with intelligent model routing across the software development lifecycle. Claude is the conductor/orchestrator — requirements, architecture, the hard 20%, verification, and review — and routes deterministic, high-volume work (scaffolding, boilerplate, test generation, first-pass review, migrations, web/Vertex AI Search) to Antigravity (Gemini), the cheaper, faster model. Use when the user wants to "use Antigravity / agy", "vibe code / agentic engineering", "accelerate the SDLC", "delegate to Gemini", "scaffold / generate tests / migrate", "first-pass code review", "search web or internal/company data", "deep research / multi-source research report", "second-model cross-check", or "lower token cost on a big job". Claude always verifies Antigravity's output and re-checks itself if unsatisfied.
|
Cancel a running background Antigravity (agy) delegation job.
Diagnose a failing Cloud Run service — Antigravity (agy/Gemini) digests the error logs cheaply, Claude infers the root cause and proposes a fix. Read-only by default; --apply writes the fix to a branch.
Delegate a well-scoped subtask to Antigravity (agy/Gemini) under cost discipline, then verify.
Migrate an existing Claude Code setup (skills, memory, CLAUDE.md, MCP, plugins, permissions) to the Antigravity CLI.
Move an existing Claude Code setup onto the Antigravity CLI (agy) — user skills, CLAUDE.md, auto-memory, MCP servers, installed plugins, permissions and trusted workspaces. Use when the user says "migrate to Antigravity", "move my Claude Code config to agy", "bring my skills/memory/MCP over", "set up agy like my Claude Code", "agy plugin import claude found nothing", or asks what can and cannot be carried across. Also use to explain the two config layouts, or to reverse a migration.
Claude-orchestrated deep research — Antigravity (agy/Gemini) does the grounded web legwork; Claude plans, verifies the citations, and synthesizes.