Skip to content

fix(compact): place destination reminder at end of compaction summary#2413

Merged
gavrielc merged 1 commit into
mainfrom
fix/compact-instructions-reminder
May 11, 2026
Merged

fix(compact): place destination reminder at end of compaction summary#2413
gavrielc merged 1 commit into
mainfrom
fix/compact-instructions-reminder

Conversation

@gavrielc

Copy link
Copy Markdown
Collaborator

Summary

  • Updates the PreCompact hook instructions to tell the compactor to place the <message to="name"> wrapping reminder verbatim at the END of the compaction summary
  • Previously the instruction just asked to "preserve" routing info, which the compactor could place anywhere or summarize away — positioning it at the end ensures it's the last thing the agent sees after compaction

Test plan

  • Verified the output of compact-instructions.ts includes the updated wording
  • Monitor multi-destination agents after compaction to confirm wrapping behavior is retained

🤖 Generated with Claude Code

Tell the compactor to include the <message to="name"> wrapping reminder
verbatim at the END of the summary so it's the last thing the agent sees
after compaction. Previously the instruction just asked to "preserve"
routing info, which the compactor could place anywhere or summarize away.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@gavrielc gavrielc requested a review from gabi-simons as a code owner May 11, 2026 09:49
@gavrielc gavrielc merged commit 7474459 into main May 11, 2026
2 checks passed
zenmindhacker pushed a commit to zenmindhacker/nanoclaw that referenced this pull request May 26, 2026
…ns-reminder

fix(compact): place destination reminder at end of compaction summary
tamasPetki pushed a commit to tamasPetki/nanoclaw that referenced this pull request Jun 4, 2026
…ns-reminder

fix(compact): place destination reminder at end of compaction summary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant