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:
- Scan the changed file list first to make sure nothing outside the task scope was touched.
- Run the project’s real test or build command in the workspace terminal.
- Open the actual page whenever UI or CSS changes—a clean build says nothing about broken spacing or overflow.
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:
- Workspace notepad (available under Experimental features): one shared Markdown file per workspace stored in the host’s data directory, outside your Git checkout. Jot down what has been verified, what is still broken, and what to run next. Desktop and Web can edit it, and agents with permission can read and write it via Ait MCP.
- Timeline export: export the saved session as Markdown or HTML from context details when you want an archive or need to share a trace with a teammate.
For full details on worktrees, the notepad, and session tools, see Workspaces and Agent sessions.