Skip to content

root / tags / ast

#AST

2 fiches

AI Coding Agents & Skills Machine 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: **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**. Apache-2.0, Python 3.10+, default branch **v8**. **Three design choices**, stated in the README. *"Code maps for free, fully local"*: code is parsed into a **tree-sitter AST**, deterministically and without an LLM, nothing leaving the machine. *"Every edge is explained"*: each edge is labeled **`EXTRACTED`** (explicit in the source) or **`INFERRED`** (resolved by graphify), with a third value `AMBIGUOUS` appearing in the report. *"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 rereading the files). **Three query modes** replacing 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. **Benchmarks**: on LOCOMO, recall@10 of **0.497** versus 0.149 for supermemory and 0.048 for mem0, but lower QA accuracy (45.3% versus 49.7%); on LongMemEval-S, **76%**, on par with a dense RAG; and *"Graph build — LLM credits: 0"*. **Points to record**: the `main` branch carries a v1-era README describing a different product (Claude Code-only skill, the "71.5× fewer tokens" claim); the PyPI package is named **`graphifyy`** with two *y*s, while the `graphify` name is being 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).