Claude Auto Approve — AI skill for Claude Code
A Claude Code hook that uses an LLM-as-a-judge to automatically classify safety for commands and web sites.
How to install Claude Auto Approve
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open tonimelisma/claude-auto-approve and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Auto Approve does
A Claude Code hook that uses an LLM-as-a-judge to automatically classify safety for commands and web sites.
Alternatives in AI
README
claude-auto-approve
A Claude Code [hook](https://docs.anthropic.com/en/docs/claude-code/hooks) that automatically approves safe Bash commands and WebFetch URLs using a cheap/free LLM API, so you only get permission prompts for potentially dangerous operations.
How it works
When Claude Code wants to run a Bash command or fetch a URL, this hook intercepts the permission request and asks a cheap LLM whether the operation could cause harm. Safe commands like `ls`, `git status`, or `cat` and safe URLs like `https://docs.python.org` are auto-approved. Dangerous commands like `rm -rf` or dangerous URLs like `http://192.168.1.1/admin` trigger the normal permission prompt.
Provider failover
The script tries multiple API providers in order:
- OpenCode — Kimi K2.5, free (~1.5s latency)
- Moonshot — Kimi K2.5, cheap (~1s latency)
If a provider returns a rate limit error, it enters a 30-minute cooloff period and the next provider is tried.
Fail-safe design
If all providers fail, time out, or return an unrecognizable response, the hook outputs nothing — which tells Claude Code to show the normal permission prompt. You never accidentally approve a dangerous command due to an API error.
Classification prompts
For **Bash commands**, the LLM is asked: "Should a system administrator be warned before running this command?" For **WebFetch URLs**, it checks for SSRF risks (private/internal IPs), data exfiltration patterns, and malicious domains. Both must answer YES or NO.
Requirements
curljq- API keys from one or more providers (see below)
Installation
Copy the script to your Claude Code hooks directory:
mkdir -p ~/.claude/hooks cp auto-approve-safe.sh ~/.claude/hooks/ chmod +x ~/.claude/hooks/auto-approve-safe.shEdit the script and replace the placeholder API keys with your own:
"moonshot|https://api.moonshot.ai/v1/chat/completions|YOUR_MOONSHOT_API_KEY|kimi-k2.5|0.60|3.00" "
Related Skills
Agent Dev Flow
Tool-neutral AI Engineering System: 178 reusable skills (installable as Claude Code plugins) for planning, bui
Multi AI Delegation
A Claude skill (plugin) that splits big jobs across your other AI chat sites, such as ChatGPT, Grok, Gemini, D
Recovery Classification
Enforces Law 4 (Verify Before Reporting) of the 7 Laws of AI Agent Discipline. After any failure in the verifi
Apohara Agentguard
Anti-bypass command-safety hook, local seccomp+Landlock sandbox, and deterministic prompt-injection firewall f
Email Outreach Agent
Cold email automation agent with a hard human approval gate — your AI drafts personalized emails from real res
AI Debate Club
A multi-agent debate engine. Two different LLMs argue any motion, research the web for themselves, and cite th
Related Agents
Loom Champion
Loom Champion - Human avatar that promotes quality issues to approved status AND auto-merges Judge-approved PR
Auto Runner
Sonnet worker for the trivial-PR auto-approve path (docs-only / dependency patch bumps that passed trivial-che
Approver
Forge approver. After all reviews pass, decides APPROVE (open/update the PR, optionally auto-merge) or ESCALAT