본문으로 건너뛰기
Skillpedia
에이전트280k · #128

agent-eval

하는 일

이 도구는 코드를 작성하는 여러 AI 프로그램을 비교합니다. 특정 작업에서 어느 프로그램이 가장 잘 작동하는지 테스트하며, 성공 여부, 비용, 소요 시간을 측정합니다.

사용하는 경우

  • ✓코드를 작성할 AI 프로그램을 고를 때.
  • ✓AI 프로그램을 바꾼 것이 성능을 개선했는지 확인할 때.
  • ✓반복되는 작업에서 여러 AI 프로그램의 성능을 비교할 때.

스킬 링크

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-eval/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-eval/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Claude Code와 Aider를 비교해서, 제 HTTP 클라이언트에 재시도 로직을 추가하는 작업을 어떻게 하는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

특별한 파일에 테스트할 작업을 정의합니다. 그다음 도구가 AI 프로그램을 그 작업에서 실행하고, 각 프로그램의 성공률, 비용, 시간 데이터를 모읍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Agent Eval Skill

A lightweight CLI tool for comparing coding agents head-to-head on reproducible tasks. Every "which coding agent is best?" comparison runs on vibes — this tool systematizes it.

When to Activate

  • Comparing coding agents (Claude Code, Aider, Codex, etc.) on your own codebase
  • Measuring agent performance before adopting a new tool or model
  • Running regression checks when an agent updates its model or tooling
  • Producing data-backed agent selection decisions for a team

Installation

Note: Install agent-eval from its repository after reviewing the source.

Core Concepts

YAML Task Definitions

Define tasks declaratively. Each task specifies what to do, which files to touch, and how to judge success:

name: add-retry-logic
description: Add exponential backoff retry to the HTTP client
repo: ./my-project
files:
  - src/http_client.py
prompt: |
  Add retry logic with exponential backoff to all HTTP requests.
  Max 3 retries. Initial delay 1s, max delay 30s.
judge:
  - type: pytest
    command: pytest tests/test_http_client.py -v
  - type: grep
    pattern: "exponential_backoff|retry"
    files: src/http_client.py
commit: "abc1234"  # pin to specific commit for reproducibility

Git Worktree Isolation

Each agent run gets its own git worktree — no Docker required. This provides reproducibility isolation so agents cannot interfere with each other or corrupt the base repo.

Metrics Collected

Metric What It Measures
Pass rate Did the agent produce code that passes the judge?
Cost API spend per task (when available)
Time Wall-clock seconds to completion
Consistency Pass rate across repeated runs (e.g., 3/3 = 100%)

Workflow

1. Define Tasks

Create a tasks/ directory with YAML files, one per task:

mkdir tasks
# Write task definitions (see template above)

2. Run Agents

Execute agents against your tasks:

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

Each run:

  1. Creates a fresh git worktree from the specified commit
  2. Hands the prompt to the agent
  3. Runs the judge criteria
  4. Records pass/fail, cost, and time

3. Compare Results

Generate a comparison report:

agent-eval report --format table
Task: add-retry-logic (3 runs each)
┌──────────────┬───────────┬────────┬────────┬─────────────┐
│ Agent        │ Pass Rate │ Cost   │ Time   │ Consistency │
├──────────────┼───────────┼────────┼────────┼─────────────┤
│ claude-code  │ 3/3       │ $0.12  │ 45s    │ 100%        │
│ aider        │ 2/3       │ $0.08  │ 38s    │  67%        │
└──────────────┴───────────┴────────┴────────┴─────────────┘

Judge Types

Code-Based (deterministic)

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

Pattern-Based

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

Model-Based (LLM-as-judge)

judge:
  - type: llm
    prompt: |
      Does this implementation correctly handle exponential backoff?
      Check for: max retries, increasing delays, jitter.

Best Practices

  • Start with 3-5 tasks that represent your real workload, not toy examples
  • Run at least 3 trials per agent to capture variance — agents are non-deterministic
  • Pin the commit in your task YAML so results are reproducible across days/weeks
  • Include at least one deterministic judge (tests, build) per task — LLM judges add noise
  • Track cost alongside pass rate — a 95% agent at 10x the cost may not be the right choice
  • Version your task definitions — they are test fixtures, treat them as code

Links

자주 묻는 질문

‘코딩 에이전트’란 무엇인가요?

컴퓨터 코드를 작성하거나 수정하도록 돕기 위해 만들어진 인공지능 프로그램입니다.

왜 Git ‘워크트리’를 쓰나요?

각 테스트가 격리된 환경에서 실행되므로, AI 프로그램들이 서로나 내 주 프로젝트를 방해하지 않습니다.

결과를 얼마나 믿을 수 있나요?

도구는 각 테스트를 여러 번 실행하고, 코드 테스트나 패턴 검색 같은 자동 확인으로 생성된 코드가 올바른지 확인합니다.

상세 정보

작성자의 원본 설명

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

repo: affaan-m/ECC

인기도

GitHub 스타
280k
순위
#128
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬