Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ai-cli-benchmark

БесплатноЗапускает вложенные скриптыНе проверен

Design, run, and review fair performance, token, and cost comparisons across GitHub Copilot CLI, Codex CLI, and direct model APIs. Use for AI CLI benchmark…

aktsmmот aktsmm★ 27 звёзд на GitHub

Об этом скилле

AI CLI Benchmark

When to Use

  • Copilot CLI、Codex CLI、直接 API の速度・token・費用を比較する。
  • prompt cache の read / write を区別し、cache-offを主張できるか確認する。
  • fresh process、temporary home、instruction/tool isolationを揃えた再現可能なbenchmarkを作る。

過去sessionの事後分析だけなら対象外。このskillは比較条件の設計、実行、証拠化を担当する。

Cache Boundaries

  • Copilot CLI / Codex CLIには、provider側model prompt cacheを無効化する公開optionがない。fresh process、一時home、ephemeral、nonceでもcache offと呼ばない。
  • COPILOT_CACHE_HOMEはMarketplace、自動更新packageなどのローカル一時データ用。COPILOT_MCP_TOOL_CACHEはローカルMCP serverのtool-list snapshot用。model prompt cacheではない。
  • OpenAI prompt cacheは手動消去できない。GPT-5.6以降をResponses APIから直接呼ぶ場合だけ、explicit-only modeでbreakpointを置かず、そのrequestのcache writeを避けられる。CLIへ推測適用しない。
  • nonceはuser prompt全体の一致を避ける補助であり、その前のhidden system / agent prefixのcache readを防がない。

Generation Limits

  • Separate model context/output ceilings, per-response caps, request/job deadlines, and authorized cumulative budgets. Check actual counted input and effective wire settings, including whether reasoning shares the output cap. Check each parent/child session's input/history plus output against its own context; aggregate accounting must still include internal, child, title, and retry requests.
  • Leave room for required tool/test/follow-up turns. Arithmetic fit is not evidence that the task can finish: use the first selected real task as the pilot, not an extra unrelated generation probe. Keep actual usage separate from conservative reservations; unknown usage is not zero.
  • On length/budget termination, preserve the original run and earliest refusal/finish reason. Report completion separately from independent quality; termination alone is not a quality failure. Reconcile existing debits and remaining work before a corrected cohort; do not retry unchanged limits, reset the cumulative ledger, or enlarge a separately authorized ceiling without approval. Record changed limits rather than pooling old/new cohorts.

Workflow

  1. Freeze the task

    • dataset、expected labels、prompt、schema、input order、model、reasoningを固定し、hashを取る。
    • accuracyと性能を同時に比較する場合、同じ合格条件を全providerへ適用する。
  2. Define measurement boundaries

    • one request、serial total、fresh-process end to endを区別する。実測した入力処理(prefill)・生成(decode)の速度、初回応答時間、仕事全体の時間を、単位と試行数つきで個別に示す。
    • API直呼びとCLI起動込み時間をmodel speedとして並べない。初回応答の始点・終点(送信から最初の非空API本文までなど)を明記し、API本文の到達とCLI画面の初回表示を区別する。
  3. Isolate each CLI

    • repo外のowned temp directory、fresh process、一時COPILOT_HOME / auth-only CODEX_HOMEを使う。
    • custom instructions、tools、MCP、session reuseは比較条件に必要なものだけ固定して残し、他は無効にする。secretを子processとlogへ渡さない。
  4. Observe cache; do not assume control

    • 必要ならprompt先頭へ一意nonceを入れ、nonce本体ではなくhashだけ保存する。
    • zero-cache-read gateは診断用。失敗はprovider cacheの観測であり、benchmark失敗として隠さない。
  5. Record raw categories

    • normal input、cache read、cache write、output、reasoningを別fieldで保存する。
    • provider schemaで包含・排他関係を確認するまでtoken区分を足さない。
  6. Repeat before claiming performance

    • 単発差をcacheの因果効果にしない。median / p95 / rangeとaccuracyを報告する。
  7. Validate the artifact

    python scripts/helper.py result.json `
      --require-cache-metadata `
      --report validation.json
    
    • Required shape: test_design.prompt_sha256, optional test_design.cache_observation (nonce_added_at_prompt_start, nonce_sha256), and providers[] with provider, elapsed_ms, passed, cases, usage (input_tokens, cached_input_tokens, cache_write_tokens, output_tokens, optional reasoning_tokens).
    • Add --require-zero-cache-read only for the diagnostic gate in step 4.

Reporting Rules

  • cache writeはcache hitではない。readと分け、該当modelの料金区分で費用を計算する。
  • uncached runではなく、観測どおりcache read 0 runまたはcache-observed runと書く。
  • CLI version、model、reasoning、prompt hash、nonce hash、fresh-process条件、測定境界、usage schemaを記載する。仕事全体の比較には、要求回数・出力量の差と独立採点の結果を添える。
  • cache read 0でも将来のwriteやhidden prefixの制御を保証しない。

Done Criteria

  • dataset/prompt/schema/model/reasoningが固定され、hashがある。
  • 全providerでfresh processと一時homeを使う。
  • cache read/writeを別fieldで保存する。
  • 測定境界とaccuracyを一緒に報告する。
  • 複数runなしの速度差へ因果を割り当てない。
  • benchmark JSON validatorがPASSする(shape/cache検査と実課題の完走証拠は別)。

References

Полный SKILL.md на GitHub

Установить ai-cli-benchmark в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSE.txtscripts/helper.pyscripts/requirements.txtscripts/test_helper.pyskill-license.json

FAQ

Что делает скилл ai-cli-benchmark?

Design, run, and review fair performance, token, and cost comparisons across GitHub Copilot CLI, Codex CLI, and direct model APIs. Use for AI CLI benchmark, Copilot vs Codex, generation-limit diagnosis, prompt-cache diagnosis, cache read/write analysis, fresh-process latency measurement, token-cost comparison, or when a benchmark must separate provider caching from local CLI caches.

Как установить скилл ai-cli-benchmark?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ai-cli-benchmark запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ai-cli-benchmark с