forked from kent/consciousness
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> |
||
|---|---|---|
| .. | ||
| api | ||
| tools | ||
| cli.rs | ||
| context.rs | ||
| dmn.rs | ||
| identity.rs | ||
| journal.rs | ||
| log.rs | ||
| memory.rs | ||
| mod.rs | ||
| observe.rs | ||
| parsing.rs | ||
| runner.rs | ||
| tui.rs | ||
| types.rs | ||
| ui_channel.rs | ||