/torchlens:torchlensfrom torchlens
Captures, saves, steers, ablates, patches, compares, or draws PyTorch model activations using TorchLens. Useful when debugging or inspecting .tlspec artifacts.
Ships in torchlens. 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.
Before writing TorchLens code, read the router: ROUTER.md. It gives the call to reach for first for each task, the wrong turn to avoid, and the page with the worked recipe.
When torchlens is installed, prefer the index that matches the installed version. This prints its path without importing torch:
python -c "import importlib.util, pathlib; print(pathlib.Path(importlib.util.find_spec('torchlens').origin).parent / '_docs' / 'AGENT_INDEX.md')"
To make every future session in a project find it, run torchlens agent init there: it adds a
short marked block to AGENTS.md (or each --file), and torchlens agent init --remove takes
it out again.
Open your own or a trusted saved file with tl.load. Inspect an untrusted one with the read-only
tools, manifest first: torchlens guide prints their contract.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub johnmarktaylor91/torchlens --plugin torchlensOther plugins' skills for the same job