Spy‑code: local codebase graph for AI agents (feedback wanted)

Reddit r/AI_Agents Tools

Summary

Spy-code is an open-source tool that builds a local codebase graph using tree-sitter, extracting functions, classes, and references to give AI coding agents a structured map of the codebase, currently supporting Rust, Python, TypeScript/JS, and Go.

Hi everyone—I’m working on an open‑source tool called spy‑code that parses a repo with tree‑sitter, extracts functions, classes, constants and tracks calls, imports and references as edges, builds a local SQLite graph and exposes it via CLI / GraphQL / MCP. The goal is to give AI coding agents a structured map of the codebase rather than a bundle of files. It’s local‑first and currently targets Rust, Python, TypeScript/JS and Go. What queries would you want against such a graph? Do you prefer GraphQL or a simpler API? I’ve omitted the link from this post to comply with rule 3; I’ll add it in the comments.
Original Article

Similar Articles