// devtools · trailhq/Graft

Graft

Graftは、trailhqが公開しているオープンソースの開発ツールプロジェクトです(GitHub: trailhq/Graft)。GitHubスターは9,787、フォークは885で、MITライセンスの下で公開されています。GitHubでの最終更新は2026年10月8日です。

A codebase knowledge graph that makes Claude Code, Cursor, Codex and Gemini faster, cheaper and repo-aware.

★ 9.8k スター⑂ 885 フォークMIT更新 2026年10月
▦ ビジュアル — このプロジェクトのREADMEには埋め込み可能なスクリーンショットがないため、
ここではプレースホルダーを表示しています。下のガイド自体は完全な内容です。
// プロジェクトの基本情報

プロジェクト基本情報

リポジトリ
trailhq/Graft
GitHubスター
9,787
フォーク
885
ライセンス
MIT
GitHubでの最終更新
2026年10月8日
カテゴリ
開発ツール
掲載タイプ
完全なインストールガイド
公式サイト
Official site
// 仕組み

仕組み

  1. Clarify your goal

    Pick the coding agent you use and the LLM provider whose key will write Graft's optional deep summaries; the structural graph itself needs no key.

  2. Get the project

    Clone trailhq/Graft from GitHub (or use the install path in the run steps below) and skim its README for the parts relevant to your goal.

  3. Install and configure

    Install the CLI globally from npm, then run graft init in your repo to drop in the wiring for your agent.

  4. Run your first task

    Run graft build to generate the graph, then ask your agent a codebase question and let it follow the graph instead of grepping from scratch.

// 機能

選ばれる理由

Plain-English code graph

Each node explains in plain English what part of the system does and how it connects, the way a senior engineer would — not just a dump of symbols.

Always-fresh graph

Every query rebuilds the graph against the working tree first (about 3ms when nothing moved), so answers include uncommitted edits with no stale index.

Local cache, tiny footprint

graft build writes a regenerable local graft/ cache (gitignored, like node_modules); you only commit the small init wiring — no database or server.

Bring your own provider

Summaries are written by any provider you choose — OpenAI, Anthropic natively, OpenRouter, Fireworks, Groq, OrcaRouter, a LiteLLM proxy or a local model — under your own key.

Deterministic structural graph

The core graph, graft check and graft ask are deterministic tree-sitter and never call a model, so they work offline with no key.

Deep mode and LSP edges

graft build --deep adds LLM concept nodes and per-symbol summaries; --lsp adds opt-in compiler-grade edges on top of scope-aware cross-file extraction.

Advertisement
// 自分で実行

自分で実行してみる

  1. Clone the repository

    Get the source from the official GitHub repository for Graft.

    git clone https://github.com/trailhq/Graft.git
    cd Graft
  2. Install the CLI

    Install Graft globally from npm, exactly as the README's quick start shows (or use npx without installing).

    npm install -g @nanonets/graft
  3. Initialise and build

    Wire Graft into your repo for your coding agent, then build the codebase graph.

    npx @nanonets/graft init
    graft build
// 活用例

作れるもの

Advertisement
// よくある質問

よくある質問

Who maintains Graft?

Trailhq, through the trailhq/Graft repository, with the product site at trailhq.com/graft.

Is Graft free to use?

Yes — the project is open source under the MIT license as recorded for this listing. You can use, modify and distribute it under the MIT terms.

Does Graft need a paid API key?

The structural graph needs no API key at all. Only the optional --deep summaries call an LLM, using your own provider key, so any cost is your provider usage.

How does Graft compare to a vector-embedding code index?

Embedding indexes need similarity search and a warm index that can go stale. Graft is a real, readable graph of linked files your agent opens and follows, rebuilt deterministically on every query — no embeddings and no server.

How do I get started with Graft?

Clone the repository (or use the documented installer), follow the install and configure steps on this page, and run the smallest real task first — run graft build to generate the graph, then ask your agent a codebase question and let it follow the graph instead of grepping from scratch.

// さらに探索

似ているツール

開発ツール

cc-connect

Bridge local AI coding agents (Claude Code, Cursor, Gemini CLI, Codex) to messaging platforms (Feishu/Lark, DingTalk, Slack, Telegram, Discord, LINE, WeChat …

★ 15.7k スターUnknown
ガイドを見る →
開発ツール

cocoindex-code

Lightweight AST-based semantic code search CLI (ccc) that makes coding agents faster and cheaper

★ 2.8k スターApache-2.0
ガイドを見る →
開発ツール

gentle-ai

Gentle-AI configures the AI coding agents you already use: Claude Code, Cursor, OpenCode, Codex, Pi, and more. Choose persistent memory, Organic-Driven Devel…

★ 7.5k スターMIT
ガイドを見る →
開発ツール

ClaudeBar

Menu-bar tracker for your AI coding quotas — Claude, Codex, Gemini and more.

★ 1.5k スターCustom
ガイドを見る →
開発ツール

claude-octopus

Claude Octopus orchestrates Claude, Codex, Copilot, Gemini, and Ollama on one task — and surfaces disagreement

★ 4.2k スターMIT
ガイドを見る →
開発ツール

avibe

A local-first Agent OS — drive Claude Code, Codex and OpenCode from your browser.

★ 606 スターMIT
ガイドを見る →
// 代替候補

代替候補: 開発ツール

LibreAIカタログに掲載された開発ツールプロジェクトの中で最もスターの多いもの — Graftが合わなかった場合に検討したい、現実的な候補リストです。

// さらに見る devtools

さらに見る: 開発ツール

カタログの中でGraftとスター数が近い開発ツールプロジェクト — 前後の棚もそのまま見て回れます。

Graftを入手する

無料でオープン — ソースコードを入手して、リポジトリにスターを付け、作り始めましょう。