subagent-request-approval

subagent-request-approval is a skill for Claude Code from metraton/gaia. It costs 26 tokens per session (520 once invoked), scanned A, original, MIT.

A procedure for requesting user approval when a command is blocked or when a known set of risky commands must be approved first. It preserves the exact commands and their approval details.

In plain words
What is it for?
Submitting one or more exact commands for approval, passing back the approval identifier and fingerprints, and stopping so the user can decide before execution continues.
Why use it?
It prevents an agent from retrying, rewriting, or bypassing a blocked operation while giving the user a clear contract to approve.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions subagents.

Part of the gaia plugin — 38 skills, 9 agents, 11 hooks shipped together

Good fit Submitting one or more exact commands for approval, passing back the approval identifier and fingerprints, and stopping so the user can decide before execution continues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metraton/gaia/subagent-request-approval
Install

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.

Any agent
npx skills add metraton/gaia --skill subagent-request-approval
Clone the repo
git clone --depth 1 https://github.com/metraton/gaia

Made for: Claude Code.

Or install gaia, the plugin that ships this one along with the rest of its 38 skills, 9 agents, 11 hooks.

Wrote 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.

agentmods badge for subagent-request-approval

README.md
[![agentmods](https://agentmods.dev/badge/skills/metraton/gaia/subagent-request-approval.svg)](https://agentmods.dev/skills/metraton/gaia/subagent-request-approval)
Your own site
<a href="https://agentmods.dev/skills/metraton/gaia/subagent-request-approval"><img src="https://agentmods.dev/badge/skills/metraton/gaia/subagent-request-approval.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 520 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00520
Opus 5 $0.00013 $0.00260
Sonnet 5 $0.00005 $0.00104
Haiku 4.5 $0.00003 $0.00052

Measured 7d ago against content hash 019c1a4dd988, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

subagent-request-approval 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 7d 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.

skills/subagent-request-approval/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Request Approval — Producer Branch

Plan-first set

After read-only investigation, collect every predictable exact T3 command that forms one coherent bounded operation -- one command or several. Do not attempt the commands first, even a single one: request it proactively through the same verb.

Run one CLI request, with one --command per atomic item in execution order:

gaia approvals request-set --command '<exact 0>' --command '<exact 1>' --rationale '<goal, risk, rollback, verification>' --agent-id <agent_id> --session-id <session_id>

A single predictable T3 command uses the identical verb with one --command.

The CLI validates T3 eligibility, persists REQUESTED, and returns the approval_id, ordered set, and fingerprints. Relay those returned values inside approval_request; do not calculate an id or fingerprint yourself.

Blocked single command

When PreToolUse returns [T3_BLOCKED], stop. Copy the returned approval_id and sealed payload verbatim into approval_request. Do not retry, reword, split, wrap, or seek the same effect through another tool.

Checkpoint and stop

  1. Set agent_state to APPROVAL_REQUEST.
  2. Put all exact consent data in approval_request, including full ordered set, risk, rollback, and verification when COMMAND_SET.
  3. Add only the block/request outcome to evidence; do not duplicate payloads.
  4. Set pending_steps to execution after consent and next_action to relay the request to the user.
  5. Finalize the non-terminal contract, emit its compatibility fence, and stop.

The producer does not present an approval as already granted and does not verify execution before it happens. orchestrator-present-approval presents consent; after grant, a fresh specialist dispatch loads execution.

Grouping boundary

Use a set only for exact commands already implied by the accepted plan, with one risk/rollback/verification narrative. Do not group unrelated effects, alternatives, speculative cleanup, or commands derived from earlier outputs. Consent grouping is not atomic execution.

Read the full file on GitHub · 57 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 7d ago First seen · 57 lines · 26 tokens per session scan A 019c1a4dd988

Subscribe to this mod's changes

subagent-request-approval is a skill published in the GitHub repository metraton/gaia (3 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 520 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories