§ deep dive — the platform

Agents that ship.

The engine behind contentgen, traced across every service.

This page is for the person who wants the full shape of the platform before we talk. It is a working system I run privately: a Go/Echo pipeline engine, a FastAPI model registry, a Postgres store service, a Remotion render service, a scheduler that publishes to social platforms, a Modal-backed GPU bridge that trains LoRAs on A100s. The core is closed by design; the walkthrough below is what I would show in a call.

The waterfall traces one request. One line of intent enters the React studio and comes out the other end as a published clip roughly a minute and a half later. Nothing on the figure is theoretical — the timings are illustrative, but every service, hop, and checkpoint is real.

studio React · TS pipeline engine Go · Echo checkpoint 1 openrouter chat checkpoint 2 openrouter chat image jobs ×4 Runware · gpt-image@2 render service Remotion · Chrome scheduler Python ws events engine → studio POST /run · 1 line of intent walks the checkpoint graph · streams progress · meters credits plan · plans slides/scenes → JSON · ~8s validate · re-reads & repairs JSON · ~3s distributor · fan out ×N scene 1 · gpt-image@2 · ~15s scene 2 · gpt-image@2 · ~15s scene 3 · gpt-image@2 · ~15s scene 4 · gpt-image@2 · ~15s connector · collect ×N → one payload headless Chrome · 1080×1920 · ~40s uploader · Telegram + socials · ~5s events streamed back to the studio · progress, cost, errors 0s 10s 20s 30s 40s 50s 60s 70s 80s t / seconds — illustrative timings studio engine llm ck image ×4 render publish ws 0s 10s 20s 30s 40s 50s 60s 70s 80s time ↓ — illustrative
studio
React front-end — idea in, live progress out
engine
Go / Echo — executes the checkpoint graph
prompt
LLM checkpoint — OpenRouter chat call
generator
image / video / audio model call
render
Remotion — headless Chrome, 1080×1920
publish
scheduler / uploader — socials + Telegram
ws stream
WebSocket events, engine → studio, throughout
fig. 1 — one idea, traced across the platform. Bars mark when a service is doing work on a single request. Vertical dots are dependencies; the WebSocket bar runs the length of the request because the studio is watching. Real runs breathe with model latency, image job counts, and how heavy the Remotion scene graph is.

What the engine does

The Go/Echo engine executes a checkpoint graph. Each node is one of four kinds — prompt (an LLM call), generator (a media model call), distributor (fans a run out into N child pipelines), connector (waits for the children and merges). A pipeline is that graph plus per-node model config, saved as a template and run from one line of input. The engine wires up the state store, calls providers, tracks costs against the model registry, and streams progress events over a WebSocket so the studio can show what is happening while it happens. That last part matters more than it sounds: it is the difference between a system I trust and one I babysit.

How models are chosen

Every checkpoint picks its model from the FastAPI model registry. The registry is the platform's one source of truth about which models exist, what request schema they take, and how many credits a call costs. A checkpoint says "give me an image generator with this schema" and the registry answers with a concrete model — gpt-image@2 on Runware for a stylised still, an SDXL LoRA served warm from the Modal GPU bridge when the character has to be consistent, Gemini Flash for planning because it is cheap and structured. Swapping the model for a checkpoint is one config change; the pipeline shape does not move.

What keeps it honest

Three things. First, structured JSON contracts between checkpoints — an LLM that returns freeform prose is a bug, so every prompt checkpoint declares the shape it expects and the next node parses against it. Second, validator checkpoints — a second, cheaper LLM re-reads the payload and repairs the JSON before the run continues; the carousel pipeline in demo 04 is the smallest version of this pattern, and I use the same shape everywhere. Third, per-checkpoint cost metering — every call is billed against the registry's pricing and drawn from the user's credit balance, so a runaway pipeline hits a ceiling instead of my card.

The character lab

One piece I am particularly fond of: the character lab. It is a FastAPI service that talks to a Modal GPU bridge. You feed it a folder of reference images; it curates a training set, trains an SDXL or Z-Image LoRA on A100s, and registers the result back into the model registry. From then on, any generator checkpoint in any pipeline can name that LoRA and the character rides consistently into every scene. The reel pipeline in demo 05 is exactly this trick — the seed portrait pins the host down, and twelve independent scene generations still look like the same person.

Multi-user, without a rewrite

The platform started as a single-user tool for me and grew into a small multi-user system: logins, per-account credits metered against real model pricing, node-graph generator profiles that let a user configure their own default pipelines. The reason the transition was survivable is that the engine only ever knew about pipelines and credit ledgers — user identity got attached at the studio edge and rode along in the run context. Everything else stayed the same.

See it running

The tool itself is private. The two demos on this site are real replays of real pipelines, and the front page has the system overview.

Happy to walk through a live demo — the tool itself is private. Write me and I will set aside half an hour.