Pyro Studio
Draft plan · 3 December 2026 · sample app and figures are illustrative

Plan & Architecture: Pyro Studio, an Agentic Builder Environment

For apps made from Povio's Tiny Template and similar templates: the real app on a canvas, edited visually, saved as code. Everything you make in Studio, from edits and tokens to states, flows and tours, is a file in your repo. Designers get AI variants, reusable browser states and guided tours that render into narrated videos. Start with a spike that proves Pyro is fast enough to be interactive.

13phases, in order
0first: a spike that proves interactive speed
2agent hosts: Claude Code, Codex
1action bus for people and agents
Tool UITypeScript and React. Tauri first, later rendered by Pyro
Canvas with live framesLayersInspectorTokensStatesAssistant popoverVariants and agent threadsFlowsTours
typed IPC · commands, events, frame buffers in shared memory
Rust corein process, framework neutral
SessionInspectorEdit engineState engineTour engineAction busAgent hostStudio MCPWorktreesSource bridge
Rust API · no CDP round trips
Pyro engineexisting crates, plus headed work
pyro-browserpyro-render · Blitzpyro-dom layoutFork snapshotsNetwork mocksEmulationInput
Adapters → the user's repoBuild plugin stamps data-pyro-src. React and Tailwind first, then plain CSS, Vue, Svelte. Source edit, dev server reload, canvas in sync.
Tours → feature-videoReplay steps on the current build, capture with Pyro, write script.json, render a 4K and a 1440p MP4 with chapters and captions.

A designer's day runs on one line

Every station is a feature of the tool. The colour shows which part of the system carries it: blue is editing, green is states, purple is code and agents, coral is tours.

OpenPoint at the running dev server
SelectClick an element, see its source line
TweakEdit styles live in every frame
Set stateEmpty, error, slow, signed in
ConnectLink states into flows
VariantAsk for variants, skill runs them
AcceptSquash merge, worktree removed
TourNarrated video, re-rendered in CI

Twelve ideas carry the product

Overview, Build, Design, Test (+ Backend)

One project, one branch. Work items are Povio Boards tickets; Product and Build are one mode because planning and building are the same ticket at different stages.

  • Overview: every ticket with its real state (plan, agent, PR and checks, preview, tests, design review) and what is waiting for you.
  • Build: the ticket's chat with its agent (local Claude Code or the card's Robodev agent), messaging first; Brief, Plan (change plan, database planning, quick screens) and Compare (now, planned, built, drift); a Map of the app.
  • Design and Test as before; Backend for Robodev-linked projects.
  • Cmd K spotlight everywhere: go to anything, run any action, or ask.

Pyro E2E for QA

End to end tests as a first-class part of Studio. QA writes plans in plain words, or asks AI to draft them from flows, tours and code; every step maps to one line of Playwright-compatible code in tests/e2e/.

  • View plans as readable steps next to the generated code.
  • Scrub any run like a video: filmstrip of the real app at each step, network and errors on the timeline. Runs start from state snapshots, so replays take milliseconds.
  • Play runs live in Pyro, in several viewports at once.
  • Fix failures with the assistant: it explains the cause (down to the commit) and updates the test, or fixes the app in a variant.

Built for Tiny Template

Not a website builder. Studio targets apps made from Povio's Tiny Template (Vite React with Povio UI, a local Robodev API, Expo mobile) and similar templates.

  • Starts the app the template's way (bun dev:web) and signs in as its demo user for the first state.
  • States come from the API contract: the OpenAPI client gives typed overrides per endpoint, like an empty list, an error or a specific record.
  • Tokens and component settings use Povio UI's own files; agents follow the repo's own skills and checks (bun check:fast, bun smoke).

Everything is code in the repo

Whatever a person or an agent does in Studio lands as files in the app's own repository and is shared through git. No Studio cloud, no hidden database.

  • Edits become source changes; tokens go to the theme file.
  • States, flows, tours and the canvas layout are typed files in one folder only Studio uses, .pyro-studio/ (defineState, defineTour). The app never imports it; production builds ignore it.
  • Variants are branches until they land; flows and tours also generate Playwright tests, and videos render from the same files in CI.

Edit intents

Every change is a framework neutral operation: set a style, class, text or attribute; insert, move, wrap, delete; extract a component.

  • Applied to the live page first, instantly, in every frame.
  • Then written to source by the adapter as a minimal diff.
  • When an element comes from a loop or a prop, the tool says so and reverts instead of guessing.

States

A JSON object that puts the app in a given situation, built as a base plus overrides.

  • Network: empty, error, slow, held responses (Pyro mocks today).
  • Storage and sign-in: cookies, local storage, a profile.
  • Environment: viewport, dark mode, locale, frozen clock, permissions.
  • UI: filled forms, forced hover and focus, scroll.
  • Opens instantly as a fork snapshot; copies and pastes between frames and people.

AI variants

Ask the assistant to try something as a variant. Its variant skill runs a Claude Code or Codex thread in its own git worktree with its own dev server and frame. No separate UI to learn.

  • The prompt carries the selection, its source lines, the state and before and target captures.
  • The agent loops: edit, reload, capture with Pyro, diff, until it matches.
  • Live variants (style only) need no files; code variants get a worktree.

Tours

Ordered steps over states, jumping between screens and profiles, with narration per language and private speaker notes. Focus on tagged elements is optional.

  • Live demos run without an overlay by default: the tour switches screens, profiles and states, and shows speaker notes.
  • Highlight or spotlight are optional per tour or step; videos use focus tags as close-ups.
  • Tags follow source, so videos re-render after a redesign.

Inspector, design tokens and global editing

A properties panel like a real design tool, modelled on OpenPencil (MIT): frame, auto layout, appearance, fill, stroke and effects, each value showing its token. Edit one instance or every instance of the component.

  • Press T for every design token of the app in one sheet: colour ramps, semantic colours, type roles, spacing, radii, shadows, light and dark, with usage counts.
  • Tokens are read from the app's own CSS (Tailwind v4 @theme, :root, .dark), the same model as the Povio UI configurator, so it works with or without it.
  • Change a token and every frame and state updates at once. Before and after toggle or split on the canvas, with a list of every changed token and Pyro's pixel diff; Save writes one reviewable diff to the theme file.

Pages, states and layers together, tours at scale

Designers make as many pages as they want, like Figma, each holding any number of frames. Every frame is a route at a viewport in a state.

  • States belong to frames: each frame has a state chip, and a states matrix page shows one screen in every state side by side.
  • The layer tree follows the selected frame's state: parts that only exist in some states are marked, swapped components show their real names, and the selected element shows how it looks in every state.
  • Tours live in a library with folders, search and status (up to date, stale, rendering), and stale ones re-render in bulk.

Projects, GitHub flow for designers, voice and drag-select

The app opens on a project library with folders and live thumbnails. Add a project from a folder, from GitHub after signing in once with the GitHub CLI inside the app, or as a Robodev project: open one, or create a Robodev Lite project when Robodev is connected.

  • Save is a commit with a written message; Share for review opens a pull request with before and after captures, the visual diff, the tour video and test results. Comments show up on the canvas.
  • Hold Fn to talk to the assistant: speech is transcribed on the device and fills the prompt, for Claude Code and Codex alike.
  • Drag across the canvas to select many elements; the inspector edits them together and ⌘K sends them all with their files.
  • Frames are live: switch to Interact to click, type and scroll in the real app, then Reset to state (⌘⇧R) puts every frame back to its state snapshot in milliseconds.

Assistant popover and one action bus

Claude Code or Codex sits one shortcut away (⌘K) over the canvas and can do everything the user can, because the UI and the agents call the same typed commands.

  • Every command is logged with its author, undoable and shown live on the canvas, so agent traffic is visible.
  • Each request carries starting points: the selection's file and line, its component, classes, state and route. The agent starts its search there and may still edit other files.
  • Capabilities come as skills (variant, state, tour, tokens) stored in .pyro-studio/skills, so teams share and extend them as code. "Try this as a variant" calls the variant skill; small edits apply on the current branch.
  • User and agent edits share one queue per worktree; conflicts pause the agent and ask.

Variants clean up after themselves

Designers never touch git. A variant's worktree never blocks committing on the base branch.

ActionWhat the tool does
DuplicateBranch, worktree, dev server, frame on the canvas
AcceptSquash merge or open a PR, then remove worktree, branch, server
RejectRemove worktree and branch
ParkKeep the branch, free the worktree, recreate on reopen
ConflictAn agent resolves it into a new variant to review

Tours map onto feature-video

The tool writes the skill's script.json; the skill renders the video.

Tour stepBecomes
StateOne capture; same screen shares a page
Focus tagsregion from Pyro bounding boxes
ActionBefore and after scenes, same step
LabelChapter, N · Title
Narrationtext per language
NotesKept in the tool, not exported

Phases: spike first, AI variants early, Pyro hosts its own UI last

AI variants come right after the inspector because the agent edits source itself; they don't wait for the write-back engine.

Source: docs/plans/design-tool.md in the Pyro repo. Prototype: studio.html.