/tt-debug-tools:tt-triagefrom tt-debug-tools
Reads the state of a hung or stuck Tenstorrent device: which op was running, RISC parking, on-device code integrity, NoC/Ethernet/ARC health. Attach to the live process before killing.
Ships in tt-debug-tools. 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.
About twenty Python scripts that read device state in one pass and print one section per script. Runs on top of tt-exalens and needs Inspector to have been running in the workload. This is the first thing to reach for on a hang.
Needs Python 3.10 or newer and
python -m pip install -r tools/triage/requirements.txt.
ebreak and looks
exactly like a hang from outside, so the assert is read through triage.Adjacent skills: tt-exalens for reading one address or register directly, and
for JTAG or GDB. tt-watcher when the workload was launched with watcher on and
watcher.log already holds the answer.
Keep the hung process alive. Triage reads it over a live Inspector RPC; killing or resetting first collapses the report to hardware checks alone.
tools/tt-triage.py --llm-output \
--llm-output-path=out.txt \
--triage-summary-path=summary.txt
Re-check one thing after a full pass:
tools/tt-triage.py --llm-output --run=dump_callstacks
Multi-process or multi-host, one pass per rank merged into one stream:
tools/tt-run-triage.py --rank-binding=<bindings.yaml> -- --llm-output
--llm-output gives CSV instead of Rich tables — greppable, so use it always.
Two flags matter when the normal path fails: --initialize-with-noc1 when NOC0
is wedged, and --remote-exalens when UMD cannot initialise because another
process owns the device — that one needs tt-exalens --server already running in
another shell, started before the workload. Full set: references/flags.md.
Two variables wire triage to fire on any dispatch hang without an operator in the loop:
| Variable | Effect |
|---|---|
TT_METAL_OPERATION_TIMEOUT_SECONDS=<seconds> | Ceiling on any dispatch operation. Bare number is seconds. |
TT_METAL_DISPATCH_TIMEOUT_COMMAND_TO_EXECUTE=<shell> | Shell command the host runs when the timeout fires, before it raises RuntimeError. The process is still alive and Inspector still serves. |
export TT_METAL_OPERATION_TIMEOUT_SECONDS=30
export TT_METAL_DISPATCH_TIMEOUT_COMMAND_TO_EXECUTE=\
"tools/tt-triage.py --llm-output --llm-output-path=triage.out && tt-smi -r"
Triage first, reset second. Reversing them kills the RPC before triage can read
it. tt-smi -r is board-level and hits every tenant on a shared host — drop it
there and reset by hand.
This is how CI and long-running pytest sessions attach triage to any dispatch timeout, not only hangs a human noticed.
Any run that is still running is inspectable — that is the whole precondition. Launch a workload, leave it running, and triage it from a second shell.
A fault that ends the process is not a target. TensixTestWatcherSanitize halts
a core, but reports and exits about 1.5s later, and against the exited process
the report degrades to hardware checks only.
summary.txt is one line per script, name: pass | FAIL — message. out.txt
holds one CSV section per script, each headed by the producing script name with a
column header row and one row per core or RISC.
dump_callstacks.py:
RISC-V,Loc,Kernel Name,...,Kernel Callstack
NCRISC,"(1,1)",reader_kernel,...,"#0 ... cb_wait_front ..."
Read it top-down: references/read-order.md. What each script tells you:
references/scripts.md. Stuck frame or failed check to a likely cause:
references/signals.md.
Op-level scripts report the dispatcher, not the cores. An op reads idle when its GO was already sent and the dispatcher moved on, even while a kernel is still physically stuck. An idle op level does not mean an idle device. Callstacks are ground truth.
A clean pass is weak evidence, never proof. Every script reporting pass
rules nothing out: triage samples one instant, and an intermittent hang or a race
is absent from that instant. Report a clean run as weak.
Check integrity early. check_core_magic and check_binary_integrity decide
how much of the rest you can believe: a corrupted mailbox invalidates every
script that reads mailboxes, callstacks included.
Triage halts cores to read them and may not resume them all, so a handful of
"broken" cores from check_broken_components is its own artifact. It matters
only when nearly every core is reported.
Empty or skipped sections usually mean one provider failed. Commonly Inspector. One upstream failure blanks its dependents; find the first non-skipped provider error, fix that, and re-read.
It refuses on a tt-exalens version mismatch. Surface the error rather than
working around it; --skip-version-check exists but you own what follows.
TT_METAL_INSPECTOR=0 in the workload degrades this silently — the
dispatcher-aware scripts skip and only hardware checks run. Report the
degradation instead of reading the thin report as a clean bill of health.
A short TT_METAL_OPERATION_TIMEOUT_SECONDS fires on slow legitimate work.
5 seconds is tuned for provoking an assert path; 30 or more is safer for a real
workload. Do not leave a short value exported into an unrelated session.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/tt-assertsTurn on assertion checking inside Tenstorrent kernels — lightweight kernel asserts, LLK asserts in the compute library, and the LLK sanitizer — and read back what fired. Use when a kernel produces impossible results, when you suspect a broken assumption about tile dimensions or data formats, or when a run hangs and you want to know whether an assert caused it. A fired assert halts the core and looks exactly like a hang from outside./tt-dprintPrint values out of a Tenstorrent kernel — scalars, bfloat16, enums, and circular-buffer tile contents — with DPRINT / DEVICE_PRINT. Use when a kernel produces wrong numbers and you need to see what it actually read or wrote, when you want a checkpoint reached or a loop index, or when a DPRINT log needs interpreting. For a kernel that hangs rather than computes the wrong answer, that is tt-watcher or tt-triage./tt-exalensRead and write one address, register or core on a Tenstorrent device with tt-exalens — L1 and DRAM reads, RISC-V registers and GPRs, tensix state, NoC registers, callstacks from an ELF, memory search, and a GDB server for stepping a RISC. Use for a specific question about a specific location, when tt-triage's fixed script set does not ask it, or when you need JTAG or GDB. For the whole-device sweep, that is tt-triage./tt-inspectorRead what the Metal host runtime thinks is happening on a Tenstorrent device — which programs and mesh workloads exist, which kernels were built, tensor specs, mesh buffers and sockets — over the Inspector RPC or from its serialized logs. Use when device-side state needs host-side names attached to it, when a tt-triage report comes back with dispatcher-aware sections skipped, or when you need to know what Inspector recorded about a run that has ended./tt-noc-dumpCollect NoC traces from a Tenstorrent device to find kernel data-movement mistakes — most usefully a missing noc_async_write_barrier. Use when a kernel's NoC transfers are suspect, when output is corrupt in a way that points at unflushed writes, or when asked to check barrier discipline. Not for hangs parked on a barrier (that is tt-triage)./tt-profilerMeasure where device time goes on a Tenstorrent part — per-zone kernel timings from the Device Program Profiler, and host-plus-device traces through Tracy. Use when a kernel or op is slower than expected and you need cycles attributed to named scopes, when you want a profile_log_device.csv read, or when you need to instrument a kernel with DeviceZoneScopedN.npx claudepluginhub tenstorrent/skills --plugin tt-debug-toolsOther plugins' skills for the same job