Agent monitoring and control belong in the same place
Finding what an agent did wrong and stopping it next time are one job. Splitting them across two tools is why agent problems stay open.
Finding what an agent did wrong and stopping it next time are one job. Splitting them across two tools is why agent problems stay open.
Your trace tool finds the bad run. The guardrail that might have stopped it lives somewhere else, and nothing connects the two or tells you whether last week's fix worked. We think agent monitoring and agent control belong in one product, and that's how we built Amiril. It reads the traces you already collect, so trying it changes nothing in your agents. From those traces it drafts rules out of each agent's own history, and it lets you try a rule against real calls before it blocks anything.
Open a run in any current trace tool and you get every model call and tool call, with the arguments that went in and the result that came back. A refund larger than the order it was refunding takes a couple of minutes to find.
Then the link goes into a channel and somebody opens a ticket. An engineer who wasn't in the thread reads the trace cold and decides whether to change the prompt or the tool code, and the change ships with the next release. You can check whether it worked, if somebody remembers to filter the traces by date after the deploy, but the trace tool won't prompt you, since as far as it knows nothing changed.
The guardrail is usually a library, or an if in the tool function with a comment pointing at the incident that put it there. Either way a person has to decide what it checks, and they rarely have the agent's history in front of them when they do.
Take a cap on a single payment. Unless you've looked at what the agent pays on an ordinary day you'll choose a round number. If it's too low it blocks real work in the first week, and people start asking for the guardrail to be switched off. A cap that's too high is harder to notice, because all it does is never fire.
Rules about behaviour go wrong the same way. On a phone agent it seems obvious to flag every call in which the caller asks for a person. But plenty of those callers are transferred, which is the agent doing its job, so a rule written that way fires mostly on calls that needed nothing. The calls you wanted are the ones where the agent hears the request and carries on regardless, and from the caller's words alone the two kinds are identical.
Generic checks for card numbers or abusive replies don't reach any of this. The rules that would help are particular to one agent and its tools, and you can only write them after watching that agent for a while.
When a guardrail wraps a tool and stops the call, the tool never runs. In LangGraph that means no tool span. The trace shows the model asking for the call and then nothing, with no reason given.
You can teach the guardrail to write spans your trace tool understands, and then the trace shows that a block happened. It still won't show whether the threshold was right, or whether the problem stopped afterwards. Answering those takes the agent's history and the guardrail's decisions in one place, and a guardrail library on its own keeps neither the history nor a record of the runs it failed to stop.
Amiril started out as a monitoring product. It reads your traces, learns what is normal for each agent from that agent's own history, and groups the runs that share a problem into an issue. When a rule could have stopped those runs it drafts the rule and shows what the rule would have done to them, in a line such as "Would have blocked 4 of 5 runs".
That line only covers the issue's own runs. What the rule would do to every other call is a separate question, which is what Shadow is for. A new rule starts in Shadow, where it records what it would have blocked and lets every call through. You can also replay it over the last day, week or month of real calls before you publish it, and you move it to Enforce when the count looks right.
Once it's enforcing, the check runs inside the agent's own process before the tool does. That means adding our SDK to the agent, in Python or TypeScript. We chose it over checking on our servers because a check that waits on the network slows every tool call and stops working when we do. The SDK keeps its own copy of the rules and goes on enforcing the last ones it received if it can't reach us. A change you publish reaches running agents in about a minute.
Because Amiril holds the SDK's record of each decision as well as the trace, the run's page can open with "1 call was stopped before it ran" even though the trace is silent about it. It also keeps reading traces after the rule goes live, so it can tell whether the problem went away. The rule's page keeps a count of what it blocks. An issue whose rule is enforcing is resolved once two days pass with no new runs joining it, and reopened with a "Back again" badge if the problem returns.
Amiril also holds the list of tools each agent may call, and it sees which ones the agent does call. A grant that has gone unused for 30 days comes back as a suggestion to revoke it.
Monitoring needs nothing from you except traces you already have, and rules and access can wait until you want them. Amiril takes OpenTelemetry traces and Langfuse exports, and the docs have setup guides for LangGraph, Google ADK, CrewAI and LiveKit.
Each part has a longer post of its own. They cover monitoring a LiveKit booking agent, blocking a bad tool call in LangGraph and deciding which MCP tools each agent can call. The monitoring side has its own page on agent observability, and the rules side on AI agent guardrails.
To see what it finds on your own agents, connect a trace source.