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 agentproto/ts --skill ap-approvalsgit clone --depth 1 https://github.com/agentproto/tsWrote 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/agentproto/ts/ap-approvals)<a href="https://agentmods.dev/skills/agentproto/ts/ap-approvals"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-approvals/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/agentproto/ts/ap-approvals"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-approvals.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.00084 | $0.01022 |
| Opus 5.5 | $0.00034 | $0.00409 |
| Sonnet 5.5 | $0.00017 | $0.00204 |
| Haiku 4.5 | $0.00008 | $0.00102 |
Grade A, and why
ap-approvals 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 today.
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.
ap-approvals
MCP profile: full only
approval_request, approval_get, approval_wait, approval_consume and
approval_cancel exist only on the daemon's full MCP profile. In a session
narrowed to core, orchestrator, apps or admin they are not in
tools/list, so a call fails before reaching the daemon. If an approval tool
is "missing", check the profile of the connection that is asking.
The human gesture is the decision
No tool here can approve or deny. The decision is made by a human, through a channel the daemon declared on the request: a click on the approval card (Approve or Deny) in an MCP Apps host, a messaging adapter the operator enabled, or an approval link opened by a listed human. You raise the request, wait, and act only on what the human decided. Never try to decide it yourself or route around the gate.
Tools
Task: gate an irreversible action
- Build the final payload first: everything the action will run with (recipient, amount, body). The payload is frozen by its digest (sha256 of its canonical JSON); a later change to any value is a different payload.
approval_requestwith that payload, a one-linetitleand apreviewa human can read. Keep theid. Addwake: trueif the daemon should re-prompt this session on the decision instead of you polling.- Loop on
approval_waitwith theid. Each call blocks at most 45 seconds and returns the record either way: readstatus. Keep looping while it ispending. approved: callapproval_consumewith the sameidand the same payload, then run the action only if it succeeded.denied,expiredorcancelled: stop, tell the user, and do not retry the action. Raise a new request only if the user asks.
Task: replace a pending request
Raise the new request first, then approval_cancel the old one with
supersedeBy set to the new id. Do this when the payload has to change:
an approved request cannot be edited, and a changed payload fails to consume.
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.
- today First seen · 82 lines · 84 tokens per session scan A 5a488daa7f1f
ap-approvals is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 84 tokens to every session and 1,022 once invoked, about $0.0003 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-12-02.
ap-approvals compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ap-approvalsagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 84 | Claude Code, Codex |
| skill-creator-primersammcj/agentic-coding | Skill | 175 | today | Apache-2.0 | A | 74 | Claude Code |
| extract-wisdomsammcj/agentic-coding | Skill | 175 | today | Apache-2.0 | A | 43 | Claude Code |
| llm-wikisammcj/agentic-coding | Skill | 175 | today | Apache-2.0 | A | 82 | Claude Code |
| apply-mantel-stylessammcj/agentic-coding | Skill | 175 | today | Apache-2.0 | A | 37 | Claude Code, Codex |
| authoring-claude-mdsammcj/agentic-coding | Skill | 175 | today | Apache-2.0 | A | 33 | Claude Code, Codex |
| home-assistantsammcj/agentic-coding | Skill | 175 | today | Apache-2.0 | A | 57 | Claude Code |