Synopsis
aigon preview <feature-id> [--stop] [--sandbox[=fixture]] [--agent=<id>] [--open]
aigon preview gcDescription
aigon preview boots the worktree’s own dashboard server on an isolated port and <agent>-<id>.aigon.localhost subdomain. It never touches the primary aigon.localhost server.
Default preview (real data)
By default, the preview runs the worktree’s modified UI and backend code against your real project data and ~/.aigon state. This is ideal for UI changes and read-only backend changes.
aigon preview 50
aigon preview 50 --open
aigon preview 50 --stopSandboxed preview (isolated data)
When your worktree changes backend code that writes state — workflow snapshots, spec moves, config — use --sandbox so all writes land in a disposable copy:
aigon preview 50 --sandbox
aigon preview 50 --sandbox=brewboard
aigon preview 50 --sandbox=empty
aigon preview 50 --sandbox --stopSandbox mode provisions:
- A throwaway
AIGON_HOME(temp profile directory) - A seeded copy of a fixture repo (
brewboardby default, oremptyfor a minimal repo) - An isolated port and preview subdomain — never the primary identity
Your real ~/.aigon and project repo are not modified.
Garbage collection
aigon preview gcRemoves orphaned sandbox homes and registry entries when the preview process is no longer running.
Options
| Flag | Description |
|---|---|
--stop | Stop the preview for the given feature |
--sandbox | Use isolated seeded data (brewboard fixture) |
--sandbox=<fixture> | Pick seed fixture: brewboard or empty |
--agent=<id> | Select worktree when multiple agents exist for the feature |
--open | Open the preview URL in your browser |
Related
aigon server— primary dashboardaigon dev-server— feature worktree app servers
Last updated on