diff --git a/src/bin/poc-hook.rs b/src/bin/poc-hook.rs index 00ba124..8faa4ae 100644 --- a/src/bin/poc-hook.rs +++ b/src/bin/poc-hook.rs @@ -17,7 +17,7 @@ use std::time::{SystemTime, UNIX_EPOCH}; const CONTEXT_THRESHOLD: u64 = 900_000; const RATE_LIMIT_SECS: u64 = 60; -const SOCK_PATH: &str = ".claude/hooks/idle-timer.sock"; +const SOCK_PATH: &str = ".consciousness/daemon.sock"; /// How many bytes of new transcript before triggering an observation run. /// Override with POC_OBSERVATION_THRESHOLD env var. /// Default: 20KB ≈ 5K tokens. The observation agent's chunk_size (in .agent diff --git a/thalamus/src/config.rs b/thalamus/src/config.rs index 81ed7e9..a726089 100644 --- a/thalamus/src/config.rs +++ b/thalamus/src/config.rs @@ -1,6 +1,6 @@ // Daemon configuration. // -// Lives at ~/.claude/daemon.toml. Loaded on startup, updated at +// Lives at ~/.consciousness/daemon.toml. Loaded on startup, updated at // runtime when modules change state (join channel, etc.). use crate::home; @@ -9,7 +9,7 @@ use std::fs; use std::path::PathBuf; fn config_path() -> PathBuf { - home().join(".claude/daemon.toml") + home().join(".consciousness/daemon.toml") } #[derive(Debug, Clone, Serialize, Deserialize, Default)] diff --git a/thalamus/src/idle.rs b/thalamus/src/idle.rs index c6249f0..954d179 100644 --- a/thalamus/src/idle.rs +++ b/thalamus/src/idle.rs @@ -73,7 +73,7 @@ struct Persisted { } fn state_path() -> std::path::PathBuf { - home().join(".claude/hooks/daemon-state.json") + home().join(".consciousness/daemon-state.json") } /// Compute EWMA decay factor: 0.5^(elapsed / half_life). diff --git a/thalamus/src/main.rs b/thalamus/src/main.rs index 4cc9506..e2223ee 100644 --- a/thalamus/src/main.rs +++ b/thalamus/src/main.rs @@ -40,11 +40,11 @@ pub fn home() -> PathBuf { } fn sock_path() -> PathBuf { - home().join(".claude/hooks/idle-timer.sock") + home().join(".consciousness/daemon.sock") } fn pid_path() -> PathBuf { - home().join(".claude/hooks/idle-daemon.pid") + home().join(".consciousness/daemon.pid") } // ── CLI ────────────────────────────────────────────────────────── @@ -448,10 +448,10 @@ async fn module_command( // ── Server mode ────────────────────────────────────────────────── async fn server_main() -> Result<(), Box> { - let log_path = home().join(".claude/hooks/idle-daemon.log"); + let log_path = home().join(".consciousness/logs/daemon.log"); let file_appender = tracing_appender::rolling::daily( log_path.parent().unwrap(), - "idle-daemon.log", + "daemon.log", ); tracing_subscriber::fmt() .with_writer(file_appender) diff --git a/thalamus/src/modules/irc.rs b/thalamus/src/modules/irc.rs index 7d7b727..f4f8a0c 100644 --- a/thalamus/src/modules/irc.rs +++ b/thalamus/src/modules/irc.rs @@ -429,12 +429,12 @@ fn classify_privmsg(nick: &str, target: &str, text: &str, my_nick: &str) -> (Str } /// Append a message to the per-channel or per-user log file. -/// Logs go to ~/.claude/irc/logs/{target}.log (e.g. #bcachefs.log, pm-kent.log) +/// Logs go to ~/.consciousness/irc/logs/{target}.log (e.g. #bcachefs.log, pm-kent.log) fn append_log(target: &str, nick: &str, text: &str) { use std::io::Write; // Sanitize target for filename (strip leading #, lowercase) let filename = format!("{}.log", target.trim_start_matches('#').to_lowercase()); - let dir = home().join(".claude/irc/logs"); + let dir = home().join(".consciousness/irc/logs"); let _ = std::fs::create_dir_all(&dir); if let Ok(mut f) = std::fs::OpenOptions::new() .create(true)