Agent Loop EngineeringInterrupting and Resuming an Agent LoopMost agents can't be paused — kill one mid-task and its work is gone. Building a pause resume agent loop takes one design change. Here's the fragile version and the resumable fix.August 23, 2026·8 min read
Agent Loop EngineeringStreaming Intermediate Steps From the LoopAn agent sat silent for forty seconds and users assumed it had frozen — and left. Streaming agent loop steps to the UI fixed the abandonment overnight. Here's the case and the how-to.August 23, 2026·8 min read
Agent Loop EngineeringSequential vs Parallel Tool Execution in AgentsWhen should an agent run tools in parallel and when must it wait? Getting parallel vs sequential tool calls wrong either wastes time or corrupts results. Here's how to decide, with code.August 23, 2026·8 min read
Agent Loop EngineeringTool Call Batching Inside the LoopAgent tool call batching lets the model request several tools at once instead of one per turn. Here's a slow one-at-a-time loop, why it drags, and the batched version that runs 3x faster.August 23, 2026·8 min read
Agent Loop EngineeringScratchpads and Working Memory in the Agent LoopAgents with a scratchpad solve multi-step problems a scratchpad-less agent can't, even on the same model. Here's how agent scratchpad memory works and a case where it doubled success.August 23, 2026·8 min read
Agent Loop EngineeringHow to Summarize History Mid-Loop Without Losing StateAn agent summarized its own history mid-run and forgot it had already booked the flight — then booked it again. Good agent loop history summarization keeps state intact. Here's how.August 22, 2026·8 min read
Agent Loop EngineeringContext Compaction Between Agent TurnsMost advice on agent context compaction is backwards: it compresses on a timer and loses the wrong things. Here's how to compact by relevance, keep what matters, and do it safely.August 22, 2026·8 min read
Agent Loop EngineeringManaging the Context Window Across Loop IterationsWhy does your agent get slower and dumber the longer it runs? The agent loop context window is filling with junk. Here's a bloated loop, why it degrades, and how to keep context lean.August 22, 2026·8 min read
Agent Loop EngineeringTree of Thoughts Inside the Agent LoopA tree of thoughts agent explores several reasoning paths and keeps the best, instead of committing to the first. Here's a real case where branching turned a stuck agent into a solver.August 22, 2026·8 min read
Agent Loop EngineeringHow to Add a Critic Step to Your Agent LoopA second model reviewing the first catches errors a single pass never will. Here's how an agent critic loop works, where it pays off, and the trap that makes most critics useless.August 22, 2026·8 min read
Agent Loop EngineeringReflexion: Adding Self-Correction to the LoopAn agent failed the same task four times, the same way, without noticing. A reflexion agent loop breaks that cycle by making failure a lesson. Here's how to add self-correction step by step.August 22, 2026·8 min read