ctxo blast-radius β
Computes the blast radius for a single symbol and writes the result to stdout. Designed for scripting, CI checks, and feeding results into other tools via jq or shell pipelines.
The underlying data is identical to what the get_blast_radius MCP tool returns - the CLI is a thin wrapper that skips the MCP transport and writes directly to stdout.
Synopsis β
shell
ctxo blast-radius <symbolId> [--json]Arguments β
| Argument | Description |
|---|---|
<symbolId> | Fully-qualified symbol ID in the form relative/path.ts::SymbolName::kind |
Flags β
| Flag | Default | Description |
|---|---|---|
--json | false | Machine-readable JSON output. When omitted, prints a human-readable summary |
JSON output shape β
json
{
"symbolId": "src/core/graph.ts::buildGraph::function",
"impactScore": 0.84,
"confirmed": ["src/adapters/storage/sqlite.ts::SqliteAdapter::class"],
"likely": ["src/cli/index-command.ts::IndexCommand::class"],
"potential": [],
"_meta": {
"totalItems": 2,
"returnedItems": 2,
"truncated": false,
"totalBytes": 412
}
}Examples β
shell
ctxo blast-radius "src/core/graph.ts::buildGraph::function"shell
ctxo blast-radius "src/core/graph.ts::buildGraph::function" --jsonshell
ctxo blast-radius "src/core/graph.ts::buildGraph::function" --json \
| jq '.confirmed | length'shell
SCORE=$(ctxo blast-radius "$SYMBOL" --json | jq '.impactScore')
if (( $(echo "$SCORE > 0.75" | bc -l) )); then
echo "High-impact symbol - review blast radius before merging"
exit 1
fiExit codes β
| Code | Meaning |
|---|---|
0 | Symbol found, result written |
1 | Symbol ID missing, index not found, or unexpected error |
See also β
get_blast_radiusMCP tool - same data via the MCP protocolctxo gate --preview- see which symbols the safe-edit guard flags- Safe-Edit Guard - how blast radius drives the hook