Files
wehub-resource-sync c3749daf48
Tests / test-linux (3.13) (push) Failing after 0s
Tests / test-linux (3.11) (push) Failing after 1s
Tests / lint (push) Failing after 0s
Tests / test-linux (3.9) (push) Failing after 1s
Docker / build (push) Failing after 1s
Docker / build-gpu (push) Failing after 2s
Tests / test-windows (push) Has been cancelled
Tests / test-macos (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:03:03 +08:00

1.1 KiB

description
description
Save the current Claude Code session into MemPalace. Idempotent — won't dupe.

/save

Save the current Claude Code session into MemPalace. Run this when you want a checkpoint. Safe to run repeatedly — drawer IDs are content-hashed so re-running on the same session overwrites in place, no duplicates.

Behavior:

  1. Find the current session's JSONL transcript path (Claude Code passes it via the conversation context — look for ~/.claude/projects/ paths).

  2. Run via bash:

    mempalace mine "<TRANSCRIPT_PATH>" --mode convos --wing claude_imports
    
  3. If the user supplied an argument after /save, use it as the wing name instead of claude_imports (e.g. /save my_research--wing my_research).

  4. Report back: how many drawers were filed, into which wing/room.

Requires mempalace to be installed (uv tool install mempalace recommended, or pip install mempalace).

For the full setup and retention checklist, including hooks, JSONL backup, and one-time backfill, see website/guide/claude-code-retention.md.