Docs/Multi-agent

Duo Loop

A live two-agent loop — one writes the code, the other tests and reviews it.

Duo Loop runs two agents in two real terminals side by side, and you watch every step live. Start it from Duo Loop in the sidebar, or press Ctrl+Shift+S.

Duo Loop setup dialog
Describe the goal, pick the Writer and Checker agents, set the number of rounds.

How it works

LiveSquadModal.tsx
  1. The screen splits into two terminals: left pane Writer, right pane Checker.
  2. If you didn’t give a verify command, the Checker first writes unit tests for your goal and reports the test command on a TEST_COMMAND: line (testPlan.ts).
  3. The Writer writes code until the tests pass.
  4. The Checker runs the tests and reads the git diff, then approves (APPROVED) or sends feedback.

Flow