codai Prompts API
Pending prompts: ready-to-paste prompts an agent (or you) leaves for a future chat — the handoff at the end of a goal, a follow-up that must wait until a date, or an idea to pick up later. Capture paths (the Copilot Stop hook, the desktop handoff tool, the phone, the hub) all POST here; the same text is stored once (sha256 of the whitespace-normalised prompt) and a `goal_key` supersedes older open prompts for the same goal. A prompt with `not_before` is swept once that moment passes: you get a `prompt.due` notification (url `codai://prompts/`, plus push) and, with `auto_run`, it is launched on `target_device_id` (or your freshest desktop/Android device). `launch` opens a new shared session and sends the prompt to a device as a `send` control; the prompt moves to `launched`. Every route needs a `codai_` key and only sees your prompts.