能力标签
代码智能引擎
🛠
AI工具

代码智能引擎

基于 Rust · 开源免费,本地部署,数据完全自主可控
英文名:infigraph
⭐ 8 Stars 🍴 3 Forks 💻 Rust 📄 NOASSERTION 🏷 AI 8.5分
8.5AI 综合评分
ai-toolsast-parsingcode-analysiscode-intelligence
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,代码智能引擎 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.5 分,适合有一定技术背景的用户使用。

📚 深度解析

代码智能引擎 是一款基于 Rust 的开源工具,在 GitHub 上收获 0k+ Star,是ai-tools、ast-parsing、code-analysis、code-intelligence领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
代码智能引擎 依赖 Rust 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Rust 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 代码智能引擎 的版本更新,及时通知重要功能变化。

📋 工具概览

代码智能引擎 是一款基于 Rust 开发的开源工具,专注于 ai-tools、ast-parsing、code-analysis 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 8
开发语言
Rust
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
NOASSERTION
AI 综合评分
8.5 分
工具类型
AI工具
Forks
3

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

代码智能引擎 是一款基于 Rust 开发的开源工具,专注于 ai-tools、ast-parsing、code-analysis 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:cargo install(推荐)
cargo install infigraph

# 方式二:从源码编译
git clone https://github.com/intuit/infigraph
cd infigraph
cargo build --release
# 二进制在 ./target/release/infigraph
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
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"
📑 README 深度解析 真实文档 完整度 95/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

Infigraph

Infigraph

License: Apache 2.0 Rust GitHub Release

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.

---

Key Highlights

  • 62 Languages: Tree-sitter parsing for 62 languages + ANTLR grammar plugins for custom DSLs. Zero config.
  • Graph Database: Full Cypher queries on your codebase — WITH, OPTIONAL MATCH, variable-length paths.
  • Semantic Search: BM25 + Model2Vec hybrid search. Finds "retry logic" even if the function isn't named retry.
  • SCIP Integration: Auto-downloads compiler-grade indexers (TypeScript, Python, Java, Go, Rust, C#, Ruby, Scala). Falls back to lsp-to-scip bridge for 14+ more languages.
  • Cross-File Resolution: Import-aware call resolution links function calls to actual definitions across files.
  • HTTP Route-Aware: Maps your API surface across 22 frameworks (Flask, Express, Spring, Actix, Phoenix, Rails, etc.).
  • Multi-Repo/Microservice: Group repos, cross-repo Cypher queries, HTTP contract extraction, cross-service dependency detection.
  • PR Review & CI: Auto-detects PR type (bug fix, refactor, migration, feature) and scope. Runs semantic diff, blast radius, affected tests, security scan, complexity, dead code, clones — with optional LLM-enriched test plan and risk assessment. Cross-repo blast radius via groups. Configurable CI check gates.
  • Test Context Generator: 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.
  • OSV Vulnerability Scanning: Scans dependencies against the OSV database for known vulnerabilities.
  • Design Pattern Detection: Identifies Singleton, Factory, Observer, Strategy, Builder, and other patterns.
  • Refactor Analysis: Complexity hotspots, coupling, near-duplicate detection, dead code — ranked by impact/effort.
  • Taint Analysis: Intra + inter-procedural dataflow tracking from sources (HTTP params, user input) to sinks (SQL, exec, file I/O). Sanitizer-aware.
  • Cross-Cutting Concerns: Detects authorization, caching, transactions, rate limiting, audit logging, and more from annotations across 7 languages.
  • Config Binding Resolution: Parses Spring profiles, Django settings, .NET appsettings, Rails envs — links conditional annotations to config properties.
  • Reflection Scanner: Detects Class.forName, importlib.import_module, dynamic require — resolves targets via config files.
  • Document Indexing: Index PDF, DOCX, PPTX, HTML, Markdown with hybrid search.
  • Confluence Wiki Crawler: BFS wiki crawl with incremental sync — indexes pages into the same search pipeline as code.
  • Auto-Watch: File watcher auto-starts after indexing. Index stays fresh without manual intervention.
  • HNSW Vector Index: Approximate nearest neighbor search for fast similarity queries at scale (~2ms for 500K symbols).
  • Session Continuity: Persists context across AI agent sessions — summary, pending tasks, decisions, touched files.
  • 82 MCP Tools: Full AI agent integration for 11 coding agents (Claude Code, Cursor, VS Code, Copilot, Windsurf, etc.).
  • Sequence Diagrams: Auto-generates Mermaid sequence diagrams from call graphs.
  • Cross-Language Detection: Delphi↔COM, VB6↔COM, C#↔JNI, FFI, gRPC, WASM bridges.
  • Grammar Plugins: Drop .g4 + plugin.toml — parse any custom/internal DSL without Rust compilation.
  • Pipeline Plugins: Runtime-extensible pipeline metadata extraction — add new data pipeline formats (dbt, Airflow, custom) without recompiling. Dependency graphs, impact analysis, compliance queries.
  • Structured Ingestion: TOML schema-driven plug-n-play data ingestion — define schemas in .infigraph/structured-schemas/, drop JSON/YAML data files. Symbol resolution, directory mode, dual backend.
  • Named Sessions: Save and recall named AI agent sessions by identity — persist context across long-running projects.
  • Write-Lock Safety: Advisory file locking for Kuzu single-writer constraint. All write paths protected. RAII guard auto-releases on drop or crash.
  • Web UI: Built-in graph explorer, search, route map at localhost:9749.
  • Export: Neo4j Cypher, GraphML, JSON — take your graph anywhere.

---

Features & Architecture

Features

System Requirements

PlatformRequired
macOSRust (rustup), brew install cmake
LinuxRust (rustup), sudo apt install cmake
WindowsRust (rustup), Visual Studio Build Tools (C++20)

No Docker, no Python, no Node.js required — everything is self-contained.

Requirements

  • Java 11+ — the ANTLR interpreter runs in a JVM subprocess
  • No Rust toolchain needed — grammar plugins are pure config + .g4 files

Prerequisites

PlatformRequired
macOSbrew install cmake, Rust (rustup)
Linuxsudo apt install cmake, Rust (rustup)
WindowsRust (rustup), Docker (for cross-compilation)

Install CMake (required by lbug graph DB)

winget install Kitware.CMake

Install (one-liner)

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

Installation

Uninstall

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.

---

Building from Source

Windows (native build)

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

Install Rust

winget install Rustlang.Rustup

Install Visual Studio Build Tools with C++ workload

winget install Microsoft.VisualStudio.2022.BuildTools

Clone and build

git clone https://github.com/intuit/infigraph.git cd infigraph cargo build --release -p infigraph-cli -p infigraph-mcp

Build for Intel Mac (from ARM64 machine)

cargo build --release --target x86_64-apple-darwin -p infigraph-cli -p infigraph-mcp ```

Full reindex (clean rebuild from scratch):

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.

SCIP Integration (Compiler-grade Enrichment)

Infigraph natively imports SCIP indexes to enrich the graph with precise compiler-grade symbols, types, and cross-file relationships. SCIP indexers are auto-downloadedinfigraph index detects project languages and fetches the right indexer binaries (with portable runtimes for Node.js, JRE, .NET, Dart, PHP) on first use:

```bash

Quick Start

Usage Examples

Quick start: adding a new language

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
   

CLI usage

infigraph ingest --schema api_endpoints --data-file endpoints.json infigraph ingest --schema api_endpoints --source ./data/endpoints/

Manual CLI (Optional)

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

---

CI Check Configuration

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

Extraction rule reference

Entity mappings ([[entities]])

FieldRequiredDescription
ruleyesANTLR parser rule name to match
kindyesFunction, Method, Class, Struct, Variable, Constant, Section, Module, Field, Test, Route
name_childyesChild rule that holds the entity name
scopenoIf true, pushes a scope (nested symbols get parent::name IDs)

Relation mappings ([[relations]])

FieldRequiredDescription
ruleyesANTLR parser rule name to match
kindyesCalls, Imports, Reads, Writes, Inherits, Implements, Contains
target_childyesChild rule that holds the target name
conditionnohas_child:RULE, has_token:TEXT — only match when condition is true

.infigraph/structured-schemas/api_endpoints.toml

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

tool: ingest_structured { schema_id: "api_endpoints", data_file: "endpoints.json" }

```

Grammar Plugins (ANTLR)

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.

Plugin discovery

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.

Pipeline Plugins

Runtime-extensible pipeline metadata extraction — add new data pipeline formats (dbt, Airflow, custom) without recompiling. Each plugin is a subprocess with JSON IPC.

Full Pipeline Plugins Guide →

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

Integration

  • 82 MCP tools for AI coding agents
  • 11 agent auto-configs — Claude Code, Cursor, VS Code, Codex, Gemini CLI, Zed, OpenCode, Aider, Windsurf, Kiro, GitHub Copilot
  • Web UI at localhost:9749 with graph explorer, search, route map, multi-repo groups, contracts
  • Export — Neo4j Cypher, GraphML, JSON

Architecture: tree-sitter vs grammar plugins

Tree-sitterGrammar Plugin
Grammar format.scm queries.g4 grammars
RuntimeNative (compiled C)JVM subprocess (ANTLR interpreter)
Adding a languageWrite .scm query filesDrop .g4 + plugin.toml
Compilation neededNo (queries are text)No (interpreter mode)
Performance~1ms/file~100-800ms/file
Best forMainstream languagesCustom/internal DSLs

Both backends produce the same Symbol + Relation output. Everything downstream (graph, search, analysis, MCP tools) is backend-agnostic.

Troubleshooting

🎯 aiskill88 AI 点评 A 级 2026-06-24

高质量的代码智能引擎,提供强大的代码分析能力

⚡ 核心功能

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

抽象语法树(Abstract Syntax Tree)
💡 AI Skill Hub 点评

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
🔗 原始来源
🐙 GitHub 仓库  https://github.com/intuit/infigraph 🌐 官方网站  https://intuit.github.io/infigraph/

收录时间:2026-06-24 · 更新时间:2026-06-24 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →