Agent Team

From one line to tested code

Three agents pass the work along like a relay. When a test fails, the baton goes back, and nothing reaches you until the tests pass.

01 · You

Write one line

Describe the app the way you would to a friend. No spec, no setup, no file names.

  • A brief, saved with the task
  • The number of rounds the team may try

New task

A habit tracker that remembers my streak
Rounds 3Start build

02 · Planner

The brief becomes a plan

The Planner decides the files, what each one does, what to check and which tests to write.

  • plan.md with numbered steps
  • A design direction for the page

plan.md

  1. 1Keep the streak rules in logic.js
  2. 2Build the page in index.html
  3. 3Save habits in the browser
  4. 4Test the streak math in logic.test.js

03 · Coder

The plan becomes files

The Coder writes a small web app that opens in any browser, plus the unit tests for its logic.

  • index.html, style.css, app.js, logic.js
  • logic.test.js for node --test

logic.js

export function streak(days) { let count = 0; for (const d of [...days].reverse()) { if (!d.done) break; count++; } return count;}

04 · Reviewer

The tests decide

The Reviewer checks every file and runs the tests. Anything that fails goes back with the reason.

  • A test report for every round
  • Approved, or sent back to the Coder

node --test

ok counts a 5 day streakok stops at a missed daynot ok handles an empty listok keeps the order

1 failing. Sent back to the Coder with the reason.

Nothing ships until the tests pass

  1. Round 1

    3 of 4 tests pass

    An empty habit list throws. The Reviewer sends the failing test and the reason back.

  2. Round 2

    The Coder fixes only that

    It starts from the last version, adds the empty-list check and keeps everything else.

  3. Round 3

    4 of 4 pass, approved

    The Reviewer approves. You open the app, read the code or see what changed between rounds.

Give the team its first task

Describe an app in one line. The crew plans it, builds it and tests it, and a few minutes later you open a version that passed.

planner
coder
reviewer

about 2 minutes a round · free models