{
  "id": 16026825,
  "title": "Graphify: AST-Based Knowledge Graphs for Agent Code Navigation",
  "url": "https://urgent.news/2026/10/22/graphify-ast-based-knowledge-graphs-for-agent-code-navigation",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-22T10:08:32.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/mech_app_ai/graphify-ast-based-knowledge-graphs-for-agent-code-navigation-2d33"
  },
  "original_language": "en",
  "account": "Graphify is an open-source project with 132K stars that provides AST-based knowledge graphs for agent code navigation. Unlike vector embeddings, which lose contextual relationships like call graphs and type hierarchies, Graphify's AST graphs preserve structural certainty through deterministic edges. The system parses code into concrete syntax trees using Tree-sitter, extracts entities and relationships, and partitions large codebases using community detection algorithms. This results in a queryable graph where nodes represent code entities and edges represent relationships.\n\nGraphify's architecture includes parsing source files into ASTs, extracting entities and relationships, partitioning the graph into subgraphs for large codebases, and providing query tools for agents to retrieve context. The system does not rely on vector stores or cloud dependencies, and every edge is explicit and explainable. Graphify exposes an MCP server that allows agents to run queries like `graphify.query(pattern)` to find relationships and `graphify.community(entity)` to retrieve the subgraph containing an entity.\n\nThe approach addresses failures in AST parsing, such as dynamic languages, metaprogramming, and incomplete parses, by marking nodes as uncertain or using manual annotations. Graphify balances structural queries (e.g., \"what calls this function?\") with semantic search capabilities (e.g., finding similar code), making it suitable for agent code navigation tasks.",
  "summary": "Agents need to navigate codebases, SQL schemas, and documentation to answer questions like \"which functions call this API endpoint?\" or \"what tables does this migration touch?\" Vector embeddings give you semantic proximity. AST-based knowledge graphs give you structural certainty. Graphify parses code into a queryable graph using tree-sitter, stores relationships as explicit edges, and partitions…",
  "key_points": [
    "Graphify provides AST-based knowledge graphs for agent code navigation.",
    "Unlike vector embeddings, Graphify preserves structural relationships through deterministic edges.",
    "The system parses code into ASTs, extracts entities, and offers query tools for agents."
  ],
  "editors_take": "Replacing probabilistic vector embeddings with deterministic syntax trees allows AI agents to navigate complex codebases through explicit, explainable relationships rather than relying on imprecise semantic approximations.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}