Credentials. Your Gemini API key is read from the GEMINI_API_KEY environment variable, so keep it out of shared shell history and committed files.
Who it is forA developer using Claude Code on a video project who sees the agent re-analyze the same clips every session.
The problemEach time an agent touches a video, it runs a full video-understanding pass, which costs tokens and time.
The outcomeEach clip gets one .cdaf sidecar, and later agent sessions check its hash and read the text description first.
What you need first
- Python 3.10 or newer
- Node.js with npx for the agent skill install
- A Gemini API key (bring your own) for generating sidecars, or the local provider for no-key generation
- ffmpeg, only if you run the synthetic benchmark
Steps
- Run
npx cdaf-skillto install the agent skill for all your projects. - Run
pip install "cdaf[generate] @ git+https://github.com/UditAkhourii/cdaf.git#subdirectory=cli"to install the CLI with the generator. - Run
export GEMINI_API_KEY=your-key(PowerShell:$env:GEMINI_API_KEY="your-key"). - Run
cdaf generate ./footageto describe every video and skip fresh sidecars. - Run
cdaf status ./footageto confirm each video reports FRESH.
Prompt for your agent
Using the CDAF skill in the repo UditAkhourii/cdaf, check <footage-folder> for a .cdaf sidecar next to each video, verify the bytes and sha256 header against the video, and read the sidecar instead of watching any fresh video. Report the list of videos with their status (FRESH, STALE, or MISSING) and confirm that you did not run a video analysis on any FRESH file.
Caveat. The skill and CLI only reduce repeat analysis after a sidecar exists, so the first pass over each video still costs a full generation.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for UditAkhourii/cdaf and "Stop coding agents from re-watching the same footage"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer