AI Skill Hub 强烈推荐:Graphify AI编码助手 是一款优质的AI工具。在 GitHub 上收获超过 47.7k 颗 Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
Graphify AI编码助手 是一款基于 Python 开发的开源工具,专注于 AI编程助手、多模型支持、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
Graphify AI编码助手 是一款基于 Python 开发的开源工具,专注于 AI编程助手、多模型支持、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install graphify
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install graphify
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/safishamsi/graphify
cd graphify
pip install -e .
# 验证安装
python -c "import graphify; print('安装成功')"
# 命令行使用
graphify --help
# 基本用法
graphify input_file -o output_file
# Python 代码中调用
import graphify
# 示例
result = graphify.process("input")
print(result)
# graphify 配置文件示例(config.yml) app: name: "graphify" debug: false log_level: "INFO" # 运行时指定配置文件 graphify --config config.yml # 或通过环境变量配置 export GRAPHIFY_API_KEY="your-key" export GRAPHIFY_OUTPUT_DIR="./output"
<p align="center"> <a href="https://graphifylabs.ai"><img src="https://raw.githubusercontent.com/safishamsi/graphify/v4/docs/logo-text.svg" width="260" height="64" alt="Graphify"/></a> </p>
<p align="center"> 🇺🇸 <a href="README.md">English</a> | 🇨🇳 <a href="docs/translations/README.zh-CN.md">简体中文</a> | 🇯🇵 <a href="docs/translations/README.ja-JP.md">日本語</a> | 🇰🇷 <a href="docs/translations/README.ko-KR.md">한국어</a> | 🇩🇪 <a href="docs/translations/README.de-DE.md">Deutsch</a> | 🇫🇷 <a href="docs/translations/README.fr-FR.md">Français</a> | 🇪🇸 <a href="docs/translations/README.es-ES.md">Español</a> | 🇮🇳 <a href="docs/translations/README.hi-IN.md">हिन्दी</a> | 🇧🇷 <a href="docs/translations/README.pt-BR.md">Português</a> | 🇷🇺 <a href="docs/translations/README.ru-RU.md">Русский</a> | 🇸🇦 <a href="docs/translations/README.ar-SA.md">العربية</a> | 🇮🇹 <a href="docs/translations/README.it-IT.md">Italiano</a> | 🇵🇱 <a href="docs/translations/README.pl-PL.md">Polski</a> | 🇳🇱 <a href="docs/translations/README.nl-NL.md">Nederlands</a> | 🇹🇷 <a href="docs/translations/README.tr-TR.md">Türkçe</a> | 🇺🇦 <a href="docs/translations/README.uk-UA.md">Українська</a> | 🇻🇳 <a href="docs/translations/README.vi-VN.md">Tiếng Việt</a> | 🇮🇩 <a href="docs/translations/README.id-ID.md">Bahasa Indonesia</a> | 🇸🇪 <a href="docs/translations/README.sv-SE.md">Svenska</a> | 🇬🇷 <a href="docs/translations/README.el-GR.md">Ελληνικά</a> | 🇷🇴 <a href="docs/translations/README.ro-RO.md">Română</a> | 🇨🇿 <a href="docs/translations/README.cs-CZ.md">Čeština</a> | 🇫🇮 <a href="docs/translations/README.fi-FI.md">Suomi</a> | 🇩🇰 <a href="docs/translations/README.da-DK.md">Dansk</a> | 🇳🇴 <a href="docs/translations/README.no-NO.md">Norsk</a> | 🇭🇺 <a href="docs/translations/README.hu-HU.md">Magyar</a> | 🇹🇭 <a href="docs/translations/README.th-TH.md">ภาษาไทย</a> | 🇺🇿 <a href="docs/translations/README.uz-UZ.md">Oʻzbekcha</a> | 🇹🇼 <a href="docs/translations/README.zh-TW.md">繁體中文</a> </p>
<p align="center"> <a href="https://www.ycombinator.com/companies/graphify"><img src="https://img.shields.io/badge/Y%20Combinator-S26-F0652F?style=flat&logo=ycombinator&logoColor=white" alt="YC S26"/></a> <a href="https://safishamsi.gumroad.com/l/qetvlo"><img src="https://img.shields.io/badge/Book-The%20Memory%20Layer-2ea44f?style=flat&logo=gitbook&logoColor=white" alt="The Memory Layer"/></a> <a href="https://github.com/safishamsi/graphify/actions/workflows/ci.yml"><img src="https://github.com/safishamsi/graphify/actions/workflows/ci.yml/badge.svg?branch=v8" alt="CI"/></a> <a href="https://pypi.org/project/graphifyy/"><img src="https://img.shields.io/pypi/v/graphifyy" alt="PyPI"/></a> <a href="https://clickpy.clickhouse.com/dashboard/graphifyy"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsql-clickhouse.clickhouse.com%2F%3Fquery%3DSELECT%2520concat%2528toString%2528round%2528sum%2528count%2529%2F1000%2529%2529%2C%2520%2527k%2527%2529%2520AS%2520c%2520FROM%2520pypi.pypi_downloads%2520WHERE%2520project%253D%2527graphifyy%2527%2520FORMAT%2520JSON%26user%3Ddemo&query=%24.data%5B0%5D.c&label=downloads&color=blue" alt="Downloads"/></a> <a href="https://github.com/sponsors/safishamsi"><img src="https://img.shields.io/badge/sponsor-safishamsi-ea4aaa?logo=github-sponsors" alt="Sponsor"/></a> <a href="https://www.linkedin.com/in/safi-shamsi"><img src="https://img.shields.io/badge/LinkedIn-Safi%20Shamsi-0077B5?logo=linkedin" alt="LinkedIn"/></a> <a href="https://x.com/graphifyy"><img src="https://img.shields.io/badge/X-graphifyy-000000?logo=x&logoColor=white" alt="X"/></a> </p>
<p align="center"> <a href="https://star-history.com/#safishamsi/graphify&Date"> <img src="https://api.star-history.com/svg?repos=safishamsi/graphify&type=Date" alt="Star History Chart" width="370"/> </a> </p>
Type /graphify in your AI coding assistant and it maps your entire project — code, docs, PDFs, images, videos — into a knowledge graph you can query instead of grepping through files.
Works in Claude Code, Codex, OpenCode, Cursor, Gemini CLI, GitHub Copilot CLI, VS Code Copilot Chat, Aider, OpenClaw, Factory Droid, Trae, Hermes, Kimi Code, Kiro, Pi, and Google Antigravity.
/graphify .
That's it. You get three files:
graphify-out/
├── graph.html open in any browser — click nodes, filter, search
├── GRAPH_REPORT.md the highlights: key concepts, surprising connections, suggested questions
└── graph.json the full graph — query it anytime without re-reading your files
For a readable architecture page with Mermaid call-flow diagrams, run:
graphify export callflow-html
---
# NOTE:, # WHY:, # HACK:), docstrings, and design rationale from docs are extracted as separate nodes linked to the code they explain.EXTRACTED, INFERRED, or AMBIGUOUS. You always know what was found vs guessed.---
| Requirement | Minimum | Check | Install |
|---|---|---|---|
| Python | 3.10+ | python --version | [python.org](https://www.python.org/downloads/) |
| uv *(recommended)* | any | uv --version | curl -LsSf https://astral.sh/uv/install.sh \| sh |
| pipx *(alternative)* | any | pipx --version | pip install pipx |
macOS quick install (Homebrew):
brew install python@3.12 uv
Windows quick install:
winget install astral-sh.uv
Ubuntu/Debian: ```bash sudo apt install python3.12 python3-pip pipx
curl -LsSf https://astral.sh/uv/install.sh | sh ```
---
Official package: The PyPI package isgraphifyy(double-y). Othergraphify*packages on PyPI are not affiliated. The CLI command is stillgraphify.
Step 1 — install the package:
```bash
graphify-out/ is meant to be committed to git so everyone on the team starts with a map.
Recommended .gitignore additions: ``` graphify-out/manifest.json # mtime-based, breaks after git clone graphify-out/cost.json # local only
Clone the repo and install in editable mode:
```bash git clone https://github.com/safishamsi/graphify.git cd graphify git checkout v8 # active development branch
pip install -e ".[all]"
Verify the editable install:bash graphify --version python -c "import graphify; print(graphify.file)" ```
Install only what you need:
| Extra | What it adds | Install |
|---|---|---|
pdf | PDF extraction | pip install "graphifyy[pdf]" |
office | .docx and .xlsx support | pip install "graphifyy[office]" |
google | Google Sheets rendering | pip install "graphifyy[google]" |
video | Video/audio transcription (faster-whisper + yt-dlp) | pip install "graphifyy[video]" |
mcp | MCP stdio server | pip install "graphifyy[mcp]" |
neo4j | Neo4j push support | pip install "graphifyy[neo4j]" |
svg | SVG graph export | pip install "graphifyy[svg]" |
leiden | Leiden community detection (Python < 3.13 only) | pip install "graphifyy[leiden]" |
ollama | Ollama local inference | pip install "graphifyy[ollama]" |
openai | OpenAI / OpenAI-compatible APIs | pip install "graphifyy[openai]" |
gemini | Google Gemini API | pip install "graphifyy[gemini]" |
bedrock | AWS Bedrock (uses IAM, no API key) | pip install "graphifyy[bedrock]" |
sql | SQL schema extraction | pip install "graphifyy[sql]" |
all | Everything above | pip install "graphifyy[all]" |
---
```
Workflow: 1. One person runs /graphify . and commits graphify-out/. 2. Everyone pulls — their assistant reads the graph immediately. 3. Run graphify hook install to auto-rebuild after each commit (AST only, no API cost). This also sets up a git merge driver so graph.json is never left with conflict markers — two devs committing in parallel get their graphs union-merged automatically. 4. When docs or papers change, run /graphify --update to refresh those nodes.
---
These are only needed for headless / CI extraction (graphify extract). When running via the /graphify skill inside your IDE, the model API is provided by your IDE session — no extra keys needed.
| Variable | Used for | When required |
|---|---|---|
ANTHROPIC_API_KEY | Claude (Anthropic) backend | --backend claude |
GEMINI_API_KEY or GOOGLE_API_KEY | Google Gemini backend | --backend gemini |
OPENAI_API_KEY | OpenAI or OpenAI-compatible APIs | --backend openai |
DEEPSEEK_API_KEY | DeepSeek backend | --backend deepseek |
MOONSHOT_API_KEY | Kimi Code backend | --backend kimi |
OLLAMA_BASE_URL | Ollama local inference URL | --backend ollama (default: http://localhost:11434) |
OLLAMA_MODEL | Ollama model name | --backend ollama (default: auto-detect) |
GRAPHIFY_OLLAMA_NUM_CTX | Override Ollama KV-cache window size | optional — auto-sized by default |
GRAPHIFY_OLLAMA_KEEP_ALIVE | Minutes to keep Ollama model loaded | optional — set 0 to unload after each chunk |
AWS_* / ~/.aws/credentials | AWS Bedrock — standard credential chain | --backend bedrock (no API key, uses IAM) |
GRAPHIFY_MAX_WORKERS | AST parallelism thread count | optional — also --max-workers flag |
GRAPHIFY_MAX_OUTPUT_TOKENS | Raise output cap for dense corpora | optional — e.g. 32768 for large files |
GRAPHIFY_API_TIMEOUT | HTTP timeout in seconds (default: 600) | optional — also --api-timeout flag |
GRAPHIFY_FORCE | Force graph rebuild even with fewer nodes | optional — also --force flag |
GRAPHIFY_GOOGLE_WORKSPACE | Auto-enable Google Workspace export | optional — set to 1 |
GRAPHIFY_TRIAGE_BACKEND | Backend for graphify prs --triage | optional — auto-detected from available keys |
GRAPHIFY_TRIAGE_MODEL | Model override for triage | optional — e.g. claude-opus-4-7 |
---
python3 -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate
/graphify # run on current directory
/graphify ./raw # run on a specific folder
/graphify ./raw --mode deep # more aggressive relationship extraction
/graphify ./raw --update # re-extract only changed files
/graphify ./raw --directed # preserve edge direction
/graphify ./raw --cluster-only # rerun clustering on existing graph
/graphify ./raw --no-viz # skip HTML visualization
/graphify ./raw --obsidian # generate Obsidian vault
/graphify ./raw --wiki # build agent-crawlable markdown wiki
/graphify ./raw --svg # export graph.svg
/graphify ./raw --graphml # export for Gephi / yEd
/graphify ./raw --neo4j # generate cypher.txt for Neo4j
/graphify ./raw --neo4j-push bolt://localhost:7687
/graphify ./raw --watch # auto-sync as files change
/graphify ./raw --mcp # start MCP stdio server
/graphify add https://arxiv.org/abs/1706.03762
/graphify add <video-url>
/graphify add https://... --author "Name" --contributor "Name"
/graphify query "what connects attention to the optimizer?"
/graphify query "..." --dfs --budget 1500
/graphify path "DigestAuth" "Response"
/graphify explain "SwinTransformer"
graphify uninstall # remove from all platforms in one shot
graphify uninstall --purge # also delete graphify-out/
graphify uninstall --project --platform codex # remove project-scoped install files only
graphify hook install # post-commit + post-checkout hooks
graphify hook uninstall
graphify hook status
graphify claude install / uninstall
graphify codex install / uninstall
graphify opencode install
graphify cursor install / uninstall
graphify gemini install / uninstall
graphify copilot install / uninstall
graphify aider install / uninstall
graphify claw install / uninstall
graphify droid install / uninstall
graphify trae install / uninstall
graphify trae-cn install / uninstall
graphify hermes install / uninstall
graphify kiro install / uninstall
graphify antigravity install / uninstall
graphify extract ./docs # headless LLM extraction for CI (no IDE needed)
graphify extract ./docs --backend gemini # explicit backend: gemini, kimi, claude, openai, deepseek, ollama, bedrock, or claude-cli
graphify extract ./docs --backend gemini --model gemini-3.1-pro-preview
graphify extract ./docs --backend ollama # local Ollama (set OLLAMA_BASE_URL / OLLAMA_MODEL) - no API key needed for loopback
GRAPHIFY_OLLAMA_NUM_CTX=32768 graphify extract ./docs --backend ollama # override KV-cache window (auto-sized by default)
GRAPHIFY_OLLAMA_KEEP_ALIVE=0 graphify extract ./docs --backend ollama # unload model after each chunk (saves VRAM on small GPUs)
graphify extract ./docs --backend bedrock # AWS Bedrock via IAM - no API key, uses AWS credential chain
graphify extract ./docs --backend claude-cli # route through Claude Code CLI - no API key, uses your Claude subscription
graphify extract ./docs --max-workers 16 # AST parallelism (also GRAPHIFY_MAX_WORKERS)
graphify extract ./docs --token-budget 30000 # smaller semantic chunks for local/small models
graphify extract ./docs --max-concurrency 2 # fewer parallel LLM calls (useful for local inference)
graphify extract ./docs --api-timeout 900 # longer HTTP timeout for slow local models (default 600s)
graphify extract ./docs --google-workspace # export .gdoc/.gsheet/.gslides via gws before extraction
graphify extract ./docs --no-cluster # raw extraction only, skip clustering
graphify extract ./docs --force # overwrite graph.json even if new graph has fewer nodes (use after refactors or to clear ghost duplicates)
graphify extract ./docs --dedup-llm # LLM tiebreaker for ambiguous entity pairs (uses same API key)
graphify extract ./docs --global --as myrepo # extract and register into the cross-project global graph
GRAPHIFY_MAX_OUTPUT_TOKENS=32768 graphify extract ./docs --backend claude # raise output cap for dense corpora
graphify export callflow-html # graphify-out/<project>-callflow.html
graphify export callflow-html --max-sections 8 # cap generated architecture sections
graphify export callflow-html --output docs/arch.html
graphify export callflow-html ./some-repo/graphify-out
graphify global add graphify-out/graph.json myrepo # register a project graph into ~/.graphify/global.json
graphify global remove myrepo # remove a project from the global graph
graphify global list # show all registered repos + node/edge counts
graphify global path # print path to the global graph file
graphify prs # PR dashboard: CI, review, worktree, graph impact
graphify prs 42 # deep dive on PR #42
graphify prs --triage # AI triage ranking (auto-detects backend from env)
graphify prs --worktrees # worktree → branch → PR mapping
graphify prs --conflicts # PRs sharing graph communities (merge-order risk)
graphify prs --base main # filter to PRs targeting a specific base branch
graphify prs --repo owner/repo # run against a different GitHub repo
GRAPHIFY_TRIAGE_BACKEND=kimi graphify prs --triage # use a specific backend for triage
graphify clone https://github.com/karpathy/nanoGPT
graphify merge-graphs a.json b.json --out merged.json
graphify --version # print installed version
graphify watch ./src
graphify check-update ./src
graphify update ./src
graphify update ./src --no-cluster # skip reclustering, write raw AST graph only
graphify update ./src --force # overwrite even if new graph has fewer nodes
graphify cluster-only ./my-project
graphify cluster-only ./my-project --graph path/to/graph.json # custom graph location
graphify cluster-only ./my-project --resolution 1.5 # more, smaller communities
graphify cluster-only ./my-project --exclude-hubs 99 # exclude p99 degree nodes from partitioning
---
v8 branch.fix: <description> / feat: <description> / docs: <description>pytest tests/ -q and confirm it passes.tests/fixtures/ and tests to tests/test_languages.py for any new language extractor.pipx install graphifyy pip install graphifyy
**Step 2 — register the skill with your AI assistant:**
bash graphify install
That's it. Open your AI assistant and type `/graphify .`
To install the assistant skill into the current repository instead of your user
profile, add `--project`:
bash graphify install --project graphify install --project --platform codex ```
Project-scoped installs write under the current directory, for example .claude/skills/graphify/SKILL.md or .agents/skills/graphify/SKILL.md, and print a git add hint for files that can be committed. Per-platform commands that support project-scoped installs accept the same flag, for example graphify claude install --project or graphify codex install --project.
PowerShell note: Usegraphify .not/graphify .— the leading slash is a path separator in PowerShell.
graphify: command not found? Useuv tool install graphifyyorpipx install graphifyy— both put the CLI on PATH automatically. With plainpip, add~/.local/bin(Linux) or~/Library/Python/3.x/bin(Mac) to your PATH, or runpython -m graphify.
graphify: command not found after pip install graphifyy pip installs scripts to a user bin directory that may not be on your PATH. Fix: - macOS: add ~/Library/Python/3.x/bin to your PATH in ~/.zshrc - Linux: add ~/.local/bin to your PATH in ~/.bashrc - Or use uv tool install graphifyy / pipx install graphifyy — both manage PATH automatically.
python -m graphify works but graphify command doesn't Your shell's PATH doesn't include the Python scripts directory. Use uv or pipx instead of plain pip.
/graphify . causes "path not recognized" in PowerShell PowerShell treats a leading / as a path separator. Use graphify . (no slash) on Windows.
Graph has fewer nodes after --update or rebuild If a refactor deleted files, the old nodes linger. Pass --force (or set GRAPHIFY_FORCE=1) to overwrite even when the rebuild has fewer nodes.
Graph has duplicate nodes for the same entity (ghost duplicates) This happens when semantic and AST extraction disagreed on the node ID format. Run a full re-extract to clean up:
graphify extract . --force
Ollama runs out of VRAM / context window exceeded The KV-cache window is auto-sized but may be too large for your GPU. Reduce it:
GRAPHIFY_OLLAMA_NUM_CTX=8192 graphify extract ./docs --backend ollama --token-budget 4000
Graph HTML is too large to open in a browser (>5000 nodes) Skip HTML generation and use the JSON directly:
graphify cluster-only ./my-project --no-viz
graphify query "..."
graph.json has conflict markers after two devs commit at once Run graphify hook install — it sets up a git merge driver that union-merges graph.json automatically so conflicts never happen.
Extraction returns empty nodes/edges for docs or PDFs Docs and PDFs require an LLM call. Check that your API key is set and the backend is correct:
ANTHROPIC_API_KEY=sk-... graphify extract ./docs --backend claude
Skill version mismatch warning in your IDE Your installed graphify version is different from the skill file. Update:
uv tool upgrade graphifyy
graphify install # overwrites the skill file
---
本项目是 Graphify 的简介,介绍了该项目的 logo 和相关链接。
本节介绍了 Graphify 的功能,包括 God nodes、Surprising connections 和 The "why" 等。
本节列出了 Graphify 的环境依赖和系统要求,包括 Python 和 uv 等。
本节提供了安装 Graphify 的步骤,包括使用 pip 和 Docker 等方式。
本节介绍了 Graphify 的配置选项,包括 PDF、Office 和 Google 等额外功能。
本节提供了 Graphify 的全命令参考,包括 /graphify、/graphify ./raw 等命令。
本节介绍了 Graphify 的工作流和模块,包括 Git workflow、Active development 等。
本节回答了常见问题,包括 "graphify: command not found" 等问题。
架构设计合理,多模型抽象封装完善。活跃维护,社区生态良好。生产级工具,值得关注。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,Graphify AI编码助手 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | graphify |
| 原始描述 | 开源AI工具:AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and。⭐47.7k · Python |
| Topics | AI编程助手多模型支持代码生成开源框架 |
| GitHub | https://github.com/safishamsi/graphify |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-14 · 更新时间:2026-05-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。