> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rootaccess.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Worktrees

> Run several seb chat sessions on the same repo at once — each in its own isolated git worktree, so they never clobber each other's branch.

A worktree is a second working copy of your repo, on its own branch, sharing the same git history. Worktrees let you run **several `seb chat` sessions in parallel** on one repo — one pairing on a feature, another reviewing an agent's PR — without them fighting over the current branch or forcing you to stash and switch.

<Note>
  **Where:** inside [`seb chat`](/reference/cli-commands#seb-chat), run `/worktree`.
</Note>

## Use it

* **`/worktree`** — open a menu to create a new worktree or switch to an existing one (type to filter the list).
* **`/worktree <name>`** — create, or jump straight to, a named worktree.

Each worktree is created under `.seb/worktrees/<name>/`, branched from your current `HEAD`. Switching points the session — Seb's commands and file edits — at that directory; your main checkout is never touched. Worktrees whose directories were deleted are pruned automatically.

## A typical split

* One session runs [`/pull`](/reference/slash-commands) to review an agent's PR on its branch.
* Another runs in a fresh `/worktree feature-x` to prototype something new.

Both share the same repo and history; neither blocks the other.

## See also

* [Slash commands](/reference/slash-commands) — `/worktree`, `/pull`
* [Guide → 5. Review in the CLI](/guide/review-in-cli)
