Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 05 · AI · The loop and its harness · about 14 min to read

Play it as a journeyTutor comes with a plan

Agents that use a computer: coding agents and long horizons

The Loop
The Loop · Open board

The loop from the Building with LLMs track: ask the model, run the tool it asks for, hand back the result, ask again. This lesson gives that loop a whole computer to work in, and then asks how you grade a run that takes a hundred turns.

Lesson 53 of 83 in AI

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • October 2023: the best model fixed 2 issues in 100
  • A coding agent: the same loop, with a shell as its tool
  • Computer use: the same loop, with a screen instead of a shell
  • Long horizon: why a hundred small steps fail more than one big one
  • A trace: the recording of every step
  • A SWE-bench-style test: did the real tests pass?

Terms it explains: coding agent, sandbox, Computer use, long horizon, trace, fail-to-pass, pass-to-pass, Common mistakes.

Lab

The returns desk's loop keeps asking the model until it answers. How many passes before it hands the customer to a person?

Drag Passes before a person takes over from 1 to 20, then raise Tool calls that fail, and watch the day's bill.

Open The loop cap

Related papers

Review AI