/tt-debug-tools:tt-inspectorfrom tt-debug-tools
Reads Tenstorrent device state from the Metal host runtime — programs, kernels, tensor specs, mesh buffers — via Inspector RPC or serialized logs. Use when tt-triage reports are incomplete or device-side state needs host-side names.
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.
Two components, both on by default. One logs host-runtime data to disk as the run proceeds; the other serves a capnp RPC that clients query while the process is alive. Inspector is what turns a device address into a program, a kernel name and a tensor spec, which is why the tools that read the device get much less useful without it.
Mostly you are not enabling this — you are checking it was on, or turning its knobs up, or explaining why something downstream came back thin.
tt-triage report has dispatcher-aware sections skipped, or a
dependency failure, and you need to know why.Not this skill: reading the device itself — tt-triage for a hung process,
tt-watcher for a watched run.
Defaults matter more than the syntax here, because everything is already on:
| Variable | Default | Effect |
|---|---|---|
TT_METAL_INSPECTOR | 1 | The whole feature. 0 degrades every consumer silently. |
TT_METAL_INSPECTOR_RPC | 1 | The RPC server. |
TT_METAL_INSPECTOR_RPC_SERVER_ADDRESS | localhost:50051 | Also accepts unix:/tmp/inspector_socket. Rank-shifted under MPI. |
TT_METAL_INSPECTOR_INITIALIZATION_IS_IMPORTANT | 0 | 0 means a failed init is not fatal — the run continues without Inspector. |
TT_METAL_INSPECTOR_WARN_ON_WRITE_EXCEPTIONS | 1 | Warns when logging cannot write, e.g. a full disk. |
TT_METAL_INSPECTOR_CAPTURE_TENSOR_SPECS | 0 | Record tensor specs. |
TT_METAL_INSPECTOR_LOG_RUNTIME_ENTRIES | 0 | Record runtime args. |
TT_METAL_INSPECTOR_SERIALIZE_ON_DISPATCH_TIMEOUT | 0 | Serialize when a dispatch timeout fires, so a hang leaves data behind. |
Turning the knobs up for an investigation, and the RPC and serialization model:
references/rpc-and-logs.md.
Nothing to force — it is on. To confirm it is actually working:
build/test/tt_metal/unit_tests_inspector # 4 RPC startup cases
ss -ltn | grep 50051 # the server, while a run is alive
generated/inspector/, under the logs directory — TT_METAL_LOGS_PATH, or the
working directory if unset, not TT_METAL_HOME:
startup.yaml kernels.yaml programs_log.yaml
mesh_devices_log.yaml mesh_workloads_log.yaml
Plus the live RPC while the process runs. The two are not equivalent — see Traps.
It fails open. TT_METAL_INSPECTOR_INITIALIZATION_IS_IMPORTANT defaults to
0, so an Inspector that failed to initialise leaves the run working and every
downstream tool thin. Set it to 1 when you are relying on the data.
The logs are not a substitute for the RPC. Methods that take no arguments are auto-serialized at process exit; anything taking arguments is not, unless someone implemented serialization for it. A triage script that needs unserialized data reports a dependency failure — which is why triaging an exited process, or one frozen so it cannot answer, loses the dispatcher-aware scripts and with them the callstacks. Keep the process alive and running.
TT_METAL_INSPECTOR=0 degrades silently. Hardware checks still run, so a
report looks plausible while the half that names things is missing. Report the
degradation rather than reading the thin report as a clean bill of health.
It overrides TT_METAL_RISCV_DEBUG_INFO. Enabling Inspector generates debug
info for the RISC-V ELFs. That is also why kernel enum values print as symbolic
names in tt-dprint — turn Inspector off and they become (TypeName)integer.
Under MPI the port is rank-shifted. A client hardcoding 50051 talks to rank 0 only.
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-exalensnpx claudepluginhub tenstorrent/skills --plugin tt-debug-toolsOther plugins' skills for the same job