graphicle README

项目的 README,来自 github.com/Graphicle-AI/graphicle。合并为一个 markdown 文件:README.md。

Graphicle

Graphify, ported to Rust. Plus memory.

Your coding agent asks Graphicle instead of grepping. It gets the functions, callers and past decisions it needs, cited to the exact file and line, from a code graph that stays current after every commit.

License: Apache-2.0 Latest release Platforms: macOS, Linux and Windows (preview)

Works with Claude Code · Codex · Cursor · VS Code · Claude Desktop · OpenCode · any MCP client. Local: no API key, no account, no telemetry.

Kubernetes v1.37.1 code-only graph. First build: Graphicle 0.1.17 3 min 20 s, Graphify 0.9.108 33 min 11 s. Update after one commit, median over the same 4 commits: Graphicle 4 min 30 s, Graphify 27 min 54 s. Update with nothing changed: Graphicle 21 s, Graphify 8 min 48 s. Same machine, one run each; both built the same graph of 437,234 nodes and 1,607,901 edges.
Graphicle 0.1.17 against Graphify 0.9.108 on one machine (4 vCPUs, Intel x86), one run each, one program at a time. After ten updates, Graphicle's graph matched a fresh build of the same commit. Method and every measurement. The code-graph engine is a Rust port of Graphify, credited below; Graphicle is not affiliated with Graphify Labs.

Quick start

brew install graphicle-ai/tap/graphicle
cd your-repo
graphicle setup

No Homebrew? curl -fsSL https://github.com/graphicle-ai/graphicle/releases/latest/download/install.sh | sh · Windows: a preview build (install)

graphicle setup builds the code graph, connects the coding agents it finds and keeps the graph current with Git hooks. It lists every file it changes and backs each one up first; graphicle disconnect undoes it all.

Then ask your agent to "use graphicle to find where failed requests are retried", or ask from the terminal:

$ graphicle ask "where is tax added to prices?"
Evidence for "where is tax added to prices?"
4 excerpts · 606 of 3,000 tokens

[1] shop/pricing.py:1-7  price_with_tax()
    """Prices and tax."""
    TAX_RATE = 0.2


    def price_with_tax(price):
        """A price with the sales tax added."""
        return round(price * (1 + TAX_RATE), 2)

Real output, cut after the first excerpt. No model needed: ask shows the evidence, and graphicle config set model anthropic (or openai, ollama) adds written answers.

Why Graphicle

What your agent gets

More: packs for long-context models · reviews of a branch · a project wiki · from a bug on the screen to a tested fix · several repositories in one connection

Works with your agents

graphicle setup connects every client it finds over MCP. Each file is backed up once as <file>.graphicle-bak, and graphicle disconnect removes what it added.

Client Where setup connects it Session capture
Claude Code .mcp.json in the repository hooks in .claude/settings.local.json
Codex ~/.codex/config.toml hooks in ~/.codex/hooks.json
Cursor ~/.cursor/mcp.json
VS Code .vscode/mcp.json in the repository
Claude Desktop claude_desktop_config.json
Muse Code ~/.config/muse/settings.json (Muse Code) preview: graphicle connect muse --hooks
OpenCode ~/.config/opencode/opencode.json (or .jsonc)
Any other MCP client a short JSON entry (MCP)

Agent memory, compared

In a pre-release comparison with seven memory systems (development sets; one open model, Qwen3.8-27B, as every system's reader, judge and model; a pre-release build of Graphicle), Graphicle matched Hindsight 0.10.2 and beat Mem0 OSS 2.2.1 (the open-source library, not Mem0's hosted platform) on LoCoMo-10, with far fewer model calls while ingesting.

System LoCoMo-10 accuracy [95% CI] Model calls per conversation, ingesting
Graphicle (pre-release build) 87.7 [85.1, 90.2] 12
Hindsight 0.10.2 87.3 [85.6, 89.1] 160
Mem0 OSS 2.2.1 81.9 [79.6, 84.4] 332

All eight systems, the other two development sets and every caveat.

Coming from Graphify?

The code-graph engine is a Rust port of Graphify that follows its releases (currently Graphify 0.9.103) and keeps its MCP tool names. graphicle setup offers to switch a repository, backs up each file it changes and never deletes graphify-out/. Moving from Graphify.

FAQ

What leaves my machine?

Nothing by default, apart from a daily check for a new release (GRAPHICLE_NO_UPDATE_NOTIFIER=1 turns it off). Graphicle reaches the network only for a model or connector you configure, a full graphicle graph extract (documents and images go to the LLM whose API key it finds), and the GitHub CLI for the commands that use it. Your sources, memories and graph live in one SQLite store in your user data folder; the app and its endpoints listen on 127.0.0.1. Sync respects .gitignore and skips .env files, keys and credentials. Details

Do I need an API key or a model?

No, for most of it. The code graph (with --code-only), sync, context, the MCP server, session capture and the app work without one. A model writes the answers of graphicle ask and proposes memories; local models through Ollama or any OpenAI-compatible server work (configuration).

Will it handle my large repository?

Kubernetes (25,899 code files) builds in minutes on 4 vCPUs (chart above). By default a project can hold up to 100,000 text files and 1 GiB of text; you can raise both (limits).

Is there a version for teams?

Graphicle is free and open source under Apache-2.0, for individuals and teams alike. A commercial edition for teams is in private preview. To talk to us, start a discussion.

More answers: FAQ · Troubleshooting · or run graphicle doctor.

Documentation

Quick start · Agents · MCP · Install · Configuration · Team server · Moving from Graphify · Benchmarks · FAQ · Changelog

The code: crates/graphicle/ (the program), crates/graphicle-graph/ (the code-graph engine), crates/graphicle-memory/ (the memory library), SDKs for Python and TypeScript.

Contributing

Contributions are welcome under the Apache License 2.0, with a Developer Certificate of Origin sign-off (git commit -s) and no CLA. See CONTRIBUTING.md. To report a security problem, follow SECURITY.md rather than opening a public issue.

License and credits

Graphicle is licensed under the Apache License 2.0. Copyright 2026 KarLex AI, Inc.

Code signing policy: release builds are not yet signed with a trusted certificate. The Windows programs are signed through SignPath with a test certificate, which Windows does not trust, or left unsigned when that signing fails; each release's notes say which. Signing with the SignPath Foundation's certificate is planned. The policy also lists every case in which Graphicle contacts the network.

The code-graph engine is a Rust port of Graphify by Safi Shamsi and the Graphify contributors, licensed under Apache-2.0, with portions that remain available under the MIT License. Thank you. NOTICE, NOTICE.md and the licenses/ folders hold the attributions and the licences of every adapted project and third-party component.


If Graphicle is useful to you, star the repository so other developers find it.
Try it · Report a bug · Contribute · Discussions
Built by KarLex AI logo KarLex AI, Inc.

graphicle (Graphicle-AI/graphicle)

正在搜索数据库…

这是什么东西?Graphicle 是一个用 Rust 编写的程序,它会为你的仓库构建代码图谱,并保存项目记忆(文档、决策、过去的智能体会话),这样你的编程智能体拿到的是带出处、切中要点的内容片段,而不必重新通读整个代码库。
它是一个单独的工具,还是一堆需要我自己拼装的服务?它是一个 Rust 可执行文件,内置了代码图谱引擎、记忆存储、一个 MCP 服务器、一个网页应用和命令行工具,全部由一个 SQLite 文件支撑——不需要单独跑数据库服务器或其他整套服务。
我怎么把它跑起来?先用 'curl -fsSL ... | sh' 安装(也可以用 Homebrew 或发布压缩包),然后在你的仓库里运行 'graphicle setup'——它会索引代码、构建图谱,并自动连接它在你机器上发现的编程智能体。
用它需要 API 密钥或模型吗?大部分功能不需要——代码图谱、同步、上下文查找、MCP 服务器和会话捕获没有密钥都能用。只有 'graphicle ask' 需要一个模型(Anthropic、OpenAI,或通过 Ollama 使用的本地模型)来生成回答和提出记忆条目。
它能在 Windows 上原生运行吗?暂时不能——目前没有原生 Windows 版本。在 WSL2 下理论上可以按 Linux 方式安装,但还没有经过测试;原生 Windows 支持目前只是在计划中。
我的代码和数据会传到哪里去?所有内容都保存在本地的 SQLite 数据文件夹里(比如 Linux 上的 ~/.local/share/graphicle),网页应用及其 HTTP/MCP 接口只监听 127.0.0.1,除非你配置了模型或使用某个明确需要外发的功能,否则不会有任何数据被发送出去。
Graphicle 是其他项目的分支(fork)吗?它的代码图谱引擎是 Graphify 的 Rust 移植版,会跟随 Graphify 的版本更新,并在文件头部注明来源;记忆系统、网页应用和会话捕获则是 Graphicle 自己新增的功能,并不属于 Graphify。
相比同类工具,它快多少?在一次探索性测试中,在相同的硬件上处理一个有 3.1 万个文件的 Kubernetes 仓库,Graphicle 的引擎构建同样的代码图谱用了 3 分 18 秒,而 Graphify 0.9.88 用了 26 分 38 秒。
它能连接哪些编程智能体?Claude Code、Codex、Cursor、VS Code、Claude Desktop 以及任何其他 MCP 客户端——'graphicle setup' 会自动检测你机器上的每一个并完成配置。
它能处理多大的仓库?默认最多支持 100,000 个文本文件和 1 GiB 文本,两个上限都可以配置;超大的文件会被部分分析,或以可搜索文本的形式保留,而不会导致同步失败。
大小
34.3 MB
星标
581
时长
1个月
提交 · 90 天