Then just copy the files into another directory, or maybe include it in a VCS?
"cleanupPeriodDays": 720
and for personal projects move all Claude Code memory to the repo, then add a symlink eg PROJ="$HOME/.claude/projects/-$(echo "${PWD#/}" | tr '/' '-')"
DST="$PWD/.claude/memory"
[ -d "$PROJ" ] || { echo "No project dir: $PROJ" >&2; exit 1; }; mkdir -p "$DST"
if [ -d "$PROJ/memory" ] && [ ! -L "$PROJ/memory" ]; then mv "$PROJ/memory"/* "$DST"/; rmdir "$PROJ/memory"; fi
ln -sfn "$DST" "$PROJ/memory"Codex, Pi, Hermes, Openclaw and bunch of others a getting pulled in automatically too. Repo: https://github.com/tenequm/pond