Skip to content
Graph AI

Graph AI

Your codebase, finally explainable.

Created on 26th July 2026

•

Graph AI

Graph AI

Your codebase, finally explainable.

The problem Graph AI solves

Modern codebases grow faster than developers' ability to understand them. As a project accumulates services, API routes, database tables, and months of commit history, two questions become disproportionately expensive to answer:

  • "What does this code actually do, and why was it written this way?" — understanding unfamiliar code still means manually reading files, tracing imports, and digging through git blame.
  • "What breaks if I change this?" — tracing every caller, every API route, and every database table a function touches is manual, error-prone work, especially in a codebase you didn't write yourself.

AI coding assistants have gotten very good at writing code, but most reason about a file in isolation or rely on semantic search — finding text that looks related to a question, not code that is actually connected to it. A similarity guess is not the same as a verified dependency.

DevGraph AI closes that gap by parsing a codebase into an exact, queryable knowledge graph — every function, class, API endpoint, database table, and external package, connected by the real relationships between them (calls, reads, writes, handles). An AI assistant sits on top of that graph and answers questions by traversing real edges, not by guessing from text similarity.

In practice, this means a developer can:

  • Instantly see what a function does, where it lives, and why it was written that way, without manually reading through the file.
  • Ask "what breaks if I change this function" and get an answer grounded in actual callers, dependent services, and database tables, not a plausible-sounding guess.
  • Ask "why was this changed" and get a plain-English answer synthesized from the actual commit history of that piece of code, instead of digging through git log by hand.

The result is less time spent reverse-engineering a codebase and more confidence before making a change — particularly valuable for developers onboarding onto unfamiliar code, or working in a part of the system they didn't originally build.

Challenges we ran into

Keeping the graph readable at scale. A naive force-directed layout showing every function, API route, and database table for a real codebase quickly turns into an unreadable tangle of crossing edges once you're past a few dozen nodes. We solved this by rethinking the interaction model entirely: rather than trying to make a static layout readable, we built a focus-based system where selecting a node dims and blurs everything else while surfacing a contextual popup anchored to that node. This let us keep the entire graph visible at all times without sacrificing clarity when exploring a specific part of the system.

Choosing the right retrieval architecture for the chatbot. Our first instinct was to treat this like any other "chat with your codebase" tool and build a RAG pipeline over chunked code. We realized partway through that semantic search alone cannot reliably answer structural questions like "what calls this function" or "what breaks if I change this," because those are graph-traversal questions, not text-similarity questions. We redesigned the chatbot around function-calling instead: the AI selects from a set of tools that query our in-memory dependency graph directly, falling back to semantic search over AI-generated summaries only when resolving ambiguous natural-language references to a node. This distinction, exact traversal instead of a similarity guess, ended up becoming the core differentiator of the whole project.

Ordering AI analysis around a graph, not a list. For each node's AI-generated summary to be genuinely useful, functions with dependencies needed the summaries of what they depend on available as context, so a higher-level function's explanation could reference what it actually calls rather than analyzing every file in isolation. This meant analyzing the graph bottom-up, starting from leaf nodes with no dependencies. Real codebases occasionally contain mutual recursion or circular references between a class and its own methods, which breaks a strict "lowest dependency first" ordering, so we had to explicitly account for cycles rather than assume the dependency graph was always a clean hierarchy.

Managing token budgets during ingestion. Sending entire large source files to the AI in a single call risked hitting context limits and made per-file analysis expensive and slow. We built a sliding-window approach that regulates how much code is sent per call, and made later commits cheaper still by only analyzing the diff for a changed function rather than reprocessing the whole file, which kept ongoing re-indexing fast and cost-efficient as the codebase evolves.

Tracks Applied (4)

Best Use of Gemini API

DevGraph AI is built around Google's Gemini API as its core reasoning engine, not as a bolt-on feature but as the mechan...Read More

Google Cloud

Best Use of Gemini API

DevGraph AI is built around Google's Gemini API as its core reasoning engine, not as a bolt-on feature but as the mechan...Read More
Major League Hacking

Major League Hacking

Open Innovation

DevGraph AI doesn't target a fixed problem domain like healthcare or sustainability — it introduces a new approach to a ...Read More

Best Use of Gemini API

DevGraph AI is built around Google's Gemini API as its core reasoning engine, not as a bolt-on feature but as the mechan...Read More

google gemini

Discussion

Builders also viewed

See more projects on Devfolio