structuredCheckpointPrompt top-level constant
String
const structuredCheckpointPrompt
Instruction tail for the structured-compaction checkpoint LLM call (pass 2). The checkpoint text must list every covered expand id and carry open user requests verbatim (issue
Source: prompts/compaction/structured_checkpoint.md.
Implementation
const structuredCheckpointPrompt =
'Write a checkpoint of the conversation above. It replaces a range of\nrecords in the agent\'s context, so it must let the agent continue the work\nwithout the replaced records.\n\nRules:\n- Start with a `covers:` line listing EXACTLY the expand ids given in the\n `<covers>` block, verbatim, comma-separated. Every replaced segment must\n stay reachable through that line — never drop an id.\n- If an `<open-user-requests>` block is present, carry each listed request\n VERBATIM at the top of the checkpoint, under a `open asks:` heading.\n- Keep decisions, conclusions, final answers, error causes, and file paths\n the agent still needs. Preserve important tool outputs (test verdicts,\n command results, error traces) with what produced them.\n- Keep it dense prose or tight bullets; no preamble, no restating these\n instructions.';