I have 10 bots working on my dev workflow right now. Here is what each one does.
Описание и применение
10 ботов используют отдельные git‑worktree, чтобы избежать конфликтов веток и гарантировать корректные деплоы.
Задача
Multiple automation scripts ran in the same working directory, causing branch collisions and unintended deployments.
Результат
Implemented a 5‑step automation pattern that isolates each bot in its own worktree, eliminating branch collisions and improving reliability of deployments and CI tasks.
Рабочий процесс
- 1. Trigger: schedule or webhook fires
- 2. Isolate: create a fresh git worktree with git worktree add
- 3. Work: perform the task inside the worktree
- 4. Verify: run build or tests
- 5. Notify and stop: send notification, do not commit, remove worktree
Доказательства
The fix was git worktree. Every automation now gets its own folder, so nothing can ever touch the directory I am typing in.
git worktree add creates a second folder attached to the same repository but checked out to its own branch
- Дата записи: 2026-09-21T13:45:31.437Z