consciousness/src/hippocampus
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
..
neuro add unreachable_pub lint, fix all 17 violations 2026-04-02 16:15:32 -04:00
query delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00
store Cache Store in process — stop reloading on every tool call 2026-04-07 03:35:08 -04:00
counters.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
cursor.rs delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00
graph.rs journal: remove all stringly-typed key patterns, use NodeType 2026-03-26 19:11:17 -04:00
lookups.rs delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00
memory.rs surface: tag recent nodes as (new) instead of hiding them 2026-03-26 21:19:19 -04:00
mod.rs cleanup: remove dead migrate module, fix stale comment 2026-03-27 21:08:40 -04:00
similarity.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
spectral.rs deps: remove faer (224 transitive crates) 2026-04-05 06:39:47 -04:00
transcript.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00