ast-graph CLI outperforms MCP for code graphs

davenporter.com7 min read

The author shares practical lessons from building procedural 3D environments in Blender and Three.js using parallel agent swarms, detailing why a fast CLI outperformed Model Context Protocol (MCP) for local code graph navigation. By switching their ast-graph tool to a CLI-first architecture and optimizing clean-index paths, they achieved significant speed and storage improvements. Additionally, they discovered that strict line-count read limits hindered agents on complex procedural code, demonstrating the necessity of sizing tool rules to match code shape. Open article →