"With so much more information to notate, multitasking is stretched to the limit... Multi-camera challenges the balance between data entry and all the other tasks a script supervisor needs to perform."
β Jayne-Anne Tenggren, Hollywood Script Supervisor (Star Wars, James Bond, 1917) in ForbesThe director still directs. The Shadow just remembers.
Shadow Cut is an autonomous, on-set AI script supervisor for feature film and episodic television production. It watches every take as it is uploaded by the Digital Intermediate Technician (DIT), grounds visual evidence against the authentic shooting screenplay, detects physical and performance continuity breaks in real time, and alerts the director while the cast and crew are still on set β before locations are struck and reshoots cost $50,000+ per day.
For $7.00 in compute per feature film, Shadow Cut prevents $50,000+ reshoots. That is a 7,000x Return on Investment.
The complete Shadow Cut backend is deployed live on Google Cloud Run in us-central1, connected to Google Firestore and Google Cloud Storage.
- Live API Base URL:
https://shadow-cut-api-713353926846.us-central1.run.app - API Health Check:
https://shadow-cut-api-713353926846.us-central1.run.app/health - Latest Continuity Alerts:
https://shadow-cut-api-713353926846.us-central1.run.app/api/alerts/latest - Production Trust Report:
https://shadow-cut-api-713353926846.us-central1.run.app/api/reports/trust
# 1. Health Probe curl -s https://shadow-cut-api-713353926846.us-central1.run.app/health # {"status":"ok","version":"1.0.0","service":"shadow-cut-engine"} # 2. Retrieve Live Forensic Continuity Alerts (Night of the Living Dead) curl -s https://shadow-cut-api-713353926846.us-central1.run.app/api/alerts/latest | jq . # 3. Query Shadow Memory via Gemini 3.6 Flash (with local RAG fallback) curl -s -X POST https://shadow-cut-api-713353926846.us-central1.run.app/api/chat/query \ -H "Content-Type: application/json" \ -d '{"message": "What did you catch during the barricade scene?"}' | jq .
βΆ Watch the Official 3-Minute Demonstration on YouTube (Runtime:
2:53β 1080p 60fps)
Experience how Shadow Cut detects on-set continuity breaks, unscripted prop shifts, and set dressing anomalies in real time without disrupting creative flow.
- IBM Bob Architectural Blueprint β Deep dive into the 6 MCP tools, data contracts, and watsonx Orchestrate catalog
- API Interface Contracts β Core service and inference bridge specifications
"The director directs. The Shadow just remembers."
Most AI systems fail on film sets because they attempt to automate artistic taste or generate noisy alerts that disrupt filming. Film is an organic, emotional medium where actors improvise and directors deliberately alter setups for dramatic effect.
Shadow Cut strictly adheres to the Director Autonomy Principle:
- Zero Artistic Dictation: The model never says "Cut" or decides whether a take is "ruined."
- Objective Physical Grounding: Shadow Cut reports only concrete physical facts (bounding boxes, pixel coordinates, text discrepancies, and lighting shifts).
- Tri-State Human Action Triage: Every alert offers the director three explicit, one-touch actions:
[Retake Take]: A physical defect that invalidates the take (e.g., crew markings facing the camera lens).[Accept Risk]: An intentional actor performance improvisation or creative departure (e.g., actor rips a table apart bare-handed instead of using a scripted tire iron).[Dismiss]: An inconsequential background variance or intentional cutaway choice.
To prove Shadow Cut on genuine cinematic footage rather than synthetic mock clips, we conducted an exhaustive, continuous 20-minute audit of 142 cuts from George A. Romero's public-domain masterpiece Night of the Living Dead (1968), cross-referencing every cut against Romero and John Russo's authentic shooting screenplay.
Shadow Cut uncovered four authentic historical continuity breaks and script deviations that slipped through into the final theatrical release:
| Timestamp | Category | Reality vs. Script | Confidence | Plot Weight | Director Action |
|---|---|---|---|---|---|
| 37:08 (02:30 clip) | Set Construction | Carpenter Handwriting: Raw pine barricade plank has visible pencil carpentry measurements & "UPPER RIGHT CORNER" facing camera. | 100.0% | CRITICAL | RETAKE REQUIRED |
| 07:58 β 08:15 | Prop Placement | Canister Jump: Charcoal lighter fluid can on fireplace hearth in Shot A shifts to the floor by the chair in reverse Shot B before anyone touches it. | 95.0% | IMPORTANT | DIRECTOR REVIEW REQUIRED |
| 13:25 β 13:35 | Actor Staging | Rifle Angle: Winchester repeating rifle propped vertically against doorframe abruptly shifts to horizontal across Ben's lap between cuts. | 90.0% | INCIDENTAL | LOG ONLY |
| 00:45 | Script Deviation | Table Disassembly: Screenplay specifies Ben uses an iron tire iron & hammer; actor Duane Jones improvises ripping it apart bare-handed. | 91.0% | PERFORMANCE | ACCEPT RISK |
Note
Production Trust Metric: Across all 142 analyzed cuts and 46 dialogue blocks, Shadow Cut verified an overall 99.2% Script Compliance Score, demonstrating that Duane Jones's physical performance departure was an isolated, brilliant artistic improvisation rather than a narrative breakdown.
The Shadow Cut front-end is an authentic dark-room command center built with Next.js 14, React, Tailwind CSS, and Lucide Icons, engineered specifically for on-set DIT carts and script supervisor tablets.
Real-time multi-camera take monitor, 99.2% script compliance gauge, and live continuity queue.
Side-by-side photographic evidence crops with one-touch Director Autonomy triage buttons: RETAKE REQUIRED, DIRECTOR REVIEW REQUIRED, and LOG ONLY.
Sub-50ms natural language query interface answering director queries with grounded screenplay scene, take, and timecode citations.
Automated wrap report detailing take compliance, audited cuts, and quantitative $50,000+ reshoot prevention ROI.
In Shadow Cut, IBM Bob is not merely an AI code assistant β IBM Bob generated the runtime nervous system of the entire platform:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β IBM BOB RUNTIME NERVOUS SYSTEM β
β β
β βββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββ ββββββββββββββββ β
β β 6 MCP SERVERS (Bob-Built) β β 31 STRICT PYDANTIC V2 SCHEMAS β β WATSONX SPEC β β
β β β’ script_parser.py β β β’ TakePayload, BoundingBox β β β’ 777-line β β
β β β’ analyze_take.py βββββββΆβ β’ ContinuityAlert, PropTrack βββββββΆβ OpenAPI β β
β β β’ check_continuity.py β β β’ PlotKnowledgeGraph β β 3.0 spec β β
β β β’ flag_alert.py β β β’ TrustReport β β β’ Orchestrateβ β
β β β’ query_memory.py β β (ZERO Dict[str, Any] allowed)β β skills β β
β β β’ generate_report.py β βββββββββββββββββββββββββββββββββ ββββββββββββββββ β
β βββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- 6 Model Context Protocol (MCP) Servers (
shadow_cut/mcp_servers/):script_parser.py: Parses PDF/text screenplays into structured Plot Knowledge Graphs.analyze_take.py: Extracts object trajectories, bounding boxes, and audio cues.check_continuity.py: Computes physical cut-to-cut delta between takes.flag_alert.py: Evaluates confidence math against the director decision matrix.query_memory.py: Vector semantic search over Firestore take memory.generate_report.py: Compiles daily continuity and financial savings reports.
- 31 Strict Pydantic v2 Schemas (
shadow_cut/models/schemas.py):- Complete type safety across the entire pipeline.
Dict[str, Any]is strictly banned across all models to guarantee reliable runtime execution.
- Complete type safety across the entire pipeline.
- IBM watsonx Orchestrate Specification (
shadow_cut/data/shadow_cut_orchestrate.yaml):- A complete 777-line OpenAPI 3.0 specification exposing all six Shadow Cut tools as native IBM watsonx Orchestrate skills.
- Cinematic Next.js 14 Command Center (
ui/):- Bob architected and generated the modular UI components (
DashboardView,AlertDetailView,ScriptDeviationsView,ChatView,ConfidenceRing,Badge,Card).
- Bob architected and generated the modular UI components (
- Confluent Kafka Streaming Consumer & Fallback (
shadow_cut/stream/confluent_consumer.py):- Built with a thread-safe sync-to-async asyncio bridge, cluster health probe, and automatic fallback to a local webhook queue.
Every analytical tool in Shadow Cut is an independently executable MCP server adhering to the Model Context Protocol standard:
# Sample of actual runtime tool dispatch through Bob-generated MCP server from shadow_cut.mcp_servers.flag_alert import _apply_decision_matrix from shadow_cut.models.schemas import BoundingBox, DirectorAlert from shadow_cut.core.confidence import ConfidenceEngine, PlotWeight, Action # 1. Initialize Confidence Engine engine = ConfidenceEngine(pro_budget=50) # 2. Evaluate detected anomaly against the Director Autonomy Decision Matrix action = _apply_decision_matrix(confidence=0.99, plot_weight="CRITICAL") # 3. Dispatched silently to supervisor tablet without interrupting creative flow print(f"Autonomous Action: {action}") # Output: 'ALERT' (Instant silent push)
Tip
Complete IBM Blueprint: Read BOB_INTEGRATION.md for the exhaustive breakdown of all 6 MCP servers, 31 Pydantic v2 schemas, watsonx OpenAPI specifications, and the comparative matrix of What Bob Built vs Cinematic Domain Logic.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PRE-PRODUCTION (DAY 0) β
β β
β Screenplay (PDF/TXT) βββΆ Gemini 3.1 Pro Preview (1M Context) βββΆ Plot Knowledge Graph βββΆ Firestore β
β Script Decomposition (Critical Props, Setup/Payoff) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DURING PRODUCTION (ON SET) β
β β
β Camera A/B βββΆ DIT Ingest βββΆ Confluent Kafka / GCS Proxy Bucket β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β TIER 1: YOLO-World Open-Vocabulary Detector (Local CPU/GPU, Every Frame, $0.00) β β
β β β’ Tracks bounding boxes of script vocabulary (lighter fluid, rifle, wooden plank, etc.) β β
β β β’ Flags spatial coordinate displacements between adjacent setups β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β TIER 2: Gemini 3.5 Flash-Lite Native Video Bridge (~$0.002 / take) β β
β β β’ Ingests H.264 proxy video + YOLO bounding box telemetry β β
β β β’ Validates physical anomalies against scene screenplay context β β
β β β’ Flags subtle visual defects (handwriting on props, key-light balance, wardrobe) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ (if confidence < 70% AND PlotWeight == CRITICAL) β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β TIER 3: Gemini 3.1 Pro Preview Narrative Escalation (~$0.10 / escalation) β β
β β β’ Deep narrative reasoning across scenes ("Does this wardrobe state match Scene 2?") β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β CONFIDENCE & TRIAGE ENGINE β β
β β TechnicalConfidence = EvidenceScore Γ HistoryWeight Γ DetectionTrust β β
β β β’ Gate: PlotWeight (CRITICAL / IMPORTANT / INCIDENTAL) β β
β β β’ Confidence β₯ 85% + CRITICAL βββΆ PUSH ALERT to Director Command Center β β
β β β’ Confidence < 70% βββΆ SILENT LOG to Firestore (Chat-Queryable) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β β
β βΌ βΌ β
β βββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββ β
β β NEXT.JS CINEMATIC COMMAND CENTER β β CONVERSATIONAL SHADOW MEMORY β β
β β β’ Confidence Rings & Alerts β β β’ Gemini 3.6 Flash Conversational API β β
β β β’ A/B Cut Comparison Slider ββββββββββββββ β’ Resilient Local RAG Fallback β β
β β β’ Screenplay Deviation Diff Viewer β β β’ Instant Q&A for Director / Script E β β
β βββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Tier | Engine | Execution Location | Responsibility | Unit Cost | Latency |
|---|---|---|---|---|---|
| Tier 1 | YOLO-World | Local DIT Hardware | Open-vocabulary spatial prop tracking per frame | $0.00 | < 50ms |
| Tier 2 | Gemini 3.5 Flash-Lite | Google Cloud Vertex AI | Multimodal video anomaly validation & transcription | ~$0.002 | ~3s |
| Tier 3 | Gemini 3.1 Pro Preview | Google Cloud Vertex AI | Complex cross-scene narrative continuity reasoning | ~$0.100 | ~12s |
| Chat | Gemini 3.6 Flash | Cloud Run API | On-set natural language Q&A with RAG memory fallback | ~$0.005 | ~1s |
To eliminate alert fatigue and ensure the crew trusts every notification, Shadow Cut calculates confidence as:
- PlotWeight is treated as a strict logical gate, never a decimal dampener.
- If
$\text{TechnicalConfidence} < 0.70$ , the finding is silently written to Firestore memory. - If
$\text{TechnicalConfidence} \ge 0.85$ and$\text{PlotWeight} \in {\text{CRITICAL}, \text{IMPORTANT}}$ , an alert is immediately dispatched to the director's tablet.
The Shadow Cut frontend is an enterprise Next.js 14 application built specifically for the low-light conditions of director monitor tents and sound stages:
- 4-Up Production Status Metrics:
- 142 Cuts Audited
- 1 Critical Retake Alert
- 99.2% Screenplay Compliance
- $45,000+ Reshoot Savings Computed
- Take Monitor & Live Continuity Queue:
- Real-time stream of incoming takes with animated confidence indicators.
- Direct action buttons on every card:
[Retake Take],[Accept Risk],[Dismiss].
- Cut-to-Cut Frame Comparison (A/B Split View):
- Synchronized side-by-side frame inspection with bounding boxes and defect highlights.
- Screenplay Deviation Reviewer:
- Visual diff comparing authentic shooting script lines with what actors actually performed on camera.
- Conversational Shadow Memory:
- Real-time assistant powered by Gemini 3.6 Flash with full Markdown rendering, suggested prompt chips, and instant answers grounded in production takes.
shadow-cut/
βββ README.md # Master Documentation & Benchmark Report
βββ LICENSE # MIT Open Source License
βββ requirements.txt # Production Python dependencies
βββ Dockerfile # Cloud Run containerization
β
βββ shadow_cut/ # Backend Python Application
β βββ api/ # FastAPI Server & Routes
β β βββ main.py # API entrypoint, CORS, RAG fallback, lifespan
β β βββ routes/
β β βββ alerts.py # Continuity alerts & action triage
β β βββ chat.py # Grounded Gemini chat with memory
β β βββ takes.py # Take proxy uploads & status
β β βββ reports.py # Trust reports & ROI calculation
β β
β βββ config/ # Environment & Application Settings
β β βββ settings.py # Strict Pydantic Settings validation
β β
β βββ core/ # Intelligence Engine
β β βββ bridge.py # YOLO-to-Gemini Flash-Lite Bridge
β β βββ confidence.py # Non-dampening Confidence Scoring Engine
β β βββ plot_graph.py # Screenplay Plot Knowledge Graph Builder
β β βββ vision_pipeline.py # Frame extraction & YOLO spatial tracker
β β
β βββ mcp_servers/ # IBM Bob-Built MCP Tools
β β βββ analyze_take.py # Tool: analyze_take
β β βββ check_continuity.py # Tool: check_continuity
β β βββ flag_alert.py # Tool: flag_alert
β β βββ generate_report.py # Tool: generate_report
β β βββ query_memory.py # Tool: query_memory
β β βββ script_parser.py # Tool: parse_script
β β
β βββ models/ # Strict Data Contracts
β β βββ data_models.py # Domain entities
β β βββ schemas.py # 31 IBM Bob Pydantic v2 schemas
β β
β βββ stream/ # Event Streaming
β β βββ confluent_consumer.py # Confluent Kafka consumer + fallback webhook
β β
β βββ data/ # Orchestration Specs
β βββ shadow_cut_orchestrate.yaml # 777-line IBM watsonx Orchestrate OpenAPI spec
β
βββ ui/ # Cinematic Next.js 14 Command Center
β βββ app/ # Next.js App Router
β βββ components/ # Modular UI Components
β β βββ DashboardView.tsx # Status 4-up, Take Monitor, Continuity Queue
β β βββ AlertDetailView.tsx # A/B Frame comparison & triage
β β βββ ScriptDeviationsView.tsx # Screenplay vs performance reviewer
β β βββ ChatView.tsx # Auto-scrolling Markdown Shadow Chat
β β βββ TrustReportView.tsx # Accuracy & financial ROI calculator
β β βββ ui/ # Reusable primitives (ConfidenceRing, Badge, Card)
β βββ lib/ # API client & domain interfaces
β βββ public/evidence_frames/ # Real Night of the Living Dead evidence frames
β
βββ test_data/notld/ # Benchmark Dataset
β βββ farmhouse_scene_script.txt # Authentic 1968 shooting screenplay
β βββ script_grounded_report.json # Ground truth forensic audit data
β βββ plot_graph.json # Pre-computed Plot Knowledge Graph
β βββ evidence_frames/ # Audited historical film frames
β
βββ docs/ # Technical Specifications & Architecture
βββ confidence_escalation_logic.md # Decision matrix & escalation math
βββ api_contracts.md # MCP & Bridge API contracts
βββ confluent_schema.md # Streaming event schemas
βββ edge_cases.md # 12 continuity edge cases
βββ images/ # Production UI captures & architecture
Get the complete Shadow Cut engine and test suite running locally in minutes:
# 1. Clone & enter repository git clone https://github.com/patriceai-code/shadow-cut.git cd shadow-cut # 2. Set up virtual environment python -m venv .venv # Windows: .venv\Scripts\activate # macOS/Linux: source .venv/bin/activate # 3. Install dependencies pip install -r requirements.txt # 4. Configure environment (pre-filled template provided) cp .env.example .env # (Optional) Add your GEMINI_API_KEY to .env for live Gemini calls # 5. Run the automated test suite pytest # 6. Launch FastAPI backend uvicorn shadow_cut.api.main:app --host 127.0.0.1 --port 8000 --reload
Shadow Cut includes a 20-test automated suite covering Pydantic v2 schemas, Confidence Engine decision thresholds, Director Autonomy filtering, and MCP tool contracts:
pytest tests/ -v
# ============================= 20 passed in 0.36s ==============================cd ui npm install npm run dev # Open http://localhost:3000
- Firestore Composite Indexes (
firestore.indexes.json): Pre-configured production indexes optimizing multi-field queries (scene,take,timestamp,confidence) for sub-second take lookups across thousands of production takes. - Structured JSON Telemetry (
shadow_cut/core/logger.py): Configured withstructlogto emit structured JSON logs in Cloud Run production and human-readable colorized logs in local development.
| Production Resource | Traditional Method | Shadow Cut Automated Pipeline |
|---|---|---|
| Coverage Tracking | Manual pen-and-paper binders | Automated multi-camera Plot Knowledge Graph |
| Anomaly Detection | Discovered weeks later in editing | Discovered in 15 seconds while crew is on set |
| Cost Per Take | N/A | $0.012 (YOLO + Flash-Lite) |
| Full Feature Film Cost | $5,000 human binder supplies | $7.00 total API compute |
| Reshoot Prevention | 1 reshoot day: $50,000 - $100,000 | $0.00 (caught and fixed before wrap) |
| Financial Return (ROI) | N/A | 7,000x Return on Investment |
Distributed under the MIT License. See LICENSE for complete details.
Built with passion for the Agentic Cinema Hackathon 2026.
- GitHub: patriceai-code/shadow-cut
- Live Deployment: shadow-cut-api-713353926846.us-central1.run.app
- Devpost Submission: Agentic Cinema Devpost
The director still directs. The Shadow just remembers.