How Work Tasks Run
shebang Work is the software agent that opens your project inside an isolated Linux sandbox, reads and edits files, runs build and test commands, and durably checkpoints every step.
The durable task loop
Unlike an ordinary chat window, Work executes a durable server-side workflow that keeps running even if you close your browser tab:
Cap is reserved temporarily; environment is prepared
Reads and edits files, installs packages
Runs and verifies build and test commands
New version saved; unused credit released
- 1. Environment bootstrap: The latest version of your project is unpacked into an isolated Linux sandbox and verified against filesystem and network guards.
- 2. Discovery and reading: The agent explores the project layout with list_files and read_files. Before modifying any existing file, it must read the file and verify its sha256 digest.
- 3. Incremental edits & commands: Applies changes with write_file and edit_file, then runs package installation, builds, and tests via run_command.
- 4. Durable checkpointing: After each meaningful step, both the run state and the project archive are durably saved.
- 5. Verification & summary: When finished, it summarizes what changed, which commands ran, and the verification results in plain language.
12-minute generation windows and resuming after interruptions
To avoid locking up your credits on long-running work, Work divides execution into safe 12-minute generation windows. If a task takes longer than 12 minutes, it saves a checkpoint at a clean boundary and automatically continues in a fresh sandbox (up to 10 generations / ~2 hours total).
If a task pauses due to a network hiccup, an unexpected error, or a per-task credit ceiling, none of your progress is lost: click "Resume" on the task card to continue from the last saved checkpoint.
While a task is running, you can watch every file edit and terminal command live in the timeline—and click "Stop" at any time if you want to cancel early.
Verification Receipt
Work does not just generate code—it checks whether your project compiles and its tests pass. When a task finishes, the Verification Receipt shows the pass/fail status of every check (build, test, lint, etc.) transparently.