CodeXRay
Provides semantic knowledge graph and 16 development tools for AI coding agents to optimize token usage and improve code analysis.
CodeXRay offers "X-ray vision" for your codebase, functioning as a semantic knowledge graph and MCP server with 16 integrated tools. It significantly boosts the efficiency of AI coding agents like Claude Code and Cursor by saving over 30% of tokens and 25% of tool calls, enabling them to find relevant code instantly via graph queries rather than tedious file scanning. Operating 100% locally with zero configuration and no API keys, CodeXRay leverages Tree-sitter to parse code into ASTs, building a SQLite graph with TF-IDF semantic indexing, and keeps the index updated with Git hooks for zero maintenance.
主な機能
01Semantic Search (TF-IDF) for meaning-based code retrieval, without external models or API keys.
02Interactive CLI and Library API for direct code exploration and integration into custom workflows.
03Smart Context Building that condenses multiple file reads into a single, relevant context query for AI agents.
04Comprehensive code analysis tools, including dead code detection, hotspot analysis, blast radius analysis, and circular dependency detection.
052 GitHub stars
06Zero-config installation with `npx codexray`, git hooks for auto-sync, and cross-platform compatibility.
ユースケース
01Improving code quality through automated detection of dead code, complex functions, and circular dependencies.
02Optimizing AI coding agent performance by drastically reducing token consumption and tool calls for code comprehension tasks.
03Accelerating developer workflows by providing instant, semantic search and contextual information about a codebase.