claude-code-consent-adapter

claude-code-consent-adapter is a skill for Claude Code from metraton/gaia. It costs 22 tokens per session (178 once invoked), scanned A, original, MIT.

An adapter that translates Gaia's consent request into Claude Code's built-in question mechanism, AskUserQuestion. Consent means asking the user to approve an action before it becomes active.

In plain words
What is it for?
Use it when connecting Gaia's consent protocol to Claude Code, especially in the adapter registration and consent-request translation.
Why use it?
It lets the host-specific user interface handle consent while keeping the consent fields and approval rules independent of Claude Code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code.

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

Good fit Use it when connecting Gaia's consent protocol to Claude Code, especially in the adapter registration and consent-request translation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metraton/gaia/claude-code-consent-adapter
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 claude-code-consent-adapter
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 claude-code-consent-adapter

README.md
[![agentmods](https://agentmods.dev/badge/skills/metraton/gaia/claude-code-consent-adapter.svg)](https://agentmods.dev/skills/metraton/gaia/claude-code-consent-adapter)
Your own site
<a href="https://agentmods.dev/skills/metraton/gaia/claude-code-consent-adapter"><img src="https://agentmods.dev/badge/skills/metraton/gaia/claude-code-consent-adapter.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 178 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.00022 $0.00178
Opus 5 $0.00011 $0.00089
Sonnet 5 $0.00004 $0.00036
Haiku 4.5 $0.00002 $0.00018

Measured 8d ago against content hash 4016b117b74b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

claude-code-consent-adapter 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 8d 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/claude-code-consent-adapter/SKILL.md · 21 lines

What it actually says

Claude Code presents Gaia's already-rendered consent request through its native question mechanism. The adapter translates that host shape at the boundary; the consent fields, approval identifier, and activation semantics remain owned by the host-neutral consent protocol.

The native mechanism is AskUserQuestion. Its result may arrive as an ElicitationResult; both names are adapter vocabulary and must remain outside the five host-agnostic consent skills.

Implementation details belong to the adapter, not here. The registration and its documentation metadata live together in hooks/adapters/registry.py::register_adapter; the concrete translation lives in hooks/adapters/claude_code.py::ClaudeCodeAdapter.request_consent.

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. 8d ago First seen · 21 lines · 22 tokens per session scan A 4016b117b74b

Subscribe to this mod's changes

claude-code-consent-adapter is a skill published in the GitHub repository metraton/gaia (3 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 178 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