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.
npx skills add 0dayInc/pwn --skill metricsgit clone --depth 1 https://github.com/0dayInc/pwnWrote 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.
[](https://agentmods.dev/skills/0dayinc/pwn/metrics)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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
loadsaverecordappend_jsonlsummarysnapshotrecord_tokensusageroutingto_contextproxy_trustucbthompsonadvantageprm_advantageprm_nrecord_step_rewardrecord_judgejudge_confidencejudge_rateeffective_ratechangepointsrecord_calibrationcalibrationcalibration_greenscale_predictionrecord_attemptesrasrsnapshot_ratesprevious_ratesscoreboardhealth_lineresetauthorshelpcalibration_green?
Source
pwn/ai/agent/metrics.rb
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.
- 2mo ago Changed · +5 lines f7e1d36c8918
- 2mo ago Changed · +3 lines 677c2ccbff6e
- 2mo ago Changed · +1 lines c0f85257c278
- 2mo ago Changed · +1 lines 4f6b88eb3da6
- 3mo ago First seen · 72 lines · 21 tokens per session scan A fb8183cce355
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.
pwn-ai-agent-metrics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pwn-ai-agent-metrics0dayInc/pwn | Skill | 102 | 3d ago | MIT | A | 21 | Claude Code |
| osmedeus-expertj3ssie/osmedeus | Skill | 6.7k | 5d ago | MIT | A | 113 | Claude Code, Codex |
| performing-jwt-none-algorithm-attackxalgorix/xalgorix | Skill | 1.5k | today | Apache-2.0 | A | 34 | Claude Code, Codex |
| performing-ai-assisted-vulnerability-discoveryxalgorix/xalgorix | Skill | 1.5k | today | Apache-2.0 | A | 91 | Claude Code, Codex |
| analyzing-linux-elf-malwaremukul975/Anthropic-Cybersecurity-Skills | Skill | 37k | 3mo ago | Apache-2.0 | B | 82 | Claude Code |
| performing-zero-day-vulnerability-discoveryxalgorix/xalgorix | Skill | 1.5k | today | Apache-2.0 | B | 36 | Claude Code, Codex |
| supabasePentesterFlow/agent | Skill | 1.5k | 3mo ago | Apache-2.0 | A | 120 | Claude Code |