Ami Survey

io.github.speedofred由 GitHub 帳號 speedofred 發布v1.2.0更新於 Oct 24, 2026

Measures the cost, tokens and duration of a completed agent workflow from its session log.

已驗證STDIO僅桌面開發者工具資料與分析

概覽

AI 產生的概覽

一個本機 MCP 用戶端,從執行階段工作階段日誌測量已完成代理工作流的成本、token 與耗時,並把結果提交到 AMI 調查。

可以做什麼
讀取執行階段自身的工作階段日誌(Claude Code 或 Codex),測量已完成工作流的 token 數、成本、速度與各階段耗時,而不依賴代理的估算。產生包含成熟度指數、效能支柱(品質、成本、速度、證據、可觀測性)以及標示資料暫定之處的發現報告。把該次執行提交到 AMI 調查,並依能否讀取日誌記為已測量或未測量。首次使用時自動註冊本機並在本機儲存權杖,也可使用既有權杖。
適用情境
當你需要為已完成的代理工作流給出具體的單位成本與耗時數字(例如每張工單或每封草擬回覆的成本),並願意把該次執行提交到 AMI 調查以便比較時使用。
執行需求
透過 uvx(uv)或 pipx 以 stdio 在本機執行;需要 Python 3.9 或更新版本,僅用標準函式庫。要取得已測量結果,需要會寫入可讀工作階段日誌的宿主(Claude Code 或 Codex);Copilot 與遠端連接器只能得到未測量結果。可選 AMI_API_TOKEN,否則會註冊權杖並儲存到 ~/.ami-survey/token。需要連線到調查端點的網路。
安裝前請注意
提交內容會離開本機:token 數、耗時、模型名稱、宣告的階段名稱與評分會傳送到調查服務;README 稱不會傳送檔案、提示詞與 shell 指令。執行結果會提交到固定的外部位址。可選的 AMI_API_TOKEN 是儲存在環境變數或磁碟上的機密。已測量結果依賴讀取你的執行階段工作階段日誌。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ami Survey,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

AMI survey client

Measures what a completed agent workflow cost to run, by reading the runtime's own session log, and submits the result to the AMI survey at survey.agentbenchmark.dev.

The cost of a single API call is easy to obtain. The cost of one finished piece of work is not: one triaged ticket, one screened CV, one drafted reply, across every call, retry and tool round-trip the agent made getting there. This measures that figure.

Every number is read from the runtime's records rather than reported by the agent. An agent asked how many tokens it has just used will estimate, and will present the estimate with confidence.

What comes back

A real run of six support tickets, triaged and answered by Claude Opus 5 in Claude Code:

Maturity Index      85.0  Strong          (observability 40%, evidence 30%, quality 30%)Performance         78.13 Strong          confidence Very High
  quality           80.0   graded Good on ami-quality-v2  cost              72.73  $0.123226 per ticket   ($0.739355 for the run)  speed             84.47  20.90s per ticket  evidence          70.0   measured, on a self-issued token  observability    100.0
findings  weakness  Cost is the weakest pillar at 72.73; speed is strongest at 84.47.            $0.123226 per unit against a $0.01 reference. A cheaper model, or            fewer calls, moves this; check calls[] for where the tokens went.
  note      Cost and speed were scored against a provisional reference, which is            a placeholder rather than a measurement. Do not quote them as settled            yet. The Maturity Index does not use the reference and is unaffected.

$0.12 per ticket, 21 seconds per ticket. That is the figure this exists to produce, and it is the one most teams cannot currently state about their own work.

The findings record where the scorecard's own numbers are soft. A cost reference that is still a placeholder is reported as a placeholder rather than folded into the score.

Install

There are two routes. What separates them, and what separates the hosts below, is whether anything can read your runtime's logs. That determines whether the result is recorded as measured or unmeasured.

Install the client

One block of configuration, then restart the agent.

Claude Code, in ~/.claude.json, or through the Developer settings in Claude Desktop:

json
{ "mcpServers": { "ami-survey": { "command": "uvx", "args": ["ami-survey"] } } }

Runs are measured: the client reads Claude Code's own session log, so the token counts and the cost come from the runtime rather than from the agent.

Codex (measured)

In ~/.codex/config.toml. Codex uses TOML here, not JSON:

toml
[mcp_servers.ami-survey]command = "uvx"args = ["ami-survey"]

The client reads Codex's rollout log. This also covers a local or self-hosted model driven through Codex, because the log is written either way.

Copilot (not measured)

In .vscode/mcp.json, or your user profile through the MCP: Open User Configuration command. The key is servers here, not mcpServers:

json
{ "servers": { "ami-survey": { "command": "uvx", "args": ["ami-survey"] } } }

The tools work and the survey submits, but Copilot writes no session log the client can read. The run carries the workflow, the grade and the stage timings without token counts or cost, and is recorded as unmeasured.

Then, once the agent finishes a piece of work, ask it:

Take the AMI survey regarding the ticket triage you just did

There is nothing to clone and nothing to keep updated. No token needs to be supplied: the first call that requires one registers the machine and stores the token at ~/.ami-survey/token.

uvx is part of uv, the tool the MCP documentation uses for Python servers. If uv is not installed, GETTING-STARTED.md gives a pipx form and a route that requires neither.

If you already hold a token, set it as AMI_API_TOKEN in that block's env and it will be used instead of registering a new one.

Or use the remote connector, with nothing installed

In claude.ai, open Settings, then Connectors, then Add custom connector, and supply:

https://survey.agentbenchmark.dev/mcp

Nothing is installed and no token is required. These runs are recorded as unmeasured and are never compared against measured ones: a remote server cannot read your runtime's logs, so token counts and cost are absent rather than estimated.

Licence

MIT. Use it, modify it, redistribute it, include it in your own work.

The licence covers this client only. It grants no rights in the survey service the client submits to, or in the data that service collects.

Full terms in LICENSE.

What leaves your computer

Token counts, timings, model names, the stage names the workflow declared, and the grade. Not your files, not your prompts, not your shell commands. GETTING-STARTED.md sets this out in full.

Submissions go to survey.agentbenchmark.dev and nowhere else. That destination is a constant in the source rather than a setting, so a stale environment variable cannot redirect a submission onto your own disk. That is the one failure which would make a run appear successful while collecting nothing.

Requirements

Python 3.9 or newer. No dependencies; the standard library only.

Further reading

  • GETTING-STARTED.md assumes no prior setup, covers macOS, Linux and Windows, and explains what to do when the tools do not appear.
  • COMMANDS.md documents the clone-and-run route, which benchmarks one workflow across several models on your own API key. It is not required in order to take part.
  • MAKE-IT-MEASURABLE.md explains how to structure a workflow so that there is something worth measuring.

來源:README.md,提交 0b6047a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分