Memory: byte-budgeted index, memory_search (BM25), auto extraction on compaction/exit

This commit is contained in:
hermes committed 2026-11-30 12:46:16 +00:00
1 parent 59bf45f41d
commit 8705b128ea
8 files changed
+311 -39

No files matched your search

+5
View File
@@ -712,6 +712,11 @@ pub async fn run(setup: Setup) -> std::io::Result<()> {
);
}
ratatui::restore();
eprintln!("[saving memory…]");
let saved = agent.lock().await.extract_memory_now().await;
if !saved.is_empty() {
eprintln!("[memory saved: {}]", saved.join(", "));
}
let a = agent.lock().await;
let cost = pricing(a.model())
.map(|p| format!(" ${:.4}", app.st.usage.cost(&p)))