# "The AI Reverse Engineering Workflow"
<!--
ref: @content/youtube/all-about-ai/2025-12-14-the-ai-reverse-engineering-workflow
version: 4
updated_at: 2026-10-31T18:23:39.695Z
-->

From All About AI, 2025-12-14: The fastest way to learn AI product design is to take an existing tool you admire, decompose it into its cheapest possible representations (e.g., video → audio → transcript + timestamps), and rebuild a working clone with Claude Code.

The host of the All About AI channel walks through his personal method for reverse-engineering AI products, using Opus Clip (long-form video → short vertical clips) as the worked example.

## Core Thesis
The fastest way to learn AI product design is to take an existing tool you admire, decompose it into its cheapest possible representations (e.g., video → audio → transcript + timestamps), and rebuild a working clone with Claude Code. The output won't match the polished original, but the habit of observe → note → plan → product compounds into better ideas and sharper pipeline intuition.

## Key Insights
- **Decompose the input first.** A video is just MP4 frames + MP3 audio. Picking the cheapest representation for each step (audio + transcript beats raw frames) is an economic decision, not just a technical one.
- **LLMs reason over text, not video.** The pipeline's job is to convert media into a textual form — a "timeline JSON" with start/end timestamps, text, and tags — that becomes the contract between the analysis step and the cutting step.
- **Speaker-aware cropping is the real trick.** Detecting *any* face isn't enough; you need the coordinates of the face that's actually talking so vertical reframing follows the speaker.
- **Plan mode in Claude Code turns loose notes into structure.** Tagging a `@notes` file lets Claude ask clarifying questions (manual vs. auto clip selection, local Whisper vs. API, speaker detection strategy) before generating steps.
- **Iteration is the default, not a failure.** Missing model weights, imperfect crops, and skipped polish steps (like captions) are expected on first runs.
- **Reverse-engineering compounds.** The more you break down things you encounter, the more opportunities you start to see everywhere.

## Pipeline Outlined
1. Download video with `yt-dlp`
2. Extract audio from MP4
3. Transcribe locally with Whisper (word-level timestamps)
4. Analyze transcript with Gemini 3 to surface interesting moments
5. Output timeline JSON (start, end, text, tag)
6. User picks a clip (manual selection)
7. Cut with `ffmpeg` using JSON timestamps
8. Detect faces with YOLO + identify active speaker
9. Crop 16:9 → 9:16 centered on the speaker
10. Burn captions with `ffmpeg` → `final_video_with_caption.mp4`

## Actionable Takeaways
1. Keep a running `notes/` file while designing any pipeline — write steps as you think them, then feed the file to Claude Code's plan mode.
2. Pull official docs (e.g., Gemini 3) into a `docs/` folder so your coding agent has grounded reference material.
3. Design each step to produce a well-defined artifact the next step consumes (timeline JSON is the canonical example).
4. Pre-download model weights (YOLO, Whisper) before the first run to avoid mid-pipeline failures.
5. Keep prompts loose ("let's use Python") — Claude's clarifying questions surface the real architectural decisions.
6. Treat imperfect first-run output as the starting point for polish, not a verdict on the approach.

## Notable Quotes
> "A video is of course MP4 and the audio is maybe MP3… economically it's better to just extract audio."

> "We need the coordinates of the face that is talking in the clip. So we only kind of focus on the person that is actually talking."

> "My progress is to break it down into these notes here and then I use these notes to Claude Code to turn it into a plan, then turn it into a product."

> "The more things you do like this, the more things you come up with stuff you can do, ideas and stuff."

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*