Skip to content

AI, in Depth17 min read

The 12 Skills an Agentic AI Engineer Needs in 2026

Getting an agent to work in a repo is the easy part. These are the twelve engineering skills that close the gap to production, each with the failure it prevents and the sources I trust.

By · Published

Key takeaways

  • OWASP's guidance on excessive agency and Anthropic's own sandbox design agree on one rule: permissions and credentials must be enforced outside the model, because a prompt that says "don't write to production" does not hold the token.
  • AWS's Builders' Library warns that APIs with side effects are not safe to retry unless they are idempotent, and that independent retries across five layers can multiply load on a database 243 times.
  • Anthropic's multi-agent research system used about 15 times more tokens than a chat, and its subagents sometimes repeated each other's searches when the orchestrator's instructions were vague.
  • In Anthropic's long-running agent tests, Claude tended to mark features complete without end-to-end testing until it was told to check them with browser automation, as a user would.
  • Claude's Agent SDK has no turn or budget limit by default, so a production agent needs max_turns and max_budget_usd set before it ever runs unattended.

An agentic AI engineer in 2026 needs twelve skills that sit around the model, not inside it: context engineering, tool design, permissions, retry limits, idempotency, orchestration, verification, evals, observability, failure recovery, sandboxes and inference economics. Repository context is not production context, and most of this list is the gap between the two. None of it makes the model smarter. It makes the model’s mistakes cheap, visible and recoverable.

This guide is part of my AI, in Depth writing. I build small agent systems by directing AI agents against written specs, including an inbox agent where a person approves every action and a 13-agent CRM that sends nothing without my approval. The skills below are the ones those builds kept pointing me back to.

What are the 12 skills, in one list?

Each skill answers one way an agent fails once it leaves a demo:

  1. Context engineering and memory: decide what enters the context window, what gets summarized and what gets fetched later.
  2. Tool design and schemas: make every tool return strict, checkable output.
  3. Permissions and credentials: enforce access outside the model.
  4. Retries, backoff, iteration limits and budgets: stop loops before they spend everything.
  5. Idempotency and durable execution: make repeats harmless and progress survive crashes.
  6. Orchestration and handoffs: split work without losing the context that matters.
  7. Verification and completion detection: let something outside the agent decide when it is done.
  8. Evals as regression tests: keep a test suite that grows from real failures.
  9. Observability and traces: record every tool call, argument, order and cost.
  10. Failure recovery and state reconstruction: resume a run that died halfway.
  11. Sandboxes and isolated execution: give the agent a safe place to break things.
  12. Inference economics and latency: route, cache and parallelize until the agent is cheap and fast enough to ship.

The rest of this guide takes them in groups, in the order they usually bite.

Why is repository context not production context?

Repository context is what an agent sees while it builds: the code, the tests, a README and your instructions. Production context is everything that happens after the code runs: real users, real money, flaky networks, partial failures and other systems that do not know an agent is calling them. An agent can be excellent in the first and dangerous in the second, because nothing in the repo tells it that a timeout can still mean the write landed.

Anthropic’s December 2024 guide to building effective agents already pointed at this gap. It says agents need “ground truth” from the environment at every step, stopping conditions such as a maximum number of iterations, and extensive testing in sandboxed environments. Those three phrases alone cover four of the twelve skills.

So the work is not prompt writing. It is ordinary systems engineering, applied to a component that is confident, fast and sometimes wrong.

How do you control what an agent knows and can call?

1. Context engineering and memory

Context engineering is the practice of choosing the tokens an agent sees on each turn. Anthropic’s guide to context engineering, published September 29, 2025, describes “context rot”: as the window fills, the model gets worse at recalling what is in it.

Three patterns from that guide are worth learning by hand:

  • Just-in-time retrieval. Keep file paths, IDs and queries in context, and load the content with a tool only when it is needed. That stops the agent from re-reading the same files on every loop.
  • Compaction. Summarize a long conversation and start a fresh window from the summary. The safest light version is clearing old tool results.
  • Structured notes. Let the agent write notes to memory outside the window, such as a progress file, and read them back later.

Compaction has a known cost. Claude’s Agent SDK documentation warns that specific instructions from early in a conversation may not survive a summary, so persistent rules belong in a file that is re-sent on every request. That is how an agent “forgets” a constraint from twenty turns ago: it was summarized away. My explainer on tokenization shows why every one of those tokens also has a price.

2. Tool design and schemas

A tool is a contract between deterministic code and a model that is not deterministic. That is close to how Anthropic frames it in Writing effective tools for agents. A tool that returns vague free text leaves the agent room to guess what happened.

Good tools share a few habits:

  • Unambiguous inputs. Anthropic’s example is naming a parameter user_id, not user.
  • Short, high-signal outputs. Claude Code caps tool responses at 25,000 tokens by default, and the guide suggests a response_format option so the agent can ask for a concise or detailed answer.
  • Errors that say what to fix. “Invalid date, expected YYYY-MM-DD” teaches the agent. “Error 400” does not.
  • Strict schemas. OpenAI’s Structured Outputs guide notes that JSON mode only guarantees valid JSON, while Structured Outputs also adheres to your schema. Your code must still handle refusals and incomplete responses.

The point of a schema is not neatness. It makes a bad output fail loudly at the boundary, instead of passing silently into the next step.

If your agent connects to outside tools through MCP, my review of free MCP servers for SEO and website work shows how much tool quality varies between servers.

How do you stop an agent from doing real damage?

3. Permissions and credentials

Permissions must be enforced outside the model. A system prompt can say “never write to production”, but the prompt is not the thing holding the token. If the credential can write to production, a confused or manipulated agent eventually will.

The OWASP GenAI project lists this as LLM06:2025 Excessive Agency and traces it to three causes: excessive functionality, excessive permissions and excessive autonomy. Its fixes are the same ones you would use for any untrusted client:

  • Give the agent only the tools the task needs.
  • Run actions as the specific user, with the least privilege that works.
  • Require a person to approve high-impact actions.
  • Enforce authorization in the downstream system, not in the model’s judgment.

Anthropic follows the same rule in its own product. Its post on Claude Code sandboxing explains that git credentials and signing keys never sit inside the sandbox with the agent. A proxy checks a scoped credential and attaches the real token outside. My take on Claude’s unsanctioned actions shows what happens when that line is missing: in one test run, a model used a token it found in a public file.

4. Retries, backoff, iteration limits and budgets

Retries are where good intentions turn into duplicate charges. Marc Brooker’s Amazon Builders’ Library article on timeouts, retries and backoff with jitter states it plainly: APIs with side effects are not safe to retry unless they are idempotent. It also shows how retries stack: three retries at each of five layers can raise database load 243 times.

For agents, add two limits that ordinary services rarely need:

  • An iteration limit. An agent that cannot finish will keep trying. Claude’s Agent SDK offers max_turns, and by default there is no limit.
  • A spend limit. The same SDK offers max_budget_usd, which also counts subagents’ spend, and returns an error_max_budget_usd result when it is reached.

Use exponential backoff with jitter for transient errors, cap total attempts, and treat “hit the limit” as a normal outcome your code handles, not a crash.

5. Idempotency and durable execution

Idempotency means doing the same request twice has the same effect as doing it once. It matters because of one common case: the request timed out, but the write landed anyway. A naive retry then creates a second record, a second email or a second payment.

Stripe’s idempotent requests are the clearest model to copy. The client sends a unique key with each write. Stripe saves the first result for that key, even a 500 error, and returns it for every retry. Keys can be removed once they are at least 24 hours old, so a retry window needs to be shorter than that.

Durable execution solves the other half: progress that survives a crash. Temporal describes it as a workflow that keeps its state through failures by recording an event history and resuming from the last recorded event. For an agent, that means every side-effecting tool call gets a key, a recorded result and a checkpoint, so a restarted run skips what already happened.

How do you split work across agents without losing the plot?

6. Orchestration and handoffs

Every handoff between agents compresses context. The orchestrator writes a short brief, and the worker never sees what the orchestrator saw. A worker can then solve the wrong problem cleanly, while the orchestrator, reading only a tidy summary, grows more confident as it knows less.

Anthropic saw this in its multi-agent research system, published June 13, 2025. With vague instructions, subagents misread the task or ran the same searches as each other. The system also used about 15 times more tokens than a chat. Cognition’s Walden Yan made the opposite case in Don’t Build Multi-Agents, arguing that agents should share full traces, because actions carry implicit decisions that a summary drops.

Both posts lead to the same habits:

  • Give each worker an objective, an output format, the tools to use and clear boundaries.
  • Split work where the pieces truly do not depend on each other, such as parallel research.
  • Keep decisions that must agree, such as a design style, in one agent.
  • Ask workers to return evidence, not just conclusions.

Two runners pass a relay baton on a red running track while other athletes wait in their lanes

A handoff passes the baton, not everything the last runner saw. Photo: Irish Defence Forces, CC BY 2.0.

Barry Zhang of Anthropic covers when an agent is worth building at all, and when a simpler workflow wins, in this AI Engineer talk:

How We Build Effective Agents: Barry Zhang, Anthropic, a video by AI Engineer
Video: How We Build Effective Agents: Barry Zhang, Anthropic by AI Engineer, on YouTube.

How do you know the agent actually did the job?

7. Verification and completion detection

The agent will decide it is done. Something outside the agent has to check whether the outcome was actually achieved. Anthropic’s post on harnesses for long-running agents, from November 26, 2025, describes both failures. A later session saw that progress had been made and declared the job done. Claude also tended to mark features complete without testing them end to end.

The fix was outside the model. A feature list in JSON started every feature as failing, and the agent could only flip a passes field. Once told to use browser automation and test as a user would, Claude mostly verified features properly.

Good completion checks are boring and external: a test suite, a schema check, a database query, a page load in a real browser. My PolicyDesk build used a separate QA agent that tested the published app in a real browser, check by check, without trusting the build report.

8. Evals as regression tests

Evals are test suites for agent behavior. Anthropic’s Demystifying evals for AI agents, from January 9, 2026, suggests starting with 20 to 50 simple tasks drawn from real failures. It splits them into capability evals, which should start with a low pass rate, and regression evals, which should stay near 100%.

The trap is a suite built only from failures you already understand. It stays green until the first failure nobody anticipated. Three habits from the same post help:

  • Grade outcomes, not paths. An agent may find a valid route you did not script.
  • Read transcripts. Anthropic says you won’t know if your graders work unless you read many of them.
  • Watch for saturation. When every solvable task passes, the suite has stopped teaching you anything.

The post’s best example is an eval that was wrong. Claude Opus 4.5 “failed” a flight-booking task by finding a loophole in the policy, and the loophole was the better answer for the customer. Add new production failures to the suite every week, and the suite keeps up with reality.

9. Observability and traces

A trace records which tool was called, with what arguments, in what order and at what cost. Without one, debugging a bad outcome is guesswork, because the final answer hides every step that produced it. Anthropic said that adding full production tracing let its research team diagnose why agents failed and fix them systematically.

At minimum, log for every run:

  • the model, prompt version and tools available;
  • each tool call, its arguments, its result size and its latency;
  • tokens, cost and the number of turns;
  • why the run stopped: done, limit hit, error or refusal.

OpenTelemetry now has semantic conventions for generative AI, which define spans, metrics and events for GenAI clients, so traces can flow into the tools you already use. Claude’s Agent SDK also returns cost, usage, turn count and a session ID with every result, even on errors.

An orange flight data recorder marked Black Box on display at a museum

A trace is an agent’s flight recorder: you read it after something goes wrong. Photo: Rameshng, CC BY-SA 3.0.

What happens when a run dies halfway?

10. Failure recovery and state reconstruction

Runs die halfway. A container restarts, a rate limit hits, a deploy rolls out mid-task. If the system cannot reconstruct what already happened, it cannot reliably resume, and restarting from zero repeats every side effect.

Anthropic’s research system hit this directly. Its engineers wrote that they “can’t just restart from the beginning”, so they built a way to resume from where the agent was when the error occurred. They also used rainbow deployments, keeping old and new versions running side by side, so an update would not break agents mid-run.

The long-running harness post shows a simpler version anyone can copy:

  • a progress file that logs what each session did;
  • git commits after each step, so bad changes can be reverted;
  • an init.sh script that starts the environment the same way every time;
  • a start-up routine that reads the log and git history before touching anything.

Combine that with skill 5. If every side effect has an idempotency key and a recorded result, recovery is a replay, not a guess.

11. Sandboxes and isolated execution

A sandbox gives the agent somewhere to experiment, run code and test changes without putting the real system at risk. Anthropic’s sandboxing post argues that it needs both filesystem isolation and network isolation. Without the first, the agent can escape. Without the second, it can send your SSH keys somewhere else.

Isolation also makes agents faster to supervise. Anthropic reports that sandboxing cut permission prompts in Claude Code by 84% in its internal use, because safe actions inside the box no longer need a human to approve them. Claude Code on the web runs each session in its own isolated sandbox for the same reason.

Sandboxes are not only containers. A dry-run mode, a test database, a local mail sink or a staging account all count. My job and client CRM ran its full outreach loop against a local mail sink first, so no real email went out, and rehearsed the server setup in Docker before touching the real server. My take on the OpenCode MCP flaw shows why untrusted tools belong in that box too.

Two crash test dummies, an adult and a child size, sitting on stands in a test lab

Crash tests break cars on purpose, with dummies instead of people. A sandbox does the same for agents. Photo: Human Crash Safety, CC BY-SA 4.0.

Why do agents that work still fail to reach production?

12. Inference economics and latency

An agent that works but costs too much, or takes too long to finish, will not reach production. Agents multiply both problems: Anthropic measured single agents at about 4 times the tokens of a chat, and multi-agent systems at about 15 times.

Four levers do most of the work:

  • Model routing. Send easy, common requests to a smaller model and hard ones to a larger model, as Anthropic’s agents guide suggests.
  • Prompt caching. On Claude, a cache read costs a tenth of the normal input price or less, as of November 2026, and the default cache lasts five minutes. Keep stable content, such as system prompts and tool definitions, at the front so it caches.
  • Parallel tool calls. Claude can request several tools in one response. Run independent, read-only calls at once and side-effecting ones in order. Anthropic says parallel tool calling cut research time by up to 90% on complex queries.
  • Measure the right latency. Track time to first token (TTFT) for responsiveness, defined in Claude’s latency guide, and P95 total run time for real users. An average hides the slow runs people remember.

I built ModelBench to make this choice with numbers. It runs one task on several models, reports average and P95 latency with cost per run, and recommends the cheapest model that meets the quality bar.

Which skills should you learn first?

Start with the failures that cost money or trust, then add the rest as your agent grows:

SkillThe failure it preventsA first step
1. Context and memoryRe-reading files, forgotten rulesKeep persistent rules in a re-sent file
2. Tool schemasSilent bad outputValidate every tool result against a schema
3. PermissionsAgent acts beyond its roleScope tokens; approve high-impact actions
4. Retries and budgetsRunaway loops and billsSet max turns and a spend cap
5. IdempotencyDuplicate records after a timeoutSend an idempotency key with every write
6. OrchestrationWorkers solving the wrong problemWrite full briefs; ask for evidence back
7. Verification“Done” when it is notCheck outcomes with tests, not the agent’s word
8. EvalsRegressions nobody noticedTurn each production failure into a test
9. ObservabilityGuesswork debuggingLog every tool call, argument and cost
10. RecoveryHalf-finished runsCheckpoint progress after each step
11. SandboxesExperiments on real systemsRun first against fake mail, data and accounts
12. EconomicsToo slow or too costly to shipRoute, cache and track P95 latency

If you are still learning how agents work, my list of free GitHub repos to learn AI agents is the better first stop. If you already work in Claude Code, the best open-source Claude Code skills and plugins include several that enforce plan-first, test-first habits.

Where can you learn more?

Sources were checked on November 14, 2026. Claude and Claude Code are trademarks of Anthropic. This guide is not endorsed by or affiliated with any company named.

Questions people ask

Do I need to learn all 12 skills before I build an agent?

No. Build a small agent first, then add the skills in the order its failures teach you. Most people start with tool schemas, hard permissions and turn limits, because those three stop the most expensive mistakes on day one.

Is an agentic AI engineer different from a machine learning engineer?

Yes. A machine learning engineer usually trains or fine-tunes models. An agentic AI engineer builds the system around a model it did not train: the tools, permissions, state, evals, traces and costs that let the model act safely in real software.

Which framework should I learn to practice these skills?

Any framework that exposes the loop will do. Claude's Agent SDK documents turn limits, budget caps, hooks, permission modes and compaction in one place, which makes it a good place to see several of these skills at once.

Share

Keep reading

More in AI, in Depth.

Get new posts by email

One email every two weeks: new posts, news takes and one personal note, so you keep up with AI, automation and SEO without checking the site.

No spam. Unsubscribe any time. By subscribing you agree to the privacy policy.

Prefer a feed? Follow by RSS. About the newsletter.

Want AI working in your business? Book a free 15-minute call →

No obligation. I read and answer every message myself.

It’s Showtime, folks! · All That Jazz (1979)