Remote script. The install step pipes a remote script from agentfield.ai into bash, so review it or pin a version from the releases page first.
Who it is forA developer or security-minded engineer about to merge a branch who wants a second look at the security impact of the changes.
The problemChanges pile up between merges and a manual security read of every diff is slow and easy to skip.
The outcomeA Markdown, JSON or SARIF report of security findings with evidence and suggested fixes, plus the coverage notes that show what was analyzed.
What you need first
- macOS or Linux machine with a terminal
- A provider key (OpenRouter, DeepSeek, GLM, Kimi, MiniMax, Qwen), a ChatGPT plan through Codex, or a running Ollama install
- A git repository for the project you want to work on
- Install CodeAF with the curl script, or build it from source with make build
Steps
- Run
curl -fsSL https://agentfield.ai/get/codeaf | bashand thencodeaf. - Connect a provider on first start, in the browser through OpenRouter or with a key.
- Open the project's folder in CodeAF and type
/sec changes since main. - Open the sec task to follow the work, then read the findings and the coverage notes in the report.
- Treat the result as a review aid: a missing finding does not prove the code is free of security problems.
Prompt for your agent
Use the CodeAF repo at Agent-Field/CodeAF. Install it with its curl script, open the git repository at <project-path>, and run `/sec changes since main` in the chat. Expected output: a security report with findings, evidence and suggested fixes, in Markdown, JSON or SARIF. Verify that the report lists its coverage and any incomplete analysis, and that your source files were not modified.
Caveat. The README says the sec audit reads source code without running your tests, build, app or exploits, so its results are static analysis only.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Agent-Field/CodeAF and "Audit local code changes for security problems"
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