Code review for AI agents

The new DeepSource CLI gives your coding agents structured feedback they can act on.

  • By Jai
  • ·
  • Product
  • Announcement
Last updated on Mar 5, 2026

Code review results live in dashboards and PR comments. Agents can't parse either. Developers have to context-switch to read them and often copy-paste into their AI agent chat box.

We've made several improvements to DeepSource's CLI to make it easier for your AI agent to take action on DeepSource's results.

curl -fsSL https://cli.deepsource.com/install | sh

The CLI can now pull review results into the terminal as structured JSON — issues by file, Report Card grades, dependency vulnerabilities, CVSS scores. If you're building an agent workflow or scripting review checks in CI, you can now automate parsing DeepSource's review and ask your agent to fix issues autonomously.

The feedback loop

  1. Your agent writes code and opens a PR.
  2. DeepSource reviews it. The hybrid engine runs thousands of static analysis rules alongside the AI review agent, then grades the PR across five dimensions in the Report Card — Security, Reliability, Complexity, Hygiene, and Coverage.
  3. Your agent calls the CLI to pull findings into its context: issues by file, report card grades, dependency vulnerabilities, all as structured JSON.
  4. Your agent gets the list of issues, key metrics, and feedback on what it can do better from a code quality and security perspective. It can iterativelty fix issues, commit, and try again until the PR is clean.

Structured, not noisy

A flat list of issues is not enough. Some are useful, some noise, and usually no way to tell where to focus on the most.

DeepSource's Report Card grades every PR across the five dimensions important for writing clean and secure code. With the CLI's new --output json flag, this feedback comes to your agent directly. Instead of "here are 47 issues," you get "Security is at C, everything else is passing."

Here are some sample queries your agent can perform:

Issues scoped to specific files or severities

deepsource issues --file src/auth/login.ts --output json
deepsource issues --severity critical --category security --output json
[
  {
    "file": "src/auth/login.ts",
    "line": 42,
    "severity": "critical",
    "category": "security",
    "code": "JS-W1043",
    "message": "Unsanitized user input passed to SQL query"
  }
]

Report Card

deepsource report-card --output json

OSS dependency vulnerabilities

deepsource vulnerabilities --output json

Repository metrics

deepsource metrics --output json
deepsource repo status --output json

Agent Skills

DeepSource Skills are pre-built skill packages that give coding agents direct access to the CLI. They work with Claude Code, Cursor, Copilot, Cline, Codex, and 18+ other agents.

npx skills add DeepSourceCorp/skills

The AI Code Review Platform
for fast-moving teams and their agents.

14-day free trial, no credit card needed
For growing teams and enterprises