From f555fa3c8ebbcd175f761822a975fd6b391b7561 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 16 Mar 2026 17:10:00 -0400 Subject: [PATCH] poc-hook: raise compaction threshold to 900k for 1M context Was 130k, calibrated for the old 200k window. With the 1M token context window, this was firing false compaction warnings for the entire session. Co-Authored-By: Claude Opus 4.6 (1M context) --- poc-memory/src/bin/poc-hook.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc-memory/src/bin/poc-hook.rs b/poc-memory/src/bin/poc-hook.rs index 1e5389c..4160d5a 100644 --- a/poc-memory/src/bin/poc-hook.rs +++ b/poc-memory/src/bin/poc-hook.rs @@ -15,7 +15,7 @@ use std::path::PathBuf; use std::process::Command; use std::time::{SystemTime, UNIX_EPOCH}; -const CONTEXT_THRESHOLD: u64 = 130_000; +const CONTEXT_THRESHOLD: u64 = 900_000; const RATE_LIMIT_SECS: u64 = 60; const SOCK_PATH: &str = ".claude/hooks/idle-timer.sock";