SwiftGraph tool cuts AI grep tool calls
The author introduces SwiftGraph, a tool that reads Xcode index stores to generate compiler-accurate call graphs for coding agents, avoiding inefficient text grep searches. In an experiment on a 140,000-line SwiftUI app, the graph-equipped agent used 3.5x fewer input tokens, ran three times faster, and required a quarter of the tool calls compared to grep-only agents. The author notes that while the graph provides an efficient map for navigating code, it still cannot track runtime mechanisms like NotificationCenter or reflection. Open article →