Listed from the MCP registry; nobody on Odel publishes it.
AST call graph and code map for AI coding agents: PHP, JS, TS, Vue, Rust, Swift, Python, Go.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Distributed as an MCP bundle (`https://github.com/GeRiY/callgraph/releases/download/v1.3.0/callgraph.mcpb`) — download it and import the bundle in your MCP client.
A token-efficient code map for AI coding agents.
Structure, categorized call graph, method bodies, "who calls this?" and impact analysis —
without reading whole files.
🌐 callgraph.eu
Guides: MCP setup · PHP · Rust ·
TypeScript / Vue · Swift · locate ·
Project profile · Changelog
Quick start · Installation · Usage · How it works · Development · Magyar
An agent that needs to understand one method usually reads the whole file, then greps, then reads a few more files. callgraph answers those questions from the AST instead, in a few dozen lines: what is in this file, which method lives on which lines, what it calls (sorted by category), who calls it, and what breaks if it changes.
It ships as a single native Rust binary plus a thin Claude Code skill, and it works just as well from any terminal or script.
$ callgraph.sh --project shop app/Models/Order.php
FILE /srv/shop/app/Models/Order.php NS:App\Models
class Order extends Illuminate\Database\Eloquent\Model L7-23
constants (1):
STATUS_OPEN = 'open'
properties (1):
mixed $fillable
saveTranslations() L13-20
external_call create, info
global_helper logger
internal_helper translations
translations() L22-22
orm_relation hasMany
$ callgraph.sh --project shop app --grep saveTranslations --depth 2
== level 1 — directly calls: /saveTranslations/
/srv/shop/app/Models/Order.php Caller::run() L25-25
== level 2 — calls the previous level
(no more callers)
if / match / switch branches.native_php, orm_relation, model_use, global_helper,
internal_helper, external_call, framework_use, Vue composable_use and more, so the agent sees intent,
not just names. Calls whose target is decided at runtime ($this->$method(), obj[key](), getattr(obj, name)())
are marked dynamic_call instead of silently missing.--grep <pattern> --depth N walks callers of callers across the whole
project using a cached, incremental project index.file::method --body prints just that method, line-numbered; --lines 30-60 prints any range.routes, middleware, validation, jobs, events, providers,
magic, di, views.outline, api, flow, summary, hotspots, coverage, stats, mermaid, dot,
json, jsonl.Per-language guides with examples: PHP · Rust · TypeScript / JavaScript / Vue · Swift / SwiftUI.
| Language | Extensions | What you get |
|---|---|---|
| PHP | .php | classes, traits, enums, methods, properties, constants, calls with type tracking, framework detection (Laravel, Yii) |
| Blade | .blade.php | one view per template named like Laravel (admin.users.index); @section / @push / @slot blocks as methods with line ranges; @extends / @include / <x-alert> / <livewire:x> as view_use / component_use calls resolved to the template file; PHP in {{ }}, @php and directives; @if / @foreach / @auth as control flow; @props; route('x') linked to the route table, __('k') / @lang to the language files; rendered by: / used by: lines |
| Rust | .rs | modules, structs, enums, traits, impl blocks, functions with visibility / async, fields, consts, use trees, path / method / macro calls, if / match flow, framework detection from Cargo.toml (axum, actix-web, tokio, serde, …) |
| JavaScript / TypeScript | .js .mjs .cjs .jsx .ts .tsx | modules, functions, classes, imports with alias resolution (jsconfig / tsconfig); React: function components with their props (destructuring, TS types, propTypes), hooks, context, react-router tables |
| Vue | .vue | props, emits, setup, template components and event handlers, computed, watch, lifecycle hooks, Options API |
| Swift / SwiftUI | .swift | classes, structs, enums, protocols, actors, extensions; View types as components; func / init / computed properties (body); property wrappers (@State, @Binding, @Published, …); SwiftUI views and modifiers as their own call categories |
| Kotlin / Android | .kt .kts | classes, objects, interfaces, data / sealed / enum classes, companions, extension functions; @Composable functions as components; Compose views and modifiers, coroutines / Flow and Android APIs as their own call categories; Hilt / Dagger inject and provide edges, Compose Navigation nav edges, ViewModel factories, method references (::) as (ref) calls; *.gradle.kts build scripts marked |
| Python | .py .pyi | classes (bases, decorators), functions / methods (async, @staticmethod, @classmethod, @property) with signatures, constants, __all__, docstrings, imports, calls (native_python, internal_helper, static_call, …), Django / Flask / FastAPI detection |
| Go | .go | packages, structs (fields as properties, embedded types), interfaces, type aliases, functions and methods with receivers and signatures (several return values, generics), const / var, imports (alias, blank, dot), calls (native_go, internal_helper, …), go / defer, exported (capitalised) = public; vendor / testdata skipped, _test.go ranked as tests |
| CSS / SCSS | .css .scss | rule blocks and at-rules (@media, @layer, Tailwind v4 @theme / @utility / @source …), mixins, functions, variables, @use / @import |
| JSON / Markdown | .json .md | key paths with their short values (package.json::scripts --body prints one key); heading sections by level, and links |
| HTML | .html .htm | <title> and <h1>–<h6> heading sections by level; visible text and title / alt / placeholder / aria-label / value attributes for --strings (<script> / <style> bodies skipped); links; <script src> / <link rel="stylesheet" href> as import lines and import edges (relative, or /-rooted from the package root; external URLs are not edges) |
Only files with the extensions above, in upper or lower case (B.PHP counts as PHP); everything else is ignored.
Also skipped, even with a supported extension: generated files (package-lock.json, *.min.js, *.min.css) and
files with binary content. Minified or bundled JavaScript / CSS is recognised by its content too (very long lines,
e.g. a Vite app-CBW7lKWe.js) and skipped. Each file is read once, even if a symlink points to it. Folders like
vendor/ and node_modules/ are skipped, and so is everything your .gitignore files exclude, with the same rules as
git: /public/build, public/build/, build/, **/assets, *.log, !keep.js, and the .gitignore of every
subfolder relative to that folder.
To exclude more in a project, put a .callgraphignore file in its root (or in any subfolder). Commit it, and the whole
team gets the same results. A line that is just an extension (md, .md or *.md) skips that extension (the
nearest .callgraphignore applies, as before); any other line is a .gitignore-style path pattern, relative to the
folder of the file:
# callgraph: skip these extensions in this project
md
json
*.vue
# and these paths (same syntax as .gitignore)
public/build/
/storage/
legacy/**/*.php
A protect <pattern> line (e.g. protect migrations/) is the opposite of an exclusion: the matching files stay in
the map and fully queryable, but are marked 🔒 in the output (outline, --body, --lines, locate): protected, read
them, don't edit them. Same pattern rules; a line that is just protect stays an extension rule.
To map files your .gitignore excludes, add --no-gitignore to any command (or set CALLGRAPH_GITIGNORE=0 for the
MCP server and the hook); .callgraphignore and the built-in skipped folders still apply. Note: a bare word such as
build in .callgraphignore is an extension rule; write build/ or /build for a folder.
--lines or a targeted read.dynamic_call in the
outline (PHP, JS / TS / Vue, Python), are not callers for --grep / --depth, and show up as name-only matches
(?) with --guess only where the name is known.⚠ syntax error at L<n> and a closing ⚠
line: the code before and after the broken part is still mapped (JS / TS / Vue, Rust: from the next top-level
function, class or item on), the broken part itself is missing — read such a file directly. The exit code stays 0;
for CI, add --strict (or set CALLGRAPH_STRICT=1): show, locate and profile then exit with code 3 when a
file they read has a syntax error, with the same output.--signatures (or CALLGRAPH_SIGNATURES=1) prints the signature (params, return type) on the outline method lines.
# 1. install (macOS / Linux, see below for Windows)
p="$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)" && t="$(mktemp -d)" \
&& curl -fsSL -o "$t/cg.zip" "https://update.callgraph.eu/v1/download/latest/callgraph-$p.zip?k=install" \
&& mkdir -p ~/.claude/skills && unzip -qo "$t/cg.zip" -d ~/.claude/skills \
&& bash ~/.claude/skills/callgraph/install.sh && rm -rf "$t"
# 2. register a project once
bash ~/.claude/skills/callgraph/projects.sh add shop /absolute/path/to/shop
# 3. ask questions
CG=~/.claude/skills/callgraph/callgraph.sh
bash $CG --project shop app/Models/Order.php # outline
bash $CG --project shop app/Models/Order.php::save --body # one method's source
bash $CG --project shop app --grep 'Order::cancel' --depth 3 # impact analysis
Restart Claude Code afterwards so it picks up the skill (SKILL.md).
Prebuilt packages (skill files + the binary for your platform + install guide) are attached to every GitHub Release:
| Platform | Package |
|---|---|
| macOS, Apple Silicon (M1–M4) | callgraph-darwin-arm64.zip |
| macOS, Intel | callgraph-darwin-x86_64.zip |
| Linux x86_64 (static musl) | callgraph-linux-x86_64.zip |
| Linux ARM64 (static musl) | callgraph-linux-aarch64.zip |
| Windows x86_64 (Git Bash) | callgraph-windows-x86_64.zip |
All five binaries in one archive: callgraph-<version>.tar.gz on the same release page.
macOS / Linux: use the one-liner from Quick start. It installs into ~/.claude/skills/callgraph/
and runs install.sh. Updating is the same command; your projects.json, errors.jsonl, feedback.jsonl and
language setting are kept.
Windows / manual: unzip the package, copy the callgraph/ folder under ~/.claude/skills/
(Windows: %USERPROFILE%\.claude\skills\) and run bash install.sh there (Git Bash). On macOS install.sh also
clears the download quarantine flag. Step-by-step guide (Hungarian): skill/TELEPITES.md.
From source: see Development.
The only runtime requirement is bash.
bash ~/.claude/skills/callgraph/callgraph.sh update --check # is there a newer release? (changes nothing)
bash ~/.claude/skills/callgraph/callgraph.sh update # download and install it
The update downloads your platform's zip from the latest GitHub Release and overwrites the skill files and bin/;
projects.json, errors.jsonl, feedback.jsonl and the language setting are kept. --force reinstalls the current
version; callgraph --version shows the installed one.
Every release ships a SHA256SUMS file; the update verifies the downloaded zip against it and installs nothing on a
mismatch. Releases without it (v0.1.0) are refused unless you pass --insecure-skip-checksum. With --from <zip> the
zip is checked against --sha256 <hex> or a SHA256SUMS next to it (otherwise a one-line warning).
callgraph.sh also checks for a new release in the background at most once a day (without slowing queries down) and,
if there is one, ends its output with a one-line ℹ callgraph X is available notice; CALLGRAPH_UPDATE_CHECK=0
turns this off (it is also off when CI is set).
Dev builds (develop branch): update --dev installs the newest build of the develop branch (the rolling dev
pre-release, version X.Y.Z-dev.<commit>, verified against its SHA256SUMS like a release); update --check --dev
only tells you whether there is a newer one. Dev builds are for trying out unreleased changes and may be unstable. A
plain update takes you back to the latest stable release; the background check and the MCP --auto-update stay on
stable releases (on a dev build they only speak up for a newer stable version).
All commands go through callgraph.sh (or the binary directly: callgraph show …). --project <alias> makes paths
relative to a registered project root; --project <dir> (an existing folder, absolute or relative) works without
registering; without it, the current directory is the root.
| Task | Command |
|---|---|
| Where do I start with this task? | callgraph.sh locate <term>... [--all] |
| The whole chain of a route / page / Livewire component (route, middleware, action, rules, models, page + props; ≤ 30 lines) | callgraph.sh trace <route::name|Ctrl::method|/uri|Pages/X.vue|livewire:x|filament:posts> |
| Outline of a file / directory | callgraph.sh <file|dir> |
| One method only | callgraph.sh <file>::<method> (several selectors allowed) |
| Method source, line-numbered | callgraph.sh <file>::<method> --body |
| Any line range | callgraph.sh <file> --lines 30-60 |
| Where is it called? | callgraph.sh <dir> --grep <pattern> |
| Impact analysis | callgraph.sh <dir> --grep <pattern> --depth N [--guess] |
| String literal / constant usages | callgraph.sh <dir> --strings <pattern> · --const <pattern> |
| Filter by call category | callgraph.sh <dir> --category model_use,orm_relation |
locateMore on the website: callgraph.eu/locate.
Give locate the names and domain terms from the task in one call (function, class and file names, column names,
routes); it answers from the project map, without reading the source, with a short ranked list of files to start
from, each with the reason:
bash ~/.claude/skills/callgraph/callgraph.sh locate RefundController processRefund refund payment_status checkout.vue --project myapp
root: /home/me/myapp
locate: 5 terms · 14 matches in 6 files · start here ↓
1. app/Http/Controllers/RefundController.php ★★★
class RefundController L6-16 ← "RefundController", "refund" (exact class)
store() L14 calls RefundService::processRefund ← "processRefund" (call)
2. app/Services/RefundService.php ★★
processRefund() L6-9 callers: 2 (RefundController::store, RefundJob::handle) ← "processRefund", "refund" (exact method)
…
A match counts more the stronger it is: exact definition, then file name, then a part of a name (refund ~
RefundJob, refunds_table, singular / plural), then a string literal, then a call. A file that matches several
different terms ranks above one that matches a single term many times, and files with an exact definition or file
name always come before files that only match strings (translations, build output). By default 5 files are shown
(--all: every match); terms without a match and terms that are too general are listed at the end. Paths are always
relative to the root: line. Plain text search (an exact message or config value) is still a job for grep; locate
answers "where do I start?".
Special terms:
"Organizer's other events") is one term. It is matched as a whole
(case-insensitive) against string literals, such as UI labels and translations, and is never split into words.route::events.show lists the route definition first (->name('events.show') in
routes/*.php), then every place that uses the name: route('events.show', …), to_route(…),
redirect()->route(…) in PHP, and route('events.show') in JS / TS / Vue (Ziggy). If nothing matches, it says
what was searched.locate --orange-500 searches for the variable (no -- separator needed); the known
options (--all, --project) stay options.bash ~/.claude/skills/callgraph/callgraph.sh locate route::events.show "Organizer's other events" --project myapp
--format)| Format | Gives you |
|---|---|
outline (default) | structure + calls by category |
api | public contract + docblocks, no implementation |
flow | if / match / switch branches with line ranges (condition → what it calls) |
summary | one line per file |
hotspots | top 20 methods by in/out degree |
coverage | undocumented public methods |
stats | category statistics |
mermaid / dot | diagrams of inheritance and call edges |
json / jsonl | the raw graph |
props | Vue and React: props a parent passes vs what the child declares (missing required, unknown, unknown slot) |
livewire | Livewire components: class, template and uses (<livewire:x>, @livewire, routes), wire:click / wire:model names checked against the class, events, validation rules (see docs/LIVEWIRE.md) |
filament | Filament admin panels: resources with model, pages (URIs under the panel path), form fields, table columns, filters, actions, relation managers, plus pages, widgets and panel providers; field / column / relationship names checked against the model and its migration (see docs/FILAMENT.md) |
routes middleware validation jobs events providers magic di views | framework views (run on a directory; routes also reads vue-router and Hono / Express tables) |
Large results are capped (above 400 lines a directory outline turns into a summary, a single file into a method
index); --full lifts the cap. Full reference: callgraph.sh --help and skill/SKILL.md.
More on the website: callgraph.eu/profile.
In an unfamiliar project, start with bash ~/.claude/skills/callgraph/callgraph.sh profile [--project alias]. From
folder and file names (and the framework found in composer.json / package.json / Cargo.toml) it tells you the
architecture (Laravel / Yii layered MVC, DDD / hexagonal, Vue / React frontend, SwiftUI MVVM, Rust web), the layers
with their folders and file counts, the design patterns (Repository, Factory, Strategy, Observer…), the folders
without a clear role, and how the layers call each other. The code graph confirms it: extends Controller,
implements *RepositoryInterface, defineStore, and the direction of the calls between layers. About 15 lines;
--full gives the per-folder details. Every file gets a role with a confidence (high / medium / low), or stays
"unknown" — it never guesses. MCP: the project_profile tool, and a compact profile is sent on connect.
The layers are listed by file count, so the main layer is always on top. A role found in both the backend and the
frontend is shown apart, e.g. controller (php) and controller (js) for PHP controllers next to AngularJS ones, and
the call direction keeps the two apart. Third-party code copied into the project (a subfolder with its own
composer.json, package.json or LICENSE, folders like vendors/, third_party/, extensions/, libs/, or a
copied framework core: CodeIgniter system/, Yii framework/, Kohana system/) and build output (dist/, build/,
*.min/, minified files) do not count: one line says how many files were skipped and where (profile --with-vendor
counts them anyway); your queries still see these files. event, listener, job, mail and notification
layers need proof in the code (an Event / Listener base class, Laravel's Dispatchable or ShouldQueue, a
handle(…) method in a Listeners namespace, extends Mailable / extends Notification) — a folder that is just
named Event is not an event layer. An enum never gets a role from its name (PaymentProvider is not a provider);
an Enums folder is shown as enum. The flow: line only links layers that really call each other; a side branch
follows after ;, e.g. flow: controller → service → model; command → service.
A large subtree the profile should not look at at all (an old copy of the whole app, a bundled legacy tool such as
sn_monitoring/) can be left out with a path line in .callgraphignore (sn_monitoring/); note that it then
disappears from every query too.
Use the layers in queries (all opt-in, the default output does not change):
bash ~/.claude/skills/callgraph/callgraph.sh app --layer service # only the service files (name,name...)
bash ~/.claude/skills/callgraph/callgraph.sh . --layer controller:js # one ecosystem only: php, js, swift, rust
bash ~/.claude/skills/callgraph/callgraph.sh app --format summary --layers # summary grouped by layer
bash ~/.claude/skills/callgraph/callgraph.sh app --grep 'Repo::find' --depth 2 --by-layer # callers grouped by layer
--by-layer puts the layer closest to the called method first (model → repository → service → controller) and
starts each group with a header such as [service] 3 calls, in the short and the long --grep view alike (with
--depth: in every level). The layer switches classify the files exactly like profile (with the same code proof,
read from the project map); without the map (CALLGRAPH_NO_GRAPH=1) a folder that needs proof, such as Event,
gives the next role (app/Services/Event/X.php → service).
Folder names that say nothing (or are not English)? A commit-able .callgraph-layers file in the project root maps
them: service = app/Szolgaltatasok, app/Logic, ignore-role = app/Legacy.
Terminal output and help are in English by default; Hungarian is available:
bash ~/.claude/skills/callgraph/callgraph.sh set-lang hu # save (back: set-lang en)
bash ~/.claude/skills/callgraph/callgraph.sh set-lang # show current language and its source
CALLGRAPH_LANG=hu bash ~/.claude/skills/callgraph/callgraph.sh app/Models/Order.php # one run only
Step-by-step setup per client (Claude Code, Claude Desktop, Cursor, VS Code): callgraph.eu/mcp.
Besides the Claude Code skill (unchanged, fully supported), the same binary is also an
MCP server on stdio, so any MCP client can use it: callgraph mcp.
Tools: locate, outline, method_body, find_callers, search, framework_view, trace, notes, projects, guide, project_profile. They return
the same compact text as the CLI, with the same output cap; read-only, paths are confined to the project root, and
queries never use the network (only the once-a-day update check below does).
On connect the server sends the client a short usage guide in your language (which tool to use when, how to find
callers, how to read the output); Claude Code puts it into the agent's instructions. The guide tool returns the core
skill manual (or one topic file with topic). Both come from the same source as SKILL.md, so they always match.
Claude Code defers MCP tools (it lists only their names), so by default it keeps reaching for Grep / Read first. Add this
to your project's CLAUDE.md so it uses callgraph first:
# Code navigation
Use the callgraph tools instead of Grep / Read: `locate` with all names from the task, then `outline` of the top
files; `method_body` only for the one or two methods you must read, never for a whole module. Grep only for exact
text; Read only for a known line range.
(The skill install writes the equivalent rule to .claude/rules/callgraph.md for you.)
The installer can register it for Claude Code for you: bash install.sh asks (if the claude command is available),
bash install.sh --mcp does it without asking, --no-mcp skips it. Remove it with
claude mcp remove -s user callgraph. By hand:
# Claude Code, macOS / Linux (picks the binary for your platform):
claude mcp add -s user callgraph -- \
~/.claude/skills/callgraph/bin/$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)/callgraph mcp --auto-update
# Claude Code, Windows (PowerShell):
claude mcp add -s user callgraph -- "$env:USERPROFILE\.claude\skills\callgraph\bin\windows-x86_64\callgraph.exe" mcp --auto-update
Claude Desktop, Cursor and VS Code use a JSON entry with "command": "<absolute path to the binary>", "args": ["mcp", "--auto-update"].
Recommended: --auto-update — at start (at most once a day) the server installs a newer release exactly like
callgraph.sh update (SHA-256 checked, your settings kept) and restarts itself, so the client always talks to the
latest version; if anything fails it just starts the current one. Without the flag it only adds a one-line
"newer version available" note to the first answer of the session. It writes only into callgraph's own folder; opt
out of all update checks with CALLGRAPH_UPDATE_CHECK=0.
Recipes, tool parameters and safety notes (Hungarian): docs/MCP.md.
While it runs, the MCP server watches the projects it has loaded and refreshes changed files by itself.
After a git pull or many edits, bash ~/.claude/skills/callgraph/callgraph.sh refresh [--project alias] (add
--background to return at once) updates the project map in advance, so the next query does not have to re-analyse.
Optional Claude Code hook: bash install.sh --hooks (or callgraph.sh hook install) refreshes every file Claude
edits in the background; it adds one entry to ~/.claude/settings.json, keeps everything else and writes a
settings.json.bak backup first. Remove it with bash ~/.claude/skills/callgraph/callgraph.sh hook uninstall.
Details (Hungarian): docs/PROJECT-GRAPH.md.
bash install.sh asks once (default yes; non-interactive: --session-hook) whether to add a Claude Code
SessionStart hook (callgraph.sh hook install-session). At the start of a new session it checks, offline, whether a
recommended setting is off — the refresh hook above, the MCP server with --auto-update, opting in to the shared
usage counts — or a newer callgraph is out, and if so shows one short note and asks your agent to ask you. Nothing is
changed without your yes; telemetry can only be turned on by you in a terminal. Each item at most every 2 days and 3
times in total (the usage-counts suggestion up to 10 times, never after you said no); callgraph.sh hook never hook|mcp|telemetry silences one (hook reset [item] brings it back),
CALLGRAPH_RECOMMEND=0 all; never in CI.
Remove: callgraph.sh hook uninstall.
callgraph keeps a small usage summary on your computer: how often each command or MCP tool ran, whether it
failed, and how long it took and how big its output was, in ranges. For locate over MCP it also notes whether the
file the agent opened next was the first result, and per day which command followed which (with the gap and whether
the target was the same file, folder or project, and whether the next call's file / symbol appeared in the previous
call's output — only its position band), session-length bands, and the target file's language and size band.
stats --events shows the local per-call log (kept 14 days, never sent; it also has no names). It never records paths, file or symbol names, search terms,
project names or error texts, and nothing is sent unless you turn sending on (below). See it with
bash ~/.claude/skills/callgraph/callgraph.sh stats [--days N] (last 7 days by default). The data lives in
~/.claude/skills/callgraph/stats/ (one small file per month, kept for about 90 days); turn it off with
CALLGRAPH_STATS=0. It is also off in CI and when callgraph does not run from a skill install. The first time it
records on a machine, one line on stderr tells you so.
Errors are split in two columns: user err (wrong usage, a file that does not exist, an unsupported file) and
internal (a fault of callgraph). Since 0.5.1 user mistakes are only counted, not logged to errors.jsonl; the
internal errors are also in errors.jsonl with an error id.
Off by default, and only you can turn it on: bash ~/.claude/skills/callgraph/callgraph.sh telemetry on asks for a
y/N confirmation in a terminal (an agent cannot answer it). telemetry preview prints exactly the JSON that would be
sent, telemetry status shows the state, telemetry off stops it. What is sent: the closed days' counts from
above, including the command-order counts and session bands (no paths, file, symbol or project names, no search terms or code), at most the last 7 days, the callgraph
version, the OS / architecture, a random batch id per day and the schema version — once a day, in the background, to
https://telemetry.callgraph.eu/v1. Never in CI, with CALLGRAPH_STATS=0, with DO_NOT_TRACK=1 or with
CALLGRAPH_TELEMETRY=0 (a hard off switch). telemetry reset makes it undecided again (still off). Controller: Makra Gergő (mgeri1993@gmail.com); the raw daily records are
kept for 90 days, then only monthly totals. The installer asks once (Yes / Not now / Never) in an interactive terminal;
after "Not now" stats reminds you once more about two weeks later, and an agent may very rarely be asked to mention it
to you.
Once a day, on the first real use (a callgraph.sh command or an MCP tool call), callgraph sends one request to
https://check.callgraph.eu/v1/check with only its version, the OS / architecture, whether it came from the CLI or the
MCP server, and three yes/no flags it works out from a local date file (first use on this install, first this week,
first this month). There is no ID of any kind, and the server stores no IP addresses, only daily totals. Update checks
and update downloads go through https://update.callgraph.eu (redirects to GitHub; straight to GitHub if it is down).
Off: CALLGRAPH_COUNT=0, DO_NOT_TRACK=1, CALLGRAPH_UPDATE_CHECK=0 or CALLGRAPH_TELEMETRY=0; never in CI.
CALLGRAPH_COUNT=1 turns the daily count back on despite DO_NOT_TRACK (callgraph only; telemetry stays off).
With CALLGRAPH_NEXT=1 (or --next; MCP: callgraph mcp --next) a result may end with one line, e.g.
↪ r7 possible next: [1] OrderService.php::refund --body [2] callers of refund [3] outline OrderService.php.
bash ~/.claude/skills/callgraph/callgraph.sh next r7 1 (or next r7 1,3; MCP: the next tool) runs the stored
command exactly. The suggestions are only read-only navigation built from names in that output; nothing is shown when
nothing is clear. CALLGRAPH_NEXT_LEARN=1 (separate opt-in, local only) re-orders or drops them from your own
acceptance log, and callgraph next --eval reports how that would have done offline. The agent instructions say: use one only if it fits the task, otherwise ignore the line.
Every error message carries an [error-id: …]. Agents (or you) can attach a note to it, which makes broken
cases easy to collect and fix:
bash ~/.claude/skills/callgraph/feedback.sh add <error-id> "what I expected, what happened"
bash ~/.claude/skills/callgraph/feedback.sh list --open
files ─► FileWalker ─► LanguageRegistry ─► Language::analyze ─► FileGraph ─► JSONL cache / project index ─► query formats
(.gitignore, (by extension) (mago · oxc · raffia · (one shared
vendor, …) pulldown-cmark · syn · schema)
tree-sitter-swift ·
tree-sitter-kotlin-ng ·
tree-sitter-python ·
tree-sitter-go)
src/lang/<language>/ that maps its AST into one shared FileGraph schema; the
query layer (src/query/) never needs to know which language a file was..callgraph/.Design and coding rules: ARCHITECTURE.md · query layer: docs/QUERY.md ·
per-language mapping: docs/LANG-JS.md, docs/LANG-CSS.md,
docs/LANG-DOC.md, docs/LANG-RUST.md, docs/LANG-SWIFT.md, docs/LANG-KOTLIN.md, docs/LANG-PYTHON.md, docs/LANG-GO.md (the detailed docs are currently in Hungarian).
Only Docker is needed locally; the toolchain (Rust stable, rustfmt, clippy, musl target, python3, php) lives in the
dev image (docker/dev.Dockerfile):
bash tools/dev.sh check # fmt --check + clippy -D warnings + tests (debug profile, like CI) — run before every commit
bash tools/dev.sh build # release binary: ~/.cache/callgraph-dev/target/release/callgraph
bash tools/dev.sh test # tests only
bash tools/dev.sh skill # dist/callgraph-<version>.tar.gz (skill package, Linux)
bash tools/dev.sh shell # shell inside the container
The build output is shared by all checkouts / worktrees (CALLGRAPH_DEV_TARGET, default
~/.cache/callgraph-dev/target; CALLGRAPH_DEV_TARGET=local keeps a per-checkout target/docker/), so a new branch
doesn't rebuild every dependency. check-release runs the same checks with the release profile (LTO, slow).
With a local toolchain the usual cargo build --release / cargo test work too. CI
(.github/workflows/release.yml) builds and tests macOS (arm64, x86_64),
Linux (arm64, x86_64, static musl) and Windows on every push, and publishes a GitHub Release on v* tags.
Found a bug or have an idea? Open an issue — the bug form asks for callgraph --version, the command and the output (with its [error-id: …] line).
Issues and pull requests are welcome. Before opening a PR, run bash tools/dev.sh check.
Adding a language is one new module plus one registration line: see docs/UJ-NYELV.md.
Refactors must keep the output byte-identical (tools/identity_check.sh).
Please report vulnerabilities privately through
GitHub Security Advisories, not in public issues — see SECURITY.md.
Created and maintained by Gergő Makra — LinkedIn.