Remix.run Logo
1718627440 20 hours ago

Then just copy the files into another directory, or maybe include it in a VCS?

smartbit 4 hours ago | parent | next [-]

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"
joshstrange 20 hours ago | parent | prev [-]

Yep, that’s what I’m doing, a cron to copy them off to the side daily