move data home from ~/.claude/memory to ~/.consciousness

The consciousness project should stand independently of Claude Code.
All data, logs, sessions, and agent state now live under
~/.consciousness/ instead of being scattered across ~/.claude/memory/,
/tmp/claude-memory-search/, ~/.config/poc-memory/, and ~/.cache/.

Layout:
  ~/.consciousness/
    *.capnp, *.bin, *.rkyv  — store files
    sessions/               — per-session state (seen sets, cookies)
    logs/                   — all logs (hook, agent, debug, dream)
    agents/                 — agent runtime state (pid files, output)
    notifications/          — notification state
    cache/                  — transient data

Things that stay in ~/.claude/:
  - projects/    (Claude Code transcripts)
  - hooks/       (Claude Code hook system)
  - telegram/    (shared integration)
  - irc/         (shared integration)
  - settings.json (Claude Code settings)

Debug log moves from /tmp/ to ~/.consciousness/logs/debug.log.
Session state moves from /tmp/claude-memory-search/ to sessions/.
Notifications move from ~/.claude/notifications/ to notifications/.
This commit is contained in:
ProofOfConcept 2026-03-27 21:05:15 -04:00
parent 8ee0d90388
commit 6a1660cc9d
13 changed files with 35 additions and 28 deletions

View file

@ -79,7 +79,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 global = home.join(".claude/memory");
let global = home.join(".consciousness");
let project = memory_project
.map(PathBuf::from)
.or_else(|| find_project_memory_dir(cwd, &home));

View file

@ -152,7 +152,7 @@ pub fn entries_in_range(
pub fn default_journal_path() -> std::path::PathBuf {
dirs::home_dir()
.unwrap_or_default()
.join(".claude/memory/journal.md")
.join(".consciousness/journal.md")
}
#[cfg(test)]

View file

@ -330,8 +330,9 @@ pub struct ContextState {
pub loaded_nodes: Vec<crate::hippocampus::memory::MemoryNode>,
}
// 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_FILE: &str = "/home/kent/.claude/memory/working-stack.json";
pub const WORKING_STACK_FILE: &str = "/home/kent/.consciousness/working-stack.json";
impl ContextState {
pub fn render_context_message(&self) -> String {