# Parallel sessions in worktrees

A step of the [Claude Code development environment](https://gradus.kazet.blog/tree/claude-dev-environment) tree on Gradus, in the Guardrails area: Permissions, verify, review.

Page: https://gradus.kazet.blog/tree/claude-dev-environment/step/parallel-worktrees

Run independent tasks in separate git worktrees so parallel sessions never edit the same checkout.

Usually comes after: [Permission rules](https://gradus.kazet.blog/tree/claude-dev-environment/step/permission-rules).

## Prompt for your AI assistant

```
Add a script that creates a git worktree for a new branch under a dedicated directory, installs dependencies there and prints the path. Document in CLAUDE.md that each parallel assistant session should work in its own worktree and how to merge one back.
```

Every step of the tree: https://gradus.kazet.blog/tree/claude-dev-environment/llms.txt
