Agent & Subagent Questions (2026)

Covers AI agents, agentic AI, agentic workflows, agent skills, subagents, multi-agent systems and the A2A protocol. See also all interview topics. These assume you already know the concept — if a section here is unfamiliar, read its linked concept page first; the questions test judgment on top of the concept, not the concept itself. For the definitional counterpart — the "what is X" questions an interviewer usually opens with — see agentic AI interview questions.

In this guide
  1. AI Agent
  2. Agentic AI
  3. Agentic Workflow
  4. Agent Skills
  5. Subagent
  6. Multi-Agent System
  7. A2A (Agent2Agent)

AI Agent

Full concept page →

What stops an agent loop from running forever?

The model itself deciding the task is done isn't a safety net you can fully rely on — real systems also enforce a hard limit: a maximum number of steps, a timeout, or a check that catches when the agent has stopped making progress and is just repeating itself.

Is a chatbot that calls one tool and answers an "agent"?

Not really, if it always calls the same tool the same way and stops — that's closer to a single-step workflow with one tool bolted on. It becomes agent-like once the model is choosing whether and which tool to call, and can decide to take more than one step based on what it finds.

Does using an agent always cost more than a single model call?

Per request, usually yes — an agent makes several model calls and often several tool calls before it's done, where a single call makes one. But compare total cost, not per-request cost: a workflow that breaks the moment reality doesn't match what was coded often costs more once a person has to step in and fix it by hand.

Beyond being wrong, how do agents typically fail in practice?

Getting stuck — retrying the same failed action, or drifting through steps without making real progress toward the goal. That failure mode looks nothing like a wrong answer; the agent just never stops, which is exactly why step limits and progress checks matter as much as getting each individual decision right.

Agentic AI

Full concept page →

Your team swaps in a much more powerful model but leaves every step of the pipeline exactly as fixed as before. Did the system just become more agentic?

No. Agentic-ness is a property of how much the surrounding application lets the model decide, not of how capable the model is. The same top-tier model can sit inside a fully scripted pipeline or a fully autonomous one — swapping the model changes answer quality, not who's in control of the next step.

A tool takes a text prompt and returns one generated image, then stops. Is that agentic AI?

No — that's generative AI with no decision-making layered on top. One prompt in, one output out, nothing to decide between. It would start becoming agentic only if the system judged its own output, decided to try again with a different approach, or took a further action based on what it produced.

Your manager says "let's make this system more agentic." What's the first question you'd ask back?

Which specific step, currently decided by code, should be handed to the model instead — and what happens if the model gets that particular choice wrong. "More agentic" isn't a single toggle; it means moving one identifiable decision from fixed logic to the model, so the useful question is which decision, not whether to flip a switch.

A system is free to search internal documentation and draft a reply on its own, but must get a person's sign-off before sending anything externally. Does that restriction mean it isn't really agentic?

No — autonomy within boundaries isn't a contradiction, it's a design choice. A system can genuinely decide its own steps for everything up to the boundary and still count as agentic; requiring approval for one specific, higher-stakes action doesn't roll it back to a fixed workflow.

Someone wants an agentic system to auto-approve expense reports under $50 — check the receipt, check the policy, approve or reject. Is that a good use of an agentic design?

Probably not. The steps are already fully known — there's no point where the right move depends on something that can't be predicted in advance — so a fixed workflow handles it more cheaply and more predictably. Handing that decision to a model adds a place for it to go wrong without buying anything, since nothing about the task actually needs judgment along the way.

Three subagents each get their own git worktree. Two finish and merge cleanly; the third's branch now conflicts with both. What did the worktrees buy you, and what didn't they?

They bought you the thing that was actually dangerous: while all three were running, none could overwrite another's work, because none could see another's files. The failure you have now is a merge conflict, which stops and asks.

What they didn't buy you is agreement. Three agents working in isolation can each make a locally sensible change that contradicts the others, and nothing surfaces that until the merge. Worktrees move a collision from silently-during to visibly-after — much the better place for it, but the work of reconciling still exists and somebody still has to do it.

Agentic Workflow

Full concept page →

Your routing step misclassifies about 5% of support tickets. A full agent handling the same tickets goes wrong about as often. Why might the fixed-shape design still be the safer one?

Because you know where it went wrong and what it can do next. A misrouted ticket lands in one of three paths you wrote, and the damage is bounded by what that path does. A full agent that takes a wrong turn keeps going from there, and each later step builds on the mistake.

The argument is containment and debuggability, not accuracy. The 5% is also a number you can act on. The decision happens at one known place with a known set of possible outputs, so you can label a sample and see exactly which categories get confused. A full agent's errors are spread across a sequence that differs every run.

Every step of your prompt chain works well when you test it alone. End to end, quality falls apart by step five. What's happening?

Errors compound. Each step takes the previous step's output as its input and treats it as fact, so a small distortion at step one becomes the ground truth for step two, which adds its own on top. Nothing in the chain ever re-checks against what the user originally asked for.

Testing steps in isolation can't surface this, which is why it survives into production. The fixes are structural, and there are three.

  • Carry the original input alongside the running output, so later steps can check against it.
  • Put a validation gate between steps that can fail the chain rather than pass bad output along.
  • Make the chain shorter.

You could write a task as one prompt that asks for everything, or as a five-step chain. What actually decides?

Whether the steps genuinely depend on each other. A chain costs five model calls instead of one, and the latency is serial — you wait for each step before starting the next. That's a real price, paid on every request.

It's worth paying when a step needs the previous step's finished output to do its job, or when one prompt asking for everything at once measurably does each part worse. If a single prompt handles the task reliably, the chain is overhead plus four extra places to fail.

Agent Skills

Full concept page →

An agent has 30 skills installed and 30 tools defined. Which set costs you more context, and why?

Usually the tools — but not for the reason people normally give. Both are charged on every request. A skill's name and description go into the system prompt at startup and stay there, exactly as a tool definition does, so neither is a one-time cost.

The difference is size per item. A skill contributes only its name and description, around 100 tokens in Anthropic's implementation. A tool contributes its full argument schema too, which for anything with nested or heavily described parameters is several times larger. The bulk of a skill — its actual instructions — stays on disk until a task matches.

So the thing people assume is expensive about a skill isn't being charged yet at all, while every tool is paying full price on every turn. The same arithmetic drives the 60-tool question in the tools cluster.

A teammate wants to install a skill from a public repo and says it's low-risk because "a skill is just instructions, not a tool." What's wrong with that reasoning?

The premise is roughly right and the conclusion doesn't follow. A skill can't add a tool to the agent's tool list, so it isn't granting itself new permissions. What it can do is direct the permissions you already granted.

The tool it works through is usually bash or code execution, which is a far wider door than "a tool list" suggests. A bundled script in Claude Code runs with the same access as any other program on that machine. The instructions can also point the agent's existing tools at something other than the skill's stated purpose.

Anthropic's guidance is to treat installing a skill like installing software: audit the instructions and every bundled script first, and be wary of skills that fetch content from external URLs, since that content arrives as instructions too.

A skill needs to carry a 3,000-line API reference. It also needs to run the same validation on every file it processes. How should each part be packaged?

The reference goes in its own bundled file rather than the main instructions, because a bundled file costs nothing until the agent reads it.

The validation should be a script, not written steps. Two reasons, and the second is the one people miss. A script's code never enters the context — the agent runs it and only the output does. And a script produces the same result for the same input every time, where instructions describing how to validate get re-interpreted on every run.

Subagent

Full concept page →

Two subagents are running in parallel and one needs information the other is finding out. How do you handle that?

You mostly don't — that's outside what parallel subagents are for. Each one runs in its own isolated context with no direct channel to the other, so if a task genuinely needs subagents to share information mid-work, either run them one after another so the second one gets the first one's result as input, or that part of the task isn't actually independent enough to split into parallel subagents in the first place.

Two parallel subagents are both told to edit the same file. What goes wrong?

Whichever one finishes last silently overwrites the other's changes, since neither knows the other is running. Parallel subagents are safe for independent reads and independent output, not for writes that can collide — a task that needs two agents editing the same file should be sequential, or give each agent its own checkout. Splitting by file sounds like a third option and mostly isn't — an agent decides what to touch, so "each owns a different file" is an assumption it can break. Git worktrees enforce it instead of assuming it.

How do you decide whether a task is one subagent's job or should be split into several smaller ones?

Split it when the pieces are genuinely independent and one piece failing shouldn't block the others — that's also what makes parallel execution possible. Keep it as one subagent when the steps depend on each other in order, since splitting a naturally sequential task just adds coordination overhead for no benefit.

Should a subagent's tool permissions ever be broader than the agent that spawned it?

No — that would let a delegated task reach further than the task that delegated it, which defeats the reason for scoping a subagent's tools in the first place. A subagent's permissions should be equal to or narrower than its parent's, never wider.

If a subagent's summary turns out to be wrong, how would the parent agent know?

Often it wouldn't, unless there's some independent way to verify the result — that's the core tradeoff of context isolation. Some designs mitigate this with a separate review pass rather than trusting a subagent's self-report.

How is a subagent different from a tool call?

A tool call executes a fixed function and returns data. A subagent is a full agent — it can reason, plan, and make its own tool calls — before returning a result. Its job is open-ended within its scope; a tool call's isn't.

Multi-Agent System

Full concept page →

You're building a system to summarize 50 independent survey responses. Good candidate for a multi-agent approach?

Probably not. The responses are independent, so they could run in parallel, but summarizing 50 short responses is already cheap and fast for one agent. Paying a roughly fifteen-times cost multiplier only makes sense when the task is genuinely slow or expensive to do sequentially — not just because the pieces happen to be independent.

Two agents return confident but different answers to the same subtask. What does that tell you about your design?

That a reconciliation step is missing. Agents disagreeing isn't a bug to patch afterward — a real multi-agent design decides upfront how conflicts get resolved, whether that's a lead agent adjudicating or a defined tie-breaking rule.

Does adding more agents always mean more parallelism?

No. Agents can also be organized hierarchically, with one coordinating several, or sequentially, with one agent's output feeding the next — neither of which runs anything at the same time. Parallel execution is one benefit a multi-agent system can offer, not a defining feature of having more than one agent.

A2A (Agent2Agent)

Full concept page →

Your travel-booking agent hands a task to a partner hotel chain's A2A agent, gets a result back, and carries on working. What risk have you just taken on?

The result is now untrusted content sitting inside your agent's context. A2A exists to cross an organizational boundary, so the system that produced it is one you don't control and can't inspect.

A compromised or simply badly-behaved remote agent can return text that functions as instructions rather than as data. That's prompt injection arriving through a channel that looks like a trusted API response, which is what makes it easy to miss.

Validate the result against what you actually asked for. Keep a gate you control between a remote agent's reply and any consequential action on your side.

A partner exposes both an MCP server and an A2A agent for the same inventory system. Which do you integrate with?

It depends on who you want making the decisions. Their MCP server hands you their data and operations as tools your own agent calls directly. Your agent does the reasoning step by step, and the workflow is yours to write and own.

Their A2A agent instead takes a description of what you need and works out the steps itself. Choose MCP when you want that control and the logic is yours. Choose A2A when the work genuinely needs their judgment, or when their process is involved enough that reimplementing it would cost more than delegating it.

A task you hand to a remote A2A agent takes about 40 minutes. What does your side have to handle beyond success or failure?

First, that it isn't a single request and response. A2A treats a task as a stateful thing with its own lifecycle, so your client tracks it rather than blocking on one call for 40 minutes.

How you get updates depends on what the partner supports. Streaming and push notifications are optional capabilities a remote agent advertises in its Agent Card; polling for status is the one always available. Check the card first, and fall back to polling if neither is offered.

Then handle the states that are neither success nor failure. A task can stop partway and wait on your side — the input-required state in the A2A specification, with auth-required behaving the same way. Code that branches only on completed-or-failed never resolves those: it polls forever, or falls through an unhandled branch.