Ami Survey

io.github.speedofredPublished by GitHub account speedofredv1.2.0Updated Oct 24, 2026

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

VerifiedSTDIODesktop onlyDeveloper ToolsData & Analytics

Overview

AI-generated overview

A local MCP client that measures the cost, tokens and duration of a completed agent workflow from the runtime's session log and submits the result to the AMI (M

What you can do
Reads the runtime's own session log (Claude Code or Codex) to measure a finished workflow's token counts, cost, speed and stage timings, rather than relying on the agent's estimates. Produces a scorecard with a Maturity Index, performance pillars (quality, cost, speed, evidence, observability) and findings noting where numbers are provisional. Submits the run to the AMI survey and records it as measured or unmeasured depending on whether logs could be read. Registers the machine and stores a token locally on first use if none is supplied.
When to use it
Use it when you want a concrete per-unit cost and duration figure for a completed agent workflow, such as cost per triaged ticket or per drafted reply, and are willing to submit that run to the AMI survey for comparison.
Requirements
Runs locally over stdio via uvx (uv) or pipx; Python 3.9 or newer, standard library only. A supported host that writes a readable session log (Claude Code or Codex) for measured runs; Copilot and the remote connector yield unmeasured runs. Optional AMI_API_TOKEN; otherwise a token is registered and stored at ~/.ami-survey/token. Network access to the survey endpoint.
Before you install
Submissions leave your computer: token counts, timings, model names, declared stage names and the grade are sent to the survey service; the README states files, prompts and shell commands are not. Runs are submitted to a fixed external destination. The optional AMI_API_TOKEN is a secret stored in the environment or on disk. Measured runs depend on reading your runtime's session logs.

Installation

In SourceWeft

  1. Open Ami Survey in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

Source: README.md at commit 0b6047a

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.2.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts