Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save jmanhype/bb701b228afa7bd818bff13e6b03fb92 to your computer and use it in GitHub Desktop.
TOTAL RECALL: Full Technical Dump of Riley AI Factory Session

🧠 TOTAL RECALL: The "Riley" AI Factory Full Session Dump

Session ID: Feb 4, 2026 Operator: Gemini CLI Objective: End-to-End Character Video Production & Distribution


πŸ—οΈ 1. INFRASTRUCTURE & REPAIR

The exact commands used to fix the 3090 environment.

πŸ”§ MCP Server Installation (Remote 3090)

# SSH into 3090
ssh straughter@192.168.1.143

# Install Dependencies & Start Server
~/ComfyUI/venv/bin/pip install mcp
nohup ~/ComfyUI/venv/bin/python ~/ComfyUI/main.py --listen --port 8188 > ~/ComfyUI/comfy.log 2>&1 &

πŸ’‰ Database Injection (Fixing Letta Agent Tools)

Executed on the PostgreSQL DB to fix the submit_video tool schema.

UPDATE tools SET json_schema = jsonb_set(json_schema, '{name}', '"submit_video"') WHERE name = 'submit_video';

🧬 2. ASSET GENERATION (Nano Banana Pro)

The exact source prompts used to create the images.

🎭 Consistency Logic (The "V2" Series)

Concept: "Riley's Perfect Night Out" Anchor: White Varsity Jacket Reference: Base64 of riley.jpg (injected into every call)

1. The Escalade (Pickup)

Prompt Payload:

{
  "text": "Cinematic 8k photorealistic shot. Riley opening back passenger door of a black Cadillac Escalade SUV at night in NYC. iPhone 17 quality photorealistic. She is wearing a white varsity jacket with black leather sleeves. She is looking back before getting in. CRITICAL: Maintain Riley EXACT facial structure and long dark wavy hair from reference. OUTFIT CONSISTENCY: She must be wearing the white varsity jacket."
}

2. The Knicks Game (POV)

Prompt Payload:

{
  "text": "Cinematic 8k photorealistic shot. POV shot of two hands holding stadium cups at a Knicks basketball game. Left arm has a white varsity jacket sleeve. Right hand masculine. They are clinking toasts. Basketball court background. CRITICAL: Maintain Riley EXACT facial structure and long dark wavy hair from reference. OUTFIT CONSISTENCY: She must be wearing the white varsity jacket."
}

3. The Hibachi Dinner (Intimacy)

Prompt Payload:

{
  "text": "Cinematic 8k photorealistic shot. iPhone 17 flash photo quality of Riley eating hibachi. She is wearing a white varsity jacket. She is holding a glass of white wine and smiling at the camera. Restaurant lighting. CRITICAL: Maintain Riley EXACT facial structure and long dark wavy hair from reference. OUTFIT CONSISTENCY: She must be wearing the white varsity jacket."
}

🏒 Professional Series (The "Executive" Suite)

Concept: High-end B-Roll Anchor: Looking away from camera / Candid

1. The Visionary (Window)

Prompt Payload:

{
  "text": "Cinematic 8k photorealistic editorial shot. Standing by a floor-to-ceiling window in a high-rise luxury office, looking out at the city skyline. She is wearing a tailored beige blazer. Side profile, looking away from camera. Editorial business style. CRITICAL: Maintain Riley EXACT facial structure and long dark wavy hair from reference. POSE: She must be LOOKING AWAY from the camera (candid/profile)."
}

2. The Boardroom (Focus)

Prompt Payload:

{
  "text": "Cinematic 8k photorealistic editorial shot. Sitting at a large glass conference table in a modern boardroom. She is wearing a navy blue power suit. She is looking off to the side, deep in thought. Candid, not looking at camera. CRITICAL: Maintain Riley EXACT facial structure and long dark wavy hair from reference. POSE: She must be LOOKING AWAY from the camera (candid/profile)."
}

🎬 3. VIDEO ORCHESTRATION (The Writer Agent)

The precise API calls used to trigger the Letta agents.

πŸ“¨ "Perfect Night Out (V2)" Order

Endpoint: http://192.168.1.143:8283/v1/agents/agent-e565b3e8-4a59-440a-89ab-6c279d61cfb0/messages Configuration: Native Audio (Version 10) + Dialogue

{
  "messages": [
    {
      "role": "user",
      "content": "Writer, generate the "Riley: Perfect Night Out (V2)" Story Series. 

MODE: Native Audio (Version 10). Voice: riley-lovett. 

1. Chapter 1: riley_escalade_v2.png. Prompt: ["Okay, finally here. This night is gonna be crazy."] Riley opens Escalade door, looks back excitedly, gets in.
2. Chapter 2: knicks_cheers_v2.png. Prompt: ["To us. And to the Knicks baby!"] POV hands clinking cups at game. Energetic.
3. Chapter 3: riley_hibachi_pov_v2.png. Prompt: ["Oh my god. You have to try this right now."] Riley sips wine, laughs, looks at camera. Intimate.
4. Chapter 4: hibachi_plates_v2.png. MODE: Clean I2V (No Audio). Prompt: Cinematic close up steaming hibachi steak and rice. Sizzling.
5. Chapter 5: riley_nyc_street_v2.png. Prompt: ["Best. Night. Ever. Seriously."] Riley strutting down NYC street, turns and smiles.

Execute all 5."
    }
  ]
}

πŸ“¨ "Executive Suite" Order

Configuration: Clean I2V (Version 8) + No Audio

{
  "messages": [
    {
      "role": "user",
      "content": "Writer, generate the "Riley: Executive Suite" (4 videos). 

MODE: I2V (Clean 720p - Version 8)
NO AUDIO. Cinematic B-roll, professional atmosphere.

1. The Visionary: riley_office_window.png. Prompt: Riley stands by window looking out at city skyline. Subtle reflection. Slow contemplative breath.
2. The Executive: riley_boardroom.png. Prompt: Riley sitting at conference table, tapping pen thoughtfully, looking off to side. Deep focus.
3. The Creative: riley_arch_studio.png. Prompt: Riley examining architectural model, tilting head slightly. Modern minimalist studio.
4. The Keynote: riley_conference.png. Prompt: Riley standing in profile, gesturing slightly at data screen. Tech conference atmosphere.

Execute all 4."
    }
  ]
}

🌐 4. DISTRIBUTION (Agent Browser Automation)

The battle-tested commands to post on Facebook.

πŸ” Authentication Bypass

Problem: Headless browsers get blocked or hit login loops. Solution: One-time headed login + State Persistence.

# 1. Launch & Login
/opt/homebrew/bin/agent-browser close
/opt/homebrew/bin/agent-browser --headed open "https://facebook.com"

# 2. Capture State (After manual login)
/opt/homebrew/bin/agent-browser state save fb_auth.json

πŸš€ Group Navigation & Upload

Target Group: https://www.facebook.com/groups/1208994427922565 (Faceless Digital Marketing)

# 1. Open with State
/opt/homebrew/bin/agent-browser --state fb_auth.json --headed open "https://www.facebook.com/groups/1208994427922565"

# 2. Trigger Composer
/opt/homebrew/bin/agent-browser find text "Write something..." click

# 3. Surgical Upload (Bypassing OS Dialog)
# Target the hidden input directly!
/opt/homebrew/bin/agent-browser upload "input[type='file']" "/Users/speed/Downloads/work-context/LTX-2_I2V_CLEAN_1770007375_00003.mp4"

# 4. Inject Caption
/opt/homebrew/bin/agent-browser fill "div[role='textbox']" "Ladies, just posting cute pictures..."

# 5. Execute Post
/opt/homebrew/bin/agent-browser find role button click --name "Post"

πŸ“ 5. GENERATED ARTIFACTS (Local)

  • /Users/speed/Downloads/work-context/
    • riley_base64.txt (Source)
    • fb_auth.json (Auth Key)
    • LTX-2_I2V_CLEAN_1770007375_00001.mp4 (Hibachi Closeup)
    • LTX-2_I2V_CLEAN_1770007375_00002.mp4 (Hibachi Wide)
    • LTX-2_I2V_CLEAN_1770007375_00003.mp4 (Hibachi Profile - POSTED)
    • *_v2.png (New Assets)

Manifest Generated: Feb 4, 2026 System: Gemini CLI

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