Who it is forA team that wants a focused check on one feature branch instead of the whole repo.
The problemWhole-repository scans are broad when you only changed a few files.
The outcomeA scan scoped to the paths or diff you chose.
What you need first
- Node.js 22.13.0+ within 22.x, or Node.js 24.x or 26.x, and Python 3.10+
- A login with `cs login`, or OPENAI_API_KEY or CODEX_API_KEY in the environment for CI
- A Git repository to scan
Steps
- Install with
npm install --global @openai/codex-securityand sign in withcs login - Scan selected paths with
cs scan . --path src --path tests - Scan committed changes from a base revision with
cs scan . --diff origin/main - Set an advisory time allowance with
cs scan . --max-time 15 - Browse every option with
cs scan --help
Prompt for your agent
With openai/codex-security, run `cs scan . --diff origin/main` on my branch and list the findings tied to the changed files.
Caveat. The README calls the 15 minute value an advisory allowance, not a hard limit.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for openai/codex-security and "Scan only the changes in a branch"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer