Long-running agents fail in predictable ways: one-shotting, premature completion, fake done

arpit_bhayani · x · 2026-12-01

Engineer arpitbhayani breaks down why long-running agent projects fail: agents work in sessions with zero memory of the last one, and context compaction degrades output each time.

Three recurring failure modes:

The fix is boring engineering: a first session sets up the dev server, a progress file, and an initial git commit; expands the prompt into 100 failing feature items that later sessions check off; every subsequent session starts by reading git log and the progress file, running a basic e2e test, then picking one feature, committing, and leaving handoff notes.

His prediction: 2027 will be the year of harnesses — the better your harness, the more reliable your AI system.

Original post →

More from coding & agent

coding & agent channel →