/tt-debug-tools:tt-watcherfrom tt-debug-tools
Polls Tenstorrent device cores during a run to catch NoC errors, buffer overflows, kernel asserts, and RISC hang locations. Use when a kernel corrupts memory or a run hangs.
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.
A host thread that polls every core on every device on an interval, reads the
watcher mailboxes out of L1, and writes one dump per interval to watcher.log.
It checks each NoC transaction against the core map before it is issued, so it
names the faulting core and the offending address rather than leaving a hang. The
checks compile into the kernel, so this is decided before you launch — nothing
here attaches to a run in progress, which is what tt-triage is for.
watcher.log or a console fault report and need it read.tt-asserts).Not this skill: already hung, no relaunch — tt-triage.
| Variable | Effect |
|---|---|
TT_METAL_WATCHER=<N> | Enable, polling every N seconds. A bare number is seconds; suffix ms for milliseconds (250ms). |
TT_METAL_WATCHER_APPEND=1 | Append to the existing log instead of truncating it. |
TT_METAL_WATCHER_DUMP_ALL=1 | Also dump state that is unsafe to read while a kernel runs. |
TT_METAL_WATCHER_NOINLINE=1 | Stop inlining the checks, to shrink the kernel. |
TT_METAL_WATCHER_DISABLE_<FEATURE>=1 | Turn one check off. Eleven of them; full list in references/features.md. |
TT_METAL_WATCHER_DEBUG_DELAY=<cycles> | Stall NoC operations to force a race. Needs a target: TT_METAL_{READ,WRITE,ATOMIC}_DEBUG_DELAY_CORES and _RISCVS. |
In-kernel, compiled in only while watcher is enabled:
WATCHER_RING_BUFFER_PUSH(uint32_t) pushes to a 31-element per-RISC ring buffer,
and PAUSE() halts the kernel until released — references/features.md. Delay
targets and their two preconditions: references/delays.md.
Upstream's sanitize suite covers seventeen fault modes and asserts on the exact string each produces:
TT_METAL_LOGS_PATH=$PWD build/test/tt_metal/unit_tests_debug_tools \
--gtest_filter=MeshWatcherFixture.TensixTestWatcherSanitize
This case reports a BRISC unicast write to a core that does not exist, then exits about 1.5s later — not a hang, and not a triage target.
Two destinations, and confusing them wastes a run.
A fault report goes to the process's stdout, not the log: the offending
transaction, Last waypoint:, the ring buffer, and While running kernels: with
a kernel name per RISC. Grep the run's own output for Watcher detected NOC error and stopped device.
The per-interval dumps go to watcher.log, one block headed Dump #N at <t>s, closed by Dump #N completed, one line per core with its waypoints, run
messages and kernel ids.
Both shapes field by field: references/log-format.md. Waypoint vocabulary:
references/waypoints.md. Reading these structures out of a dead or unwatched
process: references/dump-without-watcher.md.
The log lands at <logs_dir>/generated/watcher/watcher.log, where logs_dir is
TT_METAL_LOGS_PATH or, unset, the working directory — not TT_METAL_HOME.
Set it, or the log follows wherever you launched from.
The watcher server catches the fault, prints the report to stderr and
watcher.log, and re-throws. The re-throw unwinds the host process and
returns from main: the process exits, its Inspector RPC closes, and any
live introspection window is gone. What survives is on disk —
watcher.log (the last completed dump before the fault) and the console
fault line. For device state past that, see references/dump-without-watcher.md.
Watcher, DPRINT and the device profiler share on-chip SRAM. Enabling more than one silently corrupts the debug data — no error, just wrong output. Unset the other two.
A trip is not proof of a regression. These checks were never running before,
so an overflow that appears under TT_METAL_WATCHER was latent all along — a
prior green run without watcher is not evidence the code was ever correct.
Longer intervals are less invasive, not weaker. Polling perturbs timing, so
a long interval suits a hang that comes and goes and a short one a deterministic
fault; reaching for a shorter interval on an intermittent bug is backwards. Same
reason _DUMP_ALL needs a long one — it reads state that is unsafe to touch
mid-kernel and will hang the kernel it is inspecting otherwise.
Disabling a feature removes it from the kernel, not just from the report.
TT_METAL_WATCHER_DISABLE_PAUSE does not leave a kernel parked at PAUSE() — the
macro compiles to nothing, and upstream tests exercising a disabled feature skip
rather than fail.
The variable is TT_METAL_WATCHER_DISABLE_SANITIZE_NOC. Upstream's own
assertion messages name TT_METAL_WATCHER_DISABLE_NOC_SANITIZE, which does not
exist — setting it does nothing and the assertion still fires.
Over the fabric-kernel binary limit, shed in order: _DISABLE_SANITIZE_NOC, _NOINLINE, _DISABLE_ASSERT.
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