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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
B
Blog
腾讯CDC
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
L
LangChain Blog
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
CodeGraph Review 2026: This MCP Server Cut My AI Agent's ...
yihui zhang · 2026-06-21 · via DEV Community

yihui zhang

You know that feeling when you're watching Claude Code or Cursor explore a big codebase, and it just keeps... digging? One grep, one find, one Read file — over and over. Meanwhile your token counter ticks up like a taxi meter.

I've been there. Especially on my Hermes Agent setup where every wasted call burns through the context window. So when I saw CodeGraph rocketing up GitHub with 42k stars and +9.3k in a single week, I had to find out if it lives up to the hype.

What CodeGraph Actually Does

CodeGraph is an MCP (Model Context Protocol) server that pre-indexes your entire codebase into a semantic graph. Instead of your AI agent running grep 47 times to find "where is the auth middleware defined?", it queries the graph once and gets back a structured answer with exact file paths and line numbers.

I installed it on three projects:

  1. Hermes Agent (~680 files, Python/TypeScript) — my daily driver
  2. A React dashboard (~200 files) — mid-size frontend
  3. A legacy Flask monolith (~1,200 files) — the true test

The Results (After 1 Week)

Project Before CodeGraph After Token Reduction
Hermes Agent avg 8.2 explore calls/task 2.1 calls -74%
React dashboard avg 5.1 calls 1.8 calls -65%
Flask Monolith avg 15.7 calls 8.3 calls -47%

The Flask monolith saw less reduction because half the codebase is dynamically generated routes — CodeGraph can't index what doesn't exist at index time. But for well-structured projects, the results are dramatic.

What I Didn't Like

  • Index time on first run: 4 minutes for the Flask project. Not terrible, but noticeable.
  • Stale index on rapid development: If you're doing TDD with lots of file creates/deletes, you need to re-index every 20-30 minutes.
  • "Where should I look?" syndrome: The agent sometimes over-trusts the graph and misses files created after the last index.

The Verdict

If you're using AI coding agents daily (Claude Code, Cursor, Hermes Agent, Aider), CodeGraph is a no-brainer install. The token savings alone pay for the 5-minute setup in a single coding session.

For casual use (once a week), skip it — the setup overhead isn't worth it.

Read the full hands-on review with exact commands and troubleshooting: https://toolgenix.nxtniche.com/posts/codegraph-review-2026/

Originally published at ToolGenix