尚未检测到更新。GitHub 发布版本后会显示在这里。
Guardrails for running AI agents on your own machines: a tested DLP hook for Claude Code, an offline skill supply-chain scanner, and a hardened OpenClaw host config.
翻译准备中
正在加载完整 README。
查看完整 README ↗Enterprise AI Agent Guardrails Toolkit: Governance-as-Code for Autonomous Coding & Tool-Calling Agents.
Zero external pip dependencies. Apache 2.0. Built for Claude Code, Cursor, Antigravity, OpenHands, and custom agent harnesses.
Created by Charitarth Bharti (safeaiguy.com).
Overview page: charitarth1.github.io/agent-guardrails
Guardrails built from first principles and refined through adversarial self-audits to run AI agents safely on developer machines and CI/CD pipelines without handing them the keys.
[!WARNING] Pattern-based hooks are tripwires, not security boundaries. A deterministic regex filter or PreToolUse hook running as the same OS user as the agent cannot withstand an active, malicious adversary who has arbitrary shell execution capabilities. If the agent can execute arbitrary Python or shell commands, it can inspect its own environment, read local files, or kill unprivileged parent processes.
True security confinement requires operating-system level isolation: running the agent in a rootless container (Docker/Podman), an isolated VM (Firecracker/gVisor), or a dedicated unprivileged user account without access to host secrets or network interfaces.
agent-guardrailsis designed as a tripwire against accidental mutations, naive prompt injections, and inadvertent data leakage, and as a structured governance framework for enterprise compliance (NIST AI RMF, ISO/IEC 42001, GovTech ARC). Read docs/limitations.md before deploying in untrusted environments.
A robust agent governance architecture cannot rely solely on prompt engineering (which fails under indirect injection) nor purely on external network firewalls (which cannot inspect tool semantics). This toolkit implements the Dual-Engine Model:
┌──────────────────────────────────────────────────────────┐
│ THE DUAL-ENGINE GOVERNANCE SYSTEM │
└──────────────────────────────────────────────────────────┘
│
┌─────────────────┴─────────────────┐
▼ ▼
┌──────────────────┐ ┌──────────────────┐
│ THE BRAIN │ │ THE BRAKES │
│ (In-Context) │ │ (Deterministic) │
├──────────────────┤ ├──────────────────┤
│ Downloadable │ │ PreToolUse Hook │
│ Agent Skills │ │ Runtime Engine │
│ (`skills/`) │ │ (`src/`) │
├──────────────────┤ ├──────────────────┤
│ • Blast-Radius │ │ • 4-Tier DLP │
│ Calculation │ │ • Nonce Fencing │
│ • Safe TDD Gates │ │ • Out-of-Band │
│ • Proactive │ │ HMAC Gate │
│ Self-Auditing │ │ • SHA-256 Chain │
└──────────────────┘ └──────────────────┘
The Brain (In-Context Guidance - skills/):
SKILL.md specifications.guardrails vendor-skills --target claude-code # installs to .claude/skills/
guardrails vendor-skills --target cursor # installs to .cursor/rules/
guardrails vendor-skills --target antigravity # installs to .gemini/antigravity/skills/
The Brakes (Deterministic Runtime Firewalls - src/):
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗