Agent memory: MEMORY.md index in prompt, lazy topic files, memory_write/memory_forget
This commit is contained in:
1 parent
8669c50fb9
commit
9b6eb9bee1
7 files changed
+228
-2
No files matched your search
@@ -182,6 +182,7 @@ pub fn system_prompt(base: Option<&str>, home: &Path, cwd: &Path) -> String {
|
||||
for (p, c) in context_files(home, cwd) {
|
||||
s.push_str(&format!("\n\n# {}\n{}", p.display(), c.trim()));
|
||||
}
|
||||
s.push_str(&crate::memory::prompt_section(home, cwd));
|
||||
s
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user