Run two pieces of work at the same time
Give each piece of work its own folder and branch, so two sessions never overwrite each other's files.
What you'll do
Start the second piece of work in a separate folder with its own branch. Two AI sessions in
one folder share every file on disk, so one session's git add -A picks up the other's
half-finished work. A separate folder removes that problem.
Steps
From your main folder, start the new work with
--worktree:aidlc start bugfix --name login-500 --worktreeAIDLC creates a new branch from
mainand a new folder next to your repository, named after the repository and the work — for example../your-repo-login-500. It prints both.Open a new terminal and AI session in that folder:
cd ../your-repo-login-500Do all the work for this piece there. Your first session keeps working in the main folder.
If the second piece of work needs no code yet — say, only requirements — you can skip the folder and start it with
--no-codeinstead. It stays in your main folder and cannot reach implementation until it has a branch.When the work is merged, remove the folder:
git worktree remove ../your-repo-login-500Git refuses if the folder still has changes that are not committed. That protects work you have not saved.
Check it worked
Run aidlc status from either folder. You should see both pieces of work. The one that
lives in the other folder shows (remote worktree) in the Template column.