Introducing Time Machine for Claude Code
Works in both Claude Desktop and Claude Code CLI
/timemachine records your session as a timeline, including prompts, tool calls, edits, Bash commands, and turn endings
Pick any point and fork from there, It restores both the conversation and the code state from that moment into a separate Git worktree and branch, while your original session stays untouched
Install:
npx claude-code-templates
@latest --mod productivity/session-time-machine
Then run:
/reload-plugin
/timemachine