Skip to main content

vulkro ctx

Read code for any AI coding agent that can run a shell command: each answer is just the code that answers the question, as numbered lines.

vulkro ctx read FILE # small file whole, large file as an outline
vulkro ctx read FILE:NAME # one declaration (FILE:Type.method works)
vulkro ctx read FILE:120-180 # a line range
vulkro ctx search NAME # every definition, call and use, with code
vulkro ctx body NAME # one function plus the lines that call it
vulkro ctx impact NAME # everything that depends on NAME
vulkro ctx map # the most central functions, for orientation
vulkro ctx check # after an edit: what it broke
vulkro ctx init # tell the repo's agents to use these

callers and callees list a symbol's direct callers and callees. The graph commands use a background server per repository that starts on first use, listens only on a local socket and exits after 15 idle minutes (serve, stop, status manage it; --no-server skips it). Everything is offline and read-only.

vulkro ctx check​

Compares the working tree with HEAD and reports call sites still on an old signature, removed names still in use, what depends on the change, the tests to run, and security findings on the changed lines. It exits 1 when it finds a problem. vulkro install-hook --pre-commit runs it on every commit.

FlagDescription
--base <REF>Check REF...HEAD instead of the working tree.
--stagedCheck only staged changes.
--fastSkip the security scan.

vulkro ctx init​

Adds a short block to AGENTS.md and to any agent instruction file the repo already has. --agents picks files: agents, claude, gemini, copilot, cursor (comma-separated). Running it again updates the block in place.

search --lines prints locations only.

Exit codes​

0 answered, 1 check found problems, 2 error (unknown file or symbol, IO).

See also: vulkro mcp serve (the read_code and check_change tools).

Command reference​

Generated from vulkro ctx --help (vulkro 0.41.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Read code for AI agents: just the part that answers, as numbered text.

vulkro ctx [OPTIONS] <COMMAND>
CommandWhat it does
readFILE, FILE:NAME or FILE:START-END. A small file whole, a large one as its outline, one declaration, or a line range; numbered lines.
searchEvery definition, call, reference and import of NAME, with its code.
bodyOne function's code (NAME or file::NAME), its callees, and the lines that call it.
callersThe functions that call SYMBOL directly.
calleesThe functions SYMBOL calls directly.
impactEverything that depends on SYMBOL, transitively (its blast radius; a floor)
mapThe most central functions of the repository, for orientation.
checkAfter an edit: what changed, call sites still on an old signature, removed names still used, what depends on it and the tests to run, and security findings on the changed lines. Exit 1 when it finds problems.
serveRun the repository's ctx server in the foreground.
stopStop the repository's ctx server, if one is running.
statusSay whether a ctx server is running for the repository.
initWrite the "read code with ctx" instructions into AGENTS.md and into each agent-specific instruction file the repository already has.

Options​

FlagDescription
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')

vulkro ctx read​

FILE, FILE:NAME or FILE:START-END. A small file whole, a large one as its outline, one declaration, or a line range; numbered lines

vulkro ctx read [OPTIONS] <TARGET>

Arguments​

ArgumentDescription
<TARGET>FILE, FILE:NAME (FILE:Type.method / FILE:Type::method), or FILE:START-END.

Options​

FlagDescription
--fullReturn a large file whole instead of its outline.
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--max-tokens <MAX_TOKENS>Outline budget in tokens (about 2,000 by default)
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
--root <ROOT>Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory.
--no-serverAnswer in-process: do not use or start the background server.
-h, --helpPrint help.

Every definition, call, reference and import of NAME, with its code

vulkro ctx search [OPTIONS] <NAME>

Arguments​

ArgumentDescription
<NAME>

Options​

FlagDescription
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--offset <OFFSET>Index of the first hit (the previous page's next_offset) [default: 0].
--context <CONTEXT>Lines of context around each hit (max 5) [default: 1].
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
--substringMatch NAME anywhere, not only as a whole identifier.
--max <MAX>Most hits in one answer (all of them, in practice). The top hits come with code; the rest one line each [default: 2000].
--linesLocations only (file:line, kind, enclosing function), no code: for "list every usage".
--root <ROOT>Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory.
--no-serverAnswer in-process: do not use or start the background server.
-h, --helpPrint help.

vulkro ctx body​

One function's code (NAME or file::NAME), its callees, and the lines that call it

vulkro ctx body [OPTIONS] <SYMBOL>

Arguments​

ArgumentDescription
<SYMBOL>

Options​

FlagDescription
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--root <ROOT>Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory.
--no-serverAnswer in-process: do not use or start the background server.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help.

vulkro ctx callers​

The functions that call SYMBOL directly

vulkro ctx callers [OPTIONS] <SYMBOL>

Arguments​

ArgumentDescription
<SYMBOL>

Options​

FlagDescription
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--root <ROOT>Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory.
--no-serverAnswer in-process: do not use or start the background server.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help.

vulkro ctx callees​

The functions SYMBOL calls directly

vulkro ctx callees [OPTIONS] <SYMBOL>

Arguments​

ArgumentDescription
<SYMBOL>

Options​

FlagDescription
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--root <ROOT>Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory.
--no-serverAnswer in-process: do not use or start the background server.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help.

vulkro ctx impact​

Everything that depends on SYMBOL, transitively (its blast radius; a floor)

vulkro ctx impact [OPTIONS] <SYMBOL>

Arguments​

ArgumentDescription
<SYMBOL>

Options​

FlagDescription
--max <MAX>Most dependents listed (all of them, in practice) [default: 1000].
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--root <ROOT>Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
--no-serverAnswer in-process: do not use or start the background server.
-h, --helpPrint help.

vulkro ctx map​

The most central functions of the repository, for orientation

vulkro ctx map [OPTIONS]

Options​

FlagDescription
--max <MAX>[default: 25]. Default: 25.
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--root <ROOT>Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
--no-serverAnswer in-process: do not use or start the background server.
-h, --helpPrint help.

vulkro ctx check​

After an edit: what changed, call sites still on an old signature, removed names still used, what depends on it and the tests to run, and security findings on the changed lines. Exit 1 when it finds problems

vulkro ctx check [OPTIONS]

Options​

FlagDescription
--base <BASE>Check BASE...HEAD (a branch or commit) instead of the uncommitted working tree (untracked files included) against HEAD.
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--fastSkip the security scan (a full scan; slow on large repositories)
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
--stagedCheck only what is staged for commit (git diff --cached); the pre-commit hook uses this.
--root <ROOT>Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory.
--no-serverAnswer in-process: do not use or start the background server.
-h, --helpPrint help.

vulkro ctx serve​

Run the repository's ctx server in the foreground

vulkro ctx serve [OPTIONS]

Options​

FlagDescription
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--root <ROOT>
--idle-minutes <IDLE_MINUTES>Exit after this many minutes without a request [default: 15].
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help.

vulkro ctx stop​

Stop the repository's ctx server, if one is running

vulkro ctx stop [OPTIONS]

Options​

FlagDescription
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--root <ROOT>
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help.

vulkro ctx status​

Say whether a ctx server is running for the repository

vulkro ctx status [OPTIONS]

Options​

FlagDescription
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--root <ROOT>
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help.

vulkro ctx init​

Write the "read code with ctx" instructions into AGENTS.md and into each agent-specific instruction file the repository already has

vulkro ctx init [OPTIONS]

Options​

FlagDescription
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--root <ROOT>
--agents <AGENTS>Only these files: agents (AGENTS.md), claude (CLAUDE.md), gemini (GEMINI.md), copilot (.github/copilot-instructions.md), cursor (.cursor/rules/vulkro-ctx.mdc). Comma-separated.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help.
Full vulkro ctx --help
Read code for AI agents: just the part that answers, as numbered text.

A code-reading server for the repository, for ANY coding agent (Codex, Claude Code, Cursor, Copilot, Gemini CLI, Aider, ...): the interface is the shell, which every agent has. An agent's bill is mostly its context, re-sent every turn, and most of that is code it read; these commands replace cat / sed / grep with answers sized to the question.

vulkro ctx read FILE small file whole, large file as an outline vulkro ctx read FILE:NAME one declaration (FILE:Type.method works) vulkro ctx read FILE:120-180 a line range vulkro ctx search NAME every definition / call / use, with its code vulkro ctx body NAME one function plus the lines that call it vulkro ctx map | impact NAME orientation | what depends on NAME vulkro ctx check after an edit: broken callers, removed names still used, tests to run, security findings vulkro ctx init tell the repo's agents to use these (AGENTS.md)

The graph-backed commands (search, body, callers, callees, impact, map) use a per-repository background server that keeps the code graph warm (`vulkro ctx serve`; started automatically on first use, local socket under ~/.vulkro/run, exits after 15 idle minutes; `--no-server` to stay in-process). `read` works on one file and covers Rust as well. Offline and read-only. Uses the `code-structure` capability.

Exit code: 0 answered, 1 `check` found problems, 2 error (unknown file or symbol, IO).

Usage: vulkro ctx [OPTIONS] <COMMAND>

Commands:
read FILE, FILE:NAME or FILE:START-END. A small file whole, a large one as its outline, one declaration, or a line range; numbered lines
search Every definition, call, reference and import of NAME, with its code
body One function's code (NAME or file::NAME), its callees, and the lines that call it
callers The functions that call SYMBOL directly
callees The functions SYMBOL calls directly
impact Everything that depends on SYMBOL, transitively (its blast radius; a floor)
map The most central functions of the repository, for orientation
check After an edit: what changed, call sites still on an old signature, removed names still used, what depends on it and the tests to run, and security findings on the changed lines. Exit 1 when it finds problems
serve Run the repository's ctx server in the foreground
stop Stop the repository's ctx server, if one is running
status Say whether a ctx server is running for the repository
init Write the "read code with ctx" instructions into AGENTS.md and into each agent-specific instruction file the repository already has
help Print this message or the help of the given subcommand(s)

Options:
--offline
Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

-h, --help
Print help (see a summary with '-h')