You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DiffScope uses a fixed pipeline: parse diff → gather context → build prompt → single LLM call → parse output. Greptile's v3/v4 architecture replaced this with an agentic loop where the reviewer can iteratively search the codebase, read files, check git history, and challenge its own hypotheses. This is why they catch cross-file bugs that pipeline approaches miss.
How Greptile Does It
The v3/v4 agent operates in a loop with a high iteration limit, with these tools:
Challenges its own hypotheses by searching for counter-evidence before raising a comment
Results: v4 achieved 74% increase in addressed comments per PR (0.92 → 1.60), comment acceptance rate from 30% → 43%.
Infrastructure: The agent worker runs in a rootless Podman sandbox with kernel-level isolation (mount namespaces + pivot_root), preventing prompt injection from accessing host resources.
How CodeRabbit Does It
Five specialized agents running in parallel, each with tool access:
Problem
DiffScope uses a fixed pipeline: parse diff → gather context → build prompt → single LLM call → parse output. Greptile's v3/v4 architecture replaced this with an agentic loop where the reviewer can iteratively search the codebase, read files, check git history, and challenge its own hypotheses. This is why they catch cross-file bugs that pipeline approaches miss.
How Greptile Does It
The v3/v4 agent operates in a loop with a high iteration limit, with these tools:
The flow:
calculateInvoiceTotal()changed, discoversgenerateMonthlyStatement()calls it, checks downstream consumersResults: v4 achieved 74% increase in addressed comments per PR (0.92 → 1.60), comment acceptance rate from 30% → 43%.
Infrastructure: The agent worker runs in a rootless Podman sandbox with kernel-level isolation (mount namespaces + pivot_root), preventing prompt injection from accessing host resources.
How CodeRabbit Does It
Five specialized agents running in parallel, each with tool access:
Proposed Solution
Phase 1: Single Agent with Tools
Replace the single LLM call in the review pipeline with a tool-using agent loop:
Tools to implement:
search_code— semantic search (ties into RAG pipeline from Embedding-based RAG pipeline with function-level chunking #22)read_file— read any file in the repo with line rangesearch_symbols— query the symbol graph for callers/callees/implementorsgit_log— recent history for a file/functiongit_blame— who last changed a line and whyrun_grep— regex search across the codebasecheck_tests— find related test files for changed codePhase 2: Multi-Agent Orchestration
Split into specialized agents (ties into #21):
Phase 3: Sandboxing
Configuration
Relationship to Other Issues
search_codetoolPriority
Critical — architectural shift. This is the direction the entire market is moving. Pipeline → agent is the single biggest architectural decision.