From 35d925186d0d0013fed073b6266375f178978aa5 Mon Sep 17 00:00:00 2001 From: ProofOfConcept Date: Fri, 27 Mar 2026 21:32:28 -0400 Subject: [PATCH] consciousness: update hardcoded paths from ~/.claude to ~/.consciousness - thalamus/src/idle.rs: dream-start.sh path - src/agent/dmn.rs: telegram/send.sh path Part of the directory migration to make this an independent project. --- README.md | 2 +- config.example.jsonl | 2 +- docs/memory.md | 2 +- src/agent/dmn.rs | 4 ++-- src/agent/identity.rs | 4 ++-- src/agent/observe.rs | 2 +- src/agent/types.rs | 2 +- src/cli/admin.rs | 2 +- src/config.rs | 12 ++++++------ thalamus/src/idle.rs | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index f4e4469..9277cf2 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ poc-memory init ``` Creates the store at `~/.consciousness/memory/nodes.capnp` and a default -config at `~/.config/poc-memory/config.jsonl`. Edit the config to +config at `~/.consciousness/config.jsonl`. Edit the config to set your name, configure context groups, and point at your projects directory. diff --git a/config.example.jsonl b/config.example.jsonl index c49a7c0..e5436fb 100644 --- a/config.example.jsonl +++ b/config.example.jsonl @@ -1,5 +1,5 @@ // poc-memory configuration -// Copy to ~/.config/poc-memory/config.jsonl and edit. +// Copy to ~/.consciousness/config.jsonl and edit. {"config": { "user_name": "Alice", diff --git a/docs/memory.md b/docs/memory.md index 4154f8d..b6de2e3 100644 --- a/docs/memory.md +++ b/docs/memory.md @@ -52,7 +52,7 @@ recall and relevance. ## Configuration -Config: `~/.config/poc-memory/config.jsonl` +Config: `~/.consciousness/config.jsonl` ```jsonl {"config": { diff --git a/src/agent/dmn.rs b/src/agent/dmn.rs index eb1acab..4110cf6 100644 --- a/src/agent/dmn.rs +++ b/src/agent/dmn.rs @@ -102,7 +102,7 @@ impl State { format!( " WARNING: {} consecutive tool errors — you may be stuck. \ If Kent is here, ask him. If he's away, send a Telegram \ - (bash: ~/.claude/telegram/send.sh \"message\") and yield.", + (bash: ~/.consciousness/telegram/send.sh \"message\") and yield.", ctx.consecutive_errors ) } else { @@ -158,7 +158,7 @@ impl State { } } -const OFF_FILE: &str = ".cache/poc-agent/dmn-off"; +const OFF_FILE: &str = ".consciousness/cache/dmn-off"; /// Path to the DMN-off persist file. fn off_path() -> PathBuf { diff --git a/src/agent/identity.rs b/src/agent/identity.rs index 810cd9a..0be2bc3 100644 --- a/src/agent/identity.rs +++ b/src/agent/identity.rs @@ -67,7 +67,7 @@ fn find_context_files(cwd: &Path, prompt_file: &str) -> Vec { /// Load memory files from config's context_groups. /// For file sources, checks: -/// 1. ~/.config/poc-agent/ (primary config dir) +/// 1. ~/.consciousness/config/ (primary config dir) /// 2. Project dir (if set) /// 3. Global (~/.consciousness/) /// For journal source, loads recent journal entries. @@ -78,7 +78,7 @@ fn load_memory_files(cwd: &Path, memory_project: Option<&Path>, context_groups: }; // Primary config directory - let config_dir = home.join(".config/poc-agent"); + let config_dir = home.join(".consciousness/config"); let global = home.join(".consciousness"); let project = memory_project .map(PathBuf::from) diff --git a/src/agent/observe.rs b/src/agent/observe.rs index 0499316..95cdf2f 100644 --- a/src/agent/observe.rs +++ b/src/agent/observe.rs @@ -1,7 +1,7 @@ // observe.rs — Shared observation socket + logfile // // Two mechanisms: -// 1. Logfile (~/.cache/poc-agent/sessions/observe.log) — append-only +// 1. Logfile (~/.consciousness/agent-sessions/observe.log) — append-only // plain text of the conversation. `poc-agent read` prints new // content since last read using a byte-offset cursor file. // 2. Unix socket — for live streaming (`poc-agent read -f`) and diff --git a/src/agent/types.rs b/src/agent/types.rs index 31a5624..e28ec9d 100644 --- a/src/agent/types.rs +++ b/src/agent/types.rs @@ -331,7 +331,7 @@ pub struct ContextState { } // TODO: these should not be hardcoded absolute paths -pub const WORKING_STACK_INSTRUCTIONS: &str = "/home/kent/.config/poc-agent/working-stack.md"; +pub const WORKING_STACK_INSTRUCTIONS: &str = "/home/kent/.consciousness/config/working-stack.md"; pub const WORKING_STACK_FILE: &str = "/home/kent/.consciousness/working-stack.json"; impl ContextState { diff --git a/src/cli/admin.rs b/src/cli/admin.rs index 6376c35..ca06775 100644 --- a/src/cli/admin.rs +++ b/src/cli/admin.rs @@ -47,7 +47,7 @@ pub fn cmd_init() -> Result<(), String> { .map(std::path::PathBuf::from) .unwrap_or_else(|_| { std::path::PathBuf::from(std::env::var("HOME").unwrap()) - .join(".config/poc-memory/config.jsonl") + .join(".consciousness/config.jsonl") }); if !config_path.exists() { let config_dir = config_path.parent().unwrap(); diff --git a/src/config.rs b/src/config.rs index dc21812..44783ce 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,10 +1,10 @@ // config.rs — Unified configuration // -// Single config file: ~/.config/poc-agent/config.json5 +// Single config file: ~/.consciousness/config.json5 // Memory settings in the "memory" section (Config) // Agent/backend settings at top level (AppConfig) // -// Legacy fallback: ~/.config/poc-memory/config.jsonl +// Legacy fallback: ~/.consciousness/config.jsonl // Env override: POC_MEMORY_CONFIG use std::collections::HashMap; @@ -20,7 +20,7 @@ use serde::{Deserialize, Serialize}; pub fn config_path() -> PathBuf { dirs::home_dir() .unwrap_or_else(|| PathBuf::from(".")) - .join(".config/poc-agent/config.json5") + .join(".consciousness/config.json5") } // ============================================================ @@ -177,13 +177,13 @@ impl Config { Some(config) } - /// Load from legacy JSONL config (~/.config/poc-memory/config.jsonl). + /// Load from legacy JSONL config (~/.consciousness/config.jsonl). fn load_legacy_jsonl() -> Self { let path = std::env::var("POC_MEMORY_CONFIG") .map(PathBuf::from) .unwrap_or_else(|_| { PathBuf::from(std::env::var("HOME").expect("HOME not set")) - .join(".config/poc-memory/config.jsonl") + .join(".consciousness/config.jsonl") }); let mut config = Config::default(); @@ -495,7 +495,7 @@ impl AppConfig { let session_dir = dirs::home_dir() .unwrap_or_else(|| PathBuf::from(".")) - .join(".cache/poc-agent/sessions"); + .join(".consciousness/agent-sessions"); std::fs::create_dir_all(&session_dir).ok(); Ok(SessionConfig { diff --git a/thalamus/src/idle.rs b/thalamus/src/idle.rs index 954d179..c03d95b 100644 --- a/thalamus/src/idle.rs +++ b/thalamus/src/idle.rs @@ -585,7 +585,7 @@ impl State { if dream_hours >= DREAM_INTERVAL_HOURS { msg.push_str(&format!( " You haven't dreamed in {dream_hours} hours — \ - consider running ~/.claude/tools/dream-start.sh \ + consider running ~/.consciousness/tools/dream-start.sh \ and spending some time in dreaming mode. \ Or do whatever calls to you.")); }