Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add karanb192/claude-code-hooks/plugin install pr-provenance-stampWrote 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/karanb192/claude-code-hooks/provenance)<a href="https://agentmods.dev/skills/karanb192/claude-code-hooks/provenance"><img src="https://agentmods.dev/badge/skills/karanb192/claude-code-hooks/provenance/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/karanb192/claude-code-hooks/provenance"><img src="https://agentmods.dev/badge/skills/karanb192/claude-code-hooks/provenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00029 | $0.00235 |
| Opus 5.5 | $0.00012 | $0.00094 |
| Sonnet 5.5 | $0.00006 | $0.00047 |
| Haiku 4.5 | $0.00003 | $0.00023 |
Grade B, and why
provenance 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 16d 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.
Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
and do not re-run any commands. What it actually says
Provenance receipt
!node "${CLAUDE_SKILL_DIR}/../../pr-provenance-stamp.js" --render 2>/dev/null || node "${CLAUDE_PLUGIN_ROOT}/pr-provenance-stamp.js" --render
The block above is the provenance receipt exactly as it would be stamped into a PR
body when you run gh pr create, built from the most recent session ledger the
pr-provenance-stamp hook has been recording (tool calls, test/typecheck commands
with their results, and the agent-vs-human authored-line split). Prompt and spend
figures come from the transcript at PR-create time, so they may be absent in this
preview.
Briefly summarize the receipt for the user: how many tests ran and whether they are green, and the agent-authored line count or percentage. Keep it to a sentence or two and do not re-run any commands.
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.
- 16d ago Changed 83050c060fc7
- 3mo ago First seen · 21 lines · 29 tokens per session scan B f87287adb1a1
provenance is a skill published in the GitHub repository karanb192/claude-code-hooks (591 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 235 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
provenance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| provenancekaranb192/claude-code-hooks | Skill | 591 | 2d ago | MIT | B | 29 | Claude Code |
| ai-session-searchahundt/ai-session-search | Skill | 82 | 2d ago | Apache-2.0 | B | 129 | Claude Code |
| analyze-codebaseSkeneTechnologies/skene | Skill | 129 | 3mo ago | MIT | A | 50 | Claude Code, Codex |
| build-implementationSkeneTechnologies/skene | Skill | 129 | 3mo ago | MIT | A | 42 | Claude Code, Codex |
| deploy-telemetrySkeneTechnologies/skene | Skill | 129 | 3mo ago | MIT | A | 47 | Claude Code, Codex |
| cli2skill2233admin/cli2skill | Skill | 10 | 4d ago | MIT | B | 46 | Claude Code, Codex |
| plan-growth-loopSkeneTechnologies/skene | Skill | 129 | 3mo ago | MIT | A | 45 | Claude Code, Codex |