Documentation
Wire x-security into the loop you already have.
Scan with the agent in your IDE, write policies by hand, or gate CI on drift — three paths, one open schema, one LLM-free CLI.
Start here
01Ship with your agent
02Claude Code
Install the plugin, run /x-security-scan. Every proposed control cites file:line.
Cursor & Codex
The bundled MCP server brings the same verified scan to Cursor.
The schema
02x-security reference
Every key, enum, and default of the v0.8 schema. Apache-2.0.
How detection works
Three passes, the 9-kind control taxonomy, and the cite-backed verification gates.
Enforce & operate
04The x-security CLI
Deterministic verbs: inventory, verify, compile, generate, validate, test. LLM-free.
Gateway matrix & import
Per-target artifacts and load commands: 5 self-hosted generators, 2 hosted matrices.
Shadow mode
Observe-before-block rollout. Native support varies by gateway — see the matrix.
CI drift gate
xsecurity validate in CI: exit 2 when the deployed gateway drifts from the spec.
Trust
02Trust & data flow
Repo access, secret storage, customer egress, audit + redaction.
Known limitations
What detection and enforcement can't do yet, stated plainly.
Start here
New to x-security? Read the quickstart →