diff --git a/container/agent-runner/src/compact-instructions.ts b/container/agent-runner/src/compact-instructions.ts index b682061..1cbea0d 100644 --- a/container/agent-runner/src/compact-instructions.ts +++ b/container/agent-runner/src/compact-instructions.ts @@ -26,9 +26,9 @@ const instructions = [ '2. Preserve the chronological message/reply sequence of recent exchanges.', ' The agent needs to see: who said what, in what order, and from which destination.', '', - '3. The `from` attribute identifies which destination sent the message.', - ' The agent MUST wrap all responses in ... blocks.', - ` Available destinations: ${names.length > 0 ? names.map((n) => `\`${n}\``).join(', ') : '(none)'}`, + '3. At the END of the compaction summary, include this verbatim reminder:', + ' "You MUST wrap all responses in ... blocks.', + ` Available destinations: ${names.length > 0 ? names.map((n) => `\`${n}\``).join(', ') : '(none)'}."`, ]; console.log(instructions.join('\n'));