Auto Guard — AI skill for Claude Code
A cached auto command review guard for AI coding agents — rules, memory and LLM verdicts (allow/deny/ask) before every command and file write, served to 7 hosts (Claude Code, Codex, ZCode, OpenCode, Q.
How to install Auto Guard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Ayle5678/auto-guard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Auto Guard does
A cached auto command review guard for AI coding agents — rules, memory and LLM verdicts (allow/deny/ask) before every command and file write, served to 7 hosts (Claude Code, Codex, ZCode, OpenCode, Qoder, Pi, DSH) via one engine.
Alternatives in AI
- Codex Plugin — 's /codex:adversarial-review command 9.6k ★
- CLI Manager — A multi-project AI CLI workspace for local terminals, SSH hosts, and mobile-assisted workflows 749 ★
- Squeez — Hook-based token compressor for 5 AI CLI hosts (Claude Code, Copilot CLI, OpenCode, Gemini CLI, Codex CLI) 188 ★
README
auto-guard
English | [简体中文](README.zh-CN.md)
A **command-review safety net for AI coding agents**. Before the host executes a command or reads/writes a file, auto-guard decides **allow / deny / ask** using layered static rules, caches, learned rules, audit history and a one-shot LLM review (DeepSeek by default). It is meant to sit on top of full-access mode: dangerous commands are blocked, routine ones pass in milliseconds, and only genuinely uncertain cases reach the LLM or a human.

Why
- Full-access mode is productive but scary. Existing LLM-based approval mechanisms (Claude Code auto mode, Codex auto-review) send every command to a model, which is slow and expensive.
- In practice most agent shell commands are safe, simple and highly repetitive. So the review prompt is minimal (no context payload), and anything already adjudicated is served from one of several caches. Measured over short-term daily use, review cost stays around 1–4% of total spend and keeps dropping as history accumulates.
- Latency is dominated by the layers, not the LLM: whitelist and cache hits return without any model call, so the guard is effectively invisible.
Install
auto-guard is **not on npm** — the repo is a private pnpm workspace whose packages depend on each other via `workspace:*` (only resolvable inside the workspace), so `npm i -g git+…` cannot work either. Clone the repo and run the TypeScript entries directly with Node ≥ 22.18 (the core has zero runtime dependencies; the SQLCipher audit store is an optional native dependency that falls back automatically when absent). Windows and macOS work exactly the same:
git clone https://github.com/Ayle5678/auto-guard.git
cd auto-guard
pnpm install
pnpm build # produces dist/ — the zcode/claude/opencode/qoder/codex hooks point at it
node packages/cli/src/auto-guard.ts init # installer: dete
Related Skills
Dsh Auto Review
Second-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent returns stru
Memnox Runtime
Let AI agents work autonomously. Memnox rules on every tool call Claude Code, Codex, Cursor, Gemini CLI and Wi
Toolgate
A measured tool-call firewall for AI agents: allow, ask or deny before the agent acts. Claude Code mod and hoo
Inner Warden
Open-source runtime guardrail for AI agents: screens shell commands and MCP/tool calls before they run (allow/
Mobile Use
Give your AI agent hands on your Android phone. MCP server + Android accessibility app over Tailscale: numbere
Umwayi OS
One gate in front of your AI helpers. Rules you write decide Yes, No or Ask me first before Claude Code, Kiro
Related Agents
Permissions Manager
Manage tool permission rules. Use when user says 'allow', 'deny', or 'ask' for a command, wants to modify perm
Session Error Analyzer
Analyzes specific AI IDE sessions (Claude Code, OpenAI Codex, OpenCode) for LLM behavior errors and returns a
Auth Policy Validator
Валидатор ZenStack access control policies. USE PROACTIVELY после изменений @@allow/@@deny для проверки безопа