What CodeGate is
- A pre-flight inspection tool that runs before you launch an AI coding agent
- A layered scanner that detects risky configuration and instruction patterns
- A workflow gate that can block dangerous launches with
codegate run <tool> - A way to visualize configuration surfaces you may not have reviewed
What CodeGate is not
CodeGate is not a guarantee of safety. It can produce false positives and false negatives. It does not replace secure engineering judgment, review, and hardening, and it cannot promise that every malicious pattern will be detected. CodeGate is designed to improve visibility and decision quality before execution — not to function as an absolute safety net.
Analysis layers
CodeGate runs a four-layer pipeline on your AI tool configuration surfaces.
Layers 1 and 2 are offline-first and deterministic. Layer 3 is opt-in and consent-driven per resource and per command.
Supported AI tools
codegate run supports launching these tools after a successful pre-flight scan:
claude— Claude Codecodex— Codex CLIopencode— OpenCodecursor— Cursorwindsurf— Windsurfkiro— Kiro
All commands
codegate update-kb and codegate update-rules display guidance for updating the bundled knowledge base and rules. Updates are delivered through new releases — run npm update -g codegate-ai or use npx codegate-ai@latest to get the latest version.Where to go next
Quickstart
Install CodeGate and run your first scan in under two minutes.
scan command
Full reference for scan flags, output formats, and examples.
run command
Use wrapper mode to scan first and block dangerous launches automatically.
Why CodeGate
Understand the threat landscape and CVEs that motivated this project.