Communitygithub.com

agent-eval

코딩 에이전트(Claude Code, Aider, Codex 등)를 맞대결 비교하여 통과율, 비용, 시간, 일관성 지표를 측정합니다. 에이전트 선택이나 설정 변경 시 주관이 아닌 데이터 기반의 결정을 내리는 데 사용합니다.

agent-eval란 무엇인가요?

agent-eval은 서로 다른 코딩 에이전트(Claude Code, Aider, Codex 등)를 재현 가능한 태스크에서 객관적으로 비교할 수 있는 경량 CLI 도구입니다. 기존의 '어느 에이전트가 최고인가'에 대한 주관적 비교를 체계화하여, 통과율, 비용, 시간, 일관성이라는 네 가지 핵심 메트릭을 제공합니다. 사용자는 YAML 파일로 태스크(프롬프트, 대상 파일, 판정 기준)를 정의하고, agent-eval은 Git 워크트리 격리를 통해 각 실행을 독립적으로 수행한 후 결과를 표 형태로 비교 보고합니다. pytest나 grep 같은 결정적 판정기와 LLM-as-judge 같은 모델 기반 판정기를 모두 지원하며, 팀 차원의 데이터 기반 에이전트 선택이나 업데이트 후 회귀 테스트에 이상적입니다.

지원 대상✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/agent-eval

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Agent Eval Skill

코딩 에이전트를 재현 가능한 태스크에서 맞대결 비교할 수 있는 경량 CLI 도구입니다. 모든 "어떤 코딩 에이전트가 가장 좋은가?" 비교는 주관적인 느낌에 의존합니다—이 도구는 이를 체계화합니다.

활성화 시점

  • 자신의 코드베이스에서 코딩 에이전트(Claude Code, Aider, Codex 등)를 비교할 때
  • 새 도구나 모델을 도입하기 전 에이전트 성능을 측정할 때
  • 에이전트가 모델이나 도구를 업데이트했을 때 회귀 테스트를 실행할 때
  • 팀을 위해 데이터 기반의 에이전트 선택 결정을 내릴 때

설치

참고: 소스 코드를 검토한 후 해당 저장소에서 agent-eval을 설치하세요.

핵심 개념

YAML 태스크 정의

태스크를 선언적으로 정의합니다. 각 태스크는 수행할 작업, 수정할 파일, 성공 판단 방법을 명시합니다:

name: add-retry-logic
description: HTTP 클라이언트에 지수 백오프 재시도 로직 추가
repo: ./my-project
files:
  - src/http_client.py
prompt: |
  모든 HTTP 요청에 지수 백오프 재시도 로직을 추가하세요.
  최대 3회 재시도. 초기 지연 1초, 최대 지연 30초.
judge:
  - type: pytest
    command: pytest tests/test_http_client.py -v
  - type: grep
    pattern: "exponential_backoff|retry"
    files: src/http_client.py
commit: "abc1234"  # 재현 가능성을 위해 특정 커밋 고정

Git 워크트리 격리

각 에이전트 실행은 자체 git 워크트리를 사용합니다—Docker가 필요 없습니다. 이는 재현 가능한 격리를 제공하여 에이전트가 서로 간섭하거나 기본 저장소를 손상시키지 못하게 합니다.

수집되는 메트릭

메트릭측정 내용
통과율에이전트가 판정기를 통과하는 코드를 생성했는가?
비용태스크당 API 사용 비용 (사용 가능한 경우)
시간완료까지의 실제 소요 시간(초)
일관성반복 실행 간 통과율 (예: 3/3 = 100%)

워크플로우

1. 태스크 정의

태스크당 하나씩 YAML 파일을 tasks/ 디렉토리에 생성합니다:

mkdir tasks
# 태스크 정의 작성 (위 템플릿 참조)

2. 에이전트 실행

에이전트를 태스크에 대해 실행합니다:

agent-eval run --task tasks/add-retry-logic.yaml --agent claude-code --agent aider --runs 3

각 실행:

  1. 지정된 커밋에서 새 git 워크트리를 생성합니다.
  2. 프롬프트를 에이전트에 전달합니다.
  3. 판정 기준을 실행합니다.
  4. 통과/실패, 비용, 시간을 기록합니다.

3. 결과 비교

비교 보고서를 생성합니다:

agent-eval report --format table
Task: add-retry-logic (각 3회 실행)
┌──────────────┬───────────┬────────┬────────┬─────────────┐
│ Agent        │ 통과율    │ 비용   │ 시간   │ 일관성     │
├──────────────┼───────────┼────────┼────────┼─────────────┤
│ claude-code  │ 3/3       │ $0.12  │ 45초   │ 100%        │
│ aider        │ 2/3       │ $0.08  │ 38초   │  67%        │
└──────────────┴───────────┴────────┴────────┴─────────────┘

판정기 유형

코드 기반 (결정적)

judge:
  - type: pytest
    command: pytest tests/ -v
  - type: command
    command: npm run build

패턴 기반

judge:
  - type: grep
    pattern: "class.*Retry"
    files: src/**/*.py

모델 기반 (LLM-as-judge)

judge:
  - type: llm
    prompt: |
      이 구현이 지수 백오프를 올바르게 처리합니까?
      확인할 항목: 최대 재시도 횟수, 증가하는 지연, 지터.

모범 사례

  • 실제 워크로드를 대표하는 3-5개의 태스크로 시작하세요. 장난감 예제가 아닙니다.
  • 에이전트당 최소 3회 시도를 실행하여 변동성을 포착하세요—에이전트는 비결정적입니다.
  • 태스크 YAML에서 커밋을 고정하여 며칠/몇 주에 걸쳐 결과를 재현 가능하게 유지하세요.
  • 태스크당 최소 하나의 결정적 판정기(테스트, 빌드)를 포함하세요—LLM 판정기는 노이즈를 추가합니다.
  • 통과율과 함께 비용을 추적하세요—95% 통과율의 에이전트라도 비용이 10배라면 올바른 선택이 아닐 수 있습니다.
  • 태스크 정의에 버전을 관리하세요—이는 테스트 픽스처이므로 코드처럼 취급하세요.

링크

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

관련 스킬