From a8b560b5e1e8bfef32df7512246baabd638c502e Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 22 Mar 2026 09:51:21 -0400 Subject: [PATCH] lower neighborhood budget to 400KB to prevent oversized prompts With core-personality + instructions + subconscious-notes adding ~200KB on top of the neighborhood, the 600KB budget pushed total prompts over the 800KB guard. Lowered to 400KB so full prompts stay under the limit. Co-Authored-By: Claude Opus 4.6 (1M context) --- poc-memory/src/agents/defs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc-memory/src/agents/defs.rs b/poc-memory/src/agents/defs.rs index 875c6c5..069bd89 100644 --- a/poc-memory/src/agents/defs.rs +++ b/poc-memory/src/agents/defs.rs @@ -321,7 +321,7 @@ fn resolve( // Budget: stop adding full content when prompt gets large. // Remaining neighbors get header-only (key + first line). - const NEIGHBORHOOD_BUDGET: usize = 600_000; // ~150K tokens + const NEIGHBORHOOD_BUDGET: usize = 400_000; // ~100K tokens, leaves room for core-personality + instructions let mut budget_exceeded = false; for (nbr, strength, _score) in &included {