Skip to content

docs: document multi-entry compress format in system prompt and T2/T3 nudge - #259

Merged
ranxianglei merged 1 commit into
masterfrom
2026-08-01_t2-batch-suggestions
Aug 2, 2026
Merged

docs: document multi-entry compress format in system prompt and T2/T3 nudge#259
ranxianglei merged 1 commit into
masterfrom
2026-08-01_t2-batch-suggestions

Conversation

@ranxianglei

@ranxianglei ranxianglei commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

The compress tool supports two usage modes: single entry and multiple entries (content array). The system prompt already documented both for message-based compression, but only showed single-entry for block-based (T2/T3) compression. The T2/T3 trigger nudge also only showed single-entry.

When 70+ T1 blocks accumulated (issue #256), the model only knew the single-entry format and tried to compress everything into one summary — risking maxSummaryLengthHard overflow.

Fix

Document both formats in two places:

  1. System prompt (system.ts): Added multi-entry example to MULTI-TIER COMPRESSION section
  2. T2/T3 trigger nudge (inject.ts): Added multi-entry format alongside the single-entry suggestion

No threshold hints — the model decides how to split based on block sizes and topics.

Files

  • lib/prompts/system.ts: added batch format example (1 line)
  • lib/messages/inject/inject.ts: added multi-entry format to tier trigger text (1 line)

No code logic changes. 942 tests pass.

@ranxianglei
ranxianglei force-pushed the 2026-08-01_t2-batch-suggestions branch 4 times, most recently from 7ffb12e to 31f6dbb Compare August 2, 2026 02:19
@ranxianglei ranxianglei changed the title feat: batch T2/T3 compression suggestions for large block counts docs: document multi-entry compress format in system prompt and T2/T3 nudge Aug 2, 2026
@ranxianglei
ranxianglei force-pushed the 2026-08-01_t2-batch-suggestions branch from 31f6dbb to b35b7be Compare August 2, 2026 03:27
@ranxianglei
ranxianglei merged commit 71d58f4 into master Aug 2, 2026
5 checks 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