gemini-watch: Instructions file for Gemini CLI

GEMINI.md

gemini-watch GEMINI.md is an instructions file for Gemini CLI from sudoax0n/gemini-watch. It costs 766 tokens per session, scanned C, original, MIT.

Instructions for a Gemini CLI extension that analyzes videos from URLs or local files. It downloads videos, extracts still frames, and obtains or transcribes audio so Gemini can inspect the content.

In plain words
What is it for?
Checking setup, parsing a video source and question, watching videos, reviewing extracted frames, and using captions or Whisper transcriptions.
Why use it?
It gives the command-line agent a repeatable process for turning video into visual and spoken information it can analyze.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md. Also seen: mentions Gemini CLI.

This is sudoax0n/gemini-watch's own configuration. It tells Gemini CLI how to work on gemini-watch 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 gemini-watch configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sudoax0n/gemini-watch. 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/sudoax0n/gemini-watch/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/sudoax0n/gemini-watch

Made for: Gemini CLI.

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 gemini-watch GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sudoax0n/gemini-watch/gemini-md/github.svg)](https://agentmods.dev/instructions/sudoax0n/gemini-watch/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/sudoax0n/gemini-watch/gemini-md"><img src="https://agentmods.dev/badge/instructions/sudoax0n/gemini-watch/gemini-md/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 gemini-watch GEMINI.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sudoax0n/gemini-watch/gemini-md"><img src="https://agentmods.dev/badge/instructions/sudoax0n/gemini-watch/gemini-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 766 This file is loaded in full into every session.
When invoked 766 The same file — it is already loaded in full.
Security scan C 1 finding. 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.00766 $0.00766
Opus 5.5 $0.00306 $0.00306
Sonnet 5.5 $0.00153 $0.00153
Haiku 4.5 $0.00077 $0.00077

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

Security

Grade C, and why

gemini-watch GEMINI.md scanned grade C with 1 finding 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 2mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

The script prints the working directory at the end: `Work dir: <path>`. If the user is done with their queries and won't ask follow-ups, delete it using `Remove-Item -Recurse -Force "<path>"` (or `rm -rf "<path>"` if in
GEMINI.md · 48 lines

How it starts

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

Gemini Watch Extension

This extension gives Gemini CLI "eyes" to watch video inputs (URLs or local paths) natively. It downloads videos with yt-dlp, extracts frames with ffmpeg, and transcribes audio via captions or Whisper. It then presents these frames and transcripts so you can analyze the video.

Step 0 — Setup preflight (runs every invocation)

Before running /gemini-watch, verify dependencies and API keys:

py scripts/setup.py --check
  • Exit 0 (Success): Proceed to Step 1 silently (do not announce setup is complete).
  • Exit 2 (Missing binaries like ffmpeg, ffprobe, yt-dlp): Instruct the user to run the installer: py scripts/setup.py.
  • Exit 3 (Missing Whisper key): Run the installer to scaffold the dotenv file, then ask the user for a Groq API Key (preferred — console.groq.com/keys) or OpenAI API Key (platform.openai.com/api-keys) and write it into ~/.config/gemini-watch/.env as GROQ_API_KEY=... or OPENAI_API_KEY=....
  • Exit 4 (Both missing): Run the installer, then ask the user for a key.

Step 1 — Parse Input

Separate the video source (URL or path) from the user's question.

Step 2 — Run the Watch Script

Invoke the watch script passing the source verbatim:

py scripts/watch.py "<source>"

Useful Flags:

  • --start T / --end T — Zoom into a section. Accepts SS, MM:SS, or HH:MM:SS. Auto-fps will scale denser for focused sections.
  • --max-frames N — Lower the cap for a tighter token budget (default 80, max 100).
  • --resolution W — Frame width in pixels (default 512; increase to 1024 only if reading small on-screen text).
  • --no-whisper — Disable Whisper fallback.
  • --whisper groq|openai — Force a specific backend.

Step 3 — Read the Frames & Audio

The watch script outputs a list of JPEG frame paths and an optional audio file path. Use the read_file tool to read all of these JPEGs and the audio file in parallel.

  • Visuals: Reading JPEGs allows you to see the video content natively.
  • Audio: If a transcript is missing but an audio.mp3 file is provided, read it natively to listen or transcribe the content yourself.

Read the full file on GitHub · 48 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. 2mo ago First seen · 48 lines · 766 tokens per session scan C 9e68c54bbed4

Subscribe to this mod's changes

gemini-watch GEMINI.md is an instructions file published in the GitHub repository sudoax0n/gemini-watch (1 stars, last pushed 5mo ago), licensed MIT. It adds 766 tokens to every session, about $0.0031 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

gemini-watch GEMINI.md compared with instructions from other repositories

gemini-watch GEMINI.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gemini-watch GEMINI.mdsudoax0n/gemini-watchInstructions file15mo agoMITC766Gemini CLI
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode