graphicle README

The project's README from github.com/Graphicle-AI/graphicle. As one markdown file: README.md.

Graphicle

Code graph and memory for your coding agents, in one Rust program.

License: Apache-2.0 Latest release Platforms: macOS and Linux Chat on Discord

Graphicle maps your repository into a code graph, remembers your project's docs, decisions and past agent sessions, and gives your coding agent cited excerpts from both: the exact files and lines. It runs on your machine: no API key needed, no account, no telemetry.
Works with Claude Code · Cursor · Codex · VS Code · Claude Desktop · any MCP client

Quick start · How it works · Benchmarks · Docs · Coming from Graphify? · Discussions

A terminal in four steps. graphicle setup syncs a small repository, builds its code graph, finds five agent clients, connects them and lists every file it changed. graphicle ask returns four cited excerpts, the first shop/pricing.py lines 1 to 7, price_with_tax(). After an edit, graphicle context syncs the changed file before answering. graphicle doctor shows 18 checks passing and one warning: no answer model is set.

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 · Release archives · Other ways to install
Windows: no native build yet; under WSL2 the Linux install should work (not yet tested). Native Windows support is planned.

graphicle setup indexes the repository, builds its code graph and connects the coding agents it finds. It also turns on session capture, points Claude Code's searches to the code graph first, adds a short section to AGENTS.md and installs Git hooks that keep the project current. 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 · 598 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. With no model configured, ask shows the evidence; graphicle config set model anthropic (or openai, ollama) adds written answers.

Let your coding agent install it

Paste this into Claude Code, Codex or Cursor:

Install Graphicle with `brew install graphicle-ai/tap/graphicle` (or, without Homebrew,
`curl -fsSL https://github.com/graphicle-ai/graphicle/releases/latest/download/install.sh | sh`),
then run `graphicle setup --yes` in this repository and list every file it changed.

Start here

You want to Run
Give your coding agent the code graph and your project's memory graphicle setup in the repository
Ask a question from the terminal graphicle ask "how are failed requests retried?"
Browse the graph, the sources and the memory graphicle open
See what a change to a symbol touches graphicle graph extract . --code-only, then graphicle graph affected "retry()"
Check that everything works graphicle doctor
Undo everything setup did graphicle disconnect
Move from Graphify, or run a server for a team Moving from Graphify · Team server

Why Graphicle

Kubernetes, about 31,000 files. Shorter is faster. Code-only extract: Graphicle 0.1.0, 3 minutes 18 seconds; Graphify 0.9.88, 26 minutes 38 seconds. One run each, Linux, the same 16 CPUs, 8 workers. Both built the same graph: 256,329 nodes and 1,400,392 edges.

What it does

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 (Codex asks you to trust them)
Cursor ~/.cursor/mcp.json
VS Code .vscode/mcp.json in the repository
Claude Desktop claude_desktop_config.json in Claude's settings folder
Any other MCP client a short JSON entry (MCP)

How it works

How Graphicle works: your code, documents and agent sessions sync into one program that keeps a code graph and a memory. Your coding agents use it over MCP; you use it with graphicle ask and graphicle open. Changed files sync before each answer. No account, no telemetry; nothing leaves your machine unless you ask.

  1. Sync. Graphicle reads the folder (it respects .gitignore and skips secrets), keeps a versioned copy of each source and builds the code graph.
  2. Recall. When your agent calls a tool, Graphicle syncs what changed, ranks excerpts from code, documents, sessions and reviewed memory, and returns them with citations. The tools call no model; your agent's own model reads the excerpts.
  3. Remember. Captured sessions become sources. Memories that agents propose wait for your approval in the app.

Graphicle, or a code-graph tool plus a memory server

A code-graph tool + a memory server Graphicle
Install Two tools, often on different runtimes, and often a database server One install
Connect your agents Configure each tool in each agent graphicle setup connects the agents it finds; graphicle disconnect undoes it
MCP servers in your agent Two, configured separately One, with the graph and the memory tools
Storage Graph files plus the memory server's database One SQLite file in one data folder
Code structure: calls, imports, impact The graph tool graphicle graph
Docs, decisions, past sessions The memory server Built in
Citations and review Varies A file and its lines on every excerpt; agent memories wait for approval

Benchmarks

Speed. The chart above: Kubernetes (31k files), the 0.1.0 engine (a Linux test build of the release source) against Graphify 0.9.88, one exploratory run each, both building the same graph (Kubernetes run). Earlier, on Django, a pre-release build ran a code-only extract in 7.5 s against 72.8 s for Graphify 0.9.77 (medians of five alternating runs, one shared Linux host, 8 workers), both building the same graph (the 8 October record).

Memory. In a comparison with seven memory systems, registered before any answer was scored and run with one open model as every system's reader and judge, a pre-release build of Graphicle trails none on three development sets. Every score, with its method and caveats.

FAQ

Privacy and local first

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, proposes memories from sources and reads documents and images in a full graphicle graph extract. Local models through Ollama or any OpenAI-compatible server work (configuration).

Is Graphicle a fork of Graphify?

The code-graph engine is a Rust port of Graphify, kept in step with Graphify's releases and credited in its file headers and in NOTICE. The parity checks name the release it follows. The memory, the memory tools, the app and session capture are not part of Graphify. Coming from Graphify? graphicle setup offers to switch a repository, backs up each file and never deletes graphify-out/ (Moving from Graphify).

Will it handle my large repository?

By default a project can hold up to 100,000 text files and 1 GiB of text; you can raise both (see Limits in docs/configuration.md). A very large file is analysed in part or kept as searchable text instead of stopping a sync.

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: https://github.com/graphicle-ai/graphicle/discussions, or chat with us on Discord.

What is the licence?

Graphicle is Apache-2.0: free to use, change and ship, commercially too. Third-party parts keep their own licences, listed in NOTICE.

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: command line, app, HTTP and MCP server), crates/graphicle-graph/ (the code-graph engine), crates/graphicle-memory/ (the memory library), SDKs for Python and TypeScript, and a team server recipe in deploy/. Each crate builds on its own (building from source).

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.

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 saves your agent a search, star the repository so other developers find it.
Try it · Report a bug · Contribute · Discord
Built by KarLex AI

graphicle (Graphicle-AI/graphicle)

Searching Database…

这是什么东西?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 文本,两个上限都可以配置;超大的文件会被部分分析,或以可搜索文本的形式保留,而不会导致同步失败。
Size
19.4 MB
Stars
259
Age
3d
Commits · 90 Days