Knox – Govern AI agent tool calls before they execute Qoris released Knox, a security policy engine for AI coding agents that ships as a standalone CLI, Node library, and plugins for Claude Code, Cursor, and OpenAI Codex. The open-source Developer Knox protects local agent sessions, while the enterprise Qoris Runtime Knox governs AI workers across sales, ops, compliance, and support workflows with shared memory governance and audit pipelines. The tool intercepts 11 hook events to block dangerous tool calls in real time, with enforcement available only through plugin installations. Knox is a security policy engine for AI coding agents. The same engine ships in five forms — a standalone CLI, a Node library, a Claude Code plugin, a Cursor plugin, and an OpenAI Codex plugin — sharing one source tree and one rule set. Pick the surface that matches what you need. Knox ships in two forms: Developer Knox this repo — free, open source. CLI, library, and plugins for Claude Code, Cursor, and Codex that protect developer agent sessions on your local machine. Qoris Runtime Knox — the enterprise version. Built into Qoris worker containers, governing AI workers running 24/7 across sales, ops, compliance, and support workflows. Includes shared memory governance, approval workflows, audit pipelines, and policies that survive across hundreds of concurrent worker sessions. Learn more about Qoris Runtime Knox → https://docs.qoris.ai/knox/overview Capability matrix capability-matrix--what-each-surface-actually-does Quick install quick-install knox check — programmatic policy decisions What the Claude Code plugin adds on top of the CLI what-the-claude-code-plugin-adds-on-top-of-the-cli Knox vs Claude Code's built-in safety knox-vs-claude-codes-built-in-safety--whats-actually-different Known limitations and red-team results known-limitations-and-red-team-results Presets presets What Knox intercepts 11 hook events what-knox-intercepts-11-hook-events Skills skills CLI reference cli-reference Configuration configuration Architecture architecture Enterprise deployment enterprise-deployment Technical specs technical-specs-v210 | Capability | CLI | Library | Claude Code | Cursor | Codex | |---|---|---|---|---|---| knox check programmatic dry-run | ✅ | ✅ | ✅ | ✅ | ✅ | knox test human-readable dry-run | ✅ | — | ✅ | ✅ | ✅ | knox audit / report / status | ✅ | — | ✅ | ✅ | ✅ | knox policy add-block / disable / lint / export | ✅ | — | ✅ | ✅ | ✅ | checkCommand as Node library | — | ✅ | — | — | — | Real-time blocking of dangerous tool calls | ❌ | ❌ | ✅ | ✅ | ✅ | Automatic audit logging of every tool call | ❌ | ❌ | ✅ | ✅ | ✅ | Prompt injection scanning on user input | ❌ | ❌ | ✅ | ✅ | ✅ | Self-protection against settings/policy tampering | ❌ | ❌ | ✅ | partial† | partial† | Subagent context injection | ❌ | ❌ | ✅ | ✅ | ❌ | Cron-job prompt scanning at creation time | ❌ | ❌ | ✅ | n/a | n/a | Escalation tracking denial counters | ❌ | ❌ | ✅ | ✅ | ✅ | † Cursor and Codex have no ConfigChange / InstructionsLoaded / PermissionDenied event analogues, so a few mid-session self-protection paths only fire on Claude Code. Cron-prompt scanning CronCreate and SubagentStart are Claude-Code-only. Key distinction: the CLI and library can evaluate whether a command is allowed, but they can't prevent an agent from running it — they're inspection tools. Real-time enforcement is what hooks provide. Hooks are wired automatically when you install Knox as a Claude Code plugin or a Cursor plugin; the CLI's knox install --target claude|cursor subcommand wires the same hooks manually if you don't want to use the plugin manager. If you want enforcement: install the plugin. If you only want to embed Knox's decisions into your own agent runtime, or audit/inspect from a terminal: install the CLI/library. A subtle but important asymmetry: only Claude Code can fully detach Knox via its plugin UI. On Cursor and Codex, Knox writes hooks into a user-scope file ~/.cursor/hooks.json / ~/.codex/hooks.json — by design on Cursor no plugin marketplace for hooks , as a workaround on Codex upstream openai/codex 16430 https://github.com/openai/codex/issues/16430 — manifest.rs doesn't parse the plugin's hooks field . | Surface | UI toggle off → hooks fire? | True-off paths | |---|---|---| Claude Code | No | /plugin disable toggle OR claude plugin uninstall knox@qoris | Cursor | n/a no plugin enable/disable for hooks | knox uninstall --target cursor | Codex | Yes — /plugins toggle does NOT detach Knox | knox uninstall --target codex | For Cursor and Codex, knox preset disabled audit-only mode — hooks still fire, return null for everything except self-protect is the soft-off equivalent. For full detach, you must run knox uninstall --target