Code-Knowledge-Graph
GKG is Pre-indexed code knowledge graph for Claude Code, Codex, Cursor, OpenCode, and Hermes Agent — to save 💰💲, 🌟 Star if you like it! 🌟
Install / Use
claude mcp add ishandutta2007 -- npx -y github:ishandutta2007/Code-Knowledge-GraphIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of Code-Knowledge-Graph
Code-Knowledge-Graph scores 80/100 on our quality scale, 3630th of 4,546 Development & Engineering skills we index.
Its MCP Server is 4.8 KB long, well organised into 16 sections with 5 code examples: a solid amount of guidance for an agent.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 44 days ago, so Code-Knowledge-Graph is actively maintained.
- Our last check on 2026-09-29 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-25. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
Code-Knowledge-Graph compared with similar skills
All 4 of these similar skills score higher than Code-Knowledge-Graph; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| Code-Knowledge-Graph (this skill)by ishandutta2007 | 80 | 10 | 44d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 97.6k | today | CLAUDE.md |
| taste-skillby Leonxlnx | 100 | 97.0k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 75.4k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.4k | today | CLAUDE.md |
Frequently asked questions
- How do I install Code-Knowledge-Graph?
- Run
claude mcp add ishandutta2007 -- npx -y github:ishandutta2007/Code-Knowledge-Graph. The install tabs above show the steps for each supported agent. - Which AI agents does Code-Knowledge-Graph work with?
- It is written for Claude Code, Claude Desktop, Cursor and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is Code-Knowledge-Graph safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is Code-Knowledge-Graph still maintained?
- The repository was last updated 44 days ago, so Code-Knowledge-Graph is actively maintained.
Skill content
View source on GitHub🧠 Code Knowledge Graph (GKG)
<div align="center">The Pre-indexed Intelligence Layer for your AI Agents
<a href="https://github.com/ishandutta2007/Awesome-Awesome-Awesome"><img src="https://img.shields.io/badge/Awesome-%E2%9C%94-blueviolet?style=flat-square&logo=github" alt="Awesome"/></a><a href="https://discord.gg/jc4xtF58Ve"><img src="https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord" /></a>
<a href="https://github.com/ishandutta2007"><img alt="GitHub followers" src="https://img.shields.io/github/followers/ishandutta2007?label=Follow" /></a>
🚀 Stop Wasting Tokens. Start Coding Faster.
Code-Knowledge-Graph is a high-performance, local indexing engine that maps your codebase into a structured graph. It allows AI agents to understand your project instantly without exhaustive file crawling.
Features • Getting Started • Supported Agents • Why Graph?
</div>
✨ Key Features
- 🏗️ Graph-Based Indexing: Transforms flat files into a rich semantic network of classes, functions, and dependencies.
- 📉 Token Optimization: Drastically reduces the "context window tax" by providing surgical code snippets instead of full-file dumps.
- ⚡ Zero Latency: 100% local processing. No API calls required for indexing.
- 🤖 Agent Ready: Native support for Claude Code, Codex, Cursor, OpenCode, and Hermes Agent.
- 🛡️ Privacy First: Your code never leaves your machine.
📽️ Demo
<div align="center"> <img src="https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExNHJmZzRyeGZqZnd4ZzRyeGZqZnd4ZzRyeGZqZnd4ZzRyeGZqJmVwPXYxX2ludGVybmFsX2dpZl9ieV9pZCZjdD1n/3o7TKVUn7iM8FMEU24/giphy.gif" width="600" alt="Code Indexing Demo"> <p><em>Example: Rapidly mapping a 100k LOC repository in seconds.</em></p> </div>🧩 Agent Compatibility
| Agent | Support Level | Integration Method |
| :--- | :---: | :--- |
| Claude Code | 💎 Full | Custom Tool / Hook |
| Cursor | ✅ Native | .cursorrules / Indexing |
| Codex | ✅ High | Plugin |
| OpenCode | 🛠️ Beta | API Bridge |
| Hermes Agent | 🚀 Optimized | Native Protocol |
🛠️ Quick Start
1. Installation
# Clone the repository
git clone https://github.com/ishandutta2007/Code-Knowledge-Graph.git
# Navigate to the directory
cd Code-Knowledge-Graph
# Install dependencies
npm install
2. Index your codebase
npm run ckg -- index ./path/to/your/project
3. Query the graph
npm run ckg -- query SymbolName
4. Run the MCP Server
To use this with Claude Code or other MCP-compatible agents:
npm run mcp
Then add it to your agent's config (e.g., in claude_desktop_config.json):
{
"mcpServers": {
"code-knowledge-graph": {
"command": "node",
"args": ["--loader", "ts-node/esm", "C:/path/to/Code-Knowledge-Graph/src/index.ts", "mcp"],
"cwd": "C:/path/to/Code-Knowledge-Graph"
}
}
}
📈 Why Code Knowledge Graph?
Traditional AI agents spend ~40% of their tokens just trying to find where a function is defined. By providing a pre-indexed graph, we flip the script:
| Metric | Without CKG | With CKG | Improvement | | :--- | :--- | :--- | :--- | | Initial Context Load | 15,000 Tokens | 1,200 Tokens | 92% Reduction | | Tool Call Latency | 5-10s | < 1s | Fast 🚀 | | Success Rate (RAG) | 65% | 98% | Reliable ✅ |
🤝 Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- 🍴 Fork the Project
- 🌿 Create your Feature Branch (
git checkout -b feature/AmazingFeature) - 💾 Commit your Changes (
git commit -m 'Add some AmazingFeature') - 🚀 Push to the Branch (
git push origin feature/AmazingFeature) - 📬 Open a Pull Request
Star History
<div align="center">
Built with ❤️ for the AI Engineering Community.
</div>Related Skills
Agent-Reach
97.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
taste-skill
97.0kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
headroom
75.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.4kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
