AgentOps alternative: AgentOps vs Amiril
An AgentOps alternative for agents whose tools send email or issue refunds. How AgentOps' session replay compares with Amiril's rarity ranking and blocking rules, with a CrewAI example.
An AgentOps alternative for agents whose tools send email or issue refunds. How AgentOps' session replay compares with Amiril's rarity ranking and blocking rules, with a CrewAI example.
AgentOps records every run of your agent as a session and lets you replay it step by step. A replay shows you a bad tool call after the email has gone out or the refund has been paid. We build Amiril, an AgentOps alternative that ranks every run by how rare it was for that agent and groups the rare runs that share a problem into an issue. From the issue it drafts a rule, and the rule stops the next bad tool call inside the agent's process before the tool runs.
AgentOps is an SDK for Python and TypeScript plus a dashboard. Two lines, import agentops and agentops.init(), instrument the model providers it finds and record each execution as a session. It is built on OpenTelemetry, and a session breaks down into agent, task, LLM and tool spans. Its docs have guides for CrewAI, AutoGen and AG2, Agno, LangGraph, Google ADK and Smolagents, and for the OpenAI Agents SDK in Python and in TypeScript.
Opening a session brings up the Session Waterfall. It lays every LLM call, tool call and error of a session out on a timeline, and selecting an LLM call shows its exact prompt and completion. The homepage calls this Time Travel Debugging, which lets you "Rewind and replay agent runs with point in time precision". Around it sit token counts, cost tracking across more than 400 models and a read-only public API for trace data. The SDK is MIT-licensed, the app's code is open under the Elastic License 2.0, and you can host it yourself.
The homepage lists three plans. Basic is free up to 5,000 events, Pro starts at $40 a month with no event limit, and Enterprise is priced on request.
A replay answers questions about a session somebody already chose to open. That works when a user reports a problem or a session ends in an error.
Take an outreach crew with a send_email tool. The mail server accepts a message and then the tool times out on the way back, so the model reads a failure and sends the same email again. The second call succeeds. The crew reports "Done", no error is logged, and the session sits among two thousand others from that day with two sends to one contact in it.
AgentOps would have both send_email calls on the waterfall, in order. To find them, someone has to pick this one session out of two thousand with the list's filters and tags, and nothing in it is marked as an error.
Amiril learns what is normal for each agent from that agent's own runs and ranks every new run by rarity. A rare run comes with the rarity factors behind it. On this made-up crew, the duplicate email would show as a line like this:
send_email was called more than once, which happened in 2 of 1,180 other runs calling it
When three or more runs share that problem, or you confirm one, Amiril opens an issue for them. An AI investigator reads a sample of the runs and writes up what they have in common. Amiril then drafts a rule that would have stopped them and tests it on the agent's past runs. It keeps the draft only if it catches some of the issue's runs and fires on at most one in a hundred of the agent's other runs. You review those calls in Test on past calls and in Shadow before the rule blocks anything. The rule suggestion carries a line such as "Would have blocked 4 of 5 runs", and Create rule opens the draft in the editor. For this crew the rule could read:
@id("one-email-per-contact") @scope("session") @sentence("{contact} already got an email in this session") block ( agent == "outreach", tool == "send_email" ) when { contact = call.args.contact_id; send_email[status == "any"]{ args.contact_id == contact } };
The rule takes the contact_id from the call being checked and blocks it if an earlier send_email in the session had the same one. Without [status == "any"] only calls that succeeded would count, and the send that timed out after the mail went out would slip past. The session id is the one you pass to sdk_agent.run(session_id=...) further down, so a crew kicked off a second time in the same session is caught as well.
A new rule starts in Shadow. It checks each call and records what it would have done, and the email goes out either way. Test on past calls replays any version of the rule over the last 24 hours, 7 days or 30 days of traced calls, and lists each call it would have fired on. Once that list holds only duplicates, you switch the rule to Enforce. The next time the model tries the same contact twice, it gets this back in place of the tool's result:
The call to send_email was not performed. Rule one-email-per-contact blocked it: c-1093 already got an email in this session (send_email.exists true). Do not retry this call with different arguments or achieve the same outcome another way; tell the user it was not performed.
The part in brackets names the check that matched: an earlier send_email to that contact exists. The check runs in the agent's process against a copy of your published rules, with no network request. The SDK asks for changes about once a minute, so a tightened rule reaches running agents without a redeploy. If Amiril can't be reached, it goes on enforcing the last rules it had. The rule recipes are written for a payments agent: a cap on one payment, a total across the run, an invoice paid only once per session.
| Feature | Amiril | AgentOps |
|---|---|---|
| Blocks a tool call before it runs | Yes, in the agent's process | No |
| Finding the runs worth a look | Runs ranked by rarity, each with its rarity factors | Session list with filters and tags |
| Grouping runs with one problem | Grouped into an issue with a severity and a state | No |
| What a problem turns into | A rule suggestion, drafted and tested on past runs | A session to replay |
| Trying a rule before it blocks | Shadow, and Test on past calls | No rules |
| Stepping through one run | Events tree beside a timeline | Session Waterfall and replay |
| Traces in | OpenTelemetry, framework guides and Langfuse exports | Its own SDK, built on OpenTelemetry |
| Starting price | Free plan; Team $249 a month | Basic $0 for 5,000 events; Pro from $40 a month |
You don't have to pull AgentOps out to try Amiril. Amiril reads a crew's runs over OpenTelemetry, through OpenInference's CrewAI and OpenAI instrumentations. These lines are the core of the CrewAI traces guide:
from openinference.instrumentation.crewai import CrewAIInstrumentor from openinference.instrumentation.openai import OpenAIInstrumentor from opentelemetry import trace from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor provider = TracerProvider() provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter())) trace.set_tracer_provider(provider) CrewAIInstrumentor().instrument(tracer_provider=provider) OpenAIInstrumentor().instrument(tracer_provider=provider)
The endpoint and an API key come from the Data page in Amiril, under Set up a new installation, and go in the standard OpenTelemetry variables:
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="<OpenTelemetry traces endpoint>" export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL="http/protobuf" export OTEL_EXPORTER_OTLP_TRACES_HEADERS="Authorization=Bearer <your API key>"
With those lines and agentops.init() in the same process, AgentOps still opens its session replay, and the crew's spans reach Amiril's exporter. The OpenAI Agents SDK, LangGraph and Google ADK have guides of their own, and so do Anthropic's two SDKs.
Blocking runs through Amiril's SDK. The OpenInference lines send the traces, and the SDK checks each call and reports what each rule decided, so no run arrives twice. A CrewAI tool calls a function you wrote, so the function goes through Amiril's plain Python SDK and the CrewAI tool calls it:
import amiril
from amiril import plain
from crewai.tools import tool
amiril.init()
sdk_agent = plain.Agent("outreach")
@sdk_agent.tool(name="send_email")
def checked_send(contact_id: str, subject: str, body: str) -> dict:
return mailer.send(contact_id, subject, body)
@tool("send_email")
def send_email(contact_id: str, subject: str, body: str) -> dict:
"""Send one email to a contact."""
return checked_send(contact_id, subject, body)
with sdk_agent.run(session_id=campaign_id):
crew.kickoff()amiril.init() reads AMIRIL_API_KEY and AMIRIL_ENDPOINT from the environment. Set AMIRIL_SERVICE as well and the crew shows on the Installations page under that name. When the model asks for the same email twice, the second call never reaches the mail code. Moving off AgentOps later means deleting agentops.init(), and the OpenInference lines go on sending runs to Amiril as before.
AgentOps' replay, free up to 5,000 events, is enough to debug the session a user complained about. Once send_email or a refund call is on the agent's tool list, the AgentOps alternative you want is one that refuses the call. In Amiril, Test on past calls shows which of the last 30 days' calls a rule would have refused, and in Enforce the rule refuses the next one.
The agent observability page goes deeper on rarity and issues. AI agent guardrails shows where the SDK hooks into a LangGraph agent, a Google ADK app or a LiveKit voice agent.
Yes. AgentOps keeps its sessions and replays, and Amiril reads the same crew through OpenInference. With both in one process, AgentOps opens its replay and Amiril gets the crew's spans.
Each run has a trace page with every event in time order, as a tree beside a timeline. Next rarity factor and Next error jump to the events that matter, and Search events finds a tool or a model by name.
Any OpenTelemetry source, with guides for LangGraph, Google ADK, LiveKit, the OpenAI Agents SDK, CrewAI, the Anthropic SDK and the Claude Agent SDK. You can also upload Langfuse exports, history included. Rules are enforced through the SDK, which has adapters for LangGraph, Google ADK and LiveKit and wraps plain Python or TypeScript functions.
Amiril has a free plan, and Team is $249 a month. AgentOps Pro starts at $40 a month. None of AgentOps' three plans lists blocking a tool call, so if blocking is why you want an AgentOps alternative, Pro doesn't cover it. The pricing page has what each Amiril plan includes.