Help us improve
Share bugs, ideas, or general feedback.
From AIPS
Rebinds globalized AIPS state keys when a project is moved or renamed, transferring session files, project directories, and agentmemory entries from the old path to the current working directory.
npx claudepluginhub kernalix7/aips --plugin AIPSHow this command is triggered — by the user, by Claude, or both
Slash command
/AIPS:aips-rebindThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /aips:rebind When v7.0 globalizes per-project state, that state is keyed by **project path hash** (`md5sum <abs-path> | cut -c1-12`) and **path-encoded directory name** (`/` → `-`). If you move or rename the project, those keys no longer match and the global state is orphaned. `/aips:rebind` moves the orphan into the new key. ## Args `$ARGUMENTS` = `<old-path>` (absolute). If empty, prompt the user: New path is always the current `pwd`. ## What it does For both global locations: | Key | Path | |-----|------| | sessions | `~/.claude/sessions/<path-hash>/` | | projects | `~/.clau...
Share bugs, ideas, or general feedback.
When v7.0 globalizes per-project state, that state is keyed by project path hash (md5sum <abs-path> | cut -c1-12) and path-encoded directory name (/ → -). If you move or rename the project, those keys no longer match and the global state is orphaned. /aips:rebind moves the orphan into the new key.
/aips:rebind $ARGUMENTS
$ARGUMENTS = <old-path> (absolute). If empty, prompt the user:
Old project path (absolute) [default: read from .priv-storage/.aips-prev-path]: ___
New path is always the current pwd.
For both global locations:
| Key | Path |
|---|---|
| sessions | ~/.claude/sessions/<path-hash>/ |
| projects | ~/.claude/projects/<path-encoded>/ (includes memory/) |
Run rebind:
REBIND_SH="$(find ~/.claude/plugins/cache/AIPS/AIPS/lib -name rebind.sh 2>/dev/null | head -1)"
[ -z "$REBIND_SH" ] && REBIND_SH="$(find ~/.claude/plugins -name rebind.sh 2>/dev/null | head -1)"
bash "$REBIND_SH" "<old-path>" "$(pwd)"
The script:
path-hash (first 12 chars of md5sum) and path-encoded (/ → -, leading - stripped).mv old new.merge / replace / abort.nothing to rebind at <location> and continue.memory_rebind --from <old> --to <new>) if exposed; otherwise print a one-line manual instruction..priv-storage/.aips-prev-path ← new path (for next move).[rebind] old-path /home/user/projects/myapp
[rebind] new-path /home/user/work/myapp
[rebind] sessions moved 14 files: .claude/sessions/abc123… → def456…
[rebind] projects moved 3 dirs: .claude/projects/-home-user-projects-myapp → -home-user-work-myapp
[rebind] memory rebind requested via agentmemory API (ok)
Rebound: 14 session files, 3 memory entries from /home/user/projects/myapp → /home/user/work/myapp
~/.claude/ is mutated (plus optional agentmemory API call)./aips:scope afterward.