Codegraph Tool OpenClaw Skill

CodeGraph — Pre-indexed code knowledge graph tool. Provides semantic code intelligence for Claude Code, Cursor, Codex, Gemini, OpenCode, Hermes, Antigravity,...

v1.0.0 Recently Updated Updated 2 days ago

Installation

clawhub install codegraph-tool

Requires npm i -g clawhub

85

Downloads

0

Stars

1

current installs

1 all-time

1

Versions

EU EU-Hosted Inference API

Power your OpenClaw skills with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

CodeGraph Tool

Local-first code intelligence tool. tree-sitter parsing → SQLite (FTS5) storage → MCP exposes knowledge graph.

Use Cases

Use when users need to install CodeGraph, initialize code graph, index projects, understand code structure, trace call chains, evaluate change impact.

Installation

npx @colbymchenry/codegraph          # Recommended: one-click install + auto-configure Agent
curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh  # No Node required
npm i -g @colbymchenry/codegraph     # npm

Non-interactive: codegraph install --yes [--target=claude,cursor] [--location=local]

Project Initialization

cd your-project
codegraph init -i    # Create .codegraph/ + build index
codegraph index      # Full index (or rebuild: --force)
codegraph sync       # Incremental sync (changed files only)
codegraph status     # Check status

MCP Tools (8)

Tool selection guide is automatically sent to Agent in MCP initialize response.

Intent Tool Key Parameters
Almost any question — architecture, flow, bug, investigation codegraph_explore query (natural language or symbol names)
Locate symbol by name codegraph_search query, kind, limit
Call chain codegraph_callers / codegraph_callees symbol, limit
Change impact codegraph_impact symbol, depth
Single symbol full source / overload disambiguation codegraph_node symbol, includeCode, file, line
File structure codegraph_files
Index health codegraph_status

Core Principles

  • codegraph_explore is the PRIMARY tool — call it first, usually the only call needed. Returns relevant symbol source code (grouped by file), with line numbers.
  • Answer directly, don't delegate to sub-Agent for file exploration — CodeGraph IS the pre-built index, grep/read loops are redundant work.
  • One explore > search + node chained calls.

Anti-patterns

❌ Don't use grep to verify codegraph results (AST is more accurate than grep)
❌ Don't chain search + node to understand an area (one explore does it)
❌ Don't loop node over multiple symbols (one explore returns all)
⚠️ Check staleness banner after edits — pending files need direct Read

Auto-sync

Three-layer protection: ① Native FS events + 2s debounce auto-sync ② Per-file staleness banner (pending files prefixed with ⚠️) ③ Auto-reconciliation on MCP reconnect.
Manual sync only needed in sandbox (CODEGRAPH_NO_DAEMON=1) or CI pre-flight.

CLI Queries

codegraph query <symbol> [--kind class] [--limit 10] [--json]
codegraph callers <symbol> [--limit 20] [--json]
codegraph callees <symbol> [--limit 20] [--json]
codegraph impact <symbol> [--depth 2] [--json]
codegraph context "<task>" [--max-nodes 20]
codegraph affected <files...> [--stdin] [--depth 5] [--filter "e2e/*"] [--quiet]

Configuration

Zero-config — no config files. Auto-excludes node_modules/vendor/dist/build/target/.venv/Pods/.next + .gitignore entries + >1MB files. Exclude more: add to .gitignore; bring back: !vendor/.

Environment variables: CODEGRAPH_WATCH_DEBOUNCE_MS(2000) CODEGRAPH_NO_DAEMON CODEGRAPH_EXPLORE_LINENUMS(1) CODEGRAPH_ADAPTIVE_EXPLORE(1)

Supported Languages (21)

TS/JS/Python/Go/Rust/Java/C#/PHP/Ruby/C/C++/Swift/Kotlin/Scala/Dart/Svelte/Vue/Liquid/Pascal-Delphi/Lua/Luau

Framework Routes (14)

Django/Flask/FastAPI/Express/NestJS/Laravel/Drupal/Rails/Spring/Gin-chi-gorilla-mux/Axum-actix-Rocket/ASP.NET/Vapor/ReactRouter-SvelteKit — auto-recognize route files and generate route nodes.

Cross-language Bridging

Swift↔ObjC / RN legacy bridge / TurboModules / RN events / Expo Modules / Fabric-Paper views. Synthesized edges marked provenance:'heuristic'.

Uninstall

codegraph uninstall    # Remove MCP config
codegraph uninit       # Delete .codegraph/

References

Statistics

Downloads 85
Stars 0
Current installs 1
All-time installs 1
Versions 1
Comments 0
Created Jun 8, 2026
Updated Jun 8, 2026

Latest Changes

v1.0.0 · Jun 8, 2026

Initial release of codegraph-tool — a local-first, pre-indexed code knowledge graph for advanced code intelligence. - Provides semantic code understanding with tree-sitter parsing and fast SQLite-based graph queries. - Supports 8 core MCP tools for code exploration, symbol search, call chains, change impact analysis, and more. - Offers zero-config setup with one-click installation and automatic exclusion of common files. - Covers 21 languages and auto-detects 14 major framework routing conventions. - Features real-time auto-sync, CLI commands, and robust cross-language bridging support. - Includes clear anti-patterns and best practices to maximize agent productivity.

Quick Install

clawhub install codegraph-tool
EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.

Customer Support