pwn-ai-agent-metrics

pwn-ai-agent-metrics is a skill for Claude Code from 0dayInc/pwn. It costs 21 tokens per session (646 once invoked), scanned A, original, MIT.

A telemetry layer that records how tool calls perform, including success, duration and the latest error, and saves the data locally. Telemetry is operational data about what a system did and how it performed.

In plain words
What is it for?
Use it to record tool outcomes, review effectiveness summaries and provide model prompts with performance data separated by AI engine.
Why use it?
It shows which tools tend to work on the current computer, helping the agent choose tools based on its own past results.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to record tool outcomes, review effectiveness summaries and provide model prompts with performance data separated by AI engine.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0dayinc/pwn/metrics
View source ↗ 0dayInc/pwn
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 0dayInc/pwn --skill metrics
Clone the repo
git clone --depth 1 https://github.com/0dayInc/pwn

Made for: Claude Code.

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 pwn-ai-agent-metrics

README.md
[![agentmods](https://agentmods.dev/badge/skills/0dayinc/pwn/metrics/github.svg)](https://agentmods.dev/skills/0dayinc/pwn/metrics)
Your own site
<a href="https://agentmods.dev/skills/0dayinc/pwn/metrics"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/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 pwn-ai-agent-metrics

Your own site · 80×15
<a href="https://agentmods.dev/skills/0dayinc/pwn/metrics"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00021 $0.00646
Opus 5.5 $0.00008 $0.00258
Sonnet 5.5 $0.00004 $0.00129
Haiku 4.5 $0.00002 $0.00065

Measured 2mo ago against content hash f7e1d36c8918, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pwn-ai-agent-metrics scanned grade A with 0 findings 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 2mo ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

etc/default_skills/pwn/ai/agent/metrics/SKILL.md · 82 lines

How it starts

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

PWN::AI::Agent::Metrics

PWN::AI::Agent::Metrics is the telemetry layer of the pwn-ai learning loop. Every tool dispatch performed by PWN::AI::Agent::Loop is recorded here (name, success, duration, last error) and persisted to ~/.pwn/metrics.json. PromptBuilder re-injects a compact effectiveness summary into the system prompt on every turn, so the model gains awareness of which tools historically succeed vs. fail on THIS host and can adapt its tool selection accordingly. This is one half of the closed feedback loop that lets pwn-ai continuously make itself smarter (the other half is PWN::AI::Agent::Learning). PER-ENGINE SEGMENTATION ----------------------- A local Ollama model and a frontier model do NOT have the same per-tool success rate — blending them mis-advises the local model about itself. Every record now also increments an :engines[] sub-bucket; summary/to_context accept engine: to surface only that engine's telemetry so the TOOL EFFECTIVENESS block becomes a genuine per-engine learned policy.

When to use

Call PWN::AI::Agent::Metrics from pwn_eval when the task needs this module. Do not reimplement it in shell.

Methodologies

Generated from pwn/ai/agent/metrics.rb. Prefer the public class methods below. Class methods take (opts = {}) and read opts.

How to call

PWN::AI::Agent::Metrics.help
PWN::AI::Agent::Metrics.load(opts)

Public methods

  • load
  • save
  • record
  • append_jsonl
  • summary
  • snapshot
  • record_tokens
  • usage
  • routing
  • to_context
  • proxy_trust
  • ucb
  • thompson
  • advantage
  • prm_advantage
  • prm_n
  • record_step_reward
  • record_judge
  • judge_confidence
  • judge_rate
  • effective_rate
  • changepoints
  • record_calibration
  • calibration
  • calibration_green
  • scale_prediction
  • record_attempt
  • esr
  • asr
  • snapshot_rates
  • previous_rates
  • scoreboard
  • health_line
  • reset
  • authors
  • help
  • calibration_green?

Source

pwn/ai/agent/metrics.rb

Read the full file on GitHub · 82 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. 2mo ago Changed · +5 lines f7e1d36c8918
  2. 2mo ago Changed · +3 lines 677c2ccbff6e
  3. 2mo ago Changed · +1 lines c0f85257c278
  4. 2mo ago Changed · +1 lines 4f6b88eb3da6
  5. 3mo ago First seen · 72 lines · 21 tokens per session scan A fb8183cce355

Subscribe to this mod's changes

pwn-ai-agent-metrics is a skill published in the GitHub repository 0dayInc/pwn (102 stars, last pushed 3d ago), licensed MIT. It adds 21 tokens to every session and 646 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

pwn-ai-agent-metrics compared with skills from other repositories

pwn-ai-agent-metrics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pwn-ai-agent-metrics0dayInc/pwnSkill1023d agoMITA21Claude Code
osmedeus-expertj3ssie/osmedeusSkill6.7k5d agoMITA113Claude Code, Codex
performing-jwt-none-algorithm-attackxalgorix/xalgorixSkill1.5ktodayApache-2.0A34Claude Code, Codex
performing-ai-assisted-vulnerability-discoveryxalgorix/xalgorixSkill1.5ktodayApache-2.0A91Claude Code, Codex
analyzing-linux-elf-malwaremukul975/Anthropic-Cybersecurity-SkillsSkill37k3mo agoApache-2.0B82Claude Code
performing-zero-day-vulnerability-discoveryxalgorix/xalgorixSkill1.5ktodayApache-2.0B36Claude Code, Codex
supabasePentesterFlow/agentSkill1.5k3mo agoApache-2.0A120Claude Code