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

@@ -840,7 +840,8 @@ fn test_table_empty_line_then_header() {
for ch in input.chars() {
let out = fmt.process(&ch.to_string());
if !out.is_empty() {
eprintln!("After '{}': {:?}", if ch == '\n' { "\\n" } else { &ch.to_string() }, out);
let ch_display = if ch == '\n' { "\\n".to_string() } else { ch.to_string() };
eprintln!("After '{}': {:?}", ch_display, out);
}
full_output.push_str(&out);
}