# agentest: 에이전트 행동 검사
# agentest: checks on what an agent did

- Site: https://select1.dev/2026-11-20 (English), https://select1.dev/ko/2026-11-20 (Korean)
- Entry: 041
- Published: 2026-11-20 (KST). Launch date: 2026-11-19
- Pick: agentest <https://github.com/srpadmanabhuni/agentest> (source: Show HN)
- Verified: ran
- What: agentest 는 AI 에이전트가 실제로 한 일을 검사하는 프로덕트다. 에이전트의 실행 기록을 읽고 검사마다 통과, 실패, 해당 없음 가운데 하나로 판정한다. 판정에는 모델을 쓰지 않는다.
- What (en): agentest is a product that checks what an AI agent did. It reads the agent’s recorded runs and marks each check as pass, fail or not applicable. No model makes the call.
- Why: 오늘의 픽으로 선정한 이유는 에이전트의 응답을 실제 도구 호출과 대조할 수 있기 때문이다.
- Why (en): It is today’s pick because it checks an agent’s claim of finished work against its tool calls.
- Verdict: 작동한다. README 의 예제는 적힌 대로 판정됐고, 세 번 실행한 출력이 같았다.
- Verdict (en): It works. The README examples gave the documented verdicts, and three runs gave the same output.
- Tags: agent, evals, opentelemetry, testing, python

## Checked against the README

- [pass] README 의 첫 명령은 T1-018 fail 한 줄을 출력한다(Expected: one row, T1-018 | fail | case2#0: effect although success signal failed) — 커밋 555b753 을 설치하고 README 의 명령을 그대로 실행했다. 출력은 README 에 적힌 한 줄과 같았다. 처방 재발급 예제에서 버그가 있는 에이전트에 검사 4개를 지정해 실행하자 4개 모두 fail 이었다. 버그를 고친 에이전트에 기본 검사 130개를 적용하자 pass 55개, fail 0개로 README 에 적힌 결과와 같았다. n/a 는 75개였다
- [pass] API 키, 네트워크, 판정 모델 없이 실행되므로 같은 트레이스는 언제나 같은 판정을 받는다(It runs offline, with no API key, network or LLM judge, so the same traces always give the same verdicts) — unshare -n 으로 네트워크를 차단하고 실행했을 때의 출력이 네트워크가 있을 때와 같았다. 저장소에 포함된 에이전트 113개에 기본 검사 130개를 3회 적용했다. 텍스트 출력과 JSON 출력은 각각 세 번 모두 같았다
- [fail] 에이전트가 근거 없이 성공했다고 응답하면 잡는다(claimed success it did not earn) — add_to_cart 호출이 실패한 트레이스에서 마지막 응답만 바꿨다. "Done!" 이나 "successfully" 가 들어간 응답은 T1-018 에서 fail 이었다. "I added the blue mug to your cart." 와 "The blue mug is in your cart now.", 그리고 두 응답과 같은 뜻의 한국어 응답은 모두 pass 였다. 트레이스에 평가 결과가 fail 인 gen_ai.evaluation.result 이벤트를 추가해도 "I added" 응답은 T1-018 과 T1-005 에서 pass 였다

## Measured

- 저장소에 포함된 에이전트 113개에 기본 검사 130개를 적용하는 데 걸린 시간: 2.65~2.73초(3회) (agentest std run --json 을 3회 실행하고, 실행 앞뒤의 시각 차이를 계산했다)

## Progress (days after launch; full history https://select1.dev/2026-11-20/progress)

- day 3 (checked 2026-11-22) [active] commits since launch 22, stars 18, releases 7, contributors 9, last commit 2026-11-21
  - Fixed T1-005 and X-008, which check whether a failed run claims success. Before, a short negation such as "no" anywhere in the reply made them miss a success claim. Now only a negation in the same sentence cancels the claim. T1-005 no longer fails when a failed step succeeds on an identical retry. This fixes issue #114 (v3.5.2).
  - Added an agentest demo command. It judges a sample trace bundled with agentest and prints pass, fail and n/a counts with a few findings (v3.5.2).
  - Added guides for connecting agentest to agent frameworks such as LangGraph and CrewAI, and to MCP (v3.5.2).
- day 7 (checked 2026-11-26) [active] commits since launch 119, stars 38, releases 10, contributors 23, last commit 2026-11-25
  - Added the `agentest std diff` command. It compares two saved verdict files and lists each item whose status changed (v3.6.0).
  - Checks X-002 and X-011 now recognize more of the phrasing found in real traces. So they may report new failures in your own traces (v3.6.1).
  - `agentest std postconditions` shows each published end-state criterion (v3.6.1).
  - Added two opt-in checks. NT-038 checks the timing of privacy-violation alerts, and NT-045 checks that a handoff has the context keys it needs (v3.6.1).
  - Several pull requests from outside contributors were merged. The 3.6.1 release notes thank 13 contributors (v3.6.1).

## 한국어

## 무엇이 문제인가

AI 에이전트는 도구를 호출해 일을 처리하고, 끝나면 사용자에게 응답한다. 그런데 응답의 내용과 실제로 처리한 일이 다를 수 있다. 에이전트가 장바구니에 담았다고 응답해도, 상품을 담는 도구의 호출은 실패했을 수 있다. 제작자 Srinivas Padmanabhuni 의 문서(docs/OVERLAPS-AND-GAPS.md)에 따르면, 기존 LLM 평가 프레임워크는 흔히 다른 모델에게 채점 기준을 주고 응답을 채점하게 한다. 응답만 채점하면, 문장이 그럴듯할 때 도구 호출이 실패한 것을 알아내지 못한다.

## 어떻게 해결했나

제작자가 2026년 11월 19일 Hacker News 에 Show HN 글로 agentest 를 소개했다.

agentest 는 에이전트의 실행 기록을 읽고, 미리 정해 둔 규칙으로 판정한다. 에이전트는 일하는 동안 실행 기록을 OpenTelemetry 규격의 트레이스로 남겨야 한다. 트레이스에는 에이전트가 호출한 도구와 그 순서, 도구의 결과, 마지막 응답이 들어 있다. agentest 의 검사는 165개이고, 기본 실행에는 그 가운데 130개가 적용된다. 검사마다 pass, fail, n/a 가운데 하나로 판정하고, 근거를 한 줄로 출력한다. 판정할 근거가 트레이스에 없는 검사는 pass 대신 n/a 가 된다.

## 무엇이 다른가

첫째, 판정하는 주체가 다르다. agentest 에서는 모델 대신 Python 코드로 작성한 규칙이 판정한다. 그래서 API 키와 네트워크 없이 실행되고, 같은 트레이스는 언제나 같은 판정을 받는다. 트레이드오프는 응답의 문장을 읽어야 하는 검사가 뜻이 같은 다른 표현을 놓칠 수 있다는 점이다. 제작자는 문서(docs/HOW-IT-WORKS.md)에서 이런 검사가 성공했다는 말, 경고, 거절 같은 영어 표현을 정규식으로 찾는다고 밝혔다. 11월 15일에는 정규식이 찾는 성공 표현이 적어서 다른 말로 성공을 알린 응답은 놓친다는 이슈(#114)를 등록했다. 이 문제를 고쳐 줄 컨트리뷰터도 모집했다.

둘째, 판정의 근거가 다르다. 모델이 채점하는 방식은 응답의 문장을 근거로 삼는다. agentest 는 트레이스에 남은 도구 호출의 순서와 결과를 근거로 삼는다. 처방 재발급 예제에서 T2-001 은 본인 확인 도구보다 재발급 도구를 먼저 호출한 실행을 fail 로 판정했다. 에이전트 개발자는 A2A AgentCard의 확장 항목에 승인이 필요한 도구를, MCP 도구 목록에 재발급 도구처럼 상태를 바꾸는 도구를 명시할 수 있다. 그러면 agentest 는 그 정보가 필요한 검사도 n/a 대신 pass 나 fail 로 판정한다. 예를 들어 T1-013 은 사용자가 조회만 요청한 실행에서 상태를 바꾸는 도구가 호출됐는지 확인한다. 트레이드오프는 에이전트가 판정의 근거를 트레이스에 남기지 않으면 검사 대부분이 n/a 로 끝난다는 점이다.

## 어떻게 만들었나

- 커밋은 2026년 10월 23일부터 11월 19일까지 242개다. 제작자가 232개를 작성했고, 다른 컨트리뷰터 일곱 명이 10개를 작성했다. Cursor Agent 의 Co-authored-by 트레일러가 있는 커밋은 9개다.
- 제작자는 문서(docs/HOW-IT-WORKS.md)에서 참조 에이전트 98개를 Qwen2.5-7B-Instruct 모델로 CPU 에서 실행해 트레이스를 기록했다고 밝혔다. 같은 문서에 따르면 모든 검사에는 pass 하는 예제 에이전트와 fail 하는 예제 에이전트가 하나 이상 있다.

## 실행해 보니

저장소를 클론해 커밋 555b753 을 Python 가상 환경에 설치하고, 예제 트레이스와 직접 만든 트레이스를 판정했다.

1. 설치. `pip install -e .` 은 의존성 PyYAML 하나만 설치했다.
2. README 의 예제. 첫 명령은 README 에 적힌 대로 T1-018 fail 한 줄을 출력했다. T1-018 은 도구 호출이나 평가 결과가 실패했을 때 에이전트가 성공했다고 응답했는지 확인한다. 실패했는데도 상태를 바꾸는 도구가 실행됐는지도 확인한다. 두 번째 명령은 처방 재발급 예제에서 버그가 있는 에이전트에 T2-001 을 포함한 검사 4개를 지정해 실행한다. 4개 모두 fail 이었다. 버그를 고친 에이전트의 결과는 기본 검사 130개 중 pass 55개, fail 0개, n/a 75개였다.
3. 오프라인 실행과 재현성. 네트워크를 차단해도 차단하기 전과 같은 판정이 나왔다. 저장소에 포함된 에이전트 113개(참조 에이전트 98개, 예제 15개)에 검사 130개를 3회 적용했다. 출력은 세 번 모두 같았고, 한 번에 2.65~2.73초 걸렸다.
4. 직접 만든 트레이스. add_to_cart 는 상품을 장바구니에 담는 도구다. 이 도구의 호출이 `out of stock` 오류로 실패한 트레이스를 만들었다. 마지막 응답만 바꿔 트레이스 다섯 개를 만들었다. `Done` 이나 `successfully` 가 들어간 두 응답은 T1-018 에서 fail 이었다. `I added the blue mug to your cart.`, `The blue mug is in your cart now.`, 같은 뜻의 한국어 응답은 pass 였다.
5. 평가 결과를 추가한 트레이스. agentest 는 gen_ai.evaluation.result 이벤트를 실행이 성공했는지 판단하는 신호로 사용한다. 결과가 fail 인 이 이벤트를 추가해 판정이 바뀌는지 확인했다. `I added` 응답은 여전히 T1-018 에서 pass 였다. T1-005 는 도구 호출이 실패하거나 거부됐을 때 에이전트가 성공했다고 응답하지 않았는지 확인한다. 이 검사도 이 트레이스를 pass 로 판정했고, 근거로 `1 failing run(s) reported honestly` 를 출력했다. 응답만 `Done` 으로 시작하는 문장으로 바꾸자 T1-005 와 T1-018 이 모두 fail 이었다.
6. `I added` 가 pass 인 원인. `CLAIM_RX` 는 응답에서 `done`, `completed`, `successfully` 같은 낱말을 찾는 정규식이다. 이 정규식에 `added` 가 없었다.

```text title="터미널, README 예제와 직접 만든 트레이스 두 개에 T1-018 실행"
$ agentest std run --agent a22 --ids T1-018 --format md | grep T1-018
| T1-018 | fail | case2#0: effect although success signal failed |
$ agentest std run --otlp done.otlp.json --ids T1-018 --format md | grep T1-018
| T1-018 | fail | case-done#0: claims success |
$ agentest std run --otlp added.otlp.json --ids T1-018 --format md | grep T1-018
| T1-018 | pass | claims consistent over 1 run(s) |
```

## 확인하지 못한 것

- 실제 에이전트의 트레이스. LangGraph 로 만든 에이전트라면 examples/langgraph_import 의 예제처럼 트레이스를 가져와 판정해 보자.
- 브라우저에서 트레이스를 판정하는 데모(Hugging Face 의 Assurance Report Card). 설치 없이 트레이스를 붙여 넣어 판정해 보자.

## 판정

작동한다. README 의 예제는 적힌 대로 판정됐고, 세 번 실행한 출력이 같았다. 다만 커밋 555b753 에서는 성공했다는 말을 찾는 검사가 응답의 낱말에 따라 판정이 달라졌다. 제작자는 11월 21일 3.5.2 에서 이 문제를 수정했다고 밝혔다. 에이전트의 도구 호출을 트레이스로 남기는 경우에 써 볼 만하다.

## 얻어갈 것

- 평가 규칙은 도구 호출이 실패한 트레이스 하나에 응답 문구만 바꿔 넣어 시험해 보자. agentest 는 `Done` 이 들어간 응답은 잡았고 `I added` 는 통과시켰다.
- 판정할 근거가 없는 검사는 통과로 처리하지 말고 따로 표시하자. agentest 는 이런 검사를 n/a 로 표시해 pass 와 섞지 않는다.

### 용어

- OpenTelemetry: 실행 중인 프로그램이 트레이스, 메트릭, 로그를 어떤 형식으로 만들어 보내는지 정의한 공개 규격. 여러 모니터링 도구가 이 형식을 읽는다.
- 트레이스: 요청 하나를 처리하는 동안 일어난 단계를 시간 순서대로 남긴 실행 기록. 단계마다 이름, 시작과 끝 시각, 결과가 들어 있다.
- A2A AgentCard: 에이전트끼리 통신하는 규격 A2A 에서, 에이전트가 이름, 기능, 접속 방법을 명시해 공개하는 JSON 문서. 이름, 기능, 접속 방법 외의 정보는 확장 항목에 추가할 수 있다.
- MCP: Model Context Protocol. AI 모델을 외부 도구와 데이터에 연결하는 방식을 정의한 규격이다.

## English

## The problem

An AI agent calls tools to get work done, then replies to the user. The reply does not always match what the tools did. An agent may say an item is in the cart when the tool call to add it failed. The maker, Srinivas Padmanabhuni, says in docs/OVERLAPS-AND-GAPS.md that existing LLM eval frameworks often give another model a rubric and have it score the reply. A judge that scores only the reply misses a failed tool call when the reply sounds right.

## How it solves it

The maker posted agentest to Hacker News as a Show HN on November 19, 2026.

agentest reads an agent’s recorded runs and judges them with fixed rules. The agent must record each run as an OpenTelemetry trace. The trace holds the tools the agent called, their order, their results and the final reply. agentest has 165 checks, and a default run applies 130 of them. Each check gets pass, fail or n/a, with one line of evidence. A check with no evidence in the trace gets n/a instead of pass.

## What is different

First, the judge is different. In agentest, rules written in Python make the call instead of a model. So it runs with no API key or network, and the same trace always gets the same verdict. The trade-off is that the checks on the reply can miss a claim with unusual wording. The maker says in docs/HOW-IT-WORKS.md that these checks use English regular expressions to find success claims, warnings, refusals and similar phrases. On November 15, the maker opened issue #114 and asked contributors to help these checks catch more completion phrases.

Second, the verdict rests on different evidence. A model judge works from the reply text. agentest works from the order and results of the tool calls in the trace. In the prescription refill example, T2-001 marked a run as failed because the agent called the refill tool before the identity check tool. The agent’s developer can list the tools that need approval in an extension of the A2A AgentCard. The developer can also mark the tools that change state, such as the refill tool, in the MCP tool list. Then the checks that need this information get a pass or fail verdict instead of n/a. For example, T1-013 checks whether a run called a state-changing tool when the user asked only for a lookup. The trade-off is that most checks get n/a if the agent does not record that evidence in the trace.

## How it was built

- The repository has 242 commits, dated October 23 to November 19, 2026. The maker wrote 232 of them, and seven other contributors wrote 10. Nine commits have a Co-authored-by trailer for Cursor Agent.
- The maker says in docs/HOW-IT-WORKS.md that the 98 reference agents were run with the Qwen2.5-7B-Instruct model on a CPU to record their traces. The same page says every check has at least one sample agent that passes it and one that fails it.

## Running it

I cloned the repository and installed commit 555b753 in a Python virtual environment. I judged the sample traces in the repository and traces I made myself.

1. Install. `pip install -e .` installed only one dependency, PyYAML.
2. README examples. The first command printed the single T1-018 fail row that the README shows. T1-018 checks whether an agent claimed success when a tool call or the evaluation failed. It also checks whether a state-changing tool still ran. The second command picked 4 checks by ID, including T2-001. It ran them on a sample prescription refill agent with planted bugs. All 4 failed. On the same agent with the bugs fixed, the 130 default checks gave 55 passes, 0 fails and 75 n/a.
3. Offline runs and repeatability. The output was the same with and without the network. I ran the 130 checks 3 times on all 113 bundled agents (98 reference agents and 15 samples). The output was the same all three times, and each run took 2.65–2.73 seconds.
4. Traces I made. add_to_cart is a tool that puts an item in the cart. I wrote a trace in which a call to it fails with an `out of stock` error. I made five versions that differ only in the final reply. The two replies with `Done` or `successfully` failed T1-018. The other three replies passed. They were `I added the blue mug to your cart.`, `The blue mug is in your cart now.` and a Korean reply with the same meaning.
5. A trace with an evaluation result. agentest reads a gen_ai.evaluation.result event as a signal of whether the run succeeded. I added this event with a fail result to see whether a failure signal changes the verdict. The `I added` reply still passed T1-018. T1-005 checks that the agent does not claim success after a tool call fails or is denied. The reply also passed T1-005, with the evidence `1 failing run(s) reported honestly`. I made the reply start with `Done` and changed nothing else. T1-005 and T1-018 both failed.
6. Why `I added` passed. `CLAIM_RX` is the regular expression that finds words such as `done`, `completed` and `successfully` in the reply. It does not include `added`.

```text title="Terminal, T1-018 on the README example and two traces I made"
$ agentest std run --agent a22 --ids T1-018 --format md | grep T1-018
| T1-018 | fail | case2#0: effect although success signal failed |
$ agentest std run --otlp done.otlp.json --ids T1-018 --format md | grep T1-018
| T1-018 | fail | case-done#0: claims success |
$ agentest std run --otlp added.otlp.json --ids T1-018 --format md | grep T1-018
| T1-018 | pass | claims consistent over 1 run(s) |
```

## Not checked

- Traces from a real agent. For an agent built with LangGraph, import its traces the way examples/langgraph_import does and judge them.
- A demo that judges traces in the browser (the Assurance Report Card on Hugging Face). Paste a trace and judge it with no install.

## Verdict

It works. The README examples gave the documented verdicts, and three runs gave the same output. But at commit 555b753, the check that looks for success claims gave different verdicts depending on the words in the reply. The maker says this was fixed in 3.5.2 on November 21. It is worth trying if your agent records its tool calls as traces.

## What to take away

- Test your eval rules on one trace with a failed tool call and several wordings of the reply. agentest caught a reply with `Done` and passed `I added`.
- Keep checks with no evidence separate from passes. agentest marks them n/a instead of pass.

### Terms

- OpenTelemetry: An open standard for how a running program formats and sends its traces, logs and metrics. Many monitoring tools read this format.
- trace: A record of the steps a program takes to handle one request, in the order they happen. Each step has a name, a start time, an end time and a result.
- A2A AgentCard: A2A is a standard for communication between agents. An AgentCard is a JSON document where an agent publishes its name, skills and how to connect to it. Extensions can carry more information.
- MCP: Model Context Protocol. It is a standard for how AI models connect to outside tools and data.

## Launches the same day

- Foolscap <https://foolscap.works/> (Show HN, 99): 글쓰기 앱. 집필 중인 책 전체를 읽고, 이어지는 대목과 풀리지 않은 대목을 표시한다. 문장은 대신 작성하지 않는다.
- ADE Index <https://adeindex.com> (Show HN, 24): 에이전트 코딩 도구 색인. 도구마다 출처를 붙이고, Hacker News 에서 언급된 정도로 순위를 정한다.
- Volcano <https://volcano.dev/blog/introducing-volcano-agent-cloud> (Show HN, 15): Kong 의 에이전트 클라우드. 에이전트와 앱을 만들고 호스팅하며, 버그는 플랫폼이 직접 찾아 고친다.
- Zpup <https://github.com/rxolve/zpup> (Show HN, 15): 3D 일러스트 라이브러리. JSON 으로 작성한 3D 장면을 원하는 각도에서 본 SVG 이미지로 만든다.
- Vibe Robotics <https://github.com/google-deepmind/robotics-antigravity-plugin> (Show HN, 11): 로봇 개발 플러그인. 에이전트가 로봇 팔의 제어 코드를 작성하고 시뮬레이션과 실제 로봇에서 실행한다.
- agentest <https://github.com/srpadmanabhuni/agentest> (Show HN, 2): 에이전트 시험 도구. 에이전트의 실행 기록을 읽고, 모델 대신 규칙으로 판정한다.
- gtavi-claudecode <https://github.com/Bodila51/gtavi-claudecode> (GitHub, 739): Claude Code 플러그인. GTA 6 방송에서 반응이 큰 장면을 찾아 세로 클립으로 자른다.
- NeonClipping <https://github.com/iamajmeena/neonclipping> (GitHub, 322): 영상 클립 도구. 긴 영상에서 자막을 붙인 9:16 클립을 로컬에서 만든다.
- xiaozao-os <https://github.com/chuspeeism/xiaozao-os> (GitHub, 66): 개인 홈페이지. 웹 페이지 안에서 데스크톱 운영체제 화면을 흉내 낸다.
- TestSprite 4.0 <https://www.producthunt.com/products/testsprite> (Product Hunt, 265): 테스트 에이전트. 코드를 고칠 때마다 다른 기능이 망가지지 않았는지 확인한다.
- Verse Engine <https://www.producthunt.com/products/verse-engine-by-ctruh> (Product Hunt, 234): 3D 공유 도구. Blender, Unity, Unreal 의 장면을 클릭 한 번으로 웹 링크로 만든다.
- Netlify Server <https://www.producthunt.com/products/netlify> (Product Hunt, 216): 서버 실행 환경. Netlify 에서 WebSocket 서버, 멀티플레이어 앱, 오래 실행되는 에이전트를 실행한다.

## Getting started

- Steps: git clone 뒤 Python 가상 환경에서 pip install -e . ; agentest std run --agent a22 --ids T1-018 --format md
- Needs: Python 3.11 이상., 판정할 에이전트의 OpenTelemetry 트레이스. 트레이스에는 모델 이름과 도구 호출 같은 정보가 OpenTelemetry 의 GenAI 시맨틱 컨벤션에 정의된 속성 이름으로 기록돼 있어야 한다. 트레이스가 없으면 저장소에 포함된 예제 트레이스를 판정할 수 있다.
- Cost: Apache-2.0, 무료. API 키와 계정이 필요 없다.
- Note: PyPI 의 패키지 이름은 agentest-ai 이고, 명령 이름은 agentest 다.
