Skip to content

feat: task-aware compression — protect active task context#41

Merged
ranxianglei merged 1 commit into
masterfrom
ranxianglei/2026-06-30_task-aware-compression
Jun 30, 2026
Merged

feat: task-aware compression — protect active task context#41
ranxianglei merged 1 commit into
masterfrom
ranxianglei/2026-06-30_task-aware-compression

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Summary

  • system.ts: Changed Normal level from "Proactively compress" to "After completing a task or sub-task"
  • Added task-state awareness: "Do NOT compress content you're actively using for an ongoing task"
  • Added pre-compression check: "Will I need this in the next few turns?"

Problem

Model over-compressed from 20% to 6%, losing critical task context. The "Proactively compress" wording encouraged compression even when context was lean and tasks were in progress.

Fix

Two targeted edits to system.ts:

  1. Key principle: "compress selectively" + "never compress content you're actively using" + "Compression is for COMPLETED work, not work in progress"
  2. Normal level: "After completing a task or sub-task, compress..." instead of "Proactively compress..."

@ranxianglei ranxianglei merged commit 4d50f3d into master Jun 30, 2026
3 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