deepseek_rust_cli/agent/context.rs
1use std::fs;
2
3pub fn get_project_context() -> String {
4 let mut context = String::new();
5
6 // Inject local memory (only — project structure listing removed to save tokens)
7 if let Ok(memory) = fs::read_to_string(".deep/memory.md") {
8 if !memory.trim().is_empty() {
9 context.push_str("\n### Local Memory:\n");
10 context.push_str(&memory);
11 }
12 }
13
14 context
15}