Clarify and approve a change
Ask for missing requirements, inspect the plan and record a human decision.
This example turns a ticket into a plan you can review before permitting implementation. The agent asks for missing information; a separate approval gate decides whether work may continue. The brief asks for planning only; it does not enforce read-only access.
Use the agent configuration and install the response validator with npm install zod. Save every file below in one script directory. Replace the sample ticket with a task relevant to your repository, and use a new ticket key for a new run.
Download all files. Extract into a dedicated directory, run npm install, then adapt outpost.config.ts using Installation. The commands below identify the scripts to run.
Clarify the ticket and approve the plan
Section titled “Clarify the ticket and approve the plan”Start with the ticket, its expected plan and the approval gate.
Save progress and start
Section titled “Save progress and start”The checkpoint preserves questions, answers and the plan between processes. Save these files alongside the task declarations. Run node plan-run.ts to see the pending question or approval; run it again to inspect the same saved state.
Answer a question
Section titled “Answer a question”Copy the id printed in inputRequests and pass your answer as the second argument: node plan-answer.ts REQUEST_ID "Include dates in UTC". Each call resumes the captured conversation; it may produce another question.
Review and decide
Section titled “Review and decide”When node plan-run.ts reports paused, read the saved plan it prints. Then run node plan-decide.ts approve "Scope and tests reviewed", or use reject with your reason. This local example treats you as the trusted owner; a web application must authenticate the person before accepting that actor.
Approval ends this planning workflow with done; rejection ends it with rejected. Neither decision merges a branch. Instructions to inspect without editing do not enforce filesystem permissions. The agent’s questions use a retained workspace and a fresh sandbox per turn; interactive tasks covers failures and interrupted replay.
To implement the accepted plan, continue with Build a development workflow. It reuses the task declarations in this page but has its own checkpoint identity. Start that combined workflow with a fresh run ID; do not reuse an already started planning checkpoint for a different graph.

