Disposable isolated dev environments with Claude Code worktree hooks
git worktree only isolates code. Spawn a dedicated DB, dynamic ports, and a dev server per worktree, and let WorktreeCreate / SessionStart / SessionEnd hooks manage the lifecycle automatically. Design principles that settled after running this on three projects.