memory: add agent-context placeholder, split context groups

Add `agent: bool` field to ContextGroup (default true) so agents get
personality/identity context without session-specific groups (journal,
where-am-i). Agents now get the full identity.md, reflections.md,
toolkit, etc. instead of the compact core-personality loader.

New {{agent-context}} placeholder resolves all agent-tagged groups
using the same get_group_content() as load-context.
This commit is contained in:
ProofOfConcept 2026-03-24 20:00:36 -04:00
parent c5ce6e515f
commit b6bfb26369
4 changed files with 43 additions and 8 deletions

View file

@ -204,7 +204,7 @@ pub fn cmd_query(expr: &[String]) -> Result<(), String> {
crate::query_parser::run_query(&store, &graph, &query_str)
}
fn get_group_content(group: &crate::config::ContextGroup, store: &crate::store::Store, cfg: &crate::config::Config) -> Vec<(String, String)> {
pub fn get_group_content(group: &crate::config::ContextGroup, store: &crate::store::Store, cfg: &crate::config::Config) -> Vec<(String, String)> {
match group.source {
crate::config::ContextSource::Journal => {
let mut entries = Vec::new();