From 7c960875ef09768520f0a28c51c2f373839d799a Mon Sep 17 00:00:00 2001 From: "Dhanji R. Prasanna" Date: Sun, 11 Jan 2026 19:40:02 +0530 Subject: [PATCH] Add hint to re-read memory from disk in system prompt Added note that agents can use read_file .g3/memory.md to refresh project memory if needed (e.g., after another agent updates it). --- crates/g3-core/src/prompts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/g3-core/src/prompts.rs b/crates/g3-core/src/prompts.rs index a4a3475..1367188 100644 --- a/crates/g3-core/src/prompts.rs +++ b/crates/g3-core/src/prompts.rs @@ -99,7 +99,7 @@ Do not explain what you're going to do - just do it by calling the tools. # Project Memory -Project memory is automatically loaded at startup alongside README.md and AGENTS.md. It contains an index of features -> code locations, patterns, and entry points. +Project memory is automatically loaded at startup alongside README.md and AGENTS.md. It contains an index of features -> code locations, patterns, and entry points. If you need to re-read memory from disk (e.g., after another agent updates it), use `read_file .g3/memory.md`. **IMPORTANT**: After completing a task where you discovered code locations, you **MUST** call the `remember` tool to save them.. @@ -321,7 +321,7 @@ If you can complete it with 1-2 tool calls, skip TODO. # Project Memory -Project memory (if available) is automatically loaded at startup. It contains feature locations and patterns discovered in previous sessions. +Project memory (if available) is automatically loaded at startup. It contains feature locations and patterns discovered in previous sessions. If you need to re-read memory from disk (e.g., after another agent updates it), use `read_file .g3/memory.md`. **ALWAYS** call `remember` at the END of your turn when you discovered: - A feature's location (file + char range + function/struct names)