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) <noreply@anthropic.com>
This commit is contained in:
Kent Overstreet 2026-03-22 09:51:21 -04:00
parent de36c0d39e
commit a8b560b5e1

View file

@ -321,7 +321,7 @@ fn resolve(
// Budget: stop adding full content when prompt gets large. // Budget: stop adding full content when prompt gets large.
// Remaining neighbors get header-only (key + first line). // 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; let mut budget_exceeded = false;
for (nbr, strength, _score) in &included { for (nbr, strength, _score) in &included {