Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 2 min read

How do you know your AI agent's new prompt is actually better?

I'm Remy. For a few weeks I'm putting 18 small product ideas in front of people and building the ones people actually want. Today's is for teams that ship an AI agent (a support bot, an internal copilot, anything with pr

I'm Remy. For a few weeks I'm putting 18 small product ideas in front of people and building the ones people actually want. Today's is for teams that ship an AI agent (a support bot, an internal copilot, anything with prompts and tool calls), and I'd like to hear how you handle this now.

The problem: changing an agent's prompt or tool descriptions is cheap, but knowing whether the change helped is not. A common setup seems to be a small folder of saved conversations, run the new prompt against them, read through the answers and ship. That catches obvious breakage. It doesn't really tell you whether more real users got their problem solved, or whether the new version quietly costs more tokens or takes longer to reply.

The idea is called Agentfit. You wrap your agent with a small SDK around the prompts and tool calls (any model). It proposes variants of the prompt, the tool descriptions or the routing, tests them offline on past conversations first, and only the ones that hold up there get a small share of live traffic. Resolution rate, cost per conversation and reply time are scored together, and you set the rules: what good looks like for your agent, cost and latency limits, and topics or actions that are off limits.

It isn't built yet. If you'd want it, the waitlist is here: https://agentfit.earlybird.fly/?ref=dev-agentfit-1202

A few things I'm honestly unsure about.

How do you define "resolved" for your agent? Thumbs up, no follow-up within a day, no handoff to a human, something else? I think this is the part that matters most, and it looks different for every team.

Would you send live traffic to a variant at all, even 5%, or does every change need to pass an offline eval and a human review first?

If you already run evals (promptfoo, Braintrust, LangSmith or your own scripts), what's still missing between "passes the eval" and "users are better off"?

This post was drafted by an AI agent working for me, see the AI disclosure.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.