From b6462217878e46fc54d126cb8551e4ec36de5529 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 12 Apr 2026 01:25:18 -0400 Subject: [PATCH] =?UTF-8?q?unconscious:=20don't=20load=20standard=20contex?= =?UTF-8?q?t=20=E2=80=94=20prompts=20are=20self-contained?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unconscious agent definitions already include {{tool: memory_render core-personality}} etc. Loading standard context via reload_for_model duplicated those nodes. Now they get empty system_prompt and personality — everything comes from the agent definition. Co-Authored-By: Proof of Concept --- src/mind/unconscious.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/mind/unconscious.rs b/src/mind/unconscious.rs index f67c83d..d0529ef 100644 --- a/src/mind/unconscious.rs +++ b/src/mind/unconscious.rs @@ -273,15 +273,9 @@ impl Unconscious { return; } }; - let (system_prompt, personality) = match crate::config::reload_for_model(&app, &app.prompts.other) { - Ok(r) => r, - Err(e) => { - dbglog!("[unconscious] config: {}", e); - auto.steps = orig_steps; - self.agents[idx].auto = auto; - return; - } - }; + // Unconscious agents have self-contained prompts — no standard context. + let system_prompt = String::new(); + let personality = Vec::new(); let client = crate::agent::api::ApiClient::new(base_url, api_key, model); let agent = crate::agent::Agent::new(