When to use this profile
Use a preview recipe when a user needs to inspect a generated interface while the agent edits it. The dev server runs inside the task environment and exposes only its selected application port through the runtime's authenticated preview mechanism. A development preview is for review; validate a production build separately before deploying anything.
Prepare a repeatable environment
- Pin dependencies and configure the framework's allowed preview host if required.
- Bind the server to the guest interface and use one explicit application port.
- Keep production credentials out of both server and browser environment variables.
pnpm --dir /work/project dev --host 0.0.0.0 --port 3000Return results the agent can use
- A preview endpoint when supported by the connected runtime.
- A production-build result and the source diff.
- Screenshots or a short review checklist for the changed interface.
Load the preview through an authorized test session, confirm unauthorized access is denied, and build the same source in production mode before exporting the patch.
Resources and boundaries
Start with 2 vCPU and 4 GB of RAM, then measure peak memory and task duration on a representative fixture. These are workload planning values, not a benchmark or a provisioned configuration. Use the sandbox cost calculator to estimate running time and retained snapshots.
- A preview endpoint needs access control; an obscure URL is not authorization.
- Development servers can expose debug information and should stop when the task ends.
- Watchers and hot reload use memory even while the model waits; include that time in cost estimates.
Keep model inference separate from this execution profile. A hosted model or gpuOS can decide the next action while the CPU environment runs it. The quickstart describes the account workflow and the proposed runtime contract.