/axiomcode:axiomcodefrom axiomcode
Answers codebase questions using a resolved call graph: who calls a function, what a change breaks, how A reaches B, and which tests cover edits. Supports Java, TypeScript, Python, JavaScript, C#, HTML, and CSS.
Ships in axiomcode. 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.
Read when SKILL.md points to them; scripts run unread.
Search with grep as usual; the graph answers what grep cannot. Use the MCP tools when they are in your list (in Claude Code
mcp__plugin_axiomcode_axiomcode__impact, __path, __tests, __context); otherwise run
<this dir>/scripts/axiomcode <verb> from the repository root. Same answer either way.
| the question | MCP tool | shell |
|---|---|---|
| where is the code for this task? | your own search (grep), then bring the name here | — |
| who calls X, what does changing it reach, which tests? | impact(name) | axiomcode impact <name> |
| what is the value of constant X, and who reads it? | impact(name) | axiomcode impact <name> |
| what do my uncommitted edits reach? | impact() | axiomcode impact |
| how does A reach B? | path(start, end) | axiomcode path <A> <B> |
| which tests do my edits need, and how do I run them? | tests() | axiomcode tests |
| an answer lists an unresolved call I can see the target of | link(site, target) | axiomcode link <file:line> <target> |
| the graph says sites are left unresolved after a build | unresolved(), then unresolved(decisions) — or /axiomcode:fill | axiomcode unresolved |
| how does this work, start to finish? | context(task, source=True) | axiomcode context "<task>" --source |
Names are written as in the code: Owner.method, function, Type, or file.py:123 for the declaration at that
line. There is no setup step: the first question builds the graph, and it refreshes itself after every edit.
A numbered list of places, most relevant first, each with the code of the function it sits in. → marks the line
that matters; a short function is shown whole.
1. shop/pricing.py:6 [resolved · total]
```python
4 def total(prices):
5 net = sum(prices)
→ 6 return net * (1 + vat_rate())
```
verified: ✓ (4 edge(s) looked up again)
Answer from the code shown; open a file only for a place whose body was cut (…). The tag says how sure the place
is: resolved is an edge the engine resolved and re-checked (verified:), do not re-derive it by grepping;
one of a set is one of several real targets; by name and text are leads, not facts; test marks a test;
hop N is how far out it is. A call the graph could not resolve is unknown, not absent: never report "no callers"
from an empty answer.
With a name: who calls it, what depends on it further out, and the tests that exercise it. Example:
impact(name="PriceService.total"). With no name: the first line is your edits: (each declaration you changed and
how), then the same answer for all of them. A constant answers with its value — change: const MAX_ITEMS = 5 —
so a limit, a default or a threshold is read off the first line rather than from the file.
How one declaration reaches another: every hop of the call chain, with the code at the line each call is written on.
Example: path(start="main", end="Ledger.put").
The tests your uncommitted edits reach, each with its code, and a last line run: <command> that runs exactly those.
Example: tests(). It is a lower bound: a test reached only through reflection or a service loader is not listed.
Answers are in three parts. CONFIRMED places are backed by an edge: resolved by the engine, or asserted by a link —
act on them. LEADS are reached only through a guess (by name, by key, one of a set, text) — check each before
relying on it. TO RESOLVE lists the calls the answer stopped at: the site as file:line:col, the call as written, why
the engine could not follow it (a value from getattr, a handler table, reflection, a callback) and the graph's
candidate targets with their file:line.
When the task depends on one of those sites, read the call. Only if the code makes the target CERTAIN, record it:
link(site="app/dispatch.py:6:12", target="on_save"), or axiomcode link app/dispatch.py:6:12 on_save from the shell.
A candidate is a lead: confirm it by reading the call, never link one because it is ranked first. From then on impact,
path and tests walk that edge, labelled [asserted], never resolved; when the target declares a return type, the
calls made on its result (chained, or on a variable assigned from it) resolve too. When a lead at a site is wrong,
reject it: link(site, "not:<target>") — it is no longer walked; only a guess can be rejected, never an edge the
engine resolved. The links are kept in axiomcode-links.tsv at the repository root, which is worth committing.
link() with no arguments lists them and whether the graph took each one; axiomcode link <file:line:col> - removes
one. A link is refused when the call written there names a different declaration, or the target is not one; when
the line it was made on is edited, it is dropped and listed as stale, and the site is to resolve again. Never link a
guess: an asserted edge is trusted by every answer after it.
After a build, a note says how many call sites the engine left unresolved that may land in the project's own code
(a library's method on a receiver it could not type is counted, not listed: reading the project does not settle it).
/axiomcode:fill works through them in a subagent; without it, unresolved(limit=25) lists the next open sites, the
ones inside the most called callers first, each with its code, the engine's reason and the candidates, and
unresolved(decisions="...") takes one decision per line and answers with the next page: <site> <target> when the code makes it certain, <site> not:<target>
for a wrong candidate, <site> ? to leave it open (not asked again until its line changes). Settled sites drop off the
list. The same rule as link: never link a guess.
How something works, from a task in your own words: the files and callables the task touches and, for a
how-does-X-work question, the call flow step by step. Example: context(task="how is an invoice settled", source=True) — source carries each step's code, so the flow is read without opening files. Only English task
words land (the graph's vocabulary is the code's identifiers); any language works once the task includes one
identifier as written in the code.
axiomcode index builds the graph explicitly; --lang and --src narrow it. Never re-run it on an
existing graph: the graph rebuilds itself after edits, and an answer given before that finishes says so on a
graph refresh: line.
By default the graph is built without the project's dependencies: a call into one is unresolved or named only as an
external boundary. When better coverage is needed, compile the dependencies and enable them with --library, given
once on index and kept by every rebuild after it:
axiomcode index --library auto # the dependencies the project imports
axiomcode index --library .venv/lib/python3.12/site-packages/requests,/deps/ir/jdk # or name them
auto finds what the project depends on, in every language: a Python package its source imports, in its virtual
environment (.venv, venv, $VIRTUAL_ENV); a JavaScript / TypeScript package it imports, under node_modules; in a
Deno project, every jsr:, npm: and URL module it imports, from Deno's cache (deno install fetches them); a
Java dependency pom.xml or build.gradle declares, through its -sources.jar in the Maven repository or Gradle's
cache, or its class jar decompiled when it ships no sources (needs Vineflower: mvn dependency:get -Dartifact=org.vineflower:vineflower:1.10.1); a NuGet package a .csproj references, decompiled from its assembly
(needs dotnet tool install -g ilspycmd). Whatever it cannot find (a package never restored, a jar without sources)
it names, with the command that fetches it. A named entry, comma-separated with no spaces, is a dependency's source
directory or a library IR (a directory of the parser's CSV tables, as axiomcode parser <source> <dir> --library
writes it). Every library is compiled once into ~/.cache/axiomcode/libir/ and reused until its files change; one no
build has used for 30 days is removed. Entries are relative to the repository or absolute; write ~ out, since one
after a comma is not expanded. AXIOMCODE_LIBRARY takes the same list.
The choice is kept with the graph. Every rebuild after it stages the libraries again (auto discovers them
again, so a new dependency is picked up), and with libraries on, a dependency change alone (a manifest or lockfile
edit, pip install -U, npm install, dotnet restore, a Maven or Gradle fetch of a dependency that was missing)
also marks the graph stale and rebuilds it. A graph built
without --library never gains libraries by itself; AXIOMCODE_REINDEX=1 axiomcode index turns them off again.
With them, a call into a dependency resolves to its declaration and a chain is typed through its declared return
types (client.post(...).json()). Library bodies are not walked, so a dependency calling back into the project is
not found this way.
At the end of a turn where an answer verifiably led your work (a file the answer showed first that you then read or
edited, or the tests it picked that you ran: Redirected / Helped / Useful), the plugin hands you a receipt once. End
your reply with it exactly as written. It is read from the session's tool calls, not from what you write, so there is
nothing to claim yourself; if the reply does not carry it, the user is shown it anyway.
Each repository keeps its own record (.axiomcode/assists.jsonl at its root) and its own page,
.axiomcode/assists.html, rebuilt whenever a turn adds to the record; axiomcode report rebuilds it by hand.
axiomcode graph draws the codebase as one page for the user to look at: directories, files, types and methods, with
the call edges between them and each edge's tier. It prints the page's path (.axiomcode/graph/graph.html); open it
in a browser. It is drawn from the graph the index built, rebuilt first only when a source file changed. It is not an
MCP tool: it answers no question, so when the user asks to see the graph, run it and give them the path.
Reflection, string dispatch, event buses; receivers the engine could not type; callbacks invoked by a library; what a decoration turns on (proxy, transaction, cache). Text search is still right for a string, a comment or a config value.
scripts/ax_assists.py (opens in a new tab)scripts/ax_blocks.py (opens in a new tab)scripts/ax_caserun.py (opens in a new tab)scripts/ax_contract.py (opens in a new tab)scripts/ax_edges.py (opens in a new tab)scripts/ax_evidence.py (opens in a new tab)scripts/ax_exec.py (opens in a new tab)scripts/ax_fill.py (opens in a new tab)scripts/ax_fresh.py (opens in a new tab)scripts/ax_grep.py (opens in a new tab)scripts/ax_langs.py (opens in a new tab)scripts/ax_libs.py (opens in a new tab)scripts/ax_links.py (opens in a new tab)scripts/ax_nonsource.py (opens in a new tab)scripts/ax_orphan.py (opens in a new tab)scripts/ax_pages.py (opens in a new tab)scripts/ax_registration.py (opens in a new tab)scripts/ax_runner_setup.py (opens in a new tab)scripts/ax_spawn.py (opens in a new tab)scripts/ax_text.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
TypeScript, JavaScript, Python, Java, C#, CSS, HTML
npx claudepluginhub axiomcodeai/axiomcodegraph --plugin axiomcode2 skills in this plugin
Other plugins' skills for the same job