Overview
Worktree Isolation
--worktree:
- When no name is provided, Qoder automatically generates a worktree name.
- New named worktrees are placed under
<repo>/.qoder/worktrees/<处理后的名称>, and a corresponding temporary branch is created. - If a worktree with the same name already exists, it is reused directly instead of being recreated.
Parallel Sessions
Background Agents and Subagents
/tasks to view currently running background tasks:
isolation: worktree to its definition. Clean Subagent worktrees are automatically deleted upon completion, while those with changes are retained.
For creating, configuring, and orchestrating Subagents, see Subagent.
Restoration and Cleanup
Tips
- One task per worktree: Place unrelated tasks in their own worktrees to avoid overlapping changes.
- When local files are needed: A new worktree is a clean checkout and does not include untracked files by default. To copy files like
.env, declare them using.worktreeincludeat the repository root. For details, see Using the CLI. - Clean up promptly: Delete unnecessary worktrees and temporary branches after tasks are completed and merged to keep the repository tidy.