Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jggomezApache-2.0In 1 marketplace
Records token use, API-equivalent cost and latency for each task, subagent and session in Claude Code. Needs the separate agent-meter CLI installed; its hooks run after every response and at session end.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Optional hooks that hand each finished task and session to the
agent-meterCLI.
agent-metrics is an optional convenience plugin for agent-meter:
token, API-equivalent cost and latency metrics per project, client, task and subagent. It only registers
two hooks that call the CLI. agent-meter setup can register the same hooks without the plugin. No other
plugin depends on it. Overview and privacy: docs/agent-metrics/README.md.
node on PATH.agent-meter CLI (Python >= 3.11, installed by uv). The plugin does nothing without it.Install the CLI:
uv tool install "git+https://github.com/jggomez/expert-ai-developer-skills#subdirectory=tools/agent-meter"
Install the plugin:
claude plugin marketplace add jggomez/expert-ai-developer-skills
claude plugin install agent-metrics@expert-ai-developer-skills
Run the setup wizard. It detects the enabled plugin (enabledPlugins in ~/.claude/settings.json)
and does not add user-level hooks, so events are not registered twice.
agent-meter setup --local # Option A: local only, no network calls
agent-meter setup --cloud --gcp-project <project> --mode billing # Option B: adds BigQuery
More install options (pipx, BigQuery extra, local clone): tools/agent-meter/README.md. Plugin updates and project scope: docs/claude-code-installation.md.
agent-meter doctor # check hooks, scheduler, prices
agent-meter last # summary of your last session
agent-meter tasks --last 5 # the last 5 tasks, with every subagent
| Skill | Purpose |
|---|---|
agent-metrics | Guides agent-meter setup (local vs cloud, billing vs sandbox), explains the metrics, fixes prices with agent-meter pricing, runs agent-meter doctor, writes DuckDB / BigQuery queries. |
| Event | Script | Behavior |
|---|---|---|
SessionEnd | hooks/agent-meter-hook.js | Runs agent-meter hook --host claude-code --event session-end with the payload on stdin. |
Stop | hooks/agent-meter-hook.js | Runs agent-meter hook --host claude-code --event task-end with the payload on stdin. |
agent-meter on PATH, then in ~/.local/bin.session_id, transcript_path, cwd, hook_event_name, reason, stop_hook_active).| Variable | Default | Effect |
|---|---|---|
AGENT_METER_HOOK_TIMEOUT_MS | 8000 | Wrapper timeout before it kills a hung CLI. Clamped to 100-9000 ms. |
| Symptom | Cause | Fix |
|---|---|---|
stderr shows agent-meter not installed: see <url> | CLI not on PATH or in ~/.local/bin. | Install it with uv tool install (above); run uv tool update-shell. |
stderr shows timed out | CLI ran longer than the wrapper timeout. | Run agent-meter doctor; raise AGENT_METER_HOOK_TIMEOUT_MS if needed. |
| No data after a task | Hooks or scheduler not set up. | Run agent-meter doctor, then agent-meter collect. |
A cost shows ≥ $0.00 | The model has no price. | agent-meter pricing unpriced prints the fix command. |
/plugin uninstall agent-metrics # removes the plugin hooks
agent-meter uninstall # removes the scheduler and user-level hooks; keeps the data
agent-meter uninstall --purge --yes # also deletes ~/.agent-meter/
uv tool uninstall agent-meter
context/.skills/agent-metrics/ is a copy of /skills/agent-metrics. After editing it, run
python3 scripts/sync_plugin_skills.py from the repo root.
Apache-2.0. See LICENSE.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub jggomez/expert-ai-developer-skills --plugin agent-metrics