Your first task
Write a TypeScript script, run an agent and review its answer and commits.
Create the script
Section titled “Create the script”Create review.ts next to the configuration from Installation. This first script asks the agent to read the README and report its findings. dispatch() opens a fresh sandbox, and the named branch gives the task its own checkout.
Run the script
Section titled “Run the script”The script prints the agent’s findings when the task finishes. This request asks for a review without edits, so there should be no new commits.
API reference: DispatchResult and Usage.
Ask for a change
Section titled “Ask for a change”To ask the agent to edit the repository, create fix.ts with another branch name and instructions to commit the correction. Keep review.ts if you want to reuse the read-only request in CI.
Run node fix.ts, then inspect the commits and diff with the commands below. A new named branch starts from your HEAD and remains after the task. Use a fresh name for each independent task; an existing named branch is reused.
Understand the run
Section titled “Understand the run”Outpost opened a worktree under .outpost/workspaces/, ran the agent in a sandbox, then closed the sandbox and kept the branch. How it works details the lifecycle.