Make remember tool instructions more imperative in system prompts

- Change 'call remember' to 'you MUST call remember' in native prompt
- Change 'IF you discovered' to 'ALWAYS...when you discovered'
- Add explicit list of trigger tools (code_search, rg, grep, find, read_file)
- Add reminder to Response Guidelines section
- Add remember tool and Project Memory section to non-native prompt
- Remove redundant console output from remember tool
- Fix test compilation errors (missing summary parameter, temporary borrow)
This commit is contained in:
Dhanji R. Prasanna
2026-01-11 06:49:45 +08:00
parent 1090e30d6c
commit e731bc8217
5 changed files with 44 additions and 8 deletions

View File

@@ -68,9 +68,6 @@ pub async fn execute_remember<W: UiWriter>(
// Write back
std::fs::write(&memory_path, &final_content)?;
ctx.ui_writer
.println(&format!("💾 Memory updated ({})", format_size(final_content.len())));
Ok(format!("Memory updated. Size: {}", format_size(final_content.len())))
}