- 01
Two pairs of eyes
Another model reads the diff before you do and returns a verdict with the risks it found.
- 02
Each team on its own branch
The builder works in a git worktree: its own branch, its own port and its own copy of
.env. It doesn’t touch yours. - 03
Steps in plain view
Build, review, fix, PR, CI and sign-off. Every card says which step the team is on.
- 04
The sign-off is yours
doki pushes the branch and opens the PR, but doesn’t merge until you sign.
How a builder and reviewer flow works
You give the team a task. The builder does it on its branch. When it finishes, doki sends the changes to the reviewer, which returns a verdict with findings.
If the reviewer asks for changes, doki passes them to the builder and reviews again. That repeats until it approves or until a maximum number of rounds, three unless you change it.
If they don’t agree within those rounds, the flow stops and tells you. You decide: ask for another fix, merge anyway or discard.
- The reviewer can read the code, test the running site, or both.
- With auto-fix on, the builder gets the findings without you stepping in. Without it, you decide after each review.
- If the review flags possible secrets in the changes, the flow waits for you to decide whether to go on.
dokiMacBook Proexport async function refresh(token: string) {- const s = await db.session.find(token)+ const s = await db.session.findValid(token)+ if (s.expiresAt < now()) throw expired()+ await rotate(s, { days: 60 }) return sign(s)
Why each team works on an isolated branch
Two agents in the same folder step on each other: one switches branches, another takes port 3000, another edits .env. So each flow runs in a git worktree, which is another working copy of the same repository in its own folder.
doki creates the branch, reserves a port for it and copies your .env files, which aren’t in git. The agent starts its server there and your branch stays the way you left it.
They’re ordinary git worktrees: you can see them with the tools you already use. More in the guide to worktrees for agents.
What happens after the reviewer approves
You choose how far the team goes. It can stop once approved, and you decide whether to merge or open the PR. Or it can carry on to the PR and your sign-off.
In the second case doki pushes the branch, opens the pull request and hands the same agent the CI failures, the conflicts and the changes requested on the PR. Once CI is in order, the flow sits at “Ready for your sign-off”.
There you sign off on the merge or reject it. The flow keeps going after you restart doki, and tells you if it hasn’t moved for a while.
How to see what the agents said to each other
Every flow keeps the team’s conversation: the task, when the builder finished, what went to review, the findings and each round of fixes.
The Flows screen separates the ones in progress, the ones that need you and the finished ones. The same is in doki in the browser: you can create a flow, resume it, sign off or reject from there.
dokiMacBook ProHow to start a flow from a task
A flow can start from Flows, with “New flow”, or from a task: in Tasks you assign the task to an agent or to a team.
While the team works, permissions still go through Guard. If the builder wants to do something sensitive, you get the card just like with any other agent.
dokiMacBook ProHow to start
Open Flows and create one
Pick who builds, who reviews and the repository.
Write the task
Say what they should achieve. Choose whether the reviewer reads the code, tests the site or both.
Decide how far it goes
Stop once approved, or carry on to the PR and your sign-off.
Sign off or reject
When the flow needs you, read the verdict and the changes, and decide.
Frequently asked questions
What is a flow in doki?
It’s a team of two agents on one task: one builds on an isolated branch and the other reviews its changes. doki passes the work between them and asks you for the final decision.
Which agents can build, and who reviews?
Claude Code, Codex or Cursor builds. Another model reviews: doki’s AI, or a Grok Bot you connect in Connections. Having the reviewer test the running site needs a Grok Bot and a test environment set up for that project.
Does doki merge by itself?
No. doki pushes the branch, opens the PR and hands CI failures to the agent, but the merge waits for your sign-off. You can also reject the work or remove the flow.
What if the reviewer and the builder don’t agree?
When they reach the maximum number of rounds the flow stops and tells you. You read the findings and decide: ask for another fix, merge anyway or discard.
Do I need GitHub to use flows?
Only for the pull request part, which doki opens with gh. A flow that stops once approved can be merged without GitHub.
Can I follow a flow from the browser or my phone?
Yes. doki in the browser shows the cards with their steps and the team’s conversation, and lets you create, resume, sign off on or reject a flow.