consciousness/src/agent
Kent Overstreet a8c239f3de Cache Store in process — stop reloading on every tool call
Store::cached() returns a process-global Arc<tokio::sync::Mutex<Store>>
that loads once and reloads only when log files change (is_stale()
checks file sizes). All memory and journal tools use cached_store()
instead of Store::load() per invocation.

Fixes CPU saturation from HashMap hashing when multiple subconscious
agents make concurrent tool calls.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-07 03:35:08 -04:00
..
api fix: prevent assistant message duplication during tool calls 2026-04-07 00:28:39 -04:00
tools Cache Store in process — stop reloading on every tool call 2026-04-07 03:35:08 -04:00
context.rs Memory scores on entries, not a separate Vec 2026-04-07 03:14:24 -04:00
mod.rs Memory scores on entries, not a separate Vec 2026-04-07 03:14:24 -04:00
oneshot.rs Shared forked agent — UI reads subconscious entries live 2026-04-07 03:09:06 -04:00