The Coding Agent Core Loop Is Simple ReAct — the Hard Part Is Harness Engineering

blaizedsouza · x · 2026-11-03

A reposted thread argues that a coding agent's core loop is just the classic ReAct pattern — Reason → Act → Observe → Repeat: explore the codebase, edit files, run tests, read errors, retry. The loop itself isn't the hard part.

The engineering challenge is everything around it:

That's where building a reliable coding agent gets complicated — and where harness engineering begins. The accompanying diagram lays out a full Coding Agent Loop architecture: a TUI with a steering queue for user goals and interventions, a headless harness containing the LLM↔Tools loop plus a context window (system prompt, goal, tool calls), and an outer cycle of Tasks Plan / Explore / Apply / Execute phases, with TODO Write continuously updating the plan until the goal is achieved.

Original post →

More from coding & agent

coding & agent channel →