move Claude Code-specific code from thalamus/ to claude/

Separates the Claude-specific daemon (idle timer, tmux pane detection,
prompt injection, RPC server, session hooks) from the universal
infrastructure (channels, supervisor, notify, daemon protocol).

thalamus/ now contains only substrate-independent code: the channel
client/supervisor, notification system, daemon_capnp protocol, and
shared helpers (now(), home()).

claude/ contains: idle.rs, tmux.rs, context.rs, rpc.rs, config.rs,
hook.rs (moved from subconscious/), plus the daemon CLI and server
startup code from thalamus/mod.rs.

All re-exports preserved for backward compatibility.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-03 19:14:39 -04:00
parent 36afa90cdb
commit dd7f1e3f86
19 changed files with 627 additions and 612 deletions

View file

@ -50,9 +50,12 @@ pub mod cli;
// TUI for memory-search
// tui moved to src/user/tui/ (consciousness binary screens)
// Thalamus — notification routing and idle management daemon
// Thalamus — universal notification routing and channel infrastructure
pub mod thalamus;
// Claude Code integration layer (idle timer, hooks, daemon CLI)
pub mod claude;
// Re-export at crate root — capnp codegen emits `crate::daemon_capnp::` paths
pub use thalamus::daemon_capnp;
@ -79,5 +82,5 @@ pub use subconscious::{
llm, audit, consolidate, knowledge,
digest, daemon,
};
// Backward compat: memory_search moved from hippocampus to subconscious::hook
pub use subconscious::hook as memory_search;
// Backward compat: memory_search moved from subconscious::hook to claude::hook
pub use claude::hook as memory_search;