Docs
Agent code scan
Scan the code the agent actually wrote, not the whole repository. It runs an external scanner over the agent working tree diff against your main branch, then joins each finding to the session that produced it and to what that session cost. A finding stops being "this file has an issue" and becomes "this run introduced this issue, in this session, for this much money".
Where to find it
- Localhost:
/agent-code-scan.html - API:
GET /api/agent-code-scan - Sidebar: Guard, then Agent code scan
What it does for you
Built vs. planned
The scan, the diff scoping, the session join and the cost attribution all ship today. Semgrep is external, so when it is not on the machine a built-in basic scan runs a handful of high-signal rules over the same diff and the tab says which engine produced the result, with the install command for the full rule set. A scan that could not run at all reads as did not run with its reason, never as a clean result. That distinction matters more here than almost anywhere else: an empty result from a scanner that never executed looks identical to a clean codebase, and only one of those is good news.
Last updated