srpadmanabhuni/agentest
Deterministic trace checks for whether AI agents did what they claimed.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
agentest evaluates recorded runs rather than orchestrating agents. Its Python CLI accepts OpenTelemetry GenAI traces as OTLP/JSON or JSONL, or converts saved framework logs via std import. In Python, agentest.record() captures tool calls, results, and the final reply for checks in the same process. The scorer applies rules to that evidence and returns pass, fail, or n/a without re-executing the agent.
The optional MCP tools/list JSON and A2A AgentCard supply declared context to the rules; neither is a live protocol connection. The pytest plugin is bundled with agentest-ai, and PyYAML (>=6.0,<7) is the sole required runtime dependency. This separates application instrumentation from evaluation: a CI runner can score exported artifacts without installing the agent framework that produced them.
Key Capabilities & Differentiators
The 165-check catalog covers issues such as unsupported completion claims, tool allowlist violations, missing approvals, retry storms, prompt-injection effects, and PII leaks. In bundled sample a22, the reply says a charger was added to the cart, but the recorded run contains no add_to_cart call; T1-018 flags the unsupported claim. The catalog size is not the number of checks that will run or apply to every trace.
Built-in import dialects include langgraph_msgs, openai_agents, autogen, smolagents, and n8n. Other integrations take different paths: CrewAI, for example, can use OpenTelemetry export or the generic steps dialect rather than a dedicated CrewAI dialect. Reports include Markdown for inspection and JUnit or SARIF for automation; pytest assertions let teams require specific check IDs to pass.
Trade-offs & Limitations
Compared with response-only LLM judges, fixed rules make instrumented behavior easier to audit and regression-test: the same trace produces the same verdicts, with evidence for findings. The rules are not a substitute for semantic evaluation or live end-to-end tests. They cannot recover tool outcomes or state changes that were never logged, and a passing trace does not establish that the same behavior will hold on future runs.
The main adoption cost is getting traces and declarations into a shape that the selected rules can use. Ubiquitous n/a results can make a green pipeline misleading: --strict exits 1 on fail, not on missing coverage. Use named assertions for requirements that must pass, and review which checks actually apply. Apache-2.0 permits commercial use, but offline scoring does not remove the need to protect potentially sensitive trace artifacts.
Hardware & Deployment Guide
Install on Python 3.11+ with pip install agentest-ai; both the import and CLI are named agentest. Start with agentest demo, then test a local artifact with agentest std run --otlp traces.otlp.jsonl --format junit --out agentest.xml --strict. Scoring needs no API key, model, or network; fetching installation packages and generating fresh traces are separate steps.
The Dockerfile builds from python:3.12-slim, installs the package from the checkout, and runs as a non-root user. Build locally with docker build -t agentest .; no registry image is published. The 3.8.0 release adds named pytest check assertions and a pinned OpenTelemetry GenAI compatibility matrix. The 3.7.0 release adds the opt-in alert-timing check NT-038 and a recorded refund-retry example.
std run --otlp reads OpenTelemetry GenAI OTLP/JSON or JSONL; std import converts recorded framework logs.--tools accepts MCP tools/list JSON; --card accepts an A2A AgentCard. Neither requires a live endpoint.n/a when required evidence is missing.agentest.record() captures calls, results, and replies in-process; agentest.assert_checks() names the failing check and its evidence.--strict exits 1 on a fail; JUnit and SARIF are available for machine-readable reporting.python:3.12-slim, runs as a non-root user, and uses agentest as its entrypoint.Teams with recorded tool-using agent runs that want reproducible pytest or CI gates for task completion, approvals, and tool policy.
You need a live agent runner, have no reliable trace instrumentation, or primarily need to judge open-ended response quality.
Quick Start & Installation
pip install agentest-aiComparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| agentest ★ | 60 | +13 | Python | Apache-2.0 | Deterministic trace checks for whether AI agents did what they claimed. |
| iFixAi | 47.6k | +13 | Python | Apache-2.0 | Python audit runner for AI agent behavior, with scenario fixtures and cross-prov |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/srpadmanabhuni/agentest.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about agentest
How do I connect an existing agent to agentest?
agentest std run --otlp. If you have framework logs instead, use agentest std import with a matching dialect or mapping. Add --tools for MCP tools/list metadata and --card for an A2A AgentCard. Checks that need missing declarations return n/a.Do I need a GPU or a model endpoint in CI?
Can we use it commercially and keep evaluations on our own infrastructure?
When should I choose agentest over an LLM judge?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy