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://graphify.com"><img src="https://raw.githubusercontent.com/Graphify-Labs/graphify/v8/docs/logo.png" width="300" height="140" alt="Graphify"/></a> </p>
<p align="center"> <a href="https://trendshift.io/repositories/25296?utm_source=repository-badge&utm_medium=badge&utm_campaign=badge-repository-25296" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/25296" alt="Graphify-Labs%2Fgraphify | Trendshift" width="250" height="55"/></a> </p>
🇺🇸 <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.fa-IR.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> | 🇵🇭 <a href="docs/translations/README.fil-PH.md">Filipino</a> | 🇮🇱 <a href="docs/translations/README.he-IL.md">עברית</a>
</details> </div>
<p align="center"> <a href="https://pypi.org/project/graphifyy/"><img src="https://img.shields.io/pypi/v/graphifyy" alt="PyPI"/></a> <a href="https://pepy.tech/project/graphifyy"><img src="https://img.shields.io/pepy/dt/graphifyy?color=blue&label=downloads" alt="Downloads"/></a> <a href="https://discord.gg/2DDrEgvZb4"><img src="https://img.shields.io/badge/Discord-Join-5865F2?style=flat&logo=discord&logoColor=white" alt="Discord"/></a> <a href="https://www.youtube.com/@graphifylabs"><img src="https://img.shields.io/badge/YouTube-Graphify%20Labs-FF0000?style=flat&logo=youtube&logoColor=white" alt="YouTube"/></a> <a href="https://www.linkedin.com/company/graphify-labs"><img src="https://img.shields.io/badge/LinkedIn-Graphify%20Labs-0077B5?logo=linkedin" alt="LinkedIn"/></a> <a href="https://www.ycombinator.com/companies/graphify-labs"><img src="https://img.shields.io/badge/Y%20Combinator-S26-F0652F?style=flat&logo=ycombinator&logoColor=white" alt="YC S26"/></a> </p>
<p align="center"> <b>Early access to the graphify platform is open before the public v1 launch: <a href="https://app.graphify.com/login">app.graphify.com</a></b> </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.
EXTRACTED (explicit in the source) or INFERRED (resolved by graphify), so you can tell what was read directly from what was inferred.Want this always-on, updating in the background across your code, docs, and meetings rather than only on demand? That is what we are building at graphify.com, and early access is open now at app.graphify.com.
<p align="center"> <img src="https://raw.githubusercontent.com/Graphify-Labs/graphify/v8/docs/graph-hero.png" alt="graphify's interactive graph.html showing the FastAPI codebase as a force-directed knowledge graph with a legend of detected communities" width="900"> </p> <p align="center"> <em>The FastAPI codebase mapped by graphify. Every node is a concept, colors are detected communities, and the whole thing is clickable in graph.html.</em> </p>
Get started (30 seconds):
uv tool install graphifyy # install the CLI (or: pipx install graphifyy)
graphify install # register the skill with your AI assistant
Then, in your AI assistant:
/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
Works in Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, and 15+ more — pick your platform.
---
# 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/cost.json # local only
The project uses uv for dev workflow. Install it once, then:
```bash git clone https://github.com/safishamsi/graphify.git cd graphify git checkout v8 # active development branch
uv tool install graphifyy
```
manifest.json is now portable — keys are stored as relative paths and re-anchored on load, so committing it is safe and avoids a full rebuild on first checkout.
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 |
ANTHROPIC_BASE_URL | Anthropic-compatible endpoint URL (LiteLLM proxy, gateways, ...) | --backend claude (default: https://api.anthropic.com) |
ANTHROPIC_MODEL | Model name for the Claude backend — for custom endpoints, use the model name/alias your server exposes | --backend claude (default: claude-sonnet-4-6) |
GEMINI_API_KEY or GOOGLE_API_KEY | Google Gemini backend | --backend gemini |
OPENAI_API_KEY | OpenAI or OpenAI-compatible APIs | --backend openai (local servers accept any non-empty value) |
OPENAI_BASE_URL | OpenAI-compatible server URL (llama.cpp, vLLM, LM Studio, ...) | --backend openai (default: https://api.openai.com/v1) |
OPENAI_MODEL | Model name for the OpenAI backend — for self-hosted servers, use the model name/alias your server exposes (check its /v1/models endpoint), e.g. LFM2.5-8B-A1B-UD-Q4_K_XL for llama.cpp | --backend openai (default: gpt-4.1-mini) |
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 |
AZURE_OPENAI_API_KEY | Azure OpenAI Service backend | --backend azure |
AZURE_OPENAI_ENDPOINT | Azure resource endpoint URL | --backend azure (required alongside API key) |
AZURE_OPENAI_API_VERSION | Azure API version override | optional — default 2024-12-01-preview |
AZURE_OPENAI_DEPLOYMENT or GRAPHIFY_AZURE_MODEL | Azure deployment name | optional — default gpt-4o |
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 | Per-call timeout in seconds for HTTP, claude-cli, Anthropic SDK, and Bedrock backends (default: 600) | optional — also --api-timeout flag |
GRAPHIFY_MAX_RETRIES | How many times to retry a rate-limited (429) request before giving up (default: 6; honors Retry-After) | optional — raise for strict per-org limits (e.g. kimi); 0 disables |
GRAPHIFY_MAX_RETRY_DEPTH | How deep a truncated chunk may be bisected and re-extracted (default: 3, so up to 8x sub-calls for one chunk) | optional — lower it to cap worst-case spend; 0 disables every retry (no bisection, no hollow-response retry), so a chunk costs exactly one call |
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 |
GRAPHIFY_QUERY_LOG_ENABLE | Set to 1 to turn on the local query log at ~/.cache/graphify-queries.log (records each query/path/explain question + corpus path). Off by default — nothing is written unless you opt in (#1797) | optional |
GRAPHIFY_QUERY_LOG | Enable the query log and write it to this path instead of the default | optional — off unless this or _ENABLE is set |
GRAPHIFY_QUERY_LOG_DISABLE | Set to 1 to force the query log off (wins over the enable vars) | optional |
GRAPHIFY_QUERY_LOG_RESPONSES | When the log is enabled, also record full subgraph responses (off by default) | optional |
GRAPHIFY_MAX_GRAPH_BYTES | Override the 512 MiB graph.json size cap — e.g. 700MB, 2GB, or plain bytes | optional — useful for very large corpora |
GRAPHIFY_MAX_CONTEXTS | Maximum number of non-default project graphs retained by one multi-project MCP server | optional — default: 8; invalid values use 8, and values below 1 use 1 |
GRAPHIFY_LLM_TEMPERATURE | Override LLM temperature for semantic extraction — e.g. 0.7, or none to omit | optional — auto-omitted for o1/o3/o4/gpt-5 reasoning models |
---
``` /graphify # run on current directory /graphify ./raw # run on a specific folder /graphify ./raw --mode deep # more aggressive relationship extraction graphify extract ./raw --code-only # index code only — local AST, no API key (skips docs/PDFs/images); an extract flag, not a skill flag /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 --obsidian --obsidian-dir ~/vault # write into an existing vault (never overwrites your own notes or .obsidian config) /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 --falkordb # generate cypher.txt for FalkorDB /graphify ./raw --falkordb-push falkordb://localhost:6379 /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 save-result --question "Q" --answer "A" --nodes Foo Bar --outcome useful # record how a Q&A turned out (work memory; outcome ∈ useful|dead_end|corrected) graphify reflect # aggregate graphify-out/memory/ outcomes into reflections/LESSONS.md graphify reflect --if-stale # no-op when LESSONS.md is already newer than every input (cheap to run each session) graphify reflect --out docs/LESSONS.md # write the lessons doc somewhere else graphify reflect --graph graphify-out/graph.json # group lessons by community + write the work-memory overlay (.graphify_learning.json) # the overlay tags nodes preferred/tentative/contested (recency-weighted, with provenance); # graphify explain / query then show a "Lesson:" hint, flagged "code changed — re-verify" when the source moved on
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
Set this up once per clone. From then on, three of your normal git commands keep the graph current by themselves, and one keeps it in sync with your team:
| you do | graphify does |
|---|---|
graphify hook install (once, right after cloning) | installs the hooks below, plus a merge driver so graph.json never shows conflict markers |
git commit | rebuilds automatically — AST only, no API cost |
git checkout / git switch (branches) | rebuilds automatically (a file-only git checkout -- <path> does not) |
git pull / git merge | run graphify update . right after |
git push | nothing to do |
The commit and branch-switch rebuilds run in the background and return immediately, so on a large repo the graph can lag the commit by a few seconds — step 5 covers the rare case where you query before it catches up.
Step by step: 1. Clone the repo and run graphify hook install once. 2. Commit and switch branches as normal — the graph stays current on its own. 3. After every git pull (or merge), run graphify update . to bring the graph in sync with what you just pulled. On a large or active repo, put it on autopilot with a pull alias:
git config --global alias.gpull '!git pull && graphify update .'
4. When docs or papers change, run /graphify --update to refresh those nodes too (code and docs update independently). 5. If a query ever seems to be missing something you just added, run graphify update . first, then ask again.
---
pipx install graphifyy pip install graphifyy # may need PATH setup — see note below
**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 (plus a references/ sidecar the skill loads on demand), 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?uv tool install/pipx installput thegraphifycommand in their tool bin dir (~/.local/bin). If your shell can't find it right after install — common on a fresh macOS + zsh setup — that dir isn't on yourPATHyet: runuv tool update-shell(orpipx ensurepath), then open a new terminal. With plainpip, add~/.local/bin(Linux) or~/Library/Python/3.x/bin(Mac) to your PATH, or runpython -m graphify.
Running withuvx/uv tool runinstead of installing? Name the package, not the command:uvx --from graphifyy graphify install. Plainuvx graphify …fails (No solution found … no versions of graphify) becauseuv tool runreads the first word as a package, and the package isgraphifyy— thegraphifycommand lives inside it.
Avoidpip installon Mac/Windows if possible. The skill resolves Python at runtime fromgraphify-out/.graphify_python; if that points to a different environment than wherepipinstalled the package, you'll getModuleNotFoundError: No module named 'graphify'.uv tool installandpipx installisolate the package in their own env and avoid this entirely.
Git hooks and uv tool / pipx:graphify hook installembeds the current interpreter path directly into the hook scripts at install time, so the post-commit hook fires correctly even in GUI git clients and CI runners where~/.local/binis not on PATH. If you reinstall or upgrade graphify, re-rungraphify hook installto refresh the embedded path.
Strict mode (Claude Code):graphify install --project --strictmakes the assistant actually use the graph. The default install nudges it to rungraphify querybefore reading files; strict mode blocks the first raw source read of a session and redirects it to the graph, then reverts to the nudge (so it fires at most once per session and never gets stuck). Toggle at runtime withGRAPHIFY_HOOK_STRICT=1/0; the default install is unchanged (soft nudge).
<details> <summary><b>Pick your platform</b> (20+ assistants, click to expand)</summary>
| Platform | Install command |
|---|---|
| Claude Code (Linux/Mac) | graphify install |
| Claude Code (Windows) | graphify install (auto-detected) or graphify install --platform windows |
| CodeBuddy | graphify install --platform codebuddy |
| Codex | graphify install --platform codex |
| OpenCode | graphify install --platform opencode |
| Kilo Code | graphify install --platform kilo |
| GitHub Copilot CLI | graphify install --platform copilot |
| VS Code Copilot Chat | graphify vscode install |
| Aider | graphify install --platform aider |
| OpenClaw | graphify install --platform claw |
| Factory Droid | graphify install --platform droid |
| Trae | graphify install --platform trae |
| Trae CN | graphify install --platform trae-cn |
| Gemini CLI | graphify install --platform gemini |
| Hermes | graphify install --platform hermes |
| Kimi Code | graphify install --platform kimi |
| Amp | graphify amp install |
| Agent Skills (cross-framework) | graphify install --platform agents (alias --platform skills) |
| Kiro IDE/CLI | graphify kiro install |
| Pi coding agent | graphify install --platform pi |
| Cursor | graphify cursor install |
| Devin CLI | graphify devin install |
| Google Antigravity | graphify antigravity install |
Codex users also need multi_agent = true under [features] in ~/.codex/config.toml for parallel extraction. CodeBuddy uses the same Agent tool and PreToolUse hook mechanism as Claude Code. Factory Droid uses the Task tool for parallel subagent dispatch. OpenClaw and Aider use sequential extraction (parallel agent support is still early on those platforms). Trae uses the Agent tool for parallel subagent dispatch and does not support PreToolUse hooks, so AGENTS.md is the always-on mechanism.
--platform agents (alias --platform skills) targets the generic cross-framework Agent-Skills locations: the spec's user-global ~/.agents/skills/ (read by npx skills and spec-compliant frameworks) for a global install, and ./.agents/skills/ for a project (--project) install. The bare graphify install stays single-platform (Claude Code) by design — use the named agents platform when you want the skill discoverable by any framework that reads .agents/skills.
Codex uses$graphifyinstead of/graphify.
</details>
<details> <summary><b>Optional extras</b> (install only what you need)</summary>
| Extra | What it adds | Install |
|---|---|---|
pdf | PDF extraction | uv tool install "graphifyy[pdf]" |
office | .docx and .xlsx support | uv tool install "graphifyy[office]" |
google | Google Sheets rendering | uv tool install "graphifyy[google]" |
video | Video/audio transcription (faster-whisper + yt-dlp) | uv tool install "graphifyy[video]" |
mcp | MCP stdio server | uv tool install "graphifyy[mcp]" |
neo4j | Neo4j push support | uv tool install "graphifyy[neo4j]" |
falkordb | FalkorDB push support | uv tool install "graphifyy[falkordb]" |
svg | SVG graph export | uv tool install "graphifyy[svg]" |
leiden | Leiden community detection (Python < 3.13 only) | uv tool install "graphifyy[leiden]" |
ollama | Ollama local inference | uv tool install "graphifyy[ollama]" |
openai | OpenAI / OpenAI-compatible APIs | uv tool install "graphifyy[openai]" |
gemini | Google Gemini API | uv tool install "graphifyy[gemini]" |
anthropic | Anthropic Claude API (--backend claude, uses ANTHROPIC_API_KEY) | uv tool install "graphifyy[anthropic]" |
bedrock | AWS Bedrock (uses IAM, no API key) | uv tool install "graphifyy[bedrock]" |
azure | Azure OpenAI Service (--backend azure, uses AZURE_OPENAI_API_KEY + AZURE_OPENAI_ENDPOINT) | uv tool install "graphifyy[openai]" |
sql | SQL schema extraction | uv tool install "graphifyy[sql]" |
postgres | Live PostgreSQL introspection (--postgres DSN) | uv tool install "graphifyy[postgres]" |
dm | BYOND DreamMaker .dm/.dme AST extraction (may need a C compiler + python3-dev if no wheel matches your platform) | uv tool install "graphifyy[dm]" |
terraform | Terraform / HCL .tf/.tfvars/.hcl AST extraction | uv tool install "graphifyy[terraform]" |
pascal | Pascal / Delphi .pas/.dpr/.dpk/.inc AST extraction (more accurate calls/inherits edges; falls back to a regex extractor when absent) | uv tool install "graphifyy[pascal]" |
ocaml | OCaml .ml/.mli AST extraction | uv tool install "graphifyy[ocaml]" |
commonlisp | Common Lisp .lisp/.cl/.lsp/.asd AST extraction | uv tool install "graphifyy[commonlisp]" |
robot | Robot Framework .robot/.resource extraction (suites, test cases, keywords, keyword-call and resource/library import edges) | uv tool install "graphifyy[robot]" |
chinese | Chinese query segmentation (jieba) | uv tool install "graphifyy[chinese]" |
all | Everything above | uv tool install "graphifyy[all]" |
</details>
---
graphify: command not found after installing The CLI is installed but its bin directory isn't on your shell's PATH. Pick the fix for how you installed: - uv (uv tool install graphifyy): the command lands in uv's tool bin dir (~/.local/bin), which a fresh macOS/zsh setup often doesn't have on PATH. Run uv tool update-shell, then open a new terminal. (Find the dir with uv tool dir --bin.) - pipx (pipx install graphifyy): run pipx ensurepath, then open a new terminal. - pip (pip install graphifyy): pip installs scripts to a user bin dir that may not be on PATH — add ~/Library/Python/3.x/bin (macOS) or ~/.local/bin (Linux) to your PATH in ~/.zshrc/~/.bashrc, or just run python -m graphify.
uvx graphify … or uv tool run graphify … fails to resolve graphify The PyPI package is graphifyy; graphify is only the command it provides. uv tool run treats the first word as a package name, so it looks for a package called graphify and reports No solution found … no versions of graphify. Name the package explicitly: uvx --from graphifyy graphify install (same as uv tool run --from graphifyy graphify install). Or uv tool install graphifyy once and then call graphify directly.
uv run --with graphifyy python -m graphify silently runs an older install uv run uses your system Python, so if an older graphifyy also lives there (e.g. a past pip install graphifyy), Python can find that copy first on sys.path and --with graphifyy won't override it. It runs with no error, but you get the old version's behavior — e.g. env overrides like OPENAI_BASE_URL are silently ignored, so requests hit the default endpoint and fail with a 401 that looks like a bad key. The fingerprint is a warning: skill is from graphify <newer>, package is <older> line — that means a different install was loaded, not just a stale skill. Check which copy actually loaded:
python -c "import graphify; print(graphify.__file__)" Then run the installed command directly (it uses the uv-managed copy), or drop the stale system copy: uvx --from graphifyy graphify extract . --backend openai # names the package explicitly
pip uninstall graphifyy # or remove the old system install
python -m graphify works but graphify command doesn't Your shell's PATH doesn't include the bin directory the command was installed to. Prefer uv tool install / pipx install over plain pip, then run uv tool update-shell / pipx ensurepath and open a new terminal (see the install notes above).
/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.
extract exits with "extraction was incomplete ... refusing to overwrite" When an extraction pass crashes or a walk can't fully read the corpus, the run would be smaller than a complete one, so graphify extract refuses to overwrite a larger existing graph with the partial result (protecting your graph.json). Fix the underlying failure and re-run, or pass --allow-partial to overwrite anyway.
Graph has duplicate nodes for the same entity (ghost duplicates) Ghost duplicates (same symbol appearing twice — once from AST extraction with a source location, once from semantic extraction without) are now automatically merged at build time. If you see this in a graph built before v0.8.33, 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
LLM returned invalid JSON / Unterminated string warnings The model's JSON response hit its output-token limit and was cut off mid-string. graphify auto-recovers (it splits the chunk and re-extracts the halves, and an oversized single document is first sliced at heading/paragraph boundaries so the whole file is still covered), so these warnings are noisy but not data loss. To reduce the churn, raise the output cap or shrink each chunk's output:
GRAPHIFY_MAX_OUTPUT_TOKENS=16384 graphify extract . --mode deep # lift the cap
graphify extract . --mode deep --token-budget 4000 # smaller input chunks -> smaller output With a cloud gateway like OpenRouter, prefer --backend openai (set OPENAI_BASE_URL) over the Ollama shim — it's a cleaner OpenAI-compatible path. If the model has its own max-output ceiling, lowering --token-budget is the reliable lever.
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.
Graph doesn't reflect a teammate's recent changes Run graphify update . right after git pull or any merge — see Recommended workflow. Commits and branch switches update the graph automatically via the installed hooks; syncing with a pull is the one step you run yourself. Fold it into a pull alias so it's one command either way:
git config --global alias.gpull '!git pull && graphify update .' Confirm the hooks are active with graphify hook status; re-run graphify hook install after an interpreter upgrade/reinstall to refresh them.
Extraction returns empty nodes/edges for docs or PDFs Docs, PDFs, and images require an LLM call — code-only corpora need no key. 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
Claude Code prompt cache invalidated after every graphify extract Graphify writes output files (graph.json, graphify-out/) into the workspace. If those paths aren't ignored, every write invalidates Claude Code's prompt cache, forcing a full re-upload at cache-write rates on the next turn. Add them to .claudeignore: ```text
本项目是 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 不对第三方内容的准确性作法律背书。