惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
U
Unit 42
B
Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
P
Privacy International News Feed
L
LINUX DO - 最新话题
博客园_首页
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tor Project blog
V
Visual Studio Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
K
Kaspersky official blog
C
Cisco Blogs
博客园 - 【当耐特】
阮一峰的网络日志
阮一峰的网络日志
I
Intezer
罗磊的独立博客
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
A
About on SuperTechFans
G
GRAHAM CLULEY
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
D
DataBreaches.Net
The Hacker News
The Hacker News
Spread Privacy
Spread Privacy
AWS News Blog
AWS News Blog
I
InfoQ
T
The Exploit Database - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 叶小钗
Project Zero
Project Zero

GoPenAI - Medium

Group Relative Policy Optimization (GRPO) Your agent fleet can build trustworthy state with their own keys Epistemic Backbone #1: Why AI Systems Need Shared Memory, Not Just Models Transformers Beyond NLP: Fun and Trendy Use Cases Your First Transformer: The Road to Attention Part 4. From Seats to Agents: Early Evidence on the Future of Work in the Agentic AI Era The AI Trust Gap: Why Faster Code Is Creating Less Confidence From Bytes to BPE: A From-Scratch Tour of LLM Tokenization ️ Grok Voice Think Fast 1.0: The First Voice AI That Actually Thinks While Talking .NET 10.0.7 OOB Security Update: The Kind of Bug You Can’t Afford to Ignore Writing Custom Pallas Kernels for vLLM on TPU — A Step-by-Step Guide Contrastive Learning Day 39: Advanced Ensemble Learning Techniques — Stacking, Random Forest, AdaBoost, and Gradient… Localization: Beyond Translation, Into the Territory of Growth Hacking Can We Translate Our Sentiments? Training the first modern architecture encoder for South Slavic languages What Is Data, and Why Does It Matter for AI? A Complete Guide to Prompt Engineering: Best Practices & Tips DeepSeek TileKernels: The Hidden Tech Making AI Models Insanely Fast Can AI Growth Really Become Economic Growth? Evaluating API Test Generation Across Leading AI Tools Pin Clustering in .NET MAUI Maps: Finally Making Maps Usable (With Example) Unsupervised Learning What is an LLM? Tokens, Context Window, and Why They Matter Build a reactive AI agent harness — Part 1. Conversation. From Hallucination to Citation… RAG Made Simple: How AI Finds the Right Answers CLI Coding Agents Tierlist Google Deep Research Max: Build Autonomous AI Research Agents Hermes Agent vs Every AI Assistant: Why Memory Changes Everything I Watched a Startup Burn $1,200 in a Week. The Culprit Was 800 Tokens. Fine-Tuning LLMs Explained: How Companies Teach AI to Think Like Them ️ xAI Just Dropped the Fastest Voice AI Ever Essential Code Patterns in Generative Artificial Intelligence Exploratory Data Analysis: A basic Understanding Day 36: Introduction to Ensemble Learning — Why Multiple Models Perform Better than One Concept to build a Student IQ — Agent Framework Workflow + Microsoft Foundry Agents 20 API Concepts Every Software Engineer Should Know From Human-Feedback Control to Declared No-Meta Agency: A Scientific Exposition GPT-5.5 Is Here — And It’s Not Just Smarter… It Works For You Test Cases in Data Science Projects: A Basic Understanding Q, K, V: The Three Matrices That Quietly Run Every Modern LLM Artificial Intelligence UseCases in Testing A Comprehensive Guide for Beginners into Artificial Intelligence Day 33: DBSCAN — Clustering Beyond Boundaries The Attention Breakthrough — How Language Models Finally Learned to Focus I rebuilt Strava (and Strava Premium) for fun, and now I want your feedback .NET April 2026 Updates: The Kind of Release You Should Never Ignore .NET 11 Preview 3: Small Changes That Quietly Improve Everything ChatGPT Images 2.0 Isn’t an Update — It’s a Revolution Claude Mythos: The AI Model Too Powerful to Release Basic Understanding of Key Parameters: Artificial Intelligence Part-2 Kimi K2.6: The Most Powerful Open-Source LLM Is Here (And It’s Not What You Expect) Elephant in the room — Openrouter’s Elephant-Alpha I Built a RAG System From Scratch in 4 Weeks — Here’s Everything I Learned Deep Learning Interview Q&A Part -1 Deep Learning Interview Q&A Part -2 Anthropic Just Launched Claude Routines Microsoft Just Dropped a Cheaper AI Image Model — And This Changes Everything Building a Local-first Knowledge Management System with LLM and Obsidian Basic Understanding of Key Parameters: Artificial Intelligence Part-1 Copy These 7 Prompt Formulas and Never Struggle With AI Again Claude Opus 4.7 vs Mythos — The Benchmark Truth Nobody Explains The ROI on Reading is Broken. I Built an AI Learning OS to Fix It Beyond Scatter: Metrics That Allows to Measure Creativity in LLMs. Banish the RNN: The Road To Attention Part 3. You Typed a Few Words. The AI Painted a World. Here’s Exactly How. 46% of Code Is Now AI-Generated. The Other 54% Is the Part That Will Get You Fired. Claude Opus 4.7: The Quiet Leap Toward Autonomous AI Workflows Is bitnet.cpp the Game Changer for Running LLMs on Your Laptop? Machine Learning Algorithms : A Comprehensive Guide Building REPI (Real Estate Pain Point Intelligence Platform) — From Scraping 5 Noisy Data Sources… Hermes Agent: The AI That Actually Remembers You (Not Another OpenClaw) MiniMax M2.7 Just Went Open-Weight — Run a Powerful AI Agent on Your Own Machine XML Is Everywhere — You Just Never Noticed It The Missing Infrastructure for GUI Agents: Unpacking the ClawGUI Framework Wayfarer: Building an AI-Powered Travel Intelligence Platform with Agentic Orchestration, Bayesian… Attention from First Principles: DeltaNet Project Glasswing and Claude Mythos Preview: Anthropic’s Bet on AI-Powered Cyber Defense Deep Learning-Based Binary Classification of Forest Fires GenAI Q and A Interview Questions Part -2 How Google Maps Knows There Is Traffic Before You Even Reach There 5 AI Freelance Services Clients Actually Pay For I Accidentally Built a World Where AIs Govern Themselves (And I Have No Idea What’s Happening… Meta’s “Compute Desk” Is the Tell: When AI Stops Being Software and Becomes Resource Strategy The Last Human Stronghold Falls: Inside the GrandCode Multi-Agent System ASP.NET Core 2.3 End of Support: What It Really Means for Developers Andrej Karpathy’s LLM Wiki: The Idea That Could Kill RAG Forever I Built an Open-Source Kubernetes Control Plane for AI Agents. Here’s What It Took. GLM-5.1 Just Changed Coding Forever — The AI That Gets Smarter the Longer It Works Goodbye Llama? Meta Just Dropped Muse Spark — And It Changes Everything Anthropic Accidentally Leaked All of Claude Code’s Source Code Stop Sending Your Data to the Cloud — Build This Instead Today Physical AI Cosmos Reason2 2B World Model inference in Azure Machine Learning LangChain vs LlamaIndex vs LangGraph: The Difference Nobody Explains Clearly Cloud Services Interview Q and A Part- 1 Cloud Services Interview Q and A Part- 2 Gemma-4 — disabling thinking with gemma-4–26b-a4b-it Mixture of Experts Explained: The Secret Architecture Making AI 10x Smarter Without Using 10x More… Diffusion Models Demystified: How AI Paints Masterpieces from Pure Noise (No Math Needed)
Graphify: Build a Knowledge Graph From Your Entire Codebase — Without Sending Your Code to Anyone
Mustafa Genc · 2026-04-23 · via GoPenAI - Medium
Every time you ask your AI assistant “how does the auth flow work?” it reads the relevant files from scratch. On a small project that’s fine. On a 50-file, mixed-language repo with PDFs, architecture docs, and a few recorded design meetings, it either hits a context limit or burns through hundreds of thousands of tokens — every single query. Graphify is a Python tool and Claude Code skill that solves this by doing the expensive analysis once, upfront, and compressing everything into a queryable knowledge graph. The graph stays on disk. Subsequent queries traverse the graph instead of re-reading raw files. The claim is 71.5× fewer tokens per query on mixed corpora. That number is self-reported and worth scrutinising — we will. But the underlying idea is architecturally sound, and the way Graphify handles data privacy is more nuanced than most tools of this type. If you liked this article, please clap — and if you’re feeling generous, you can give up to 50 claps 👏 The Token Tax on Large Codebases Context windows have grown dramatically — Claude Sonnet 4.6 supports 200K tokens, GPT-5.4 up to 1M — but the problem is not just size. It is cost and latency. Feeding a 200-file repository into every query is expensive in API costs and slow in wall-clock time. More importantly, most of the information in those 200 files is irrelevant to any given question. You are paying to load the entire library to find one paragraph. The standard answer is RAG: embed your files, store them in a vector database, retrieve the top-K chunks at query time. RAG works well for prose documents where semantic similarity is a reliable retrieval signal. It works less well for code, where the relationship between a function and its callers is structural, not semantic — “process_payment calls validate_card” does not live in the embedding space; it lives in the call graph. Graphify takes a different approach. Instead of embedding files and retrieving by similarity, it builds an explicit graph of entities and relationships, then answers queries by traversing that graph. This is structurally closer to how a senior engineer navigates an unfamiliar codebase: they build a mental model of the system and traverse it, rather than doing a fuzzy search over the source text. What Graphify Produces Running /graphify on a directory produces several outputs in a graphify-out/ folder: An interactive HTML graph rendered with vis.js — nodes are entities (functions, classes, concepts, document sections), edges are relationships (calls, imports, references, inferred dependencies) A persistent JSON graph for programmatic queries A Markdown report identifying high-degree nodes and community clusters Optionally: an Obsidian vault, a Neo4j database, an SVG, a GraphML file, or an MCP server that exposes the graph as LLM-accessible tools The graph uses Leiden community detection to cluster nodes into thematic groups. If you have a monorepo with auth, billing, and infra modules, the graph will automatically surface those as distinct clusters with explicit bridge nodes between them. Three Passes, Three Different Philosophies About Your Data This is the most important part of understanding Graphify. The tool does not treat all file types the same way. It runs three distinct passes, and each one has a completely different data residency story. Pass 1: Deterministic AST Extraction (Your Code Never Leaves) For every source code file, Graphify calls tree-sitter — a deterministic, rule-based parser. Think of it like a compiler’s front-end: it reads the file, applies a formal grammar, and outputs a structured syntax tree. No language model is involved. No network call is made. Your source code does not leave your machine. tree-sitter supports 23 languages: Python, TypeScript, JavaScript, Go, Rust, Java, C, C++, Ruby, C#, Kotlin, Scala, PHP, and more. The output is a set of node/edge dicts encoding every function, class, import, and call relationship that is explicitly visible in the source text. This matters for two reasons. First, it is free (no API cost). Second, it is precise — AST-extracted relationships carry the EXTRACTED confidence tag, meaning they are facts, not guesses. Pass 2: Local Audio Transcription (Your Recordings Never Leave Either) If you point Graphify at a directory containing audio or video files, it transcribes them using faster-whisper, which runs entirely on your own machine. The audio is never uploaded anywhere. This pass is optional and requires the graphifyy[video] dependency group: pip install "graphifyy[video]" faster-whisper is a CTranslate2-accelerated implementation of OpenAI’s Whisper model. On a modern laptop it transcribes an hour of meeting audio in a few minutes. The transcript is then fed into the graph as a document node, same as any other text. Pass 3: Semantic Extraction (Documents and Images Go to Your AI API) Documents (Markdown, PDFs, RST), and images (PNG, JPG, WebP, GIF) cannot be parsed with a grammar. Their structure is semantic, not syntactic. To extract entities and relationships from a whiteboard photo or a research PDF, Graphify calls your configured AI platform — Anthropic, OpenAI, or whichever you have set up. The critical word is your . Graphify uses the credentials already configured in your AI platform environment. It has no central relay server. The traffic goes directly from your machine to Anthropic (or OpenAI, etc.) using the same API key you already use for coding assistance. Graphify itself collects nothing. SECURITY.md is explicit: “makes no network calls during graph analysis.” The project also states there is no telemetry, no usage tracking, and no analytics of any kind. Credentials are not stored by Graphify. The full data flow summary: The nuance: your AI provider (Anthropic, OpenAI) does see your document and image content, under your API agreement with them. If your documents contain sensitive information, review your provider’s data handling policy before running Pass 3. You can also restrict Graphify to code-only mode to avoid Pass 3 entirely. The Confidence System: Knowing What the Graph Knows Every edge in the graph carries one of three confidence tags. This is a small design decision with large practical consequences. EXTRACTED means the relationship is explicitly present in the source. validate_card is called by process_payment — that is in the AST. You can trust it. INFERRED means the relationship was reasoned by the model from context. The semantic extractor noticed that PaymentService and FraudDetector are always referenced together in documentation and inferred a dependency. This might be right. It might also be a coincidence. AMBIGUOUS means the model flagged the connection as uncertain. These edges exist in the graph but should not be acted on without human review. Think of EXTRACTED as a citation with a page number, INFERRED as a footnote that says “see also”, and AMBIGUOUS as a sticky note that says “double-check this.” The graph gives you all three, labelled, rather than presenting everything with false confidence. Getting Started Prerequisites: Python 3.10+, a Claude Code installation (or another supported platform). # Install the package pip install graphifyy # Register the skill with your AI platform graphify install The graphify install step detects your configured platform and injects the skill definition into the appropriate config file (e.g. ~/.claude/CLAUDE.md for Claude Code). Optional dependencies — install only what you need: # Local audio/video transcription pip install "graphifyy[video]" # Microsoft Office file support (.docx, .xlsx) pip install "graphifyy[office]" # MCP server (expose graph as LLM tools) pip install "graphifyy[mcp]" # Everything at once pip install "graphifyy[all]" Running Graphify: # Standard analysis of current directory (inside your AI assistant) /graphify # Deep mode: more aggressive relationship inference /graphify --deep # Process a specific subdirectory /graphify ./src/auth # Watch mode: rebuild graph as files change /graphify --watch # Query the existing graph /graphify query "how does user authentication flow through the system?" # Find the shortest path between two entities /graphify path "UserService" "DatabasePool" # Get a natural-language explanation of an entity /graphify explain "PaymentProcessor" On subsequent runs , SHA256 hashes are checked against the cache. Only files that changed since the last run are reprocessed. The initial ingest is the expensive one; repeat queries are fast. Git hook integration — rebuild the graph automatically on every commit: # Inside your repo, Graphify can install its own git hooks /graphify --install-hooks After this, a git commit or git checkout triggers an incremental graph update automatically. Your AI assistant always sees a graph that reflects the current branch state. The 71.5× Claim: What It Means and What to Verify The README claims Graphify reduces token usage by 71.5× on mixed corpora compared to reading raw files. This number comes from the project’s own worked/ directory — example runs on curated datasets. The claim is architecturally plausible. If you have a 10,000-function codebase and you ask “what calls process_payment?”, graph traversal returns a handful of node identifiers. Reading raw files to answer the same question means loading every file that might contain the answer. The ratio depends entirely on the size of the corpus and the specificity of the query — sparse, structural queries see large gains; broad conceptual queries see smaller ones. What has not been independently reproduced: any external benchmark comparing Graphify’s graph queries against a raw-file or RAG baseline on a common test set. Until that exists, treat 71.5× as a directional indicator, not a specification. Your mileage will vary with corpus size, file type mix, and query pattern. When Graphify Makes Sense Good fit: Mixed-media projects with code, architecture documents, design PDFs, and recorded meetings in the same repository Repeated queries over a stable codebase — the caching benefit compounds over time Teams using Claude Code as a coding assistant who want to reduce per-session API costs Projects with complex call graphs where semantic search struggles (deep inheritance chains, heavily callback-based architectures) Poor fit: Greenfield projects with fewer than ~20 files — the graph overhead is not worth it Repositories where all content is prose documentation — flat RAG will likely outperform graph traversal for open-ended semantic questions Environments where your AI provider’s data handling policy prohibits sending document content to their API (Pass 3 cannot be circumvented for documents/images) Projects requiring verified, reproducible analysis — INFERRED and AMBIGUOUS edges can mislead if taken at face value Limitations Worth Knowing Single-developer project. Graphify is an independent open-source tool at v0.4.10 with no published institutional backing. It is actively developed but long-term maintenance is unknown. Treat dependencies on it with appropriate caution in production tooling. Package name friction. The tool is called graphify but the PyPI package is graphifyy (double-y). The README acknowledges this is temporary. Always confirm the current canonical package name before installing — typosquatting on popular developer tools is common. Unquantified semantic extraction accuracy. The quality of Pass 3 output — the relationships Graphify extracts from your documents and images — depends on the underlying model and has no published precision/recall benchmarks. The INFERRED confidence tier exists precisely because this is not always reliable. API cost on first ingest. For a large project with hundreds of PDFs and images, the initial Pass 3 run can generate substantial API bills. Plan for this before running on a large document-heavy repository. The cache makes subsequent runs cheap, but the first run is not. What to Watch Next The MCP server integration is worth watching. As MCP adoption grows across AI coding assistants, Graphify’s ability to expose a codebase graph as a set of LLM-callable tools becomes a building block for autonomous agents that need structured codebase understanding rather than just file search. Sources GitHub repository: https://github.com/safishamsi/graphify PyPI package page: https://pypi.org/project/graphifyy/ SECURITY.md (upstream): https://github.com/safishamsi/graphify/blob/main/SECURITY.md ARCHITECTURE.md (upstream): https://github.com/safishamsi/graphify/blob/main/ARCHITECTURE.md Graphify: Build a Knowledge Graph From Your Entire Codebase — Without Sending Your Code to Anyone was originally published in GoPenAI on Medium, where people are continuing the conversation by highlighting and responding to this story.