/entire-graph:statsfrom entire-graph
Reports token savings from using the entire-graph code graph vs grep/read exploration in coding-agent sessions. Analyzes local session transcripts to show graph usage rates and estimated tokens saved.
Ships in entire-graph. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the report, then read it back in plain language. Do not paste the whole output —
report the numbers that matter and what they mean. The bare command prints only the headline
number, so use --verbose (or --format json) whenever you need the per-verb and per-kind
detail the reporting rules below ask for.
entire graph stats --repo . # last 30 days (default) -> ONE line: tokens saved
entire graph stats --repo . --verbose # the full report: tables, billed tokens, model text
entire graph stats --repo . --since all
entire graph stats --repo . --format json # for scripting; --verbose does not change it
entire graph stats --repo . --transcript ~/.claude/projects/<slug>/<session>.jsonl
The default output is a single line — [entire-graph] ~128,400 tokens saved — because that is
the question people ask. Everything else moved behind --verbose; --format json is unchanged.
--since 7d|30d|all windows the sessions, and it now prunes transcripts by file mtime BEFORE
parsing them, so a narrow window is fast instead of reading the whole directory. --sessions-dir <path> overrides transcript
discovery. --transcript <path> narrows the report to ONE session — that transcript plus its
<session>/subagents/*.jsonl — instead of a whole project directory; mutually exclusive with
--sessions-dir. Per-transcript summaries are memoised under the cache directory, keyed on file
identity (path + size + mtime) and on the binary's own identity; --no-cache re-parses
everything and --cache-dir relocates the memo. Requires the entire-graph plugin on PATH
(entire graph version).
Coding-agent session transcripts already on disk: ~/.claude/projects/<repo-path-slug>/**/*.jsonl
(under $CLAUDE_CONFIG_DIR/projects/ when that is set; the slug is the repo's absolute path with
non-alphanumerics folded to -). Nothing is
uploaded and no model is called; the only thing written is the summary memo under the cache
directory. If there are no sessions for the repo it says so and exits 0.
entire graph <verb> invocations, split per verb. A call only counts
when entire graph is in command position (a real invocation), not when the string
appears as an argument — find ~/src/entire-graph -name '*.go' is not a graph call.Read (split whole-file vs
line-range), Grep, Glob, and shell grep/find/cat/head/tail.It is an estimate with a stated assumption, not a measurement — but both of its prices are measured from the session's own transcript, so only the substitution ratio is assumed:
query, neighbors, impact. Bulk verbs
(symbols, edges, snapshot, diff, …) appear in the table but are never credited.graph bytes/call = locate result bytes ÷ locate calls, and
exploration bytes/call = exploration result bytes ÷ exploration calls.The 1:1 substitution ratio is the only assumption, and it is not invented: a paired A/B benchmark of this tool measured 0.980 exploration calls displaced per graph call. 1:1 is that number rounded in the understating direction.
Two consequences worth stating to the user:
~.entire graph setup installs the search-first, verify-once doctrine into AGENTS.md/CLAUDE.md
so agents in this repo actually use it.The same numbers render as a live Claude Code status line, in estimated tokens only, after the indexed graph's size:
◤ entire graph · 17,271 nodes | 86,038 edges · ~184K tok gross · ~12.4K net
It shows only what the user acts on: the graph's size when HEAD itself is indexed (the
counts.symbols and counts.relations that entire graph index reported, numbers in full), the
gross figure once the session has made a graph lookup, the net figure when stats has a comparison,
and, when HEAD has no index, index N commits behind (a first-parent ancestor at most 5 commits
back has one) or not indexed, each followed by run entire graph index. The size is never shown
beside those two. The line shows no index state when there is no commit yet, when git cannot be run
on the checkout (metadata validation or the HEAD read fails), or when the index state cannot be
read.
The status line is opt-in. entire graph setup asks at a terminal (default no) before installing
it in the repository's .claude/settings.local.json; entire graph setup --statusline installs it
without asking. If the user already has a status line in .claude/settings.json or their user
settings ($CLAUDE_CONFIG_DIR/settings.json, else ~/.claude/settings.json), setup keeps theirs
and does not ask; --statusline replaces it in this repository only. To set it by hand:
{
"statusLine": {
"type": "command",
"command": "entire graph statusline"
}
}
Installing the Claude Code plugin does not turn it on: the settings entry is the only switch. A
settings file that still runs scripts/entire-graph-statusline.sh keeps working: that script is
now a shim that runs the subcommand.
The line is scoped to the CURRENT session (its transcript and subagent transcripts) and caches its figures until a transcript, HEAD's tree or the binary changes, so a render does not re-scan every session in the project; after an append it parses only the appended lines. Its net number carries exactly the caveats above — same estimator, same assumption.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub entireio/entire-graph --plugin entire-graphOther plugins' skills for the same job