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:
- One-shotting: the agent tries to build everything at once, runs out of context mid-feature, and the next session inherits an undocumented half-built mess.
- Premature completion: late in the project the agent sees much working and declares done, with nothing in context listing what's pending.
- Fake completion: features marked done after a unit test or curl check while end-to-end flows are still broken.
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.
More from coding & agent
- ML author Burkov: I've never used agent Skills — apparently useless for modern harnesses — burkov · 2026-12-01
- Tencent Hunyuan's Hy4 flash hits 125T tokens and 164.8K users in two weeks — TencentHunyuan · 2026-12-01
- Feed your coding agents APM data: AI can now auto-find those 30ms race conditions — DanielLockyer · 2026-12-01
- Google clarifies Antigravity ToS: violations now only affect AGY access, with appeal path — sundarpichai · 2026-12-01
- Guizang open-sources agent skill turning AI audio dramas into illustrated videos — op7418 · 2026-12-01
- Using Neon as planner with Fable 5.2 subagents: a refreshing multi-model combo — beffjezos · 2026-12-01