Files
oh-my-pi/packages/coding-agent/src/prompts/tools/rewind.md
T
roboomp 1109c25629 fix(agent): framed completed rewind context
Wrapped retained rewind reports with completion guidance so the post-rewind turn knows the checkpoint is closed.

Added repeat-rewind recovery errors and regression coverage for both the retained context and no-active-checkpoint path.

Fixes #4187
2026-07-02 00:56:06 +00:00

724 B

End an active checkpoint. Rewind context to it, replacing intermediate exploration with your report.

Call immediately after checkpoint-started investigative work.

Requirements:

  • report MUST be concise, factual, and actionable.
  • Include key findings, decisions, and any unresolved risks.
  • AVOID raw scratch logs unless essential.
  • You MUST call this before yielding if a checkpoint is active.

Behavior:

  • If no checkpoint is active, this tool errors. If the checkpoint already rewound, continue from the retained report instead of retrying.
  • On success, the session rewinds, keeps your report as retained context, and closes the checkpoint.
  • A successful rewind is final for that checkpoint; repeat calls error.