Worktree lifecycle for AI agents
Описание и применение
Управление жизненным циклом worktree для параллельных AI‑агентов позволяет изолировать изменения и автоматически интегрировать их, избегая конфликтов.
Задача
Managing worktrees for parallel AI agents to avoid interference and ensure proper integration.
Результат
Agents can work concurrently without interfering, with automated creation, validation, integration via squash merge, and safe cleanup or recovery.
Рабочий процесс
- Receive work-id
- worktree.sh create branch and worktree
- Agent modifies files in isolated tree
- (optional) prepare/verify
- worktree.sh complete or cleanup
Доказательства
Git provides worktrees, but it does not define how their entire lifecycle should be managed.
worktree.sh is a tool for managing the lifecycle of worktrees.
The workflow starts when the agent receives a work-id. From that ID, worktree.sh creates a separate branch and working tree from the detected base branch or from the branch provided explicitly.
- Дата записи: 2026-10-15T21:41:19.427Z