Back to feed
Dev.to
Dev.to
7/14/2026
Claude Code Review Blast Radius: Token Bill Dropped 8-49x With a Tree-sitter Graph

Claude Code Review Blast Radius: Token Bill Dropped 8-49x With a Tree-sitter Graph

Short summary

A practical approach to cutting Claude Code review token costs by 8-49x using Tree-sitter call graphs to limit context to within two hops of a PR diff. The author measured twelve repos and found big repos with small diffs benefit most. The method replaces whole-repo loading and naive RAG with precise BFS traversal of call edges.

  • Token costs dropped 8-49x by limiting agent context to two-hop blast radius from the diff
  • Tree-sitter parses code across 12+ languages to build call graphs for BFS traversal
  • Hop-2 cap is where signal flips to noise; big repos with small diffs benefit most

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more