Worker Previews (a live preview per agent, with its own database copy)
An agent asks Omniscio for a preview of its own work. Omniscio copies the repository's preview database for that agent alone, starts the agent's dev server behind Running Apps with that copy, waits until the server answers, and puts Open preview (and Copy phone link when remote access is on) on that agent's attempt in the Swarm Review Desk. Nothing one agent does reaches another agent's data, and every preview cleans up after itself.
On this page
What it is
A worker preview is a live, running copy of one agent's own work. When several agents build the same web app at once, each of them can have its own: Omniscio runs that agent's dev server behind Running Apps, gives it a private copy of the database the repository declares, and waits until the server answers. Nothing one agent does reaches another agent's data, and every preview cleans up after itself.
Where to find it
The switch is in Settings, and the previews themselves live on the Swarm Review Desk.
Turning it on
- It is an early-access Lab feature: Settings → Features → Worker Previews. Default: off.
- It rides on Running Apps, which must be on too.
- While either is off, every preview request is refused and nothing runs in the background.
Where it shows
On the Swarm Review Desk, each attempt whose agent has a live preview shows Open preview and, while remote access is up, Copy phone link. Open preview loads the preview inside the card, in the same embedded view Running Apps uses, so the local certificate is trusted; Close preview folds it away. A preview whose server stopped shows a short line saying it is being cleaned up.
How it behaves
A preview starts when an agent asks for one, runs behind Running Apps, and is removed on its own once it is no longer needed.
What a repository declares
The repository's verdict.yml carries a preview block (see the per-worker preview contract):
preview:
dev-command: npm start
health-url: http://localhost:3000/api/health
startup-timeout-sec: 120
idle-ttl-min: 30
db:
driver: sqlite
path: prisma/dev.db
env: DATABASE_URL
dev-commandis what runs. Running Apps hands the server its port throughPORT.health-urlis read for its path only; Omniscio asks that path on the port the server got.dbis optional. Withsqlitethe agent gets a private copy of the file; withpostgres-schemait gets its own schema on a database on this computer. A database that is not on this computer, or is named like production, is refused.
When a preview goes away
- When the agent stops it, or its session is archived.
- When the branch it was started for has landed (checked every five minutes at most).
- After
idle-ttl-minwith no start and no list read. Watching the preview on a phone does not count as use. - When its server stops answering on Running Apps.
- When Omniscio quits.
A preview that fails to start removes the server and the database copy before it answers. If the copy will not delete (a file still in use), the clean-up keeps retrying, and that agent cannot start a new preview until it is gone.
Related
- Running Apps — the surface that runs and shows the preview server.
- Swarm Review Desk — where each attempt's Open preview button appears.
- Chat links and link previews — the unrelated link-preview feature, worth not confusing with this one.
Last verified 2026-11-29