A practical review workflow for T3 Code threads
By Flavio
Updated
Tagged: AI
Use T3 Code's stable release with a clear workflow for isolated agent changes, reviewing the complete branch, merging, and cleaning up finished work.
When a coding agent finishes a task, you’re rarely done. You still need to read the diff, run the code yourself, and get the change into your main branch cleanly.
T3 Code’s first stable Orchestrator V2 release makes that loop much easier to follow. It tracks child agents better and puts workspace and Git controls right in the thread details.
I already have a longer T3 Code guide covering installation and providers. Here, let’s walk through a practical way to take a single thread from the first prompt to a merged change.
Start with a task you can review
Say you have an app where users export invoices, and you want the export button to show an error when the request fails.
Tell the agent what to build and where to stop:
Handle failed invoice exports. Show an error beside the export
button and let the user retry. Keep the export format unchanged.
Explain how you checked both failure and success.
A tight prompt like that is far easier to review than asking the agent to “improve invoice exports.” You can open the page, trigger the failure, and verify the behavior without having to figure out whether an extra refactor was worth keeping.
Choose where the files will change
T3 Code lets an agent work in your current checkout or in an isolated worktree. Pick whichever matches how you run that repository.
For this blog, I keep agents in the existing checkout. On repos where isolated branches make sense, you can give each independent task its own Git worktree, which creates a second working directory attached to the same repository on its own branch.
That diagram shows the isolated path. The task gets its own branch, you review the code, you decide how to merge it, and you close the conversation after that.
Before you start in a worktree, check what the two checkouts still share. Separate working directories can easily talk to the same database, and two dev servers will fight over the same port.
For the invoice export task, run everything against test data. If exporting updates an invoice’s status, point the second checkout at a test database so it can’t touch real records. The agent still has the same shell and network access inside a worktree that it has anywhere else.
Review what the branch will introduce
Once the agent finishes, ask it for a list of every file it changed and an explanation for anything outside the behavior you asked for.
Next, read the full branch diff against your base branch. Checking only the last turn’s diff can hide earlier edits that are still sitting in the branch.
For this invoice error, you expect a small UI update and maybe a focused check around the failed request. If a new export format, a swapped dependency, or a database migration shows up, pause and get an explanation before moving on.
Read the surrounding code too, not just the changed lines. An error message can look right on its own while leaving the button stuck disabled, or a quick second click on retry might send duplicate requests. Check those yourself instead of trusting the agent’s summary.
Use the changed flow
Open the invoice page where the branch is running and click through it. Trigger a normal export first, then force the request to fail using your test setup or browser tools.
Verify that the error shows up, the button becomes clickable again, and retrying succeeds. Try an account with no invoices too, so the page handles the empty state cleanly before any export exists.
Here’s a quick run through those checks:
Drop those check results right into the thread. When something fails, tell the agent what happened and what you expected instead. Keep the fix in the same thread so the branch stays focused on one clear change.
Integrate, then clean up
Commit the reviewed files and merge them the way your repo normally ships code. If your team uses pull requests for agent-written code, write down the expected behavior and how you verified it in the PR description.
Once it’s merged, confirm the commit landed on the target branch. Pushing to main still needs a process, even when the last step is a merge. Save any unfinished edits before removing a worktree directory, and check Git’s worktree documentation if you want the exact removal safeguards.
T3 Code keeps conversations linked to their pull requests, and the stable release separates forking a thread from merging conversation context. Merging your code in Git is still a separate step from whatever you do with the chat history.
Before closing out a thread, make sure the PR or commit message explains the fix and how you tested it. Whoever looks into invoice exports next should be able to follow what changed from Git alone, without reopening an old agent conversation.
Want me to talk about your product? You can sponsor this site.
Related posts about ai: