Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add zjunlp/Mechanist --skill circuit-discoverygit clone --depth 1 https://github.com/zjunlp/MechanistWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zjunlp/mechanist/circuit-discovery)<a href="https://agentmods.dev/skills/zjunlp/mechanist/circuit-discovery"><img src="https://agentmods.dev/badge/skills/zjunlp/mechanist/circuit-discovery/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zjunlp/mechanist/circuit-discovery"><img src="https://agentmods.dev/badge/skills/zjunlp/mechanist/circuit-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.00809 |
| Opus 5 | $0.00046 | $0.00404 |
| Sonnet 5 | $0.00018 | $0.00162 |
| Haiku 4.5 | $0.00009 | $0.00081 |
Grade A, and why
Circuit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 25 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Advantage
Circuit discovery moves beyond per-object localization to deliver a structured, mechanism-level explanation: it returns not only which components matter, but how they communicate. The resulting circuits are evaluated for faithfulness on a held-out task distribution, so the recovered subgraph can be verified to actually implement the behavior rather than merely correlating with it. This makes circuits the natural unit for downstream analyses such as cross-model comparison, behavior editing, and mechanism-level claims about generalization.
Limitation
Recovering a circuit is substantially more expensive than scoring isolated objects, because the search space is the set of edges in the computational graph and faithfulness must be checked under interventions. Pure ablation-based approaches scale poorly with model and graph size, while gradient-based approximations trade exactness for speed and can miss edges whose effect is non-linear. Results also depend on the choice of task distribution, counterfactual / corrupted inputs, and the metric used to score faithfulness, so different configurations can yield different "circuits" for ostensibly the same behavior.
Submethods
Circuit discovery typically takes two forms: exact iterative search via ablation, or fast gradient-based attribution. A third, more recent paradigm — feature-based replacement models — replaces dense components such as MLPs with sparse-feature decoders (e.g. transcoders) so that the discovered circuit lives in interpretable feature space rather than over raw neurons; Anthropic's circuit-tracer is a representative open-source implementation. This skill does not ship a dedicated demo for that paradigm — see the feature-dictionary-learning/transcoder skill, which links to circuit-tracer.
- Exact Iterative Search via Ablation A typical approach is Automatic Circuit Discovery (ACDC). This approach treats circuit discovery as an iterative graph-pruning problem. Starting from the full computational graph, ACDC walks edges in reverse topological order and tests each one by patching its endpoint with an activation from a corrupted input; if removing the edge does not degrade the chosen task metric beyond a threshold, the edge is pruned. Repeating this until convergence yields a minimal subgraph that preserves the behavior, providing a causal, intervention-grounded circuit at the cost of many forward passes per edge. You can find a demo for this method in ./intervention-based-edge-search. This demo illustrates how to perform automated circuit discovery in transformer models by editing the computational graph, running activation patching across edges, and extracting minimal task-specific circuits for mechanistic interpretability studies.
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- article_references.md 334 B
- attribution-based-edge-scoring/article_references.md 165 B
- attribution-based-edge-scoring/references/api_reference.md 4.8 KB
- attribution-based-edge-scoring/scripts/usage_example.py 2.7 KB runs code
- attribution-based-edge-scoring/SKILL.md 3.1 KB
- intervention-based-edge-search/article_references.md 147 B
- intervention-based-edge-search/references/api_reference.md 5.2 KB
- intervention-based-edge-search/scripts/acdc_run_demo.py 1.4 KB runs code
- intervention-based-edge-search/SKILL.md 1.7 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 25 lines · 91 tokens per session scan A 816d3dd8f647
Circuit is a skill published in the GitHub repository zjunlp/Mechanist (74 stars, last pushed 13d ago), licensed MIT. It adds 91 tokens to every session and 809 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
nanoresearch-writing
Draft a LaTeX research paper from all previous stage outputs.
nanoresearch-experiment
Generate a Python code skeleton from an experiment blueprint.
nanoresearch-ideation
Search academic literature and generate research hypotheses.
nnsight-remote-interpretability
Provides guidance for interpreting and manipulating neural network internals using nnsight with optional NDIF remote execution. Use when needing to run interpretability experiments on massive models (70B+) without local GPU resources, or when working with any PyTorch architecture.
sparse-autoencoder-training
Provides guidance for training and analyzing Sparse Autoencoders (SAEs) using SAELens to decompose neural network activations into interpretable features. Use when discovering interpretable features, analyzing superposition, or studying monosemantic representations in language models.
transformer-lens-interpretability
Provides guidance for mechanistic interpretability research using TransformerLens to inspect and manipulate transformer internals via HookPoints and activation caching. Use when reverse-engineering model algorithms, studying attention patterns, or performing activation patching experiments.