Skip to content
ImagineWorld

Common Fundamentals Mistakes New Agent Builders Make

node_idnode-book_ai-agents-guide_chapter-25-common-fundamentals-mistakes-new-agent-builders-make
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num25
chapter_titleCommon Fundamentals Mistakes New Agent Builders Make
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 25 — Common Fundamentals Mistakes New Agent Builders Make

Section titled “Chapter 25 — Common Fundamentals Mistakes New Agent Builders Make”

This page enumerates the recurring fundamentals mistakes that show up when teams first ship multi-turn, tool-using agents.

Use it as a retro catalog and as a pre-flight review for new agent projects.

  • Read by area when debugging; read top to bottom when onboarding.
  • For each incident, tag the nearest mistake number and link the fix rule.
  • Do not treat the list as shame - treat it as patterns that appear under time pressure.
  • Pair with AI Agent Fundamentals Rules Best Practices to convert fixes into lasting checkboxes.
  1. Building an agent when a script already knows the path - every run re-discovers a fixed workflow with tokens and flaky branches.
    • Why it happens: “Agent” is treated as the modern default for any LLM feature.
      • Fix: Apply Scope Rules; encode stable paths in code or a workflow tool.
  2. No written definition of done - the loop cannot succeed because success was never operationalized.
    • Why it happens: Goals stay as stakeholder prose (“make support better”).
      • Fix: Write a pass/fail goal and out-of-scope list before tools are wired.
  3. Granting write tools on day one - the first prototype can already email, refund, or delete.
    • Why it happens: Desire to demo full autonomy early.
      • Fix: Start read-only; add irreversible tools only after stops, evals, and gates exist.
  4. Tool inventory sprawl - twenty overlapping tools make selection noisy and insecure.
    • Why it happens: “Might need it later” permissions.
      • Fix: Cap tools to the current goal; split agents rather than inventing mega-tools.
  5. Jumping to multi-agent before one agent is bounded - handoffs multiply unbounded cost and confusion.
    • Why it happens: Architecture fashion outruns fundamentals.
      • Fix: Prove a single agent with stops and scope first.
  1. No max turns - the process runs until someone kills the worker or the bill shocks the team.
    • Why it happens: Demos exit “naturally” on short prompts.
  2. Max turns without wall-clock timeout - one hung tool freezes the run forever inside a “safe” turn budget.
    • Why it happens: Teams only think in model iterations, not wall time.
      • Fix: Whole-run and per-tool timeouts.
  3. Trusting the model to announce completion - free-text “I’m done” with failing tests or empty deliverables.
    • Why it happens: Chat UX habits transfer into agent runtimes.
      • Fix: Goal predicates and oracles (tests, schema validation, ticket ids).
  4. Infinite polite retries - the agent re-calls the same search or rebuild with identical arguments.
    • Why it happens: No-progress detection is missing; errors look temporary.
      • Fix: Signature counters, error classification, escalate instead of blind retry.
  5. Silent death on stop - UX shows nothing; operators cannot tell timeout from success.
    • Why it happens: Stops were added as afterthoughts without product states.
      • Fix: Machine-readable stop reasons surfaced to logs and users.
  1. Unbounded transcript growth - every tool dump stays forever until quality collapses.
    • Why it happens: Fear of amnesia; large context marketing.
  2. Mixing stable policy with volatile state in one blob - dates, ids, and one-off notes invalidate structure and caches.
    • Why it happens: Fastest way to “just add a sentence.”
      • Fix: Sectioned system policy; dynamic facts in turn payloads.
  3. Re-pasting entire files each turn - token burn and stale copies.
    • Why it happens: Tools return whole files; nobody caps adapters.
      • Fix: Truncate/summarize at tool boundary; pass references and slices.
  4. Unreviewed system-prompt accretion - contradictory instructions accumulate across engineers.
    • Why it happens: Each defensive line seems cheap.
      • Fix: Owner + reason for every policy change; prune unjustified lines.
  5. Ignoring what the model actually saw - debugging only the final answer, not the window.
    • Why it happens: Logs omit prompts and tool results.
      • Fix: Trace policy, transcript slices, and tool payloads per turn (redact secrets).
  1. Hardcoding one frontier model everywhere - outages and price changes require code archaeology.
    • Why it happens: Safety theater during the first spike.
  2. Escalating tier without evidence - cost rises without measured quality gain.
    • Why it happens: Stronger feels safer.
      • Fix: Eval samples before promotion; de-escalate when data allows.
  3. Forgetting that turns multiply tokens - budgeting as if each request were single-shot chat.
    • Why it happens: Chat pricing intuition.
      • Fix: Estimate tokens × expected turns × price; enforce stops as cost fuses.
  4. No record of which model ran - retros cannot correlate quality or spend.
    • Why it happens: Gateway or SDK hides identity.
      • Fix: Persist resolved model id and policy name on every run.
  5. Swapping models without re-testing tools - tool-calling skill differs by tier and provider.
    • Why it happens: Assumes all chat models are interchangeable agents.
      • Fix: Tool-specific evals on each candidate tier.
  1. Demo code becomes production - notebook loops with no policy ship behind an API.
    • Why it happens: Pressure to show progress.
      • Fix: Promote only through a checklist of fundamentals rules.
  2. No owner for agent standards - each squad reinvents bounds differently.
    • Why it happens: Agents treated as feature code only, not platform.
      • Fix: Named owner for fundamentals defaults; review on a cadence.
  3. Skipping evals until after users complain - regressions hide in “vibes.”
    • Why it happens: Harder to write oracles for soft tasks.
      • Fix: Even a small golden set beats none; expand with incidents.
  4. Treating fundamentals as optional polish - teams buy frameworks first, bounds never.

Is this list ordered by severity?

Roughly by theme, not strict severity.

Unbounded stops and write-tool sprawl usually hurt first in production.

Can a team make all of these mistakes and still demo well?

Yes - that is the trap.

Demos hide long tails, hangs, and cost at volume.

How do I use this in an incident retro?

  • Pick the closest mistake number.
  • Link the fix rule page.
  • Add or tighten a checkbox on the best-practices list so the class does not recur. Are framework users immune?

No.

Frameworks provide primitives; teams still mis-scope and skip stop policies.

Which mistake correlates most with surprise bills?

Missing stops plus frontier-model hardcoding (mistakes 6-7 and 16-18).

Which mistake correlates most with scary side effects?

Write tools before gates (mistake 3) combined with missing stops.

How often should we re-read this list?

When onboarding builders, when raising autonomy, and after any agent incident.

Is “the model hallucinated” a fundamentals mistake?

Hallucination can happen, but many “hallucination” reports are actually missing oracles, bad context, or unbounded retries - check those first.

Do personal shell agents share these mistakes?

Yes, with higher blast radius - treat command allowlists as scope and tool rules.

What is the fastest fix if we already shipped unbounded?

Ship emergency max turns + timeout + kill switch the same day; then schedule scope and model-policy cleanups.

Should we ban agents until all 24 are impossible?

No.

Prevent the high-blast items first; track the rest as debt with owners.

How does this page relate to architecture anti-patterns?

Overlapping themes, different layer: this list is fundamentals bounds; architecture pages cover pattern choice and structure.

Stack versions: Pins from the category manifest (verify at build): OpenRouter (~315+ models, July 2026 pricing/fees); LangGraph 1.0+; CrewAI 1.14+; Microsoft Agent Framework 1.0; Vercel AI SDK 6; Pydantic AI (latest); LlamaIndex (latest); OpenAI Agents SDK (latest + MCP); MCP (Linux Foundation governance); A2A (HTTP+SSE+JSON-RPC 2.0); Solana @solana/web3.js + @solana/spl-token.

Reviewed by Chris St. John·Last updated Jul 16, 2026

Was this article helpful?


Source: https://aiagents.codeguides.io/agent-fundamentals-rules/common-fundamentals-mistakes-new-agent-builders-make/