跳到正文
DEV Community· AI Agents, Measured·· 5 小時前AI 評分35

egm@egm v0.1.1 插件未如預期降低審查的固定成本

"A plugin should cut the fixed cost" turned out to be wrong

AI 導讀

對 egm@egm v0.1.1 插件的測量顯示,即使審查者以子智能體形式運行,每位仍消耗約 13 wan tokens,固定成本未如預期下降。整次審查共消耗約 92.5 wan tokens,API 等值費用為 $1.83,耗時約 173 s。這次測試因權限不足而未能完整執行,結果只屬初步發現。

正文

AI Agents, Measured

In the previous measurement, a zero-context review run as a separate process cost about 15.9 wan tokens per reviewer (1 wan is a unit of ten thousand tokens; I keep the logged figures as they are). I had expected that in the real plugin form, where reviewers run as subagents inside one session, the fixed cost would be compressed. I measured it to check.

Setup

  • Installed the plugin (egm@egm v0.1.1) at user scope and ran the review command in a fresh session
  • Same subject as before: a brief of about 9 KB
  • Consumption taken from the modelUsage aggregate, subagents included
  • After measuring, I removed the plugin and the marketplace and restored the previous state

Results

  • Total: about 92.5 wan tokens (API-equivalent $1.83), about 173 s
  • Breakdown: 6 reviewers plus the parent's synthesis
  • About 8.5 times the drafting cost (about 10.9 wan). Roughly nine-tenths of drafting plus review sits on the review side
  • About 13 wan per reviewer — the same ballpark as the separate-process measurement (about 15.9 wan)

The expectation was wrong. Even as subagents, each reviewer reloads nearly the whole context.

Note: this run did not complete properly

In non-interactive (-p) mode, the reviewers had no permission to read the plugin's own files (persona definitions and document standards), so every one of them ended up "incomplete, no verdict". Their findings are provisional, based on general standards only. For regular use, the permission settings would need attention first.

Even so, the findings were good: 6 reviewers independently raised the same structural problem, a completion condition that could never be met, and the parent cross-checked it.

Caveats

  • One measurement, one subject (a single brief of about 9 KB).
  • The numbers above come from a run with missing permissions, so consumption in a fully completed run may differ.

出典 (Sources): x-learnings/2026-11-08-batch9.md (section "Addendum 2: measuring the plugin form")

來源:DEV Community · dev.to