3 ms·
Extend the cleanup period to 2 years in ~/.claude/settings.json with "cleanupPeriodDays": 720 and for personal projects move all Claude Code memory to the r
by smartbit 1mo ago
Extend the cleanup period to 2 years in ~/.claude/settings.json with
"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"