Skip to content

feat(kernel): raise context compression threshold to 90%#7

Open
lyeka wants to merge 1 commit intomasterfrom
feat/compress-threshold-90
Open

feat(kernel): raise context compression threshold to 90%#7
lyeka wants to merge 1 commit intomasterfrom
feat/compress-threshold-90

Conversation

@lyeka
Copy link
Copy Markdown
Owner

@lyeka lyeka commented Mar 18, 2026

Summary

Change the automatic context compression trigger from 85% to 90% of the context window.

Changes

  • Updated threshold in \src/athenaclaw/kernel/service.py: 0.85 → 0.90

Rationale

This allows more tokens to be utilized before compression is triggered, reducing unnecessary compression cycles.

Testing

  • Code syntax verified
  • Logic reviewed

Change the automatic context compression trigger from 85% to 90%
of the context window. This allows more tokens to be utilized before
compression is triggered, reducing unnecessary compression cycles.

Files changed:
- src/athenaclaw/kernel/service.py: updated threshold 0.85 -> 0.90
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