Skip to content
appendixpatternsreference

Anti-Patterns ​

Common failure modes when working with AI agents, drawn from observations across 43 AI coding tools and real project experience. Each anti-pattern includes what it looks like, why it fails, and what to do instead.

Use this page as a failure-mode checklist during planning, execution, and review. If a workflow feels noisy, brittle, or slower than expected, one of these anti-patterns is usually present.


1. Sycophancy -- The Agent That Agrees With Everything ​

What it looks like: The agent validates every idea, never pushes back on questionable approaches, and starts responses with "Great question!" or "That's an excellent approach!" regardless of quality.

Why it fails: Sycophantic agents are useless for the workflows that matter most -- code review, plan stress-testing, and requirements elicitation all require the agent to identify problems, not applaud. If the agent agrees with a flawed architecture, you build the flawed architecture.

Evidence: At least six major tools (Claude Code, Augment Code, Roo Code, Cursor, GitHub Copilot, Crush) have independently added explicit anti-flattery directives to their system prompts, confirming this is a persistent model behavior that requires active suppression.

What to do instead: Configure agent prompts to prioritize technical accuracy over validation. Claude Code's formulation is instructive: "Prioritize technical accuracy and truthfulness over validating the user's beliefs." When using agents for review, explicitly ask them to find problems, not confirm correctness.


2. Fabrication -- Guessing Instead of Saying "I Don't Know" ​

What it looks like: The agent invents plausible-sounding API endpoints, method names, configuration options, or library features that do not exist. It confidently references documentation that was never written or cites behavior that the code does not exhibit.

Why it fails: Fabricated information is worse than no information. A developer who trusts a fabricated API endpoint will write code against it, discover it does not exist, debug for an hour, and lose trust in the tool entirely. In the entitlements case study, this would have meant writing code against a Festival.users() method that does not exist.

What to do instead: Always verify agent claims against the actual codebase. For critical facts (method existence, column names, namespace paths), have the agent read the source file rather than relying on its training data. The entitlements planning case study caught six such gaps specifically because the agent was directed to read the actual model files.


3. Code Before Plan -- Writing Without Thinking ​

What it looks like: Given a feature request, the agent immediately starts writing code rather than analyzing the requirements, identifying unknowns, and structuring an approach. It produces working code for the wrong problem.

Why it fails: Implementation without planning optimizes for speed of output, not correctness of output. The result is code that addresses a surface-level reading of the requirement, misses edge cases, and needs to be rewritten once the actual requirements are understood.

What to do instead: Use plan mode or the writing-plans skill to force a planning phase before implementation. The Iterative Planning playbook exists specifically to prevent this anti-pattern. For complex features, the plan should be reviewed and approved before any code is written.


4. Assuming Instead of Asking ​

What it looks like: When facing ambiguous requirements, the agent silently picks an interpretation and proceeds. It does not surface the ambiguity or ask for clarification. The developer discovers the wrong interpretation only during review or testing.

Why it fails: Silent assumptions compound. One wrong assumption leads to an implementation built on a false premise, and every subsequent decision inherits that error. The cost of correcting a wrong assumption grows with every line of code built on top of it.

What to do instead: Train agents (via skills or prompts) to surface ambiguities explicitly before proceeding. For the Requirements Elicitation playbook, the brainstorming skill encourages the agent to generate multiple interpretations and present them for selection rather than picking one silently. When an agent states an assumption, treat it as a question that needs an answer.


5. Over-Engineering Prompts ​

What it looks like: Adding more instructions to system prompts every time a new failure mode is discovered, resulting in prompts that grow from 60 lines to 770+ lines. Every rule is marked "IMPORTANT" or "CRITICAL" or "EXTREMELY IMPORTANT."

Why it fails: Longer prompts dilute the importance of each instruction. Models have finite attention -- instructions buried on line 600 are less likely to be followed than instructions on line 10. When everything is critical, nothing is. Research across 43 tools shows that SWE-agent achieves competitive benchmark scores with a system prompt of just one sentence, while tools with 770+ line prompts still struggle with the behaviors those prompts were written to enforce.

What to do instead: Keep system prompts focused on the 10-20 most critical behaviors. Move domain knowledge into tool descriptions, skills, or injected context. Reserve emphasis markers (IMPORTANT, CRITICAL, NEVER) for genuinely dangerous operations -- data loss, security vulnerabilities, irreversible actions. Use normal language for style preferences.


6. Not Reviewing AI-Generated Code ​

What it looks like: The agent produces code, the developer commits it without reading it. Tests pass (or there are no tests), so the code ships. Subtle bugs, security issues, or architectural debt accumulate silently.

Why it fails: AI-generated code is probabilistic, not proven. It often works for the happy path but misses edge cases, introduces subtle type errors, or uses patterns inconsistent with the rest of the codebase. The Code Review Loops playbook exists because even well-written agent code benefits from human review.

What to do instead: Treat AI-generated code with the same review rigor as code from a junior developer -- assume it works but verify the approach, check edge cases, and confirm it follows codebase conventions. Use the code-review skill to get a first pass from a different agent or model, then review the review.


7. Ignoring Confidence Indicators ​

What it looks like: The agent hedges ("this might work", "you may want to verify this") and the developer either ignores all hedges (treating them as noise) or treats all hedges equally (treating routine changes as risky).

Why it fails: Hedging language is a genuine signal when used sparingly. Tools like Sourcegraph Cody have dedicated "hedging prevention" systems precisely because undifferentiated hedging destroys signal value. But when hedges are removed entirely, genuinely uncertain outputs look identical to confident ones.

What to do instead: When an agent expresses uncertainty, have it investigate to resolve the uncertainty rather than passing it along as a disclaimer. If genuine risk exists, the agent should state it specifically (which file, which edge case, which dependency) rather than generically. The pattern from Augment Code -- "acknowledge weakness, then compensate with iteration" -- channels uncertainty into productive behavior.


8. Parallelizing Dependent Tasks ​

What it looks like: Dispatching multiple subagents where Agent B depends on Agent A's output. Agent B either blocks waiting for Agent A or proceeds with fabricated inputs.

Why it fails: The Parallel Dispatch playbook is designed for independent tasks. When tasks have dependencies, parallel execution either creates race conditions or forces agents to guess at inputs they do not yet have. The accreditation research case study worked because all 11 system analyses were independent -- none needed another system's report to proceed.

What to do instead: Analyze task dependencies before dispatching. Use parallel dispatch only for genuinely independent work units. For dependent tasks, use sequential execution or pipeline the outputs: Agent A completes, its output feeds into Agent B's prompt. The Iterative Planning playbook handles dependent phases explicitly.


9. Treating AI Output as Final ​

What it looks like: The agent produces a plan, analysis, or recommendation, and the team adopts it without critical evaluation. The output becomes the decision rather than an input to the decision.

Why it fails: Agent outputs reflect the data they were given and the patterns in their training. They cannot account for organizational context, political considerations, or information that was not in their prompt. The accreditation research produced ranked recommendations, but the actual design decisions (rule engine in v1, clean cutover per festival) required human judgment about business priorities that the agent could not have.

What to do instead: Treat agent output as a well-researched first draft that accelerates human decision-making. The Iterative Planning playbook builds in explicit review cycles where humans evaluate, challenge, and refine agent-produced plans. The Knowledge Synthesis playbook produces structured summaries that inform decisions -- they do not make them.


Summary Table ​

Anti-PatternRisk LevelPlaybook That Prevents It
SycophancyHighCode Review Loops (configure for critical review)
FabricationCriticalIterative Planning (verify against source)
Code before planHighIterative Planning, Dev Lifecycle
Assuming instead of askingMediumRequirements Elicitation
Over-engineering promptsMedium(Prompt hygiene -- keep skills focused)
Not reviewing codeCriticalCode Review Loops
Ignoring confidence indicatorsMedium(Train agents to investigate uncertainty)
Parallelizing dependent tasksHighParallel Dispatch (dependency analysis step)
Treating output as finalHighAll playbooks (built-in review cycles)