After two or three hours with a coding agent, the hardest part is rarely getting code written. It is remembering which reply touched which branch, which build error belongs to which edit, and where you left off after getting pulled into another bug.

Using Ait workspaces well comes down to keeping all of those pieces attached to the same task.

One task per workspace, named after the goal

Skip throwaway names like test or temp that mean nothing two days later. Name workspaces after the actual task—fix-oauth-callback, mobile-nav-390px, or docs-daemon-upgrade.

Inside that workspace, the agent thread, project files, terminal, and Git diff stay side by side. Switching back tells you immediately which files changed and which branch you are on, without running git status across five terminal tabs.

Put the verification step in the prompt

Compare “improve the homepage navigation” with:

Adjust the homepage navigation so it opens and closes cleanly at a 390px mobile width. Keep the existing styles, do not add new dependencies, and run the build command when done.

Stating the scope, constraints, and check command upfront cuts out back-and-forth rounds and tells you exactly what to verify in the diff.

Check the diff and command output before trusting the summary

An agent’s final summary can sound completely confident even when it edited an extra file or missed an edge case. Make it a habit to:

Split parallel work into separate worktrees

When an urgent fix interrupts a feature branch, or you want to compare two approaches side by side, open a new Git worktree workspace so each task gets its own directory and branch. If you also want OS-level write limits on the agent process, see regular vs. sandboxed worktrees.

Leave a handoff note for the next session

When you plan to switch agents or pick the task up tomorrow, two built-in tools save you from re-explaining the whole history:

For full details on worktrees, the notepad, and session tools, see Workspaces and Agent sessions.