agent-metrics

agent-metrics is a skill for Claude Code, Codex from jggomez/expert-ai-developer-skills. It costs 111 tokens per session (3,210 once invoked), scanned B, original, Apache-2.0.

Use when the user wants to install, set up, check or remove agent-meter (token, API-equivalent cost and latency metrics for Claude Code and Antigravity per project, client, task and subagent), asks "how much did this task / project / client cost", "why is my agent slow or expensive", wants a local report or a BigQuery…

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions subagents; positional $N argument.

Install with agentmods
npx agentmods add skills/jggomez/expert-ai-developer-skills/agent-metrics
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jggomez/expert-ai-developer-skills --skill agent-metrics
Clone the repo
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-metrics

README.md
[![agentmods](https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/agent-metrics/github.svg)](https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/agent-metrics)
Your own site
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/agent-metrics"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/agent-metrics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-metrics

Your own site · 80×15
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/agent-metrics"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/agent-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,210 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.03210
Opus 5.5 $0.00044 $0.01284
Sonnet 5.5 $0.00022 $0.00642
Haiku 4.5 $0.00011 $0.00321

Measured today against content hash 479f22f6d65f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

agent-metrics scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Editing `~/.claude/settings.json`, `~/.gemini/config/hooks.json` or `~/.gemini/settings.json` by hand instead of letting `agent-meter setup` / `agent-meter uninstall` do it (the latter file belongs to Gemini CLI and is
plugins/antigravity/agent-metrics/skills/agent-metrics/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Coding Metrics Skill (agent-metrics)

Overview

agent-meter is an optional, standalone CLI that reads the transcripts Claude Code and Antigravity (CLI, IDE and app) already write to disk and turns them into per-project, per-client, per-task and per-subagent metrics: tokens by type, API-equivalent cost (≈), cache hit ratio, task latency P50/P95/P99, active time vs wall-clock, parallelism, retries and tool-call counts.

  • Option A — Local (default): a DuckDB file at ~/.agent-meter/meter.duckdb, a summary after each task or session, and an offline HTML report. No network, no cloud account.
  • Option B — Cloud (opt-in, on top of A): a BigQuery replica (dataset agent_metrics) loaded with free-tier load jobs, plus a Looker Studio dashboard. The local store stays the source of truth.

It only stores numbers and metadata: never prompts, assistant text, code, tool inputs/outputs or file paths. Every cost is API-equivalent: it is not what a subscription plan bills.

This skill guides the user through installing and configuring the CLI, reading its output and querying the data. It never edits host settings files by hand: agent-meter setup does that with consent, a backup and a reversible agent-meter uninstall.

When to Use

Trigger Scenarios

  • The user asks to install or configure agent-meter, or to "track how much my agents cost".
  • The user asks what a task, session, project or client cost, or why a task was slow or expensive.
  • The user wants a report (local HTML) or a cloud dashboard (BigQuery + Looker Studio).
  • agent-meter doctor or a summary reports unpriced models, a stale scheduler, missing hooks or a cloud backlog.
  • The user wants an ad-hoc question answered from the metrics (e.g. "cost per subagent type this month").

When NOT to Use

  • Billing disputes with a provider: agent-meter shows API-equivalent cost, not invoices.
  • Reading prompt or code content: agent-meter never stores it; do not try to recover it from transcripts.
  • Users who did not ask for metrics: agent-meter is opt-in. Never install it or register hooks unprompted.

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 165 lines · 111 tokens per session scan B 479f22f6d65f

Subscribe to this mod's changes

agent-metrics is a skill published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 111 tokens to every session and 3,210 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

agent-metrics compared with skills from other repositories

agent-metrics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-metricsjggomez/expert-ai-developer-skillsSkill30yesterdayApache-2.0B111Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.0kyesterdayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill5032d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill252yesterdayMITA106Claude Code