A chat assistant answers and stops. A coding agent reads files, edits them, runs commands and keeps going. A vague prompt to a chat model wastes one reply. A vague prompt to an agent can produce a large, confident change in the wrong place.
The team at Tweag ran an internal experiment with coding agents and wrote up what they learned in their agentic coding handbook. Their finding: "prompt quality was one of the most critical success factors. Good prompts led to clean, scalable code. Vague or overly broad prompts caused hallucinations, bugs, and wasted time" (Tweag).
Anthropic's prompting guide offers a test that works for any model: "Show your prompt to a colleague with minimal context on the task and ask them to follow it. If they'd be confused, Claude will be too" (Claude prompting best practices). The same guide suggests thinking of the model as "a brilliant but new employee who lacks context on your norms and workflows."
The patterns below are what that new employee needs. None of them depend on a particular model or tool, which is why they keep working as the tools change.



