Plan mode keeps the agent in a read-only planning posture. Use it for discovery, architecture review, and implementation planning before allowing writes or commands.
await using var sdk = new AutohandSdk(new AutohandOptions
{
WorkingDirectory = ".",
});
await sdk.StartAsync();
await sdk.SetPlanModeAsync(true);- Start in plan mode.
- Ask the agent to inspect and produce a plan.
- Stop and review the plan.
- Disable plan mode for the approved implementation.
- Handle permissions explicitly during execution.
await sdk.SetPlanModeAsync(true);
// discovery prompt
await sdk.SetPlanModeAsync(false);
// implementation promptPlan mode and permission mode are separate. Plan mode controls which tools are available; permission mode controls whether individual tool calls require approval.