Install wsx first. See Installation for every method; the short version on macOS and Linux is:

brew tap bakedbean/workspacex https://github.com/bakedbean/workspacex
brew install bakedbean/workspacex/wsx

Then point wsx at a repository and launch it:

wsx repo add /path/to/your/repo
wsx              # launch TUI

Press n (or SHIFT + N for permissive) to create your first workspace, then enter to attach. Claude Code spawns inside the worktree.