consciousness/src/subconscious
ProofOfConcept 13453606ae refactor: runner owns stream routing, suppress tool call XML from display
Split the streaming pipeline: API backends yield StreamEvents through
a channel, the runner reads them and routes to the appropriate UI pane.

- Add StreamEvent enum (Content, Reasoning, ToolCallDelta, etc.)
- API start_stream() spawns backend as a task, returns event receiver
- Runner loops over events, sends content to conversation pane but
  suppresses <tool_call> XML with a buffered tail for partial tags
- OpenAI backend refactored to stream_events() — no more UI coupling
- Anthropic backend gets a wrapper that synthesizes events from the
  existing stream() (TODO: native event streaming)
- chat_completion_stream() kept for subconscious agents, reimplemented
  on top of the event stream
- Usage derives Clone

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-03-29 21:22:42 -04:00
..
agents journal: split out as standalone agent, add {{bash:}} placeholder 2026-03-27 20:39:03 -04:00
prompts subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
api.rs refactor: runner owns stream routing, suppress tool call XML from display 2026-03-29 21:22:42 -04:00
audit.rs subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
consolidate.rs subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
daemon.rs logs: consolidate all logging under ~/.consciousness/logs/ 2026-03-28 20:39:20 -04:00
defs.rs move data home from ~/.claude/memory to ~/.consciousness 2026-03-27 21:07:17 -04:00
digest.rs digest: use created_at instead of timestamp for date matching 2026-03-26 19:18:14 -04:00
enrich.rs subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
hook.rs logs: consolidate all logging under ~/.consciousness/logs/ 2026-03-28 20:39:20 -04:00
knowledge.rs logs: consolidate all logging under ~/.consciousness/logs/ 2026-03-28 20:39:20 -04:00
llm.rs logs: consolidate all logging under ~/.consciousness/logs/ 2026-03-28 20:39:20 -04:00
mod.rs move memory_search from hippocampus to subconscious/hook 2026-03-27 20:50:24 -04:00
prompts.rs rename agent: fix tool calls and target override 2026-03-27 15:10:55 -04:00
transcript.rs subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00