We Build Products for Users but Will Their AI Agents Choose What We Built?
The Second User: Designing for Agent Experience (AX)
Everywhere I look lately, the word agent seems to be getting more attention than the actual human using the thing ( not very coming in as a surprise but yea ), the coding agents, research agents, agents that manage other agents. Ayeeee, at this point I am expecting my next meeting invite to say the agent will attend on my behalf. And I am pretty sure someday, maybe tomorrow… actually, part of this is already happening today… An agent is going to land on this website and go through what I write.
so, hello agent
Hope the html or the markdown text is structured well. The humans us only require good rich terminal output like ANSI colour, padded tables truncated to fit the screen, a green ✅ on success, ✔ for booleans, progress bars, prose hints. An agent wants the inverse = no ANSI, nothing truncated, every value in full since an agent can handle far denser output than a human, kept compact and structured to stay light on tokens.
But this thought stayed with me a lil longer than the joke, because if an agent reads my article, it might summarise it for someone, if it reads a product’s documentation, it might help someone build with it and if that person has not picked a product yet, the agent might help make that choice too.
somewhere between reading about software and writing software, it can influence which software gets used
Now imagine spending months building a product, and finding out that one of the readers
All You need to convince is a coding agent with access to a terminal.
Bruh!! This is a new requirement in the list of requirements we gather in for a product. And I would say in the coming days one of the most important requirement!
And just to make this concrete, imagine you ask a coding agent to add email notifications to ur app. This seems to be a straight-forward request. The flow is something like someone signs up, send them a welcome email, someone places an order, send a confirmation. Your agent checks the repo, reads some docs, installs a package, few minutes later there is a new environment variable, a helper function, and a very confident explanation of what changed.
Noice. one less thing.
but wait a little… who chose the email provider? You asked for notifications, somewhere along the way, that became a decision about which company ur app would depend on. Maybe when can say you reviewed that choice or maybe the agent asked first or maybe u just saw the code working and moved on.
Now imagine being the person building one of those email products. Spent weeks on the onboarding, the pricing page, a cute lil animation explaining how easy everything..
Because we talk so much about AI writing software that it is easy to miss the decisions happening around the code, like which database? or which authentication provider? do we even need another service, or can we use something already in the project?
The person still owns the decision! but the work of forming the shortlist, comparing options, and making one of them feel like the obvious next step can happen inside an agent’s workflow.And I keep thinking about what that does to the way we build products.
Want to quote HuggingFace, who have already started building for this second kind of user, its hf command-line tool is used by people and coding agents, but what makes life easier for one doesn’t always help the other. We like readable tables, colours, and progress bars. An agent needs complete values in a structured format, commands that don’t pause for an interactive answer, and clear information about what to do next or how to retry when something fails. So they adapted the interface for both
the agent is becoming someone we design the product around

Interface becomes part of the feedback loop
The agent decided sounds magical until we dig up the inside
At each step, the model receives the task, available context, and descriptions of tools it can use, It generates a response, potentially including a tool call with structured arguments, the host application checks whether the call is valid and permitted, executes it, and returns the result for another model response.
For eg the agent writes our email integration using recipient but the SDK expects to. With accurate types and an actual type-checking step, the compiler can expose that mismatch, its diagnostic becomes input to another inference, and the model can revise the code.
same weights, updated context —> another prediction ,the model hasn’t retrained itself on the repository, it’s responding to a new observation within the session.
this is why feedback quality matters. """sender domain isn’t verified""" gives the model a specific observation to act on, while """something went wrong""" leaves several possible causes unresolved, the quality of that observation affects how much guesswork goes into the next prediction.
We also need to be careful about what we call success. compilation passing tells us the code satisfies certain checks, it does not tell us the email reached anyone.
valid code —> accepted request —> delivered notification are separate outcomes
and our evaluation needs to distinguish them. Otherwise, we could report an improvement in something easy to measure while the user’s actual problem remains unsolved.
In the same lines, NVIDIA takes this a step further by separating two questions
- did the agent make the right calls,
- and did those calls actually finish the job?
Inspecting individual steps helps us spot wrong arguments, unnecessary calls, failed recovery attempts and checking the final state tells us whether the intended outcome happened. In our email example, a valid API call and a delivered notification need separate verification, add repeated runs, latency, and cost, and we get a clearer picture of how reliably the system works.
The happy path is where the demo ends
Now suppose the agent sends our welcome email and the connection times out, the request might never have reached the provider, or the email might already be queued with its response lost. the agent sees the same error in both cases, even though the appropriate next action could differ. A product can reduce that uncertainty through an operation-status check or documented retry behaviour. Idempotency is one example: a supporting service can recognise another attempt at the same operation and avoid repeating its effect.
This gives us something concrete to evaluate. Deliberately introduce a timeout after the provider accepts a request, then check whether the agent recovers without sending a duplicate. measure task completion, unnecessary retries, and duplicate effects. we are testing whether the interface helps the agent act correctly when the available evidence is incomplete.
An SDK, an MCP server, and readable docs have different jobs
By this point, we are probably all comfortable hearing terms like MCP, A2A, SDKs and all the rest. But when we say our product supports agents, what have we actually made easier?
- An SDK gives application code a language-specific way to use our service.
- MCP connects an AI application to capabilities exposed by servers.
- A2A addresses communication and collaboration between agents, including handing off work and exchanging results.
these can work together: an agent could delegate a task to another agent that uses an MCP tool backed by an SDK. For our product, the interesting question is how a capability reaches the model, becomes a valid action, and returns enough evidence to continue.
Also first, being connected doesn’t mean being in context
There are two different kinds of discovery here. finding our product is one, finding the right operation within an already connected product is another. MCP supports the second through a standard interface; it doesn’t automatically persuade an agent to choose our company.
At the protocol level, an MCP client can request tool definitions through tools/list and invoke a tool through tools/call. definitions include a name, description and an input schema. The host, ie the application running the agent decides how to present those capabilities to the model. And jus to be clear a server’s catalogue and the model’s current context are therefore different things. That distinction matters because tool definitions carry a context tax, names, descriptions and nested argument schemas all consume tokens when loaded. Wrapping every API endpoint as a tool can produce a large catalogue before the agent has inspected any actual task data.
This isn’t a fixed 20 tools equals 5,000 tokens rule, schema size varies enormously. Anthropic describes one setup where 58 tools consumed roughly 55,000 tokens in definitions. Its tool-search approach instead retrieves relevant tools and loads their definitions on demand, those numbers describe that setup, but the underlying design problem is useful, how much information must we load before the model can act?
This turns tool access into a retrieval problem

A host could first identify a capability group like say, billing, then retrieve the specific operation and load its schema. Another could search across tool descriptions directly. This routing is an architectural choice around MCP, not something every MCP connection automatically performs, from a data science perspective, the trade-off is familiar. a small candidate set saves context, but might exclude the required tool. a larger set improves coverage only if the additional candidates are useful, overlapping operations can make selection harder.
I would measure required-tool recall alongside the token size of the retrieved definitions, did the tools needed for the task reach the model, and how much context did that cost? then measure whether it selected the right operation and that separates a retrieval failure from a decision failure. A tool the model never received cannot be evaluated the same way as a tool it saw and misunderstood.
Next, a schema gives the action structure. Like imagine a fictional analytics product exposing query_metrics,a definition saying queries business data leaves a lot unresolved. something more useful would specify, the distinction between structure and meaning is important, a schema can require fields and restrict allowed values, where supported, constrained generation can help produce arguments matching that structure. MCP itself doesn’t guarantee that the model generates valid arguments, and validation still belongs in the execution path.
Even a structurally valid request might query the wrong project or interpret last month incorrectly. Examples and precise descriptions help resolve those choices, permissions and business rules must still be enforced by the application. This also affects how we package capabilities. Exposing every internal endpoint might force the model to reconstruct a workflow we already understand. I would consider a focused operation that handles predictable lookup and aggregation internally. but one enormous do_anything tool would merely hide the ambiguity inside its arguments. The useful boundary is an operation with a clear purpose, explicit inputs and an inspectable result.
When talking about the returned data we also have a context cost too, like suppose our analytics tool returns thousands of raw events when the user asked for weekly active users, now the agent has to carry those records through its context and perform an aggregation that ordinary code could handle directly, filtering, pagination and server-side aggregation can reduce that burden. Best practices guidance on tool design similarly emphasises returning relevant information instead of overwhelming the model with entire datasets. For this hypothetical tool, return the aggregate together with its project, time range, timezone and any completeness warning, those fields let the agent check what the number actually represents. A small response is only useful if it preserves the evidence needed to interpret it. MCP supports structured results and optional output schemas, these can define a predictable response shape, but a correctly shaped result still needs to be interpreted against the user’s request.
And talking about documentation, it fills the gaps between those contracts, the schema might tell us that revenue is an allowed metric. The docs need to explain whether it includes refunds, which currency it uses, and how fresh the data is. These details change the answer even when every tool call succeeds. I wud keep short operational guidance close to the tool definition, with deeper, versioned references available when needed, that gives the agent a way to retrieve missing detail without loading the entire manual into every step. This is where agent support becomes a concrete engineering problem. Can the right capability be retrieved, used correctly, and interpreted with enough evidence? an MCP server gives us a standard way to expose capabilities, the design around it determines how much uncertainty the agent has to work through before our product becomes useful.
How would we know we made it better?
Getting mentioned and completing an integration need separate measurements. An agent can recommend our product, struggle with setup, and finish with something else. I would track discovery, selection, implementation attempts, and verified completion separately. Each needs a clear denominator, completion among attempted integrations answers a different question from completion across all tasks. These stages tell us where the process breaks and execution traces help us understand why.
We also need two different experiments.
- to test whether our docs make integration easier, assign the same provider and compare documentation variants.
- to study whether agents choose our product, let them select among alternatives, easier to integrate and more likely to be selected are related hypotheses, but they need separate evidence. compare variants on the same task set, keeping repositories, model versions, tool access and budgets comparable. repeat the runs, because one successful attempt tells us little about reliability.
This is where pass@1 and pass@k sharpen the question, how often does one attempt succeed, and how often does at least one of k attempts succeed? Define an attempt carefully. A complete agent run may already include several tool calls and repairs, getting a build to pass after five repair turns is still one run. A higher pass@k can show that success is possible with repeated attempts while hiding disappointing single-run reliability. Success also needs evidence beyond the agent’s final message, did the intended operation happen? was the resulting state correct? introduce expired credentials, rate limits and timeouts after acceptance, then check whether the agent recovers appropriately. Alongside verified completion, report repair attempts, elapsed time and cost per successful task, total cost across all runs, including failures, divided by successful completions. Failed runs can make average run cost look attractive, this metric makes us account for the money spent getting to a useful outcome. Also report uncertainty too, keeping repeated runs of the same task grouped in the analysis and hold some tasks back for the final evaluation, otherwise, repeatedly fixing the docs around the same examples can quietly turn our benchmark into something we’ve trained ourselves to pass.
Want to mention Google’s suggestion that shares a practical practical starting point, manually review a small set of execution traces and mark where the agent chose the wrong tool, supplied an incorrect argument, or repeated an unnecessary step. Turn those observations into specific checks. In our email example, that could mean asking, ~ Did it check sender verification before attempting to send? ~ The failures we observe become the tests we run after the next change.

Even then, a working integration is only part of the answer, does the product fit the team’s existing services, data requirements and production budget? those constraints need to reach the agent and appear in our evaluation. Completing the task with an unsuitable dependency should not count as an unqualified win.
That brings me back to why this matters!!! When someone asks an agent to build something, our docs, tools and error messages may become the experience through which they first encounter our product, the questions we have explored, can it find the right capability, use it correctly, and check the result, start to look like product-experience questions too.
I have read so much about user experience and developer experience, maybe Agent experience is the next thing we’ll find ourselves optimising for. We are still building for people and we are also building for whoever they send to try it first.
References
- Hugging Face — Designing the hf CLI as an agent-optimized way to work with the Hub
- Armature — The dataset: which software coding agents choose
- Anthropic — Writing effective tools for agents, with agents
- Anthropic — Introducing advanced tool use on the Claude Developer Platform
- Anthropic — Scaling Managed Agents with stable interfaces
- NVIDIA — How to Evaluate AI Agents From Tool Calls to Task Completion
A small signal for the next reader
Did this help you understand the idea?
of readers found this useful
Thanks, your signal was saved.