consciousness/src/agent
Kent Overstreet 949dacd861 Fast startup: mmap backward scan instead of reading full log
Uses JsonlBackwardIter (SIMD memrchr3) to scan the conversation log
newest-first without reading/parsing the whole file. Stops as soon
as the conversation budget is full. Only the kept nodes get
retokenized and pushed into context.

18MB log → only tokenize the ~50 nodes that fit in the budget.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-09 13:09:26 -04:00
..
api Fix UTF-8 slicing panics: use floor_char_boundary for all truncation 2026-04-08 19:35:01 -04:00
tools LSP client: spawn language servers, expose code intelligence tools 2026-04-09 12:59:25 -04:00
context.rs Fast startup: only retokenize tail of conversation log 2026-04-09 13:06:19 -04:00
mod.rs Fast startup: mmap backward scan instead of reading full log 2026-04-09 13:09:26 -04:00
oneshot.rs Unconscious agents: persistent AutoAgent, shared Agent Arc for UI 2026-04-09 01:00:48 -04:00
tokenizer.rs WIP: Rename context_new → context, delete old files, fix UI layer 2026-04-08 15:20:26 -04:00