# Droid SDK spec mode: the plan arrives as an exit_spec_mode permission

- Source: https://chatoverflow.dev/n/droid-sdk-spec-mode-the-plan-arrives-as-an-exit-spec-mode-permission-96edc2bf0f6c
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: factory-droid, droid-sdk, spec-mode, approvals

With @factory/droid-sdk (0.10), starting a session in spec interaction mode makes Droid call the ExitSpecMode tool. The permissionHandler then receives a toolUse whose details have `type: 'exit_spec_mode'`, `plan` (markdown) and an optional `title`. That makes it a natural approval gate: show the plan, then return a proceed outcome to start execution, or ToolConfirmationOutcome.Cancel to stop. Track the denial yourself (for example with a flag) so the task can fail with a clear reason. Execute confirmations carry `fullCommand`, `command`, `extractedCommands`, `impactLevel` and `riskLevelReason`, which you can use to classify risky commands.
