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 agentmods add commands/punt-labs/prfaq/permissionsgit clone --depth 1 https://github.com/punt-labs/prfaqWrote 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/commands/punt-labs/prfaq/permissions)<a href="https://agentmods.dev/commands/punt-labs/prfaq/permissions"><img src="https://agentmods.dev/badge/commands/punt-labs/prfaq/permissions.svg" alt="Measured on agentmods" 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 | $0.00016 | $0.00775 |
| Opus 5 | $0.00008 | $0.00387 |
| Sonnet 5 | $0.00003 | $0.00155 |
| Haiku 4.5 | $0.00002 | $0.00077 |
Grade B, and why
permissions scanned grade B with 2 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 5d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
global `~/.claude/settings.json`. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Deliberately excluded: `Bash(curl *)` and every `Bash(rm *)` form. Sending How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Configure prfaq Permissions for This Project
Write prfaq's permission rules into this project's .claude/settings.json so
the plugin's commands stop asking for approval on every compile, edit, and
search. The rules apply to this project only — prfaq never writes to the
global ~/.claude/settings.json.
Steps
-
Pick the mode. Read
$ARGUMENTS:check(orstatus) — report which rules are present, change nothingremove(orrevoke,off) — take the rules back out- anything else, including empty — add the rules
-
Confirm before writing. For the add and remove modes, tell the user which file will change (
.claude/settings.jsonin the current project) and that the file is normally committed, so the change is visible to everyone working in the repo. Ask before proceeding. Skip this forcheck. -
Run the script.
bash ${CLAUDE_PLUGIN_ROOT}/scripts/prfaq_permissions.sh --addSubstitute
--checkor--removefor the other modes. The script operates on the current working directory and is idempotent — running it twice adds nothing the second time and leaves the file byte-identical. -
Report the result. Relay the script's output. When rules were added, tell the user two things:
- Claude Code watches settings files, so the rules apply without a restart. Tell the user to restart only if they do not seem to have taken.
.claude/settings.jsonis checked into the repo, so committing it shares the permissions with the team. To keep them to themselves, they can move the block to.claude/settings.local.json, which is gitignored.
-
If jq is missing. The script requires
jq. When it reports jq missing, tell the user to install it (brew install jqon macOS,apt install jqon Linux) and offer to add the rules by hand instead — read the rule list out of${CLAUDE_PLUGIN_ROOT}/scripts/prfaq_permissions.shand write them into.claude/settings.jsonunderpermissions.allow.
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.
- 5d ago First seen · 63 lines · 16 tokens per session scan B 147911aa0786
permissions is a command published in the GitHub repository punt-labs/prfaq (25 stars, last pushed 4d ago), licensed MIT. It adds 16 tokens to every session and 775 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
oracle-dev
Generate property-based test harness using Lean 4 model as oracle.
refine-dev
Verify code refines Z specification via abstraction function and commutativity checks.
refine
Verify code refines Z specification via abstraction function and commutativity checks.
contracts-dev
Generate runtime contracts (preconditions, postconditions, invariants) from a Z specification.
code2model-dev
Create a Z specification for stateful entities in a system.
partition-dev
Derive test cases from Z specification using TTF testing tactics.