Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which execution pattern characterizes a ReAct-style agent?" on CodeWiki (https://codewiki.com/practice/mcq/ai/checkpoint-4/checkpoint-4-react-loop/).
Context (verbatim from the page):
"""
Which execution pattern characterizes a ReAct-style agent?
It alternates deciding an action, executing an allowed tool, and incorporating the observation until a stop condition
It creates one response and executes every phrase in that response as a shell command
It must create a complete immutable plan and may never revise it after tool feedback
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in AI and LLM engineering. Where you are unsure, say so.