feat: set auto-compact threshold to 165k tokens
Compact earlier to preserve more context fidelity before the window fills. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -449,7 +449,6 @@ async function runQuery(
|
||||
append: globalClaudeMd,
|
||||
}
|
||||
: undefined,
|
||||
model: 'sonnet[1m]',
|
||||
allowedTools: [
|
||||
'Bash',
|
||||
'Read',
|
||||
@@ -626,7 +625,7 @@ async function main(): Promise<void> {
|
||||
// No real secrets exist in the container environment.
|
||||
const sdkEnv: Record<string, string | undefined> = {
|
||||
...process.env,
|
||||
CLAUDE_CODE_AUTO_COMPACT_WINDOW: '200000',
|
||||
CLAUDE_CODE_AUTO_COMPACT_WINDOW: '165000',
|
||||
};
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
Reference in New Issue
Block a user