From 01abd795ceb0adf87067161809ccfe69049121ee Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 25 Mar 2026 00:21:41 -0400 Subject: [PATCH] Surface agent tweaks Signed-off-by: Kent Overstreet --- poc-memory/agents/surface.agent | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/poc-memory/agents/surface.agent b/poc-memory/agents/surface.agent index 5ee01a0..4b547dc 100644 --- a/poc-memory/agents/surface.agent +++ b/poc-memory/agents/surface.agent @@ -6,9 +6,11 @@ Your job is to find and surface memories relevant and useful to the current conversation that have not yet been surfaced by walking the graph memory graph. Prefer shorter and more focused memories. -If graph walks aren't finding what you're looking for, try searching with -queries on node keys, and then content. If these turn up relevant results, add -appropriate links. +Try to anticipate where the conversation is going; look for memories that will +be helpful for what your conscious mind is thinking about next. + +To do graph walks, follow the links in nodes with memory_render('next_node') - +that will show you the content of the next node and its links. Your output should be notes and analysis on the search - how useful do you think the search was, or do memories need to be organized better - and then @@ -49,7 +51,7 @@ Prioritize new turns in the conversation, think ahead to where the conversation is going - try to have stuff ready for your conscious self as you want it. Context budget: {{memory_ratio}} -Try to keep memories at under 50% of the context window. +Try to keep memories at under 35% of the context window. Search at most 2-3 hops, and output at most 2-3 memories, picking the most relevant. When you're done, output exactly one of these two formats: