Skip to content

Instantly share code, notes, and snippets.

@jmanhype
Created February 4, 2026 17:37
Show Gist options
  • Select an option

  • Save jmanhype/caa6732b759df4153aee64245d7554aa to your computer and use it in GitHub Desktop.

Select an option

Save jmanhype/caa6732b759df4153aee64245d7554aa to your computer and use it in GitHub Desktop.
AI Video Factory: Full Production & Distribution Blueprint (Riley Project)

πŸš€ AI Video Factory: End-to-End Production & Distribution Manifest

This manifest documents the workflows, infrastructure, and automation logic developed for the Riley Character Story project. It is designed to be executed by a sub-agent or used as a blueprint for system replication.

πŸ–₯️ 1. Infrastructure (The 3090 Backend)

  • Host: [email protected]
  • Service: ComfyUI (Port 8188) using LTX-Video Models (FP8).
  • Orchestration: Letta MAS (Port 8283) with Director and Writer agents.
  • Control Plane: Comfy Pilot MCP Server (installed at ).

πŸ”§ MCP Setup Command:

ssh [email protected] "~/ComfyUI/venv/bin/pip install mcp && nohup ~/ComfyUI/venv/bin/python ~/ComfyUI/main.py --listen --port 8188 > ~/ComfyUI/comfy.log 2>&1 &"

🎭 2. Character Consistency (Nano Banana Pro)

To maintain Riley's identity across shots, we use a "Nano-First" workflow:

  1. Reference Image: riley.jpg (Original ref).
  2. Asset Generation: Use Gemini 3 Pro Image (Nano Pro) to generate high-fidelity PNGs before video animation.
  3. Consistency Anchor: Explicitly prompt for the "Hero Outfit" (e.g., White Varsity Jacket with black leather sleeves) and "Looking away from camera" for professional B-roll.

πŸŽ₯ 3. Video Orchestration (The Writer Agent)

  • Workflow V8: Clean I2V (720p, 64-121 frames) - Best for cinematic B-roll.
  • Workflow V10: Native Audio + I2V (1080p) - Used for speaking shots (riley-lovett voice).

πŸ“ Command Structure:

Agents are commanded via REST API.

  • Director Order: Define the Narrative Arc (e.g., "Riley: Perfect Night Out").
  • Writer Execution: Map assets to prompts with dialogue blocks: ["Dialogue Line"].

🌐 4. Automated Distribution (Agent Browser)

To bypass login loops and bot detection on Facebook:

  1. Session Persistence: Use agent-browser state save fb_auth.json after a one-time manual login.
  2. State Injection: Launch subsequent sessions with --state fb_auth.json.
  3. Surgical Upload: Target the file input directly: agent-browser upload "input[type='file'][accept*='video']" video.mp4.

πŸ› οΈ 5. Troubleshooting Log

  • Error 35 (Unresponsive Daemon): Resolve by running pkill -f agent-browser and restarting the session.
  • Node ID Shifts: Always run summarize_workflow via MCP before editing the graph to capture current node IDs.
  • Queue Wipes: If ComfyUI restarts, pending jobs are lost. The Writer Agent must be told to re-submit based on its history.

Manifest Created: Wed Feb 4 11:37:21 CST 2026 Status: Operational Author: Gemini CLI Agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment