consciousness/src/subconscious
Kent Overstreet 58ff9a4d50 Wire subconscious agents through Mind via AutoAgent
Mind now holds SubconsciousAgent state (surface-observe, journal,
reflect) and triggers them after conscious turns complete. Each
agent forks from the conscious agent's context via AutoAgent,
runs as an async task, and routes output (surfaced memories,
reflections) back into the conscious agent.

Replaces the synchronous AgentCycleState that spawned child
processes and blocked start_turn.

Also adds .agent2 files — simplified prompts for the forked model
that strip {{conversation}} and {{agent-context}} (already in the
forked context).

TODO: resolve remaining placeholders (seen_current, input:walked,
memory_ratio) in the .agent2 prompts.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-07 01:33:07 -04:00
..
agents Wire subconscious agents through Mind via AutoAgent 2026-04-07 01:33:07 -04:00
audit.rs Kill log callback — use ConversationEntry::Log for debug traces 2026-04-07 01:23:22 -04:00
consolidate.rs Kill log callback — use ConversationEntry::Log for debug traces 2026-04-07 01:23:22 -04:00
daemon.rs Kill log callback — use ConversationEntry::Log for debug traces 2026-04-07 01:23:22 -04:00
defs.rs remove dead transcript mining pipeline 2026-04-02 21:42:03 -04:00
digest.rs Kill log callback — use ConversationEntry::Log for debug traces 2026-04-07 01:23:22 -04:00
learn.rs Delete ui_channel.rs — relocate types, remove all UiMessage/UiSender plumbing 2026-04-05 22:34:48 -04:00
mod.rs call_api_with_tools_sync() -> src/agent/oneshot.rs 2026-04-07 01:00:39 -04:00
prompts.rs delete dead load_prompt (orphaned by split_* removal) 2026-04-02 16:22:34 -04:00
subconscious.rs Fix context budgeting and compaction 2026-04-06 22:43:55 -04:00