consciousness/src
Kent Overstreet df62b7ceaa Persist memory scores, use them for eviction in trim_entries
Scores are saved to memory-scores.json alongside the conversation log
after each scoring run, and loaded on startup — no more re-scoring
on restart.

trim_entries now evicts lowest-scored memories first (instead of
oldest-first) when memories exceed 50% of context. The 50% threshold
stays as a heuristic for memory-vs-conversation balance until we have
a scoring signal for conversation entries too. Unscored memories get
0.0, so they're evicted before scored ones.

save_memory_scores rebuilds from current entries, so evicted memories
are automatically expired from the scores file.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-07 19:39:08 -04:00
..
agent Persist memory scores, use them for eviction in trim_entries 2026-04-07 19:39:08 -04:00
bin split out src/mind 2026-04-04 02:46:32 -04:00
claude Fix build warnings across workspace 2026-04-07 13:55:30 -04:00
cli Kill log callback — use ConversationEntry::Log for debug traces 2026-04-07 01:23:22 -04:00
hippocampus Subconscious: persistent agent state, store activity queries 2026-04-07 19:03:05 -04:00
learn rust edition 2024 2026-04-05 06:20:16 -04:00
mind Persist memory scores, use them for eviction in trim_entries 2026-04-07 19:39:08 -04:00
subconscious Shared persistent state across all subconscious agents 2026-04-07 19:23:08 -04:00
thalamus Upgrade capnp 0.20 → 0.25, capnp-rpc 0.20 → 0.25 2026-04-07 12:29:44 -04:00
user Shared persistent state across all subconscious agents 2026-04-07 19:23:08 -04:00
config.rs training: per-node scoring with graph weight updates 2026-04-05 01:18:47 -04:00
lib.rs user: InteractScreen extracted, all screens use ScreenView trait 2026-04-05 18:57:54 -04:00
main.rs deps: remove faer (224 transitive crates) 2026-04-05 06:39:47 -04:00
session.rs move Claude Code-specific code from thalamus/ to claude/ 2026-04-03 19:26:24 -04:00
util.rs delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00