Skip to content

compress: add message mode#446

Merged
Tarquinen merged 18 commits intodevfrom
feat/compress-message-mode
Mar 23, 2026
Merged

compress: add message mode#446
Tarquinen merged 18 commits intodevfrom
feat/compress-message-mode

Conversation

@Tarquinen
Copy link
Collaborator

@Tarquinen Tarquinen commented Mar 18, 2026

  • Add compress.mode config setting, defaults to "range" (previous behavior) and new experimental "message" option available.
  • "message" mode allows DCP to more surgically compress individual messages in a batch rather than a full range.
  • "message" mode allows DCP to determine compression priority for each message based on how many tokens the message is (low/med/high for 0-500/500-5000/5000+ tokens), not configurable yet but maybe in the future?
  • Nudges remind the model the IDs of the high priority messages in "message" mode to ensure they don't get left behind.
  • "range" mode now supports the model using a list of ranges instead of just 1 range if it wants.
  • compress.flatSchema deprecated, not needed for lower tier model performance anymore due to new tool schemas (I think...)
  • Bug fixes and prompt rearrangements and code cleanup refactoring

@Tarquinen Tarquinen marked this pull request as draft March 20, 2026 06:05
@Tarquinen Tarquinen marked this pull request as ready for review March 23, 2026 03:06
@Tarquinen Tarquinen merged commit 5d5b8c2 into dev Mar 23, 2026
1 check passed
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