经 AI Skill Hub 精选评估,代码智能引擎 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.5 分,适合有一定技术背景的用户使用。
代码智能引擎 是一款基于 Rust 开发的开源工具,专注于 ai-tools、ast-parsing、code-analysis 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
代码智能引擎 是一款基于 Rust 开发的开源工具,专注于 ai-tools、ast-parsing、code-analysis 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:cargo install(推荐) cargo install infigraph # 方式二:从源码编译 git clone https://github.com/intuit/infigraph cd infigraph cargo build --release # 二进制在 ./target/release/infigraph
# 查看帮助 infigraph --help # 基本运行 infigraph [options] <input> # 详细使用说明请查阅文档 # https://github.com/intuit/infigraph
# infigraph 配置说明 # 查看配置选项 infigraph --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export INFIGRAPH_CONFIG="/path/to/config.yml"
AST-powered code intelligence engine. Indexes codebases into a persistent knowledge graph with full Cypher queries, hybrid semantic search, cross-file call resolution, and 62 programming languages.
Built in Rust. Zero LLM dependency. Runs locally. No API keys. No network calls.
---
get_test_coverage identifies untested symbols per file. review surfaces affected tests for changed code. Together they generate test context for AI agents writing tests.Class.forName, importlib.import_module, dynamic require — resolves targets via config files..g4 + plugin.toml — parse any custom/internal DSL without Rust compilation..infigraph/structured-schemas/, drop JSON/YAML data files. Symbol resolution, directory mode, dual backend.---
| Platform | Required |
|---|---|
| macOS | Rust (rustup), brew install cmake |
| Linux | Rust (rustup), sudo apt install cmake |
| Windows | Rust (rustup), Visual Studio Build Tools (C++20) |
No Docker, no Python, no Node.js required — everything is self-contained.
.g4 files| Platform | Required |
|---|---|
| macOS | brew install cmake, Rust (rustup) |
| Linux | sudo apt install cmake, Rust (rustup) |
| Windows | Rust (rustup), Docker (for cross-compilation) |
winget install Kitware.CMake
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/intuit/infigraph/main/install.sh | bash
Windows (PowerShell):
iwr https://raw.githubusercontent.com/intuit/infigraph/main/install.ps1 -UseBasicParsing | iex
infigraph uninstall
Removes: - MCP server config from all 11 AI agents - Primary search instructions from ~/.claude/CLAUDE.md
Does NOT delete the binary — remove ~/.local/bin/infigraph and ~/.local/bin/infigraph-mcp manually if desired.
---
Build natively on a Windows machine. Cross-compiling from macOS is not currently supported — LadybugDB (lbug) requires C++20 <format> (GCC 13+), but available cross-compilation Docker images ship GCC 9.
```powershell
winget install Rustlang.Rustup
winget install Microsoft.VisualStudio.2022.BuildTools
git clone https://github.com/intuit/infigraph.git cd infigraph cargo build --release -p infigraph-cli -p infigraph-mcp
cargo build --release --target x86_64-apple-darwin -p infigraph-cli -p infigraph-mcp ```
After install, register Infigraph as the primary search engine for all AI coding agents:
infigraph install
This does four things: 1. Registers infigraph-mcp as an MCP server for 11 agents: Claude Code, Cursor, VS Code, Codex, Gemini CLI, Zed, OpenCode, Aider, Windsurf, Kiro, GitHub Copilot 2. Writes primary search instructions to ~/.claude/CLAUDE.md so AI agents prefer Infigraph over raw grep/glob 3. Installs Claude Code hooks — enforcement hook (warns on raw search) + session save hooks (auto-save context on compaction) 4. Configures Claude Code allowlist — adds all Infigraph MCP tools to ~/.claude/settings.local.json permissions
Then index your projects: ```bash cd /path/to/project infigraph index
infigraph index --full ```
Every search, symbol lookup, and code navigation now goes through Infigraph's graph — saving 60-80% of tokens versus raw file reads.
Infigraph natively imports SCIP indexes to enrich the graph with precise compiler-grade symbols, types, and cross-file relationships. SCIP indexers are auto-downloaded — infigraph index detects project languages and fetches the right indexer binaries (with portable runtimes for Node.js, JRE, .NET, Dart, PHP) on first use:
```bash
1. Create a grammar plugin directory:
~/.infigraph/grammars/my-lang/
├── MyLang_Lexer.g4 # ANTLR lexer grammar
├── MyLang_Parser.g4 # ANTLR parser grammar
└── plugin.toml # Extension mapping + extraction rules
2. Write plugin.toml:
[language]
name = "my-lang"
extensions = [".ml", ".myl"]
entry_rule = "program"
lexer = "MyLang_Lexer.g4"
parser = "MyLang_Parser.g4"
strip_preprocessor = false # true if files have #include/#ifdef lines
[[entities]]
rule = "functionDecl" # ANTLR parser rule name
kind = "Function" # Symbol kind (Function, Method, Class, Variable, etc.)
name_child = "identifier" # Child rule that holds the name
scope = true # Creates a scope (section/function boundary)
[[entities]]
rule = "classDecl"
kind = "Class"
name_child = "identifier"
scope = true
[[relations]]
rule = "functionCall"
kind = "Calls"
target_child = "identifier"
[[relations]]
rule = "fieldAccess"
kind = "Reads"
target_child = "fieldName"
condition = "has_token:." # Only match when DOT token is present
3. Index your project — infigraph discovers the plugin automatically:
infigraph -r /path/to/project index
infigraph ingest --schema api_endpoints --data-file endpoints.json infigraph ingest --schema api_endpoints --source ./data/endpoints/
infigraph search "auth" # Hybrid search
infigraph query "MATCH (...)" # Cypher queries
infigraph trace-callers "function_name" # Who calls this?
infigraph dead-code # Find unused functions
infigraph impact "auth.py::authenticate" # Blast radius
---
Configure quality gates via check.toml:
[security]
enabled = true
max_critical = 0
max_high = 5
[complexity]
enabled = true
threshold = 15
max_violations = 10
[dead_code]
enabled = true
max_dead = 20
[[entities]])| Field | Required | Description |
|---|---|---|
rule | yes | ANTLR parser rule name to match |
kind | yes | Function, Method, Class, Struct, Variable, Constant, Section, Module, Field, Test, Route |
name_child | yes | Child rule that holds the entity name |
scope | no | If true, pushes a scope (nested symbols get parent::name IDs) |
[[relations]])| Field | Required | Description |
|---|---|---|
rule | yes | ANTLR parser rule name to match |
kind | yes | Calls, Imports, Reads, Writes, Inherits, Implements, Contains |
target_child | yes | Child rule that holds the target name |
condition | no | has_child:RULE, has_token:TEXT — only match when condition is true |
schema_id = "api_endpoints" name = "API Endpoints" node_table = "Endpoint"
[[columns]] name = "id" col_type = "STRING" primary = true
[[columns]] name = "url" col_type = "STRING"
[[columns]] name = "method" col_type = "STRING"
[[edges]] name = "HANDLED_BY" from_table = "Endpoint" to_table = "Symbol" from_column = "id" to_column = "handler" resolve_symbol = true # auto-resolves handler names to Symbol nodes
Discovery paths: `.infigraph/structured-schemas/`, `.terragraph/schemas/`, `~/.infigraph/structured-schemas/`
bash
```
Infigraph supports runtime-loaded ANTLR grammar plugins. Drop .g4 grammar files + a plugin.toml config into a directory — infigraph parses the language automatically via a JVM subprocess. No Rust compilation needed.
Plugins are loaded from two locations: - ~/.infigraph/grammars/*/plugin.toml — user-level (all projects) - <project>/grammars/*/plugin.toml — project-level (per repo)
Project-level plugins take precedence.
Runtime-extensible pipeline metadata extraction — add new data pipeline formats (dbt, Airflow, custom) without recompiling. Each plugin is a subprocess with JSON IPC.
Quick overview: - Drop a plugin.toml + extractor binary in ~/.infigraph/pipelines/<name>/ or <project>/pipelines/<name>/ - Infigraph auto-discovers plugins, detects matching documents, extracts metadata via subprocess - Shared PipelineCore table enables cross-plugin dependency graphs and impact analysis - 5 MCP tools: pipeline_plugins, pipeline_deps, pipeline_impact, pipeline_compliance, pipeline_query
| Tree-sitter | Grammar Plugin | |
|---|---|---|
| Grammar format | .scm queries | .g4 grammars |
| Runtime | Native (compiled C) | JVM subprocess (ANTLR interpreter) |
| Adding a language | Write .scm query files | Drop .g4 + plugin.toml |
| Compilation needed | No (queries are text) | No (interpreter mode) |
| Performance | ~1ms/file | ~100-800ms/file |
| Best for | Mainstream languages | Custom/internal DSLs |
Both backends produce the same Symbol + Relation output. Everything downstream (graph, search, analysis, MCP tools) is backend-agnostic.
高质量的代码智能引擎,提供强大的代码分析能力
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
AI Skill Hub 点评:代码智能引擎 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | infigraph |
| 原始描述 | 开源AI工具:AST-powered code intelligence engine. Graph database + hybrid semantic search fo。⭐8 · Rust |
| Topics | ai-toolsast-parsingcode-analysiscode-intelligence |
| GitHub | https://github.com/intuit/infigraph |
| License | NOASSERTION |
| 语言 | Rust |
收录时间:2026-06-24 · 更新时间:2026-06-24 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。