agentest
Grades what your AI agent actually did — tool calls, order and end state — from its recorded traces, offline and deterministically.
- Source repo
- srpadmanabhuni/agentest
- Stars
- ★ 16
- Last updated
- 3d ago
- FARS reviewed
- Nov 20, 2026
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 67/100 · Some gaps
At a glance
- Works with
- Universal · cross-platformOpenAI API (Partial support)
- You'll need
- Typical use
- An agent developer adds
agentest std run --otlp ... --format junit --out agentest.xml --strictto GitHub Actions so a regression that claims success without changing state blocks the merge. - Main limitation
- Verdicts are bounded by what the trace records: an action that was never recorded cannot be graded, and the related checks simply return n/a until instrumentation or a native-log import is in place.
- Website
- srpadmanabhuni.github.io/agentest ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-19
- Source review
- 67/100 · Some gaps
What does this agent do, and when should you use it?
agentest (PyPI package agentest-ai; import and CLI both agentest) is an Apache-2.0 open-source rule engine for agentic evals. It reads the OpenTelemetry GenAI traces an agent already recorded and judges its real behaviour — which tools it called, in what order, and what state it left behind — rather than only the text it produced. It ships 165 deterministic checks grouped into T1 task success and terminal state, T2 dependency ordering, T3 control handover and authorisation, T4 prompt injection from untrusted documents, T5 tool-call allowlists, T6 state drift across turns, T7 metamorphic and consistency, plus X repository extensions. No LLM judge, API key or network is involved, so the same traces always yield the same verdicts. It also ingests A2A AgentCards and MCP tool lists, offers native-log importers for LangGraph, OpenAI Agents SDK, AutoGen, smolagents and n8n, and never asks your agent to import its SDK. Output is one pass / fail / n/a verdict per check with an evidence line, exportable to Markdown, JSON, JUnit, SARIF, HTML or CSV, with --strict turning any fail into a CI-blocking exit code 1.
The entry point is agentest std run. It loads a recorded OpenTelemetry GenAI trace file (--otlp my_traces.otlp.jsonl) and optionally an A2A AgentCard (--card agent-card.json) and an MCP tool list (--tools tools.json), which give checks about undeclared tools or disallowed hosts something to compare against. If your framework does not emit OTLP directly, the bundled native-log importers for LangGraph, OpenAI Agents SDK, AutoGen, smolagents and n8n convert its logs first. The rule engine then walks the facts extracted from the trace and emits exactly one verdict per check: pass (signal found and behaviour compliant), fail (signal found and rule broken, with a detail evidence line such as T1-018 | fail | case2#0: effect although success signal failed), or n/a (no input to judge, never silently counted as a pass). agentest list --packs and agentest list --class X enumerate test packs and classes, while --ids T4,T5 or --ids NT selects individual tests. Reports render as Markdown, JSON, JUnit XML, SARIF, HTML or CSV; with --strict any fail makes the process exit 1 so a pipeline stops.
- An agent developer adds
agentest std run --otlp ... --format junit --out agentest.xml --strictto GitHub Actions so a regression that claims success without changing state blocks the merge. - A QA engineer receiving a 'bot said it added the item but the cart is empty' defect reruns the recorded trace with
--ids T1-018and attaches the single evidence row to the ticket. - A security reviewer runs the T4 and T5 classes over red-team traces to check whether a hidden instruction changed the email recipient, or an undeclared tool or host was called.
- A privacy or compliance reviewer scans traces under T7-014 and T5-004 for unmasked emails, secrets and other personal data leaks.
- A platform team re-runs the same recorded traces after swapping models or rewriting prompts and diffs the verdicts as a regression baseline.
- A team using LangGraph, AutoGen, smolagents or n8n without OTLP instrumentation converts existing logs through a native importer before grading.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install agentest-aipip install git+https://github.com/srpadmanabhuni/agentest
- Config files
agent-card.jsontools.json- Runtime
- Python 3.11+
How do you install or deploy this agent?
Python 3.11+ is required; install from PyPI (no API key, no model):
pip install agentest-ai
agentest --helpTo get the bundled examples and walkthroughs, clone and install in editable mode instead:
git clone --depth 1 https://github.com/srpadmanabhuni/agentest.git && cd agentest
python3 -m venv .venv && . .venv/bin/activate && pip install -q -e .The unreleased GitHub version can also be installed directly:
pip install git+https://github.com/srpadmanabhuni/agentestHow do you use this agent?
First run a bundled example; it should print one row reading T1-018 | fail | case2#0: effect although success signal failed:
agentest std run --agent a22 --ids T1-018 --format mdThen point it at your own agent's traces, optionally with the AgentCard and tools list:
agentest std run --otlp my_traces.otlp.jsonl --card agent-card.json --tools tools.jsonTo gate CI, switch the report format and enable strict mode:
agentest std run --otlp my_traces.otlp.jsonl --format junit --out agentest.xml --strictSelect a narrower scope by pack or class:
agentest list --packs
agentest std run --otlp my_traces.otlp.jsonl --ids T4,T5 --format mdWhat are this agent's strengths and limitations?
- No LLM judge, no network, no API key: the same trace always produces the same verdicts, which makes it usable as a stable regression gate rather than a flaky score.
- It grades tool calls, call ordering and end state instead of reply text, so it catches 'said it added to cart while the cart is empty' and 'placed the order before verifying identity'.
- Built on open standards — OpenTelemetry GenAI, A2A AgentCard, MCP tool annotations — and never asks the agent to import its SDK, so switching frameworks does not mean rewriting tests.
- 165 checks are organised into T1–T7 plus X, backed by a 110-test public checklist dataset with a 47-test P0 smoke pack, so coverage can be rolled out by priority.
- Reports export to JUnit, SARIF, JSON, HTML, Markdown and CSV, and
--strictblocks CI in one flag; missing evidence yields an explicit n/a rather than a silent pass. - The repository bundles 113 agent directories for practice, six tutorials, a Colab notebook and a Hugging Face browser demo, so the approach can be trialled before installing.
- Verdicts are bounded by what the trace records: an action that was never recorded cannot be graded, and the related checks simply return n/a until instrumentation or a native-log import is in place.
- It is a rule engine, not semantic grading — open-ended answer quality, tone and factual accuracy of free text are outside scope.
- Native importers cover only LangGraph, OpenAI Agents SDK, AutoGen, smolagents and n8n; CrewAI and others have worked pages only, and deeper framework adapters remain on the roadmap.
- Learning which of the 165 ID-coded checks applies to your agent takes real reading of the per-test guide and the risk-based test planning document.
- The author states explicitly that it is not certification and should not replace compliance or security audits.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| agentest This agent | 67 · Some gaps | — | ★ 16 | 3d ago | Python | — |
| Rogue — AI Agent Evaluator & Red Team Platform | 43 · Major gaps | CLIFree + model costs | ★ 1.1k | 6mo ago | Python | OpenAI API · Claude API |
| Tracely | 68 · Some gaps | — | ★ 848 | 15d ago | Python | Claude Code · OpenAI API · Claude API |
| AI Agent Engineering Textbook | 60 · Some gaps | FrameworkFree | ★ 807 | 1mo ago | HTML | — |
How does FollowAgents rate this agent?
Why each dimension lost points
Least privilege: the CLI is offline by default and only contacts the network when the user explicitly passes an http(s) --agent or --hub-catalogue, with a pinned revision and sha256 check for the Hub catalogue (cli.py docstring, CI step), so 2; however --agent can target any http endpoint and std serve binds a port (host configurable), with no finer permission scoping, so not full marks. User confirmation: no interactive confirmation; --strict simply exits 1 to gate CI, which is automation rather than a destructive action, so 1. Data-flow transparency: docs state it reads OTel GenAI traces, A2A AgentCard and MCP tools and never asks the agent to import it, so 2; but storage/caching of traces that may contain PII is not itemised. Sensitive data handling: the product detects PII leaks (T7-014 etc.), but the repo does not describe its own masking or retention policy for input traces, so 1. Dependency security: one runtime dependency pyyaml>=6, optional extras clearly separated, CI has a wheel-install smoke test, so 2; no dependency vulnerability scan or lockfile seen. External effects: offline by default, writes only report files, Docker runs with --network none, so 2; std serve listens on a port but is opt-in. Rollback: no version rollback or state-recovery mechanism documented; reports can be re-run, so 1. Source attribution: full Apache-2.0 LICENSE, author in pyproject, external catalogue links cited, so 2; publisher identity is unverified, which neither adds nor deducts.
Self-consistency: README, QUICKSTART and GETTING-STARTED agree on install commands, sample agents (a22/a14) and expected output (T1-018 fail), and CI claims to execute doc commands, so 2; but version numbers appear as both 3.5.0 and 3.5.1 across docs, a deduction. Dependency availability: a single runtime dependency (PyYAML), Python 3.11+, optional extras separated, so 2; no lockfile or hash pinning. Failure messages: the CLI gives specific errors and exit code 2 for unknown agents, invalid JSON and missing mapping files, and rules return n/a rather than a silent pass when a signal is absent, so 2; some error paths (e.g. serve port in use) are not described.
Audience and scenarios: README routes developers, testers/QA and newcomers separately and covers CI gating, security review and regression, so 3. Capability boundaries: docs state it does not run the agent, only reads traces, that n/a is not a pass and that it is not certification, with a HOW-IT-WORKS limits page, so 2; but actual coverage and false-positive rates of the 165 tests are asserted in docs rather than evidenced per test in the package. Trigger precision: subcommands and --ids/--class/--pack filters are explicit and rules register via @rule, so 2; --ids also accepts NT and RAI aliases, which is slightly complex. Environment fit: PyPI, git, Docker, Colab and HF Space, Python 3.11/3.12 matrix, so 2; the Docker image is not published to a registry and must be built locally.
Information architecture: docs are layered (developers/testers/tutorials/standards) and README has a contents and navigation table, so 2; but the docs are large and repeat the same quickstart in several places, a drift risk. Install notes: INSTALL-AND-QUICKSTART covers PyPI, git, clone, Docker and pinned versions, so 3. Naming stability: package name agentest-ai differs from import/CLI agentest, repeatedly explained but still a cognitive burden, so 2. Examples and FAQ: six tutorials, Colab, HF Space and FAQ links are present, so 3. Known limitations: README points to a HOW-IT-WORKS limits and false-positive page, but the package itself does not list them directly, so 2. License: full Apache-2.0 text in the repo and matching pyproject declaration, so 3. Versioning/changelog: pyproject 3.5.1 and a CHANGELOG link, but docs mix 3.5.0 and 3.5.1, so 2. Maintenance responsibility: author is named, but the publisher is unverified and governance/security contact details are thin, so 1.
Output usability: md/json/junit/sarif/html/csv formats, --strict exit code and evidence lines per verdict, so 2; report quality depends on trace completeness and n/a may dominate. Marginal value: deterministic, offline behaviour-level checks over existing OTel traces, distinct from an LLM judge, so 2; but the relationship between the 165 tests and the 110-item checklist needs extra reading. Cost-benefit: no API key, no model, one dependency and low CI integration cost, so 2; but it requires OTel GenAI traces first, a prerequisite cost for uninstrumented agents.
Claim traceability: README claims are heavily linked to docs and CI steps, so 2; but core numbers such as '165 tests' and 'deterministic' have no per-item checklist inside the package (the catalogue lives in an external HF dataset). Cross-source corroboration: README, QUICKSTART, GETTING-STARTED and the CI workflow corroborate the same commands and expected output, so 2; but all are from the same author, not independent third parties. Fact/inference separation: docs distinguish the roadmap as a plan not a commitment, n/a from pass, and disclaim certification, so 2; but some marketing phrasing ('what makes it different') lacks comparative evidence.
- Publisher identity is unverified; verify the PyPI package against the repository and check signatures before installing.
- Docs mix versions 3.5.0 and 3.5.1; treat pyproject.toml and `agentest version` output as authoritative.
- Traces read by the product may contain personal data, and the repo does not describe its own masking or retention policy for input traces; assess before using real production traces.
- The mapping between the 165 tests and the 110-item checklist relies on an external Hugging Face dataset; confirm bundled data completeness for offline use.
- `std serve` listens on a port and `--agent` can target any http endpoint; restrict network and access scope when using them.
- This is a static source review with no execution; determinism, false-positive rates and test quality were not independently verified.
FAQ
Is agentest open source?
Is agentest safe to use?
Is agentest still maintained?
Who makes agentest?
What is agentest's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.