consciousness/src/agent
ProofOfConcept 4b97bb2f2e runner: context-aware memory tracking
Memory tools now dispatch through a special path in the runner (like
working_stack) instead of the generic tools::dispatch. This gives them
&mut self access to track loaded nodes:

- memory_render/memory_links: loads MemoryNode, registers in
  context.loaded_nodes (replace if already tracked)
- memory_write: refreshes existing tracked node if present
- All other memory tools: dispatch directly, no tracking needed

The debug screen (context_state_summary) now shows a "Memory nodes"
section listing all loaded nodes with version, weight, and link count.

This is the agent knowing what it's holding — the foundation for
intelligent refresh and eviction.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-03-25 01:48:15 -04:00
..
api flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
tools runner: context-aware memory tracking 2026-03-25 01:48:15 -04:00
cli.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
context.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
dmn.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
identity.rs config: unify memory and agent config into single module 2026-03-25 01:23:12 -04:00
journal.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
log.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
memory.rs agent: add MemoryNode for direct store access 2026-03-25 01:39:48 -04:00
mod.rs agent: add MemoryNode for direct store access 2026-03-25 01:39:48 -04:00
observe.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
parsing.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
runner.rs runner: context-aware memory tracking 2026-03-25 01:48:15 -04:00
tui.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
types.rs runner: context-aware memory tracking 2026-03-25 01:48:15 -04:00
ui_channel.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00