Agent Loop EngineeringHow to Handle Partial Failures Inside the LoopWhat happens when one tool call in a batch fails but the rest succeed? Handling agent loop partial failure well is the difference between a resilient agent and one that dies on a hiccup.August 23, 2026·8 min read
Agent Loop EngineeringCheckpointing Agent State Between IterationsAgent loop checkpointing saves the agent's state each iteration so a crash costs one step, not the whole run. Here's how to checkpoint what matters, cheaply, without slowing the loop.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 EngineeringHow to Log Every Step of the Agent LoopMost agent loop logging is useless — walls of text nobody reads until something breaks. Here's how to log an agent so you can actually debug it, with a structured schema that pays off.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