-
Notifications
You must be signed in to change notification settings - Fork 175
Description
Problem
When moving/reorganizing project directories, migrating an agent-deck session to a new path requires 4 manual steps:
agent-deck session set <name> path /new/pathagent-deck group move <name> <new-group>(optional)- Manually copy
~/.claude/projects/<old-encoded>/→~/.claude/projects/<new-encoded>/to preserve Claude session history agent-deck session restart <name>
Step 3 is particularly error-prone — you have to know about Claude Code's encoded path scheme (/ → -) and manually construct the directory names. Most users won't know this exists.
Proposal
Add a session move command that handles the full migration:
agent-deck session move <id_or_title> /new/path [--group <new-group>]This would:
- Update the session's path in agent-deck's database
- Detect and migrate Claude Code session history (
~/.claude/projects/encoded directories) - Optionally move to a new group if
--groupis specified - Restart the session
Flags
--group <name>— also move to a different group--no-restart— skip the automatic restart--copy— copy session history instead of moving (preserve old path data for other sessions that may share it)
Context
Claude Code stores session history in ~/.claude/projects/ using path-encoded directory names. Anthropic has marked the built-in migration feature request as NOT_PLANNED (anthropics/claude-code#1516), so this is something the session manager could handle instead.
Tested the manual migration process and confirmed it works — Claude --resume picks up the old conversation history after the encoded directory is renamed/copied.