agent-metrics
Skill by jggomez
Guides the install, setup and use of agent-meter, a CLI that reports token, API-equivalent cost and latency metrics for Claude Code and Antigravity. Built for developers who want to see what projects, clients, tasks and subagents cost.
Install agent-metrics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills /tmp/expert-ai-developer-skills && mkdir -p ~/.claude/skills && cp -r /tmp/expert-ai-developer-skills/skills/agent-metrics ~/.claude/skills/agent-metricsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills /tmp/expert-ai-developer-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/expert-ai-developer-skills/skills/agent-metrics ~/.gemini/antigravity-cli/skills/agent-metricsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
agent-metrics is a skill that helps an assistant install, configure and use agent-meter, an optional standalone CLI. agent-meter reads the transcripts that Claude Code and Antigravity already write to disk. It turns them into metrics per project, client, task and subagent, including tokens by type, API-equivalent cost, cache hit ratio, task latency, active time, parallelism, retries and tool-call counts.
By default, agent-meter stores data in a local DuckDB file and can produce an offline HTML report, with no network calls or cloud account. Users can opt in to a BigQuery replica with a Looker Studio dashboard. The skill also covers health checks, reading the output, fixing unpriced models and running ad-hoc queries. agent-meter stores only numbers and metadata, never prompts, code or file paths. It suits developers who want to know what their AI coding agent work costs.
Written from the project's SKILL.md and checked against it.
What it can do
- Install and set upGuides installation and runs the setup wizard for a local or opt-in cloud configuration.
- Check healthRuns doctor checks on config, hooks, store, pricing, untracked history and scheduler.
- Interpret metricsExplains last session summaries, per-task rollups and the offline HTML report.
- Keep prices correctLists unpriced models and adds, aliases or validates model prices in USD per million tokens.
- Run ad-hoc queriesQueries the metrics with DuckDB locally or with BigQuery views in the cloud.
- Remove cleanlyUninstalls hooks and the scheduler, restores settings and can purge stored data.
What you need
- Python 3.11 or later
- uv or pipx to install the CLI
- Claude Code or Antigravity with existing transcripts
- Google Cloud project, gcloud and billing or BigQuery sandbox for the cloud option
Try asking
- Set up agent-meter locally for Claude Code and Antigravity.
- How much did the last plan execution cost, and which subagent was most expensive?
- Query the cost per client for last month from DuckDB.
Good to know
- Costs are API-equivalent and are not what a subscription plan bills.
- A budget alert notifies but does not cap spending.
- BigQuery sandbox tables expire after 60 days, so the wizard schedules a weekly full reload.
- agent-meter is opt-in and is not installed or hooked without the user asking.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/agent-metrics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to agent-metrics
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
agent-metrics: common questions
Does agent-meter store my prompts or code?
No. It stores only numbers and metadata, never prompts, assistant text, code, tool inputs or outputs, or file paths.
Are the cost figures my real bill?
No. Every cost is API-equivalent and is not what a subscription plan bills.
Does it need a cloud account?
No. The local option makes zero network calls and needs no cloud account. The BigQuery option is opt-in.
How do I install agent-metrics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is agent-metrics free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is agent-metrics safe to use?
It scores 58 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to agent-metrics?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
