Skip to content

root / tags / ast

#AST

2 fiches

AI Coding Agents & Skills Auto-verified translation

graphify — « Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store. »

**Skill** entry (not an article): **graphify** by **Safi Shamsi** (Graphify Labs, **Y Combinator S26**) turns an entire project — code, docs, PDFs, images, videos — into a **queryable knowledge graph**, invoked via `/graphify` from Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, and about fifteen other clients. Observed on **August 6, 2026**: **103,187 stars**, **10,024 forks**, repository created on **April 3, 2026** — an extraordinary trajectory in four months. **Apache-2.0**, Python 3.10+, default branch **v8**. **The three design commitments fit in three lines of the README**: *« Code maps for free, fully local »* (code is parsed into **tree-sitter AST**, deterministic, no LLM, **nothing leaves the machine**); *« Every edge is explained »* (each edge is tagged **`EXTRACTED`** — explicit in the source — or **`INFERRED`** — resolved by graphify —, with a third value `AMBIGUOUS` appearing in the report); and *« Not a vector index »* — *« no embeddings, no vector store: a real graph you traverse »*. **Three outputs**: `graph.html` (interactive graph), `GRAPH_REPORT.md` (god nodes, surprising connections, suggested questions), and `graph.json` (persistent graph, queryable weeks later without re-reading the files). **Three query modes** replace grep: `query` (subgraph for a natural-language question), `path A B` (shortest path between two entities), and `explain` (neighborhood of a concept). **Coverage**: 36 tree-sitter grammars (~40 languages), plus Terraform, Apex, **MCP configurations**, package manifests, Office, Google Workspace, PDFs, images, and video/audio transcribed **locally** by faster-whisper. Communities detected via **Leiden**, labeled **without an LLM**. ⭐ **The most interesting benchmark result is not a win but a free one**: on LOCOMO, graphify achieves a **recall@10 of 0.497** versus 0.149 for supermemory and 0.048 for mem0, but **loses on QA accuracy** (45.3% versus 49.7%); on LongMemEval-S it scores **76%, tied with a dense RAG**; and the line that matters is *« Graph build — LLM credits: **0** »* where the field typically bills per token. ⚠️ **Points to record**: the `main` branch carries a v1-era README describing a different product (Claude Code skill only, the « 71.5× fewer tokens » claim); the PyPI package is named **`graphifyy`** with two *y*'s, until the `graphify` name is reclaimed; and a **query log** is written by default to `~/.cache/graphify-queries.log`, which can be disabled via an environment variable.

#skill#knowledge graph#knowledge graph

**Safi Shamsi** — créateur et mainteneur de graphify · et de **Graphify Labs** · société passée par **Y Combinator (promotion S26)** selon le badge du dépôt. Il maintient aussi le site d'annuaire `graphify.net` (cf. [[graphify-net-annuaire-ia-coding-2026-08-06]]) et publie un livre · *The Memory Layer* · sur les idées et l'architecture derrière le projet.

Quality & Security Auto-verified translation

Comparing Context Retrieval Approaches for AI Code Review

Empirical study by the **Compare the Market** engineering team (Meerkat Careers, UK) evaluating four approaches to **context retrieval for AI code review**: Baseline (no additional context), **RAG** (vector search), **GKG** (GitLab Knowledge Graph, AST-based knowledge graph), and **GKG+RAG** (hybrid). Evaluation on **79 real merge requests** with **MLflow on Databricks**. Striking result: **RAG performs worse than the baseline** on almost every metric — vector noise is counterproductive for code review. **GKG outperforms RAG by +21%** in inline comments coverage (0.696 vs 0.577) through structural AST understanding (Tree-sitter + Kuzu graph database). Code requires **structural** understanding (callers, signatures, hierarchies), not mere semantic similarity. GKG costs 4× the baseline but delivers measurable improvements; RAG costs 3× with no improvement. Implemented as a **Docker sidecar** in CI/CD wrapping the GKG binary (still in GitLab beta) with a local MCP server.

#Compare the Market#Meerkat Careers#AI code review

Équipe Engineering Compare the Market (Meerkat Careers, UK — site de comparaison d'assurances et services financiers).