Variable: COMPACTION_SYSTEM_PROMPT
const COMPACTION_SYSTEM_PROMPT: string;Defined in: src/batteries/context/compact/summarizer.ts:70
The FAITHFUL Claude Code compaction schema — the 9 sections extracted VERBATIM from the flagship reference agent's own real auto-compactions (~4700-token structured summaries observed across 28 compactions in that agent's development session). Using the real prompt (not an invented one) is what makes this battery's evaluation honest: the compact strategy loses exactly the detail Claude Code's own compaction loses, no more and no less.
Remarks
The 9 sections: (1) Primary Request and Intent, (2) Key Technical Concepts, (3) Files and Code Sections, (4) Errors and Fixes, (5) Problem Solving, (6) All User Messages, (7) Pending Tasks, (8) Current Work, (9) Next Step. Callers may supply their own prompt via the systemPrompt option on assembleCompactedTurns (and summariseTurns directly) — this default is a calibrated starting point, not a hard requirement.