Automating YouTube Video Production with Claude Code

Brian Caselgo watch the original →

Brian Casel demonstrates an AI-native video editing workflow where Claude Code orchestrates transcription, B-roll selection, motion graphic generation, and segment assembly using a custom-built agentic system.

The AI-Native Editing Architecture

Brian Casel has replaced traditional manual video editing with a custom agentic workflow orchestrated by Claude Code. The system treats video production as a software engineering problem, utilizing a series of modular 'skills'—custom scripts and wrappers—that interact with specialized engines like FFmpeg for cutting, ElevenLabs for transcription, and a proprietary tool called 'Tuber' for managing a library of reusable B-roll. The workflow is designed to handle the entire post-production pipeline, from removing dead air and bad takes to generating custom motion graphics via a tool called 'Hyperframes'.

The Three-Phase Execution Model

Casel’s process is structured into three distinct phases to ensure quality while minimizing human intervention:

  1. Prep Phase: Claude analyzes raw footage, generates transcripts, identifies cut points, and proposes B-roll or motion graphic placements. This results in a set of markdown-based review files (transcript.md) that serve as the interface for human feedback.
  2. Execution Phase: Once the human approves the plan, Claude executes the edits. To prevent errors, Casel engineered the system to process tasks (especially motion graphic generation) sequentially rather than in parallel, which increases reliability at the cost of longer processing times.
  3. Review & Finalization: The human performs a final review of the stitched segments, provides minor course corrections via text notes, and triggers the final export and cleanup of working files.

Human-in-the-Loop Design

Despite the high level of automation, Casel emphasizes that the system is not 'set and forget.' He intentionally designed 'gates' where the agent pauses to present its work. This allows him to focus on high-level creative decisions—like suggesting a specific B-roll clip or refining a motion graphic concept—while the agent handles the tedious labor of frame-accurate cutting and file management. The use of markdown as a communication layer between human and agent allows for precise, iterative feedback without needing to re-render the entire project from scratch.

Technical Tradeoffs

Building this system required significant iteration. Casel noted that early attempts at parallel processing caused failures in motion graphic generation, leading him to implement a queue-based system. He also highlights the cost of redundancy: he re-transcribes the video multiple times throughout the process to allow the agent to self-verify its own editing work, a trade-off he accepts for the sake of accuracy and reliability.

  • #ai-agents
  • #workflow-automation
  • #video-production
  • #claude-code

summary by google/gemini-3.1-flash-lite. probably wrong about something. check the source.