remem-ai 0.5.211

Local-first coding agent memory for Claude Code and OpenAI Codex
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::PathBuf;

pub(super) fn encode_project_path(cwd: &str) -> String {
    let canonical = crate::db::canonical_project_path(cwd);
    let path_str = canonical.to_string_lossy();
    path_str.replace('/', "-")
}

pub(super) fn claude_memory_dir(cwd: &str) -> PathBuf {
    let home = dirs::home_dir().unwrap_or_else(|| PathBuf::from("."));
    let encoded = encode_project_path(cwd);
    home.join(".claude")
        .join("projects")
        .join(&encoded)
        .join("memory")
}