Skip to content

Episodes

Episodes represent complete video productions that move through an 8-stage content pipeline, fully orchestrated by AI agents with automated quality gates.

Pipeline Stages

Each episode progresses through these stages sequentially. The worker-orchestrate service coordinates execution, invoking specialized agents and managing feedback loops automatically.

StageAgentReviewerMax IterationsDescription
ResearchResearcherProducer2Gather facts, sources, competitive analysis, define unique angle
ScriptWriterProducer3Write screenplay in channel character voice
StoryboardStoryboarderProducer2Plan visual sequences and scene layouts
AssetsAsset Finder1Find and download media resources (stock footage, images, audio)
CompositingCompositorProducer3Assemble Remotion video composition from 65+ components
ExportRender Worker1Render final MP4 via Chromium (dispatched to worker-render)
ReviewProducer1Holistic quality gate across all artifacts — always requires human approval
Publish1Guard on review approval, mark episode complete

Execution Modes

  • Full Pipeline — click "Run Pipeline" to execute from the next pending stage through to completion (or until a stage requires human intervention)
  • Single Stage — click "Run" on any individual stage to execute just that stage

Quality Gates

The producer agent scores each stage output 1-10. Stages scoring 7+ pass automatically. Failed stages trigger a feedback loop:

  1. Producer writes structured revision notes
  2. Notes are saved as stage feedback
  3. The responsible agent re-runs with the feedback context
  4. This repeats up to the stage's max iterations

If max iterations are exhausted without passing, the stage is marked needs_human and the pipeline pauses for manual intervention.

Upstream Issues

If the producer identifies a problem originating from an earlier stage (e.g., a weak script caused by thin research), both the current stage and the upstream stage are marked changes_requested. The pipeline halts so a human can decide whether to re-run the upstream stage.

Soft Recovery

If an agent hits its turn limit but still produced the expected artifact (e.g., research.md exists), the orchestrator proceeds to review rather than hard-failing — the artifact may be good enough to pass.

Stage Statuses

StatusMeaningColor
not_startedStage hasn't been runGray
in_progressAgent or render currently executingBlue (pulsing)
reviewProducer is evaluating the outputYellow
completeStage passed quality gateGreen
approvedHuman explicitly approved (review stage)Green
changes_requestedFeedback provided, needs re-runGray
needs_humanMax iterations exhausted or human gatePink
errorAgent or render failedRed

Episode Files

Each episode lives in channels/{channel}/episodes/{slug}/ with:

manifest.yml          # Pipeline state (stage statuses)
research.md           # Research output
script.md             # Written screenplay
storyboard.md         # Visual plan
Episode.tsx           # Remotion composition
feedback/             # Producer review notes per stage
  research.md
  script.md
  ...
output/               # Rendered video
  {slug}.mp4

TIP

Episodes require NATS workers to be running. Workers are deployed as Kubernetes Deployments in Helm (see the workers values section). For local dev: docker compose -f docker-compose.dev.yml up -d.