consciousness/src/agent
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
..
api refactor: runner owns stream routing, suppress tool call XML from display 2026-03-29 21:22:42 -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 flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -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 move data home from ~/.claude/memory to ~/.consciousness 2026-03-27 21:07:17 -04:00
log.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -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 refactor: runner owns stream routing, suppress tool call XML from display 2026-03-29 21:22:42 -04:00
tui.rs tui: overlay screens via F-keys (F1=context, F2=agents) 2026-03-25 03:12:28 -04:00
types.rs refactor: runner owns stream routing, suppress tool call XML from display 2026-03-29 21:22:42 -04:00
ui_channel.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00