DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to scan only the changes in a branch with Codex Security

Limit a scan to selected paths or to the commits since a base revision.

Short answer: Install with npm install --global @openai/codex-security and sign in with cs login; then Scan selected paths with cs scan . --path src --path tests; Scan committed changes from a base revision with cs scan . --diff origin/main. All steps.

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

  1. Install with npm install --global @openai/codex-security and sign in with cs login
  2. Scan selected paths with cs scan . --path src --path tests
  3. Scan committed changes from a base revision with cs scan . --diff origin/main
  4. Set an advisory time allowance with cs scan . --max-time 15
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer