Thanks to visit codestin.com
Credit goes to docs.fallow.tools

Skip to main content
Read a runtime stack trace and ask the module graph which definitions its frames name. trace-error classifies reported frames as in-project, inside an installed dependency, or outside the analyzed corpus, then resolves the in-project ones against the definitions fallow already extracted.
The trace comes from a file argument, from -, or from stdin when no argument is given. A relative path is resolved against the project root, matching --diff-file. V8 and Node traces are supported, as are SpiderMonkey and JavaScriptCore traces.
trace-error is a standalone, best-effort surface. It is not folded into the ranked review brief and is never an input to the focus map or its ranking.

What it refuses to do

The command reports what it could not answer instead of guessing.
  • A frame matching several definitions reports ambiguous. It lists bounded candidates and records additional matches in candidates_omitted.
  • A frame matching nothing reports not_found rather than disappearing from the output.
  • A frame the graph was never asked about reports not_attempted, with the reason.
  • Reported frames stay in frames[] in input order. counts publishes their per-outcome totals, while frames_omitted records frames beyond the report limit.
Exact project-relative or absolute file paths take priority over abbreviated suffix matches. If an abbreviated path matches multiple modules, the result preserves that ambiguity. No source maps are read. A frame inside generated build output is reported as such, because a stale map rebinds silently to the wrong line and a wrong line is worse than no line.

Options

trace-error takes the project, output, and performance global flags: --root, --config, --format with human or json, --pretty, --quiet, --no-cache, and --threads. Input is limited to 1 MiB. The report includes up to 256 frames and up to 10 candidate definitions per frame; omitted counts remain explicit. Oversized input exits with code 2.

Human output

$ fallow trace-error crash.txt
Each frame prints its origin and resolution as a [origin/resolution] pair, with the reason on the indented line below.

JSON output

$ fallow trace-error crash.txt --format json

Key fields

counts.frames is the number of reported frames. Both resolved + ambiguous + not_found + not_attempted and in_project + node_modules + out_of_corpus equal that number. Add counts.frames_omitted to recover the total number of recognized input frames. A trace that is entirely unrecognised reports zero frames and a non-zero unparsed_lines, rather than looking like an empty trace.

For agents

The trace_error MCP tool wraps this command. Feed it the stack trace from a failing test or a production error, then read frames[].candidates[] for the files worth opening. A not_found result on an in-project frame means the graph could not match its name. The function may be module-local, or the runtime name may differ from the extracted definition.

See also

fallow trace

Walk a symbol’s call chain, or find the shortest import path between two modules.

Inspect a target

Compose one evidence bundle for a file or exported symbol.

MCP integration

Use fallow tools from AI coding agents.