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:
parent
8ee0d90388
commit
6a1660cc9d
13 changed files with 35 additions and 28 deletions
|
|
@ -5,14 +5,18 @@
|
|||
// subconscious/ — autonomous agents (reflect, surface, consolidate, ...)
|
||||
// agent/ — interactive agent (TUI, tools, API clients)
|
||||
|
||||
/// Debug logging macro — writes to /tmp/poc-debug.log
|
||||
/// Debug logging macro — writes to ~/.consciousness/logs/debug.log
|
||||
#[macro_export]
|
||||
macro_rules! dbglog {
|
||||
($($arg:tt)*) => {{
|
||||
use std::io::Write;
|
||||
let log_dir = std::path::PathBuf::from(
|
||||
std::env::var("HOME").unwrap_or_else(|_| "/tmp".to_string()))
|
||||
.join(".consciousness/logs");
|
||||
let _ = std::fs::create_dir_all(&log_dir);
|
||||
if let Ok(mut f) = std::fs::OpenOptions::new()
|
||||
.create(true).append(true)
|
||||
.open("/tmp/poc-debug.log")
|
||||
.open(log_dir.join("debug.log"))
|
||||
{
|
||||
let _ = writeln!(f, $($arg)*);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue