Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

ghost233lism/StateWeaver

Media & Design

Multi-agent studio that turns a confirmed screenplay into a long-horizon video with tracked character, prop and scene states.

This project ships 23 agent skillsSkill list and install →
116
10
Python
NOASSERTION
6 days old
+22 stars in 11h

What it is

StateWeaver is the reference implementation for a paper on coordinating story-state transitions in long-horizon video generation. It is a multi-agent video production studio: a chief director splits connected story units into Sets, set directors plan, generate and review Clips, and executive directors prepare assets or diagnose repairs. Verified results are tied to story time, asset states and reference versions, so later clips can inherit confirmed character, prop and scene states instead of drifting StateWeaver. The paper and project page describe the method paper project page.

It targets teams or researchers who already have access to text, image and video generation APIs (or a local H3 Ref2VA deployment) and want a reviewable pipeline for multi-scene stories, rather than a one-shot text-to-video demo.

Quick start

The setup targets Linux or macOS with Python 3.12, uv, a recent Node.js LTS (24.12+ recommended), pnpm 10.15.1 and FFmpeg with libx264 and AAC. Check the tools first:

uv --version
node --version
pnpm --version
ffmpeg -version
ffprobe -version

Clone and install dependencies:

git clone https://github.com/ghost233lism/StateWeaver.git
cd StateWeaver
uv sync --locked --no-dev --python 3.12
pnpm install --frozen-lockfile --prod=false
uv run --locked --no-dev stateweaver-db check

Create local config from the templates, then fill in one text/review service, one image service and one video service in provider-registry.local.json, and set the matching API keys in .env installation steps provider setup. For the default local path, deploy H3 Ref2VA with the provided launcher and your own runtime and weights:

bash scripts/deploy_h3.sh \
  --runtime-dir /path/to/h3-runtime \
  --python /path/to/h3-env/bin/python \
  --model-dir /path/to/h3-weights \
  --output-dir /path/to/shared-media/h3-output \
  --topology dp --gpus 8 --host 127.0.0.1 --port 8653

Start the API in one terminal and build/serve Studio in another:

uv run --locked --no-dev --env-file .env stateweaver \
  --data-root /path/to/shared-media/workspace \
  --registry provider-registry.local.json

UV_LOCKED=1 UV_NO_DEV=1 pnpm --dir apps/web build
node scripts/serve_studio.mjs --host 127.0.0.1 --port 5276 \
  --api-target http://127.0.0.1:8186

Then verify the frontend and its API proxy respond startup and verification. In Studio: confirm a screenplay, follow Set dependencies and clip reviews during production, then play or download the assembled film Studio workflow.

Use constraints

  • You must supply your own text, image and video generation services and credentials; the template placeholders must be replaced with real base URLs and model IDs, and existing projects keep their original provider binding after a registry change.
  • H3 mode needs GPU hosts with the runtime and weights obtained separately, plus a shared media root accessible at the same absolute paths from both the API and GPU host. Custom video APIs must follow the submit/status/content contract, and are only supported through a configured HTTP protocol or a bridge.
  • The request template only carries standard placeholders, media is sent as Base64, and combined raw references are capped at 64 MiB. CDN downloads must be whitelisted and no redirects are followed.
  • The original code and materials are CC BY-NC 4.0, so commercial use is not permitted by that license license.

HotRepo's take

StateWeaver has no recorded GitHub daily-rank placement, but its first HotRepo snapshot on 2026-12-01 shows it entered the new-projects list for Python with 104 stars and 8 forks, gaining 4 stars and 1 fork in roughly a 90-minute window. That is early, modest traction: the value to watch is whether the multi-agent state-tracking workflow holds up when readers bring their own video backends, since the repository currently ships the orchestration and Studio layer rather than model weights.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. konlu/story-studioAn agent skill that turns a topic into a scripted, voiced, illustrated short video and an editable JianYing draft.Python307
  2. CryptoYuyyy02/stickman-video-directorA Muse agent skill that walks through scene generation, voiceover, BGM and editing to produce full stickman story videos.113
  3. owlinthebarnai/video-studio-kitLocal web studio that turns a prompt into a short animated video using your own Claude Code subscription.JavaScript106
  4. KadoBOT/ComfyUI-H3-Continuity-StudioA ComfyUI custom node pack for planning and rendering multi-shot MiniMax H3 video sequences with visual continuity across clips.Python104
  5. apekshik/anysceneBuilds photoreal Blender scenes, props, lighting and camera shots from a one-paragraph brief using AI agents and fal image-to-3D.Python118