On this page

#Your daily improvement routine

The routine is three steps:

  1. Report: in the inbox, mark a wrong reply and say what should have happened.
  2. Improve: ask your coding agent, with the vatio skill, to work through the open reports (in Claude Code, /vatio fix the open reports). It fixes each one wherever the cause lives: the instructions, a knowledge entry, a tool, your backend. Vatio changes nothing in the agent by itself.
  3. Review: your team has every fix at once, and Vatio tests it before everyone gets it: a fix that breaks a test that passes today is held back from your users. Check the results in the inbox.

New reports also arrive in a daily email. The rest of this page explains the checks, and the Vatio MCP's tools the skill uses for you.

The people reading your agent's conversations know when a reply is wrong. In the inbox, a supervisor flags that reply and writes what should have happened: a different answer, an action, a tool the agent should have used or does not have. From then on, that flag is a test. Your coding agent fixes it; Vatio checks the fix:

  1. A digest. list_reports returns every open flag as one markdown document written for a coding agent: the conversation up to the reply, every tool the agent called on that turn with what your backend answered, and the supervisor's note.
  2. A test per flag. Every flag with a note is an eval case, on one of your users' conversations or one of your team's own. The visitor's turns become the input and the note becomes the expected outcome. run_tests replays every case against the newest version and a judge compares each new turn, tool calls included, with the note.
  3. Resolution on evidence. A flag that passes on the newest version is fixed; once that version reaches everyone it is resolved, with the version that fixed it. Nobody has to say it is done. Supervisors see each flag's state on the reply they flagged, and every flag with its latest tests in the inbox's Continuous improvement page.

A flag on one of your team's own conversations, made while trying the newest version in Try the agent (the conversation is marked Team in Conversations), is no different: a report and a test, listed by list_reports, Continuous improvement and the daily email, and resolved once the version everyone has passes it. Tests can also be written before anyone flags anything, with add_test (What a flag carries).

Flags only catch what a supervisor noticed. A tool that fails seldom gets flagged, because the agent apologizes and moves on, so get_tool_health gives your coding agent how your tools' backend has been answering: each tool's error rate, timeouts and latency, and the calls that failed with what your backend answered. See How your backend is answering.

#Who flags, and what to write

Invite the team (supervisor) from Team in the inbox. They sign in with a code sent to their email and see every conversation with real people and the agent's tool calls. They can reply to take a conversation over, and keep the knowledge the agent answers from. They cannot change its instructions or tools. The owner and developers can flag replies too (Teams).

On any reply the agent wrote, Report this reply asks for what should have happened. The note should say what the agent should have done (the right answer, or the action or tool it should have used), not a verdict:

  • Weak: "wrong".
  • Useful: "Should have looked the order up and said it ships Thursday, with the tracking link."

A note that asks for something the agent must not do, such as a discount it cannot grant, cannot be fixed: rewrite or remove the flag. A stale fact, such as an old price, is flagged the same way: the coding agent fixes the knowledge entry, and it is tested before everyone gets it.

#The loop

In Claude Code, with the vatio skill installed:

/vatio work through the open reports

One session takes every open flag. These are the MCP tools it uses, and what any other coding agent connected to the MCP uses:

  1. list_reports: the digest, every open flag with its conversation and tool calls, then the tests that fail on the newest version or answer differently each time, then every test.
  2. The fix, where the cause lives: update_agent (instructions, tools, knowledge, links), write_knowledge_entry, set_tool, or the app's backend a tool calls. Each change to the agent reaches your team at once, and Vatio starts testing it for everyone.
  3. run_tests: replays every flag and test on the newest version, joining the run Vatio already started for the change. get_test_results with each run id shows the report.
  4. get_status: whether everyone has the change (shipping.state live), its tests are still running (testing), or a test held it (held, with the tests).

A test run takes minutes: every case is a real agent turn, five run at a time, so 27 cases take three or four minutes. run_tests starts it and returns the run ids; get_test_results shows the report so far, until the run has finished. Change and test again until the flags you meant to fix pass. Each change reaches everyone on its own once the tests that pass today pass on it, its results go with it, and the flags they pass are resolved at once.

A prompt that works with any coding agent connected to the Vatio MCP:

Read list_reports from the Vatio MCP. Group the flags and failing tests by cause, fix each cause where it lives — the agent's instructions, knowledge, a tool, or the backend a tool calls — prove it with run_tests, and tell me which ones pass now.

The digest itself carries the same instructions at the top, so an agent handed only the digest knows what to do with it.

#When a change reaches everyone

A change reaches everyone once no flag or test that passes on the version everyone has fails on it. One that does, in every attempt, holds the change back: your team keeps it, everyone else keeps the version they have, and whoever made the change gets an email. Another change that fixes it, removing a test the change made obsolete (remove_test), or a run of the tests that passes (run_tests, for one that failed by chance) moves it on. There is no force. Flags that still fail on both versions hold nothing back: a fix for three of five reaches everyone while the other two wait. See When a test holds a change.

#Let your coding agent find it on its own

  • The daily mail. Every morning with new flags, the workspace's owner and developers get how many are open and what to ask their coding agent (The daily digest).
  • The vatio skill. npx @vatio-ai/skills from the root of your project installs it and adds the Vatio MCP to the project (The vatio skill). Your coding agent then uses it when you ask it to improve or fix your agent.

The skill only points at the MCP. The instructions come from the platform each time list_reports runs, so they do not go out of date.

#Fix the cause where it lives

Your coding agent has your repository and your backend in front of it, which Vatio does not, so the fix is its job. Several flags usually share one cause, and it is often not the prompt:

What the digest showsWhere the fix goes
A tool answered with an error, or without the field the reply neededThe backend that tool calls, then the tool's respond.data (set_tool)
Your backend answered a 4xx on purpose ("this number has no account") and the reply handled it badlyThe agent's instructions (update_agent), for what to say after that answer, or the message your backend sends with it
No knowledge lookup matched, or the entry is out of dateA knowledge entry, with write_knowledge_entry
The instructions say too little, or too muchThe agent's instructions, with update_agent
The visitor needed a person and the agent kept goingThe when_to_use of the tool that asks for a person, or the instructions

There is one newest version per workspace, shared by the whole team: every change builds on it (Working with others).

The digest holds real visitors' conversations. Keep it out of commits, issues and logs, and refer to flags by id (F-7K2QX).

#What a flag carries

In the digestWhere it comes from
Agent, conversation (a customer's or your team's), deployed version, channelThe chat the reply was in
DiagnosisWhose it is to fix: your backend, your agent or Vatio. See Your backend, your agent or Vatio
The conversation up to the flagged replyThe last 10 messages before it
What the agent did on that turnEach tool call: its arguments, the HTTP status, outcome and duration of the call to your backend, and what it returned; knowledge lookups; any safeguard that discarded or rewrote a draft; tokens
What should have happenedThe supervisor's note
Eval caseWhether Vatio made a case from the flag: no only when there is nothing to replay, such as a reply with no visitor message before it

A flag without a note is not in the digest and has no eval case: "this was wrong" without saying what should have happened is not something an agent can be fixed from. A developer writes a set of tests before anyone flags anything with add_test: a question, which it asks the newest version in a new conversation, and what the agent should do on it. It answers at once with the conversation's chat_id, and get_test_results with it shows the test and whether it passes now, once the agent has answered and the judge has read it; with chat_id or message_id instead of question it keeps a reply you already have. Removing the flag removes its case, from the inbox or with remove_test: removing is the developer's call, so a coding agent proposes it and runs it only when asked.

#A flag's state

StateMeans
OpenIt fails on the version everyone has
Fixedrun_tests passed it on the newest version, which only your team has so far
ResolvedThe version everyone has passes it. It shows the short sha of the version that fixed it, like a1b2c3d

Rewriting the note is a new request, so the flag goes back to open. A resolved flag that fails on a change is a regression, and holds that change back from everyone until it passes again (When a test holds a change). That is why the conversation offers no Remove on a resolved flag: it is removed from Continuous improvement, in the inbox, or with remove_test.

#Your backend, your agent or Vatio

Each flag in the digest starts with a Diagnosis: whose it is to fix, read off what that turn did. The digest opens with how many flags are each.

DiagnosisWhenWhat to do
Your backendA tool call to your backend failed: a 5xx, a rejected credential (401) or a rate limit (429), no answer within the tool's timeout, no connection, or a response that is not JSONFix the backend, or the tool's request when the URL, method or parameters are wrong. get_tool_health shows whether it fails for everyone
Your agentEvery tool answered and nothing failed on Vatio's sideFix what the agent was told or given: its instructions, a knowledge entry, a tool's definition or what it returns. A business description written before it moved into the instructions (17 October 2026) is in every reply's prompt but not in the agent's instructions, and the diagnosis says so while there is one: write it into the agent's instructions with update_agent. Once everyone has that version, update_business with clear_description: true removes the old one.
VatioThe model provider or Vatio failed, and Vatio wrote the reply itselfNothing in your workspace caused it, so do not change the agent for it. Remove the flag, in the inbox or with remove_test. If replies like it keep happening, tell us with send_feedback (Tell Vatio what went wrong)

When a turn produces no reply, Vatio sends the visitor an apology so nobody is left without an answer ("I couldn't generate a response…"). That reply records why:

CauseWhat happenedWhose
provider_errorThe model provider did not answer in time, was rate limiting (HTTP 429), or was down (HTTP 5xx)Vatio
provider_blockedThe provider's safety filter refused, usually because of what the visitor wroteVatio
empty_replyThe model came back empty, also when Vatio asked it againVatio
vatio_errorAn error inside Vatio, including a request the model provider rejected (any other HTTP 4xx): what Vatio sent, or Vatio's accountVatio
tool_loopThe agent kept calling tools after Vatio told it to stopYour agent
safeguard_emptiedA safeguard removed everything the agent wroteYour agent

The inbox says so on the reply, and a supervisor cannot flag one of Vatio's own. get_conversation shows it on the reply.

#Eval runs

run_tests replays every eval case of the workspace against the newest version, matching cases to its agents by slug. Vatio also runs them on its own after every change, to decide whether everyone gets it (Deployments). A case is a photo of one turn, taken when the reply is reported (or kept with add_test):

  • the conversation as it happened, up to the visitor's message the reply answered: the visitor's words and the files they sent, the agent's earlier replies and the results of its earlier tool calls (the last 20 visitor messages), and the result of an async tool that reached the conversation before the reply (async tools): a reply written because that result arrived is replayed as that turn, not as the visitor's message before it;
  • who the visitor was and when they wrote: their name, number and email, the agent's memory of them, whether they were signed in, the channel, and the date and time the agent was told;
  • what your backend answered on that turn.

Each replay restores that conversation in a fresh chat, and the version under test writes the turn's reply: only that turn, so its earlier replies are the ones the visitor really got. A file the visitor sent is in the replay as the same stored file, not a copy, so the agent under test reads the same photo or PDF. A file that is no longer stored has a note in its place saying the visitor sent a file the test does not have, and deleting a conversation (Retention and deletion) deletes its files from the replays too. A judge then reads it, including every tool the agent called on that turn and the files the visitor sent (with how much of a PDF the agent got), against the expected outcome, and answers pass or fail with one sentence of reasoning. A note that asks for a tool passes when the agent calls it. Everything runs on Vatio's servers: your coding agent only starts it and reads the report.

What changes between the photo and the replay is what you changed: the instructions, the knowledge, the tools' definitions, and your backend for any call it is asked again (see Your backend below). A call whose answer comes from the photo cannot show a new answer from your backend: prove that one in your backend, and once your backend serves it, rewrite the note or remove the flag. A case made before photos existed gets its photo the first time it runs, from its conversation as it is now.

VersionThe newest one, the one your team has. A run of a held change that passes takes it to everyone
SpeedFive cases at a time. A run_tests while a run of the same version is still going joins it instead of starting another
Finishedget_test_results says whether the run has finished
ReportThe open flags, the ones a fix is for, are counted and listed apart from the regression cases: flags already resolved, and the tests add_test makes. Each row is named by its flag's id, like F-7K2QX (a flag and its case share one), or its test's, like C-3MZ8P
RegressionsA case that passes on the version everyone has and fails on the newest is listed first. It holds the change back from everyone
The judge's reasonsget_test_results, with the run id run_tests returned
ReplaysUnder Replays, the report gives every case that did not pass with the conversation of its replay, which get_conversation opens: what the agent said and every tool it called. A retried case lists the chats of its earlier attempts too
JudgeA model from a different family than your agent's, so it never grades its own kind of answer
RetriesA case the judge fails is replayed again, in a fresh chat, up to 3 attempts. Only one that fails all three counts as failing; one that passed on a later attempt says how many it took, like F-7K2QX (2 attempts)
UnsteadyEach case's tries over its last five runs are counted. One the same version both passed and failed, passing fewer than 3 of 4 tries, is unsteady, like F-7K2QX (passes 3 of 12 tries lately): a visitor who asks it gets a different answer each time. The report lists it apart, and list_reports lists the unsteady tests with what to do with each: make the agent answer the same way every time (usually), rewrite a note too vague for the judge to read the same way twice, or remove one that no longer applies. A case that passed on one version and fails on the next is a regression, never unsteady
ErrorsA case Vatio could not replay or judge (the model provider, the judge or Vatio failed) is an error, not a fail: the judge is asked again up to 3 times, and a replay Vatio's side spoiled is replayed again. One still left is marked not tested (Vatio's side) with its cause: it says nothing about your agent, so run_tests again. When Vatio's own run of a change leaves one, it tests the change again on its own, up to three runs, before that case holds it
Your backendA tool call the turn made, made again (same tool, same arguments, compared ignoring case and spacing and leaving out any argument that only repeats the visitor's words), gets what your backend answered then, a 2xx or a 4xx it sent on purpose ("this number has no account"), exactly as the agent got it, when asking again would not ask the same question: the tool's request names the visitor ($contact.*, $auth.* or requires: [contact.…]), the tool is private, or it is a write with no test value, which a replay never sends. Any other call goes to your backend again, as below, so a fix there shows: a call that does not depend on who is asking, one that failed then (a 5xx, a timeout, a 401), one the turn never made. A case that did not pass says on its Replays line which answers came from the photo and which calls went to your backend
ContactA call the turn did not make talks as the workspace's test contact: the newest phone that talks to the workspace on Vatio's shared WhatsApp number (your verified WhatsApp, a teammate's, or a customer phone), or else the verified WhatsApp of someone on its team, the owner first. $contact.phone_number is that number, and the contact is the one you test with, name included. It gains no conversation or memory from a replay. With no such phone (nobody on the team has verified their WhatsApp), a tool whose request.requires names the contact answers that it does not know the person, so a case that fails because of that is marked not tested (no test contact for a tool), names the tool, and is not retried: verify your WhatsApp in the inbox, under Account, and run_tests again. The same goes for an email or name the test contact does not have. One that passes anyway stays passed. The test report says which phone the replays talked as, by its last four digits, and so does list_reports when a tool names the contact. A replay is not signed in unless the run is (run_tests with a visitor_token), so an access: private tool it calls for real answers not_authenticated: a case that fails because of that is marked not tested (a tool needs a signed-in visitor), names the tool, and is not retried
Daily limit2,000 executions (replay chats, each attempt counted) per workspace a day, a guard against loops. Past it, new runs start the next day, a new run is refused with daily_test_limit (HTTP 429), and a change Vatio cannot test is held with reason tests_capped
Disagreeing with the judgeRewrite the flag's note in the conversation. A new note is a new request: the flag reopens and its case is judged against the new note from the next run
Replay chatsNot in the inbox and not counted as conversations: they are Vatio testing the agent, not visitors

A replay is a real agent turn, so a case can pass once and fail the next without anything changing: that is why a failing case is retried.

Evals call your tools

A call the photographed turn made that names the visitor, or a write with no test value, gets the answer your backend gave then; any other call a replay makes reaches your backend. Set a test value for the secrets in their URLs, like a staging backend (set_secret with SHOP_API, https://staging.example.com and "tests": true): every replay uses it, and so do your team's conversations with the agent. Such a call talks as the workspace's test contact (normally your verified WhatsApp; see Contact above), so a tool that looks people up by $contact.phone_number sends that number, and it carries an X-Vatio-Test: 1 header. A write (any method but GET) whose URL has no test value is not sent at all: the agent gets a success (Done.), and the judge still checks the call it made and its arguments. See Secrets.

A run starts with run_tests, and on its own after every change to the agent.

The top of Continuous improvement in the inbox says where the newest change stands: everyone has it, its tests are running, or a test held it, and which. Run the tests is there too, for the owner and developers. From your coding agent, running the tests is run_tests.

#Example

Pampa Coffee sells beans through its web shop, with the agent in the shop's chat and on WhatsApp. Monday's digest has three flags:

  • Two flags on "when will my order arrive?". The agent said "it's on its way". Both notes: "Should have given the delivery date and the tracking link." The digest shows order_status returned the status and nothing else.
  • One flag on grinding. Asked whether they grind beans for a moka pot, the agent said they only sell whole beans. The note: "We grind to order for any method. Ask which one." No knowledge lookup matched.

The coding agent finds two causes. For the first two the prompt was never the problem: the endpoint returned no date. It adds estimated_delivery and tracking_url to the backend's response, ships that to staging, and maps both in the tool's respond.data with set_tool. A link a tool returns is one the agent may send for the rest of the conversation, so the tracking URL needs no declaring. For the third it writes a grinding entry in the shop base with write_knowledge_entry. The team has both changes at once, with SHOP_API already pointing at staging for tests, and Vatio starts testing them for everyone.

The tests find one regression: an older flag, "never promise a date for a pre-order", passes on the version everyone has and fails on the change, because pre-orders now come back with a date too. The change is held: the shop's customers keep the version they had, and the owner gets an email naming the flag. The backend is changed to leave estimated_delivery empty for pre-orders, and the coding agent runs run_tests again. That run passes every flag, so the change reaches everyone, and the three flags are resolved with the version that fixed them.

#Pitfalls

  • Fixing every flag in the prompt. New rules hide the cause and grow the prompt. Read the tool responses in the digest first.
  • Notes that judge instead of answer. "Bad tone" cannot become a test; "should have apologized and given the new date" can.
  • Tests against production writes. Set a test value: set_secret with "tests": true.
  • Removing a test to release a change. A test that holds a change is usually right. Fix the regression, or rewrite the note when the note is what is wrong.
  • Deleting a test because it fails. An unsteady test is usually the agent answering a question differently each time, which visitors see too. Remove a test only when what it checks no longer applies.
  • Conversations in commits. Keep the digest out of the repository, and refer to flags by id.

#The daily digest

Every morning at 8:00 (America/Santiago), each workspace with new flags mails its owner and developers how many flags arrived and how many are open, with a link to the inbox's Continuous improvement page and what to ask their coding agent.

The mail never quotes what anyone wrote. Conversations, tool responses and supervisors' notes are only ever readable signed in to Vatio: in the inbox or through the MCP.

#Frequently asked questions

#How do I improve an AI agent after it goes live?

Start from the replies that were wrong. Someone on your team flags a reply in the inbox and writes what should have happened. Your coding agent, with the vatio skill, takes every open flag from list_reports, fixes the cause through the Vatio MCP and proves it with run_tests. Your team has each change at once, everyone gets it once the tests that pass today pass on it, and each flag is resolved with the version that fixed it.

#Should I fix a wrong reply by changing the prompt?

Only if the prompt is the cause. Often a tool returned an error or left out a field, a knowledge entry is missing, or the tool that asks for a person was never called. The digest shows what your backend answered on that turn.

#Do tests call my real backend?

Mostly yes. See Eval runs: a call that depends on who the visitor is, or a write Vatio would not send, gets the answer your backend gave then. Any other call reaches your backend, so point it at staging with a test value: set_secret with "tests": true.

#What stops a fix from breaking something that worked?

The tests. A change reaches everyone only once every flag and test that passes on the version everyone has passes on it too; one that fails holds it back, and your users keep the version they have. See When a test holds a change.

Last updated:

Latest release: 0.144.0 · Changelog · The whole contract as Markdown: /docs/docs.md