a847dda88f
Add a virtual memory namespace backed by SQLite, surfaced through the fs-tools, with private (per-user) and shared (system) stores. Storage - `memory_docs` owner table + external-content FTS5 index with sync triggers. - `db/memory_docs.rs` accessor: get / upsert / list / search (bm25+snippet) / delete. Routing (tools/fs) - `classify_memory` splits paths on the raw first component; `..` clamps inside the store, never escaping to disk. - read/write/list/edit/insert/replace/search_file route `user-memory/` to the owner pool and `shared-memory/` to the system pool (a singleton captured in `register_all`); every other path stays on disk. Each tool extracts a pure transform shared between its disk and memory paths. - New `memory_search` tool over the FTS index (scope private/shared/all), with a sanitised FTS5 query. grep_files stays disk-only. Approval - `user-memory/*` allow (read+write); `shared-memory/*` reads allow, writes require approval so the agent can't silently push one person's data into shared memory. `memory_search` allowed via a path-less rule. - migrate away the old `memory/*` and blanket `shared-memory/*` rows. Prompt injection - `MessageBuilder::load_inject_memory` reads `user-memory/` (owner pool) and `shared-memory/` (system pool) inject entries from SQLite; disk paths unchanged. The system pool is threaded ChatSessionManager -> handler -> MessageBuilder. - main and project-coordinator inject `user-memory/index.md` + `shared-memory/index.md`; common/memory.md rewritten for the two stores.
11 lines
848 B
JSON
11 lines
848 B
JSON
{
|
|
"name": "Project Coordinator",
|
|
"description": "Conversational coordinator for a single project of any kind — software, but also travel, study, writing, events, personal goals, research. Holds the project context, does everyday planning/writing itself, and delegates specialized work (research, or code via tech-lead/software-architect/software-engineer) to sub-agents via execute_task. The user talks to one bot that already knows the project.",
|
|
"friendly_description": "A conversational coordinator that holds the full context of one project — software or otherwise — does the everyday planning and writing, and delegates specialised work to sub-agents.",
|
|
"type": "chat",
|
|
"scope": "reasoning",
|
|
"strength": "average",
|
|
"inject_memory": ["user-memory/index.md", "shared-memory/index.md", "$WD/SKALD.md"],
|
|
"icon": "icon.png"
|
|
}
|