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.
How it works
LiveSquadModal.tsx
- The screen splits into two terminals: left pane Writer, right pane Checker.
- 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). - The Writer writes code until the tests pass.
- The Checker runs the tests and reads the
git diff, then approves (APPROVED) or sends feedback.
Flow
You→ CheckerSends the goal: “Add CSV export to the reports page”
Checker→ CheckerWrites tests for the goal, reports TEST_COMMAND
↺ loop · up to N rounds (e.g. 3)
Checker→ WriterHands over the test plan and requirements
Writer→ WriterWrites / updates the code
Writer→ TestsRuns the test command
✕ tests fail
Tests→ WriterError output (compressed by ContextOptimizer)
✓ tests pass
Tests→ CheckerReview the git diff
Checker→ WriterFeedback or APPROVED