What it does
Stallion sits between the agent and risky actions. It is published in the secure-claude-code repository on GitHub.
- Preflight checks before risky actions run.
- Output inspection after tools return untrusted content.
- Local trust tracking for tools, hooks, data stores, IPC targets and approvals.
- Installable profiles:
minimal,balancedandstrict.
Protected surfaces include shell execution, git and repository actions, MCP requests and responses, plugin and skill trust boundaries, secrets and local credential stores, local services and browser sessions, and destructive actions or production access.
Method
Claude Code is supported through native plugin hooks. Codex, Cursor, Windsurf and Claude Desktop get generated configuration, and other MCP clients go through an inline MCP gateway. The gateway can inject schema or operator context into tool descriptions and enforce read-only SQL for configured query tools before a request reaches the upstream server.
An audit mode inspects a repository or runtime setup before anything is enabled, with HTML and SARIF output:
./bin/stallion audit .
./bin/stallion audit . --format sarif --output stallion-audit.sarif
Limits
Profiles trade friction for coverage: minimal has the lowest friction and strict the strongest blocking and review prompts. The README describes the goal as reducing risk while keeping normal coding usable, not removing risk. The security model and its assumptions are documented in the repository.
Evidence
- Source code: github.com/efij/secure-claude-code
- Release history: secure-claude-code releases
- Security model: SECURITY_MODEL.md
- Guard inventory: GUARDS.md