Quick start
Run these commands inside a Git repository.
Create a workspace
Section titled “Create a workspace”hwt create --branch feat/my-changehwt uses the current branch as the base, asks Herdr to create a linked worktree and workspace, applies your configuration, and leaves focus where it is.
Focus the new workspace immediately with --focus:
hwt create --branch feat/my-change --focusAdd repository setup
Section titled “Add repository setup”Generate .herdr-worktree.yaml:
hwt config initThen describe what each new checkout needs:
# yaml-language-server: $schema=https://raw.githubusercontent.com/dkarter/hwt/main/schema/herdr-worktree.schema.jsonagent: opencode --portfiles: copy: - .env.localpost_create: - mise installValidate the resolved global and repository configuration:
hwt config validateInspect worktrees
Section titled “Inspect worktrees”hwt listRemove the workspace
Section titled “Remove the workspace”From inside the Herdr workspace:
hwt removeFrom elsewhere, provide its workspace ID:
hwt remove --workspace w_8Jx2hwt refuses to remove a dirty or locked worktree. Review the checkout before using --force.