fix(agents): raise compaction threshold to 160K (80% of 200K limit)

80K was too aggressive and caused premature context loss. Now triggers
at 160K tokens with a target of 80K after compaction.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-07 08:40:18 -08:00
parent 033e476a6f
commit 7dc364d9b3
1 changed files with 2 additions and 2 deletions

View File

@ -190,8 +190,8 @@ export interface ContextInjectorConfig {
export const DEFAULT_CONTEXT_CONFIG: ContextInjectorConfig = {
maxContextTokens: 4000,
enableAutoCompaction: true,
compactionThreshold: 80000,
compactionTarget: 40000,
compactionThreshold: 160000,
compactionTarget: 80000,
enabledContextTypes: Object.values(ContextType),
};