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 ★
- EchoBird — One-click install + model switch:Claude Code,Codex CLI (OpenAI), Grok Build (xAI), DeepSeek Harness, Kimi Code 3.1k ★
- CLI Manager — A multi-project AI CLI workspace for local terminals, SSH hosts, and mobile-assisted workflows 749 ★
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
Kaut
KAUT — Knowledge Actualization Under Trust: self-maintaining, AI-first project knowledge for AI agents. Source
Wheel Hub
Stop reinventing the wheel. MCP server + CLI that makes AI coding agents search GitHub for existing open-sourc
Salient Core
Guardrail and permission layer for AI agent harnesses. A default-deny control kernel that gates every tool cal
Smart Context Delegation
Cut coding-agent token usage by ~90%: a PreToolUse hook blocks large file reads; bulk-read/code-write delegate
Agent SSD Guard
Keep AI coding agent CLIs from grinding down your SSD — relocate regenerable write targets to a RAM disk
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
Permission Analyst
Recommends allow/deny permission rules from denial telemetry and policy via PromptWise. Use to reduce permissi