Lesson generator cut 22 model calls to 2-5, dropping cost from $0.28 to $0.14 per lesson

Gleb_SV · reddit · 2026-10-20

A follow-up on optimizing a multi-agent lesson generator (planner/builder/checker/fixer producing 5 interactive files per lesson):

Before (open-ended agent loop)

After (one job, one call)

Two surprises

The author asks: when is an agent loop actually worth it, and has anyone kept a loop and made it cheap?

Original post →

More from coding & agent

coding & agent channel →