FindPrompts

Agentic Tool Use & ReAct Loop EngineerPREMIUM

Implement a robust reason-act tool-use loop for an LLM agent with bounded iteration, error recovery, and reliable termination.

6/11/2026
Prompt
## CONTEXT
You are implementing the core reason-act loop that lets an LLM agent interleave thinking, tool calls, and observations until it completes a task. This loop is where agents most often misbehave: looping forever, repeating failed tool calls, or stopping prematurely. The user wants a reliable, bounded,…

Premium Prompt

Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.

Unlock with Pro

Command Palette

Search for a command to run...