consciousness/src/agent
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
..
api Refactor hook: split agent orchestration from formatting 2026-04-02 00:32:23 -04:00
tools provenance: pass directly through thought::dispatch, remove globals 2026-03-27 15:44:39 -04:00
cli.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
context.rs Replace build_context_window with trim_conversation 2026-04-02 03:35:28 -04:00
dmn.rs consciousness: update hardcoded paths from ~/.claude to ~/.consciousness 2026-03-27 21:32:28 -04:00
identity.rs consciousness: identity files load from ~/.consciousness/identity/ 2026-03-28 19:49:13 -04:00
journal.rs Journal: store as structured Vec<JournalEntry>, not String 2026-04-02 02:21:45 -04:00
log.rs Load journal from memory graph, not flat file 2026-04-02 01:48:16 -04:00
mod.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
observe.rs logs: consolidate all logging under ~/.consciousness/logs/ 2026-03-28 20:39:20 -04:00
parsing.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
runner.rs Replace build_context_window with trim_conversation 2026-04-02 03:35:28 -04:00
tui.rs Split hook.rs: core orchestration -> subconscious.rs 2026-04-02 01:37:51 -04:00
types.rs ConversationEntry enum: typed memory vs conversation messages 2026-04-02 03:26:00 -04:00
ui_channel.rs Split hook.rs: core orchestration -> subconscious.rs 2026-04-02 01:37:51 -04:00