Parallelize independent steps
Run concurrent tool calls and sub-agents in parallel instead of sequentially. Cuts wall-clock time proportionally to the number of independent branches.
latency
Early stopping & short-circuits
Add confidence checks or rule-based filters before invoking the LLM. Skip expensive model calls when a simpler condition can answer the question.
tokenscostlatency
Explicit planning step
Have the agent produce a plan before executing. Avoids redundant tool calls caused by the model "exploring" without direction.
tokenscost
Iteration budgets
Set hard limits on the number of agent loops, tool calls per task, and total context size. Prevents runaway loops from ballooning costs.
tokenscost
Hierarchical decomposition
An orchestrator agent breaks work into subtasks dispatched to specialized sub-agents. Each agent sees only the context it needs.
tokenscostlatency