Sonar Vortex: Semantic Code Navigation for Coding Agents
SonarSource's enterprise harness that replaces grep-and-read agent navigation with a live Unified Dependency Graph (SemSitter), cutting coding-agent token cost up to 36% and catching structural call sites that text search misses.
SonarSource
Subscription
Enterprise pricing (SonarQube plans)
2026-09-09
Sonar Vortex is SonarSource's unified product (announced September 1, 2026) that combines context injection and real-time verification for AI coding agents. Its headline feature is the SemSitter semantic navigation engine, which builds a live Unified Dependency Graph (UDG) of your codebase and answers the agent's navigation questions as graph queries instead of raw file reads.
The problem it solves is the context tax: every file an agent reads via grep stays in the conversation and is re-billed on every later turn through prompt caching. SonarSource measured one ordinary 800-line PR generating 156 million context tokens ($41) and, across 18 real PRs, an average of $65 per PR with ~700 model round-trips and context windows peaking between 450K and 975K tokens.
- Your agents work in a codebase larger than the model's context window
- You are seeing high per-PR token bills driven by grep-and-read storms rather than by reasoning
- Refactoring tasks fail to find every call site because text search misses indirect callers, dynamic dispatch, or cross-language equivalents
- You want algorithmic verification of agent-written code before the PR, not after
- Graph queries replace grep. The agent asks "give me the definition this call binds to, its return type, and its callers" and gets back the one method body plus typed edges — no surrounding file, no six-way grep.
- Up to 36% token cost reduction on refactoring tasks across Java, Python, JavaScript/TypeScript, C#, and Rust (six measured wins: BloomFilter -36%, package rename -20%, SQLAlchemy -20%, TanStack -5%, AssertJ -15%, QuartzNET -20%).
- Cross-language edges. Links
resolve_return_typein Python toresolve_type_nodein C# — a connection grep can never make because the names differ. - Code → docs edges. Every code node can link to the specific doc paragraph or ADR that governs it, so the agent gets the right few hundred tokens instead of a document dump.
- Local, in-process, no compiler. Graph builds in seconds for ~1,000 files and refreshes in ~1ms after each edit. No compiler, language server, or network call — works on code that does not yet compile, throughout generation.
- Real-time verification. Verifies each change against SonarQube's algorithmic analysis (security, reliability, maintainability, duplication, quality gates) before the PR.
- Does not help when navigation isn't the constraint. On tasks where the agent already has sufficient context, or the work isn't structural, the engine has nothing to accelerate — measured costs stayed within a few percent of baseline.
- Enterprise product: integrated through the SonarQube CLI, SonarQube MCP Server, or agent plugins (Claude Code, Codex CLI, GitHub Copilot, Cursor, Antigravity). Pricing follows SonarQube enterprise plans.
- Language coverage: Java, Python, JavaScript, TypeScript, C#, Rust today; other languages not yet supported.
- Additive vs substitutive risk: a query that returns symbols but not their edit locations still forces the agent to grep again, stacking cost. The engine returns
{file_path, line}targets to avoid this, but it is worth verifying on your codebase.
- Agent plugin (Claude Code, Codex CLI, GitHub Copilot, Cursor, Antigravity) — installs and runs the integration automatically.
- SonarQube CLI —
sonar integrateinjects project architecture into agent context with no manual MCP configuration. - SonarQube MCP Server — direct MCP configuration for agents without a plugin.
Teams running coding agents on real, large codebases where the dominant cost is finding and understanding code rather than writing it. Especially valuable for large uniform refactors across a widely implemented abstraction where the hard part is discovering every edit site. If your agents mostly do small, well-scoped single-file edits, the savings will be modest.