neuron-tool-approval

neuron-tool-approval is a skill for Claude Code, Codex from neuron-core/neuron-ai. It costs 103 tokens per session (4,353 once invoked), scanned A, original, MIT.

A guide for making a Neuron AI agent pause before running selected tools and wait for a person's approve or deny decision. It also covers the server endpoint and user interface needed to continue afterward.

In plain words
What is it for?
Use it to add approval gates to tools, show pending decisions in chat, submit decisions, and continue an agent run.
Why use it?
It prevents risky agent actions from running without an explicit human decision and explains how to resume a paused conversation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add approval gates to tools, show pending decisions in chat, submit decisions, and continue an agent run.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neuron-core/neuron-ai/neuron-tool-approval
About the project

Neuron AI is a PHP framework for building AI applications in which agents connect language models, tools, data loaders, vector databases, memory, and user interfaces. PHP developers use it to create and manage applications with agent workflows, multi-agent coordination, streaming, monitoring, and human involvement.

neuron-core/neuron-ai · 2,186 stars · on GitHub · neuron-ai.dev

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 neuron-core/neuron-ai --skill neuron-tool-approval
Clone the repo
git clone --depth 1 https://github.com/neuron-core/neuron-ai

Made for: Claude Code, Codex.

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 neuron-tool-approval

README.md
[![agentmods](https://agentmods.dev/badge/skills/neuron-core/neuron-ai/neuron-tool-approval/github.svg)](https://agentmods.dev/skills/neuron-core/neuron-ai/neuron-tool-approval)
Your own site
<a href="https://agentmods.dev/skills/neuron-core/neuron-ai/neuron-tool-approval"><img src="https://agentmods.dev/badge/skills/neuron-core/neuron-ai/neuron-tool-approval/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.

agentmods 80×15 button for neuron-tool-approval

Your own site · 80×15
<a href="https://agentmods.dev/skills/neuron-core/neuron-ai/neuron-tool-approval"><img src="https://agentmods.dev/badge/skills/neuron-core/neuron-ai/neuron-tool-approval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,353 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.00103 $0.04353
Opus 5.5 $0.00041 $0.01741
Sonnet 5.5 $0.00021 $0.00871
Haiku 4.5 $0.00010 $0.00435

Measured 1mo ago against content hash f17791ef8327, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neuron-tool-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 1mo 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/neuron-tool-approval/SKILL.md · 314 lines

How it starts

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

Neuron AI Tool Approval

This skill helps you gate agent tool execution behind human approval and build the application around it: the server endpoint, the UI, and the decision round trip.

Use Agent::submitApprovalDecisions($decisions) for tool approval and Agent::submitToolResults($results) for deferred tool results. Both accept maps keyed by tool call ID and stage a continuation; finish with run() for an AgentState or events() for a stream.

The Mental Model

Approval is owned by ToolNode and configured on the tools themselves. There is no middleware to attach: each tool declares whether it needs approval, you override that per instance when you attach it to the agent, and the node suspends the run before executing anything undecided.

Chat history is what the application reads; the thread is the workflow ID. Which tools await a decision and why each one is asking live on the last message of the thread, written once at suspend time — a client that renders from the message list needs nothing else. A client that keeps approvals apart from messages (AG-UI, CopilotKit) asks the agent instead: Agent::pendingApprovals() (see Rebuilding the UI after a reload). Continuing needs no runId either: the run's durable records live in the partition named by the threadId itself, so the approve endpoint rebuilds the agent from the thread ID alone, stages the decisions with submitApprovalDecisions($decisions), and finishes with run() or events(). No workflow coordination ID is stored on the side.

Two facts shape the UI:

  • History is append-only. The suspended tool_call message keeps its pending snapshot forever; the final outcomes (approved/rejected + feedback + results) are recorded on the tool_call_result message that follows it. "Is approval pending?" = the thread tail is a tool_call with pending tools.
  • Partial decisions are retained by ToolNode through durable memos. Each submission can contain only the newest decisions, through submitApprovalDecisions($decisions). Explicit updates to an already-decided action in a still-open batch win.

Read the full file on GitHub · 314 lines

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. 1mo ago Changed · +1 lines f17791ef8327
  2. 2mo ago First seen · 313 lines · 103 tokens per session scan A be46e325c41e

Subscribe to this mod's changes

neuron-tool-approval is a skill published in the GitHub repository neuron-core/neuron-ai (2,186 stars, last pushed 3d ago), licensed MIT. It adds 103 tokens to every session and 4,353 once invoked, about $0.0004 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-10-01.

Related

neuron-tool-approval compared with skills from other repositories

neuron-tool-approval next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuron-tool-approvalneuron-core/neuron-aiSkill2.2k3d agoMITA103Claude Code, Codex
neuron-workflowneuron-core/neuron-laravelSkill12413d agoMITA66Claude Code, Codex
neuron-evaluationneuron-core/neuron-laravelSkill12413d agoMITA102Claude Code, Codex
neuron-frontend-integrationneuron-core/neuron-laravelSkill12413d agoMITA205Claude Code, Codex
neuron-streamingneuron-core/neuron-laravelSkill12413d agoMITA223Claude Code, Codex
neuron-testneuron-core/neuron-laravelSkill12413d agoMITA92Claude Code, Codex
neuron-toolneuron-core/neuron-laravelSkill12413d agoMITA106Claude Code, Codex