consciousness/src
Kent Overstreet e9e47eb798 Replace build_context_window with trim_conversation
build_context_window loaded journal from a stale flat file and
assembled the full context. Now journal comes from the memory graph
and context is assembled on the fly. All that's needed is trimming
the conversation to fit the budget.

trim_conversation accounts for identity, journal, and reserve
tokens, then drops oldest conversation messages until it fits.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-02 03:35:28 -04:00
..
agent Replace build_context_window with trim_conversation 2026-04-02 03:35:28 -04:00
bin ConversationEntry enum: typed memory vs conversation messages 2026-04-02 03:26:00 -04:00
cli Rename Session -> HookSession 2026-04-02 00:42:25 -04:00
hippocampus memory: add spreading activation tool 2026-03-31 18:21:01 -04:00
learn move memory_search from hippocampus to subconscious/hook 2026-03-27 20:50:24 -04:00
subconscious Split hook.rs: core orchestration -> subconscious.rs 2026-04-02 01:37:51 -04:00
thought Split journal tools from default definitions, expose to all for now 2026-04-01 15:12:14 -04:00
config.rs config: CLI --api-base and --api-key override config file 2026-03-29 20:58:53 -04:00
lib.rs cleanup: remove dead migrate module, fix stale comment 2026-03-27 21:08:40 -04:00
main.rs mcp: add mcp-schema command for generic MCP bridge 2026-03-31 18:20:52 -04:00
session.rs Wire AgentCycleState through runner and TUI 2026-04-02 00:52:57 -04:00
tui.rs logs: consolidate all logging under ~/.consciousness/logs/ 2026-03-28 20:39:20 -04:00
util.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00