schedule_compaction
Schedules a single conversation compaction after user authorization, saving an optional handoff of key details and enabling one authorized continuation turn.
Instructions
Schedule ONE compaction after this answer. Only when the user authorizes compaction. Optional handoff describes what to keep/summarize and is saved exactly in a per-job file. resume:true explicitly requests ONE subsequent turn with that handoff and nextStep; use only for authorized continuation. Cancels on observed new user input or a stopped turn. Return the handoff in context before finishing. Compaction prompt itself is not overridden. Check status later; no automatic retries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handoff | No | Optional verified handoff saved for this job. It guides the resumed agent but does not alter the extension compaction prompt. | |
| threadId | Yes | Current CODEX_THREAD_ID; obtain from the shell environment. Never guess or select a different thread. |