vulkro-sf ctx
A code-reading server for an SFDX project, for any AI coding agent that can run a shell command. It returns just the part that answers, as numbered lines.
vulkro-sf ctx read FILE # a small file whole, a large one as its outline
vulkro-sf ctx read FILE:NAME # one method (FILE:Class.method works)
vulkro-sf ctx read FILE:120-180 # a line range
vulkro-sf ctx search NAME # every definition, call and use, with its code
vulkro-sf ctx body NAME # one Apex method and the lines that call it
vulkro-sf ctx impact NAME # what depends on it, and the tests to run
vulkro-sf ctx check # after an edit: what it broke
vulkro-sf ctx init # tell the project's agents to use these
Other subcommands: callers, callees, map (the most central methods), and serve, stop, status for the background server.
search, body, impact and map read the Apex call graph, so a call such as AccountService.closeAccount(id) is tied to its method, and test classes are listed as the tests to run. A per-project background server keeps the graph warm: it starts on first use and exits after 15 idle minutes. It is offline and read-only.
ctx check reports call sites still on an old signature, removed names still used, syntax errors, and Salesforce findings (such as CRUD and FLS) on the lines you changed. vulkro-sf init --pre-commit runs it on every commit. MCP clients get the same through sf_read_code and sf_check_change.
Exit codes
| Code | Meaning |
|---|---|
0 | Answered. |
1 | check found problems. |
2 | Error. |
See also: vulkro ctx
Command reference
Generated from vulkro-sf ctx --help (vulkro-sf 0.33.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.
Read Apex, LWC and metadata for AI agents: just the part that answers, as numbered text.
vulkro-sf ctx [OPTIONS] <COMMAND>
| Command | What it does |
|---|---|
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. |
Options
| Flag | Description |
|---|---|
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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') |
vulkro-sf 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-sf ctx read [OPTIONS] <TARGET>
Arguments
| Argument | Description |
|---|---|
<TARGET> | FILE, FILE:NAME (FILE:Type.method / FILE:Type::method), or FILE:START-END. |
Options
| Flag | Description |
|---|---|
--full | Return a large file whole instead of its outline. |
--max-tokens <MAX_TOKENS> | Outline budget in tokens (about 2,000 by default) |
--root <ROOT> | Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory. |
--no-server | Answer in-process: do not use or start the background server. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx search
Every definition, call, reference and import of NAME, with its code
vulkro-sf ctx search [OPTIONS] <NAME>
Arguments
| Argument | Description |
|---|---|
<NAME> |
Options
| Flag | Description |
|---|---|
--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]. |
--substring | Match 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]. |
--lines | Locations 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-server | Answer in-process: do not use or start the background server. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx body
One function's code (NAME or file::NAME), its callees, and the lines that call it
vulkro-sf ctx body [OPTIONS] <SYMBOL>
Arguments
| Argument | Description |
|---|---|
<SYMBOL> |
Options
| Flag | Description |
|---|---|
--root <ROOT> | Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory. |
--no-server | Answer in-process: do not use or start the background server. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx callers
The functions that call SYMBOL directly
vulkro-sf ctx callers [OPTIONS] <SYMBOL>
Arguments
| Argument | Description |
|---|---|
<SYMBOL> |
Options
| Flag | Description |
|---|---|
--root <ROOT> | Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory. |
--no-server | Answer in-process: do not use or start the background server. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx callees
The functions SYMBOL calls directly
vulkro-sf ctx callees [OPTIONS] <SYMBOL>
Arguments
| Argument | Description |
|---|---|
<SYMBOL> |
Options
| Flag | Description |
|---|---|
--root <ROOT> | Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory. |
--no-server | Answer in-process: do not use or start the background server. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx impact
Everything that depends on SYMBOL, transitively (its blast radius; a floor)
vulkro-sf ctx impact [OPTIONS] <SYMBOL>
Arguments
| Argument | Description |
|---|---|
<SYMBOL> |
Options
| Flag | Description |
|---|---|
--max <MAX> | Most dependents listed (all of them, in practice) [default: 1000]. |
--root <ROOT> | Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory. |
--no-server | Answer in-process: do not use or start the background server. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx map
The most central functions of the repository, for orientation
vulkro-sf ctx map [OPTIONS]
Options
| Flag | Description |
|---|---|
--max <MAX> | [default: 25]. Default: 25. |
--root <ROOT> | Repository root. Default: the nearest ancestor of the current directory that holds .git, else the current directory. |
--no-server | Answer in-process: do not use or start the background server. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf 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-sf ctx check [OPTIONS]
Options
| Flag | Description |
|---|---|
--base <BASE> | Check BASE...HEAD (a branch or commit) instead of the uncommitted working tree (untracked files included) against HEAD. |
--fast | Skip the security scan (a full scan; slow on large repositories) |
--staged | Check 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-server | Answer in-process: do not use or start the background server. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx serve
Run the repository's ctx server in the foreground
vulkro-sf ctx serve [OPTIONS]
Options
| Flag | Description |
|---|---|
--root <ROOT> | |
--idle-minutes <IDLE_MINUTES> | Exit after this many minutes without a request [default: 15]. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx stop
Stop the repository's ctx server, if one is running
vulkro-sf ctx stop [OPTIONS]
Options
| Flag | Description |
|---|---|
--root <ROOT> | |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx status
Say whether a ctx server is running for the repository
vulkro-sf ctx status [OPTIONS]
Options
| Flag | Description |
|---|---|
--root <ROOT> | |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
vulkro-sf ctx init
Write the "read code with ctx" instructions into AGENTS.md and into each agent-specific instruction file the repository already has
vulkro-sf ctx init [OPTIONS]
Options
| Flag | Description |
|---|---|
--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. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
Full vulkro-sf ctx --help
Read Apex, LWC and metadata for AI agents: just the part that answers, as numbered text.
A code-reading server for the SFDX project, for ANY coding agent (Agentforce for Developers, Codex, Claude Code, Cursor, Copilot, Gemini CLI, ...): the interface is the shell, which every agent has.
vulkro-sf ctx read FILE small file whole, large file as an outline vulkro-sf ctx read FILE:NAME one method or class (FILE:Class.method works) vulkro-sf ctx read FILE:120-180 a line range vulkro-sf ctx search NAME every definition / call / use, with its code vulkro-sf ctx body NAME one Apex method plus the lines that call it vulkro-sf ctx map | impact NAME orientation | what depends on NAME (Apex graph) vulkro-sf ctx check after an edit: call sites left on an old signature, removed names still used, syntax errors, Salesforce findings on changed lines vulkro-sf ctx init tell the project's agents to use these
The graph-backed commands use a per-project background server that keeps the Apex call graph warm (`vulkro-sf ctx serve`; started on first use, local socket under ~/.vulkro/run, exits after 15 idle minutes; `--no-server` to stay in-process). Offline and read-only. Uses the Pro capability `sf-maps`.
Exit code: 0 answered, 1 `check` found problems, 2 error.
Usage: vulkro-sf 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:
-v, --verbose...
Bump stderr log verbosity. `-v` enables debug-level tracing for the `vulkro` + `vulkro_sf` targets; `-vv` enables trace. Honoured only when `RUST_LOG` is unset (an explicit `RUST_LOG` always wins)
-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')