consciousness/src/thought
Kent Overstreet df9b610c7f add memory importance scoring via prompt logprobs
score_memories() drops each memory from the context one at a time,
runs prompt_logprobs against the full conversation, and builds a
divergence matrix: memories × responses.

Row sums = memory importance (for graph weight updates)
Column sums = response memory-dependence (training candidates)

Uses vLLM's prompt_logprobs to check "would the model have said
this without this memory?" — one forward pass per memory, all
responses scored at once. ~3s per memory on B200.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-02 22:13:55 -04:00
..
bash.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
context.rs WIP: trim_entries dedup, context_window rename, compact simplification 2026-04-02 15:58:03 -04:00
edit.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
glob_tool.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
grep.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
memory.rs Split journal tools from default definitions, expose to all for now 2026-04-01 15:12:14 -04:00
mod.rs add memory importance scoring via prompt logprobs 2026-04-02 22:13:55 -04:00
read.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
training.rs add memory importance scoring via prompt logprobs 2026-04-02 22:13:55 -04:00
write.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00