This is advanced and mostly automatic. ADE leases ports and routes previews for you; most users never open a single setting here. Reach for the manual pieces only when a lane needs custom environment setup.
What’s isolated per lane
Port range
Each lane gets its own non-overlapping range of ports, leased automatically, so lanes never fight over
3000.Preview URL
A
<slug>.localhost hostname proxies to the lane’s dev server and opens as a clickable preview.OAuth callbacks
A single callback URL is routed back to the correct lane, so multi-lane sign-in flows work side by side.
Env init
Optional per-lane setup — env files, Docker services, dependency installs, copy and mount paths.
Ports and previews are automatic
When you create a lane, ADE leases it a port range and can route a<slug>.localhost hostname to whatever your dev server binds inside that range. Start your app in the Run tab or a lane terminal, and the preview URL resolves to that lane’s server. Because browsers scope cookies by hostname, feat-auth.localhost and bugfix.localhost never share a session — auth isolation comes for free.
The Run tab’s lane runtime bar shows the live state at a glance: a health dot, the responding port, proxy and preview status, and the OAuth callback URL for the selected lane.
Per-lane environment init
For lanes that need more than a running server, ADE can run an env-init sequence when the lane is created and show each step’s progress right inside the create dialog. Every step validates its paths against the worktree root, so setup can’t escape the lane.Env-init steps
Env-init steps
Env init runs in order, and each step is optional:
Each step reports
| Step | What it does |
|---|---|
| Env files | Copy or template .env files with lane-specific substitutions (port, hostname, keys). |
| Docker | Start lane-specific Docker Compose services. |
| Dependencies | Run an install command from an allowlist (npm, yarn, pnpm, pip, bundle, cargo, go, bun, and a few more). Anything outside the list is rejected. |
| Mount points | Configure runtime mount points for agent profiles and context. |
| Copy paths | Copy non-template files from the project root into the worktree. |
pending → running → done (or failed) with a duration, so you can watch the lane bootstrap.Reusable templates
Reusable templates
Rather than configure env init lane by lane, package it once as a template — a complete init recipe plus an optional setup script. Manage templates in Settings → Lane Templates, set a default, and new lanes pick it up. The setup script can carry platform-specific variants (Unix vs. Windows commands) and expose the primary worktree’s path to its commands.
Where to find these settings
Where to find these settings
- Run tab — the lane runtime bar (health, port, proxy, preview, OAuth) and process dashboards.
- Settings → Proxy & Preview — start/stop the proxy and configure OAuth redirect.
- Settings → Lane Templates — manage reusable init recipes and the default template.
- Settings → Diagnostics — the global health view across lanes.
Health and fallback
ADE aggregates port, proxy, and process signals into a per-lane health status (healthy, degraded, unhealthy, unknown) and surfaces fixes — reassign a conflicting port, restart the proxy, re-init env. If isolation itself fails, ADE prompts you to enable fallback mode for that lane rather than switching silently, because fallback drops the per-hostname cookie isolation and that’s a contract worth opting into deliberately.
Run & processes
Start dev servers, run tests, and watch lane runtime health.
Lanes overview
How lanes isolate work and sync across surfaces.
