Borrowing it
Nothing to install: this file belongs to gotgenes/pi-anthropic-auth. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/gotgenes/pi-anthropic-auth/main/.pi/skills/pi-cli-repro/SKILL.mdgit clone --depth 1 https://github.com/gotgenes/pi-anthropic-authWrote 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/gotgenes/pi-anthropic-auth/pi-cli-repro)<a href="https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/pi-cli-repro"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/pi-cli-repro/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/gotgenes/pi-anthropic-auth/pi-cli-repro"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/pi-cli-repro.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.00048 | $0.00812 |
| Opus 5.5 | $0.00019 | $0.00325 |
| Sonnet 5.5 | $0.00010 | $0.00162 |
| Haiku 4.5 | $0.00005 | $0.00081 |
Grade A, and why
pi-cli-repro 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 29d 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 — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pi CLI Repro
Use When
- You need to reproduce a bug through the real
piexecutable. - Extension logic must be validated in the live CLI path rather than only unit tests.
- Anthropic OAuth behavior differs between tests and the installed CLI.
- You need a short feedback loop for prompt shaping or request-shaping changes.
Core Workflow
1. Reproduce with explicit extension loading
Use the live CLI with this extension file loaded directly:
pi \
--model anthropic/claude-haiku-4-5 \
--no-session \
--tools read,grep,find,ls \
-e /Users/chris/development/pi/pi-anthropic-auth/src/index.ts \
-p "How many lines are in @AGENTS.md ?"
Why this shape:
--no-sessionavoids session carryover noise--tools read,grep,find,lskeeps repros narrow and read-only-e .../src/index.tsguarantees the local extension is actually loaded-pgives a fast non-interactive cycleanthropic/claude-haiku-4-5is the preferred fast repro model unless you are chasing a model-specific issue
An extension slash command runs headlessly too: pi -ne -e <path>/src/index.ts -p "/anthropic-auth:status" prints whatever the handler sends to console.log (Refs #80).
2. Check version alignment first
Before trusting a repro, confirm the installed CLI version:
pi --version
If the live CLI version does not match the Pi libraries this repo targets, treat that as a possible source of mismatch.
Useful Experiments
Compare default prompt vs minimal custom prompt
If Anthropic OAuth fails, test whether the default Pi prompt is the trigger:
PI_ANTHROPIC_AUTH_DEBUG=tool-use pi ... -p "hi"
then compare with:
pi ... --system-prompt "You are a coding assistant." -p "hi"
If the minimal prompt succeeds while the default prompt fails, suspect prompt fingerprinting.
Remove project context from the experiment
To separate prompt-template issues from AGENTS.md or repo guidance:
pi ... --no-context-files -p "hi"
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.
- 29d ago Changed · +2 lines b366a80c332b
- 1mo ago Changed · +6 lines bbc8a30ba3a3
- 2mo ago First seen · 94 lines · 48 tokens per session scan A 2d8ca3bce356
pi-cli-repro is a skill published in the GitHub repository gotgenes/pi-anthropic-auth (426 stars, last pushed 13d ago), licensed MIT. It adds 48 tokens to every session and 812 once invoked, about $0.0002 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.
Other skills, from other repositories
api-integration-architect
Design, implement, debug, and optimize API integrations with expert-level patterns for REST, GraphQL, webhooks, and authentication flows.
configuration-logging
Configure AuthCrunch diagnostic skip rules, Caddy credential redaction, and logger boundaries. Use for component/message filtering and safe credential diagnostics; authorization outcomes remain unchanged.
break-fix-troubleshooting
Diagnose caddy-security deployment and runtime failures from configs, logs, versions, and HTTP evidence. Use for focused fixes, unresolved support handoffs, or preparing break-fix issue reports.
provider-setup
Reports which delegation CLIs are installed and authenticated, installs missing ones, and stores the result. Use before delegating or when a provider errors.
prose-review
Review prose written for others (e.g., user-facing documentation, prompts for other LLMs, reports, plans, inline comments, docstrings) for local jargon leakage, orphaned references, missing grounding, and audience or genre mismatch. Always run on prose you produce or materially edit, except for routine conversational…
text-search
Search indexed text corpora with qmd. For indexed content, prefer qmd over grep.