He replaced a 17-step agent prompt checklist with a 1976 Unix Makefile — 140+ tickets without drift

RandalSchwartz · reddit · 2026-10-09

When building autonomous agent skills for Dart/Flutter repos, the author found linear numbered checklists break in practice: mid-workflow bot comments required GOTO-style instructions, and agents woke up on open PRs having forgotten the task.

His fix: model the skill as an actual Makefile DAG, since software workflows are dependency graphs, not linear steps. Two immediate wins:

A counterintuitive failure mode emerged: with 5+ prerequisites on one target, the model builds "verification momentum" after the first four checks and blows past a human approval gate at position 5. Capping targets at 2-3 prerequisites and factoring human gates into strict action: ready-state human-approval pairs fixed it across their last 140+ tickets.

Original post →

More from coding & agent

coding & agent channel →