Skip to content
cccskills
FreePublished on GitHub

agent-eval

コーディングエージェント(Claude Code、Aider、Codexなど)のカスタムタスクによる直接比較。合格率、コスト、時間、一貫性メトリクスを測定

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md5.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

エージェント評価スキル

コーディングエージェントを再現可能なタスクで直接比較するための軽量CLIツール。「どのコーディングエージェントが最適か?」という比較はすべて感覚に頼りがちですが、このツールはそれを体系化します。

起動条件

  • コーディングエージェント(Claude Code、Aider、Codexなど)を自分のコードベースで比較する場合
  • 新しいツールやモデルを導入する前にエージェントのパフォーマンスを測定する場合
  • エージェントのモデルやツールが更新された際のリグレッションチェックを実行する場合
  • チームのためにデータに基づいたエージェント選定を行う場合

インストール

注意: agent-evalはソースを確認した上で、リポジトリからインストールしてください。

コアコンセプト

YAMLタスク定義

タスクを宣言的に定義します。各タスクでは、何を行うか、どのファイルに触れるか、どのように成功を判定するかを指定します:

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ワークツリー分離

各エージェント実行は独自のgitワークツリーで実行されます — Dockerは不要です。これにより再現性の分離が保証され、エージェント同士が干渉したりベースリポジトリを破損したりすることがありません。

収集メトリクス

メトリクス測定内容
合格率エージェントが生成したコードはジャッジに合格したか?
コストタスクごとのAPI費用(取得可能な場合)
時間完了までの実時間(秒)
一貫性繰り返し実行での合格率(例:3/3 = 100%)

ワークフロー

1. タスクの定義

tasks/ディレクトリにYAMLファイルを作成します(タスクごとに1ファイル):

mkdir tasks
# Write task definitions (see template above)

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 runs each)
┌──────────────┬───────────┬────────┬────────┬─────────────┐
│ Agent        │ Pass Rate │ Cost   │ Time   │ Consistency │
├──────────────┼───────────┼────────┼────────┼─────────────┤
│ claude-code  │ 3/3       │ $0.12  │ 45s    │ 100%        │
│ aider        │ 2/3       │ $0.08  │ 38s    │  67%        │
└──────────────┴───────────┴────────┴────────┴─────────────┘

ジャッジタイプ

コードベース(決定論的)

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

パターンベース

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

モデルベース(LLMによるジャッジ)

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

ベストプラクティス

  • 実際のワークロードを代表する3〜5個のタスクから始める(トイサンプルではなく)
  • エージェントごとに少なくとも3回の試行を実施してばらつきを把握する — エージェントは非決定的
  • タスクYAMLでコミットを固定し、日や週をまたいで結果を再現可能にする
  • タスクごとに少なくとも1つの決定論的ジャッジ(テスト、ビルド)を含める — LLMジャッジはノイズを加える
  • 合格率とともにコストを追跡する — 10倍のコストで95%のエージェントが最適とは限らない
  • タスク定義をバージョン管理する — テストフィクスチャと同様にコードとして扱う

リンク

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

AIエージェントのアクションスペース、ツール定義、オブザベーションフォーマットを設計・最適化し、タスク完了率を向上させる

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

評価ファーストの実行、分解、コスト考慮型モデルルーティングによるエージェンティックエンジニアとしての運用

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

AIエージェントが実装出力の大部分を生成するチームのためのエンジニアリング運用モデル

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

AI支援開発のためのリグレッションテスト戦略。データベース依存なしのサンドボックスモードAPIテスト、自動バグチェックワークフロー、同一モデルがコードの作成とレビューを行う際のAIの盲点を検出するパターン。

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

AndroidおよびKotlin Multiplatformプロジェクトのためのクリーンアーキテクチャパターン — モジュール構成、依存関係ルール、UseCase、Repository、データレイヤーパターン

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

REST APIデザインパターン(リソース命名、ステータスコード、ページネーション、フィルタリング、エラーレスポンス、バージョニング、レート制限を含む本番API向け)

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

See all skills by hage-oyaji

Report a problem with this skill