Split hook.rs: core orchestration -> subconscious.rs

subconscious::subconscious — AgentCycleState, AgentInfo, AgentSnapshot,
  SavedAgentState, format_agent_output, cycle methods. Core agent
  lifecycle independent of Claude Code.

subconscious::hook — Claude Code hook: context loading, chunking,
  seen-set management, run_agent_cycles (serialized state entry point).

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-02 01:37:51 -04:00
commit c814ed1345
6 changed files with 415 additions and 410 deletions

View file

@ -349,7 +349,7 @@ pub struct App {
/// Agent screen: viewing log for selected agent.
agent_log_view: bool,
/// Agent state from last cycle update.
agent_state: Vec<crate::subconscious::hook::AgentSnapshot>,
agent_state: Vec<crate::subconscious::subconscious::AgentSnapshot>,
}
/// Overlay screens toggled by F-keys.