consciousness: identity files load from ~/.consciousness/identity/
Separate identity files (loaded via source: "file" in context_groups) from the memory store (data_dir). New identity_dir config field, defaults to ~/.consciousness/identity/. Also restrict subconscious agents to memory-only tools — no filesystem write access. This prevents agents from creating stray .md files in the memory directory. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
35d925186d
commit
0d2bf81a50
5 changed files with 16 additions and 4 deletions
|
|
@ -249,7 +249,7 @@ pub fn get_group_content(group: &crate::config::ContextGroup, store: &crate::sto
|
|||
}
|
||||
crate::config::ContextSource::File => {
|
||||
group.keys.iter().filter_map(|key| {
|
||||
let content = std::fs::read_to_string(cfg.data_dir.join(key)).ok()?;
|
||||
let content = std::fs::read_to_string(cfg.identity_dir.join(key)).ok()?;
|
||||
if content.trim().is_empty() { return None; }
|
||||
Some((key.clone(), content.trim().to_string()))
|
||||
}).collect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue