Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By TorchedHatv1.0.0MITIn 1 marketplace
Traces a PyTorch operator from Python through C++ to its CUDA kernel, with file and line evidence for each step. Needs a PyTorch source checkout, and the C++ call graph also needs libclang 19 or newer.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Structural understanding of a Python, C++ and CUDA codebase, served to your coding agent over MCP.
TorchTalk builds a structural map of a cross-language codebase. Where is
torch.matmul actually implemented? Which CUDA kernel does this Python call
dispatch to? Which unit tests break if this C++ function changes? Every answer
comes back with exact file and line evidence, like LinearAlgebra.cpp:1996.
It is built for the people who work across the Python and C++ boundary, framework developers, extension authors, and researchers navigating unfamiliar internals. The index is served over MCP, so the same answers reach your coding agent (Claude Code, Cursor, Codex) and your CI pipeline, where impact analysis can drive test selection.
flowchart LR
src["Source checkout"] --> idx
man["Convention manifest (TOML)"] --> idx
idx["TorchTalk index (bindings, call graph, modules, tests, import edges)"] --> srv["MCP server"]
srv <--> agent["Coding agent (any MCP client)"]
torch.matmul → at::native::matmul → LinearAlgebra.cpp:1996 in one query.ExternalRef edge. Indexing vLLM v0.31.0 produces 2,413 of them across 2,569 modules.pip install -r requirements.txt
pip install -e .
The C++ call graph needs the libclang shared library (version 19 or newer)
on the system. TorchTalk finds it through ctypes.util.find_library; set
LIBCLANG_LIBRARY_FILE to use a specific copy.
TorchTalk is a standard MCP server and works with any MCP client. Register it with your agent:
# Claude Code
claude mcp add torchtalk -s user -- torchtalk mcp-serve --source /path/to/pytorch
# Codex
codex mcp add torchtalk -- torchtalk mcp-serve --source /path/to/pytorch
# Cursor (copies the skill and command, registers the server in a project)
torchtalk cursor-add -C /path/to/your/project -p /path/to/pytorch
# Any other MCP client points at this command
torchtalk mcp-serve --source /path/to/pytorch
Repo instructions for agents live in AGENTS.md, which Claude Code, Codex,
Cursor and Gemini CLI read. See docs/agent-setup.md.
On first run TorchTalk builds its index and caches it under ~/.cache/torchtalk/.
The C++ call graph continues building in the background, so the tools work
immediately. You need a source checkout of the framework you are indexing.
The graph and affected tools need a compile_commands.json. Configure the
framework's C++ build once with -DCMAKE_EXPORT_COMPILE_COMMANDS=ON (PyTorch
exports it by default) and leave the file at <source>/compile_commands.json
or <source>/build/compile_commands.json. The call graph covers the
translation units of that build: a CUDA configuration of vLLM covers
csrc/*.cu but not csrc/cpu/.
Kernel launch edges come from parsing .cu files as CUDA, which needs:
clang on PATH, with a major version that supports the installed CUDA
toolkit. With CUDA 13.3, clang 19 and 21 fail on the CUDA headers and lose
the launch edges; clang 22 parses them.CUDA_HOME set when the toolkit is not at /usr/local/cuda.TORCHTALK_CUDA_ARCH to pick the --cuda-gpu-arch (default sm_80).Without a CUDA-capable clang, .cu files are parsed host-side as C++, which
keeps the function definitions but not the launch edges.
Framework conventions are data, not code. Each framework is described by a TOML manifest
(a harness) under src/torchtalk/manifests/.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
torchtalk@ai-marketplace is listed by torchedhat/ai-marketplace — review the source before installing
npx claudepluginhub torchedhat/ai-marketplace --plugin torchtalkPlugins from other owners that cover similar ground