ica-lens

ica-lens is a skill for Claude Code from zjunlp/Mechanist. It costs 91 tokens per session (4,850 once invoked), scanned A, original, MIT.

An analysis method for breaking a language model’s internal numerical signals into directions with distinct, non-random patterns. It is used to look for directions that may correspond to understandable concepts, without additional training.

In plain words
What is it for?
Examining activations from residual streams, MLPs, attention heads, or other saved model locations; comparing directions; and finding handles for targeted model changes.
Why use it?
It provides an initial way to inspect model components before investing time in training a sparse dictionary, or to compare against one already built.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/setup_saebench_envs.sh.

Part of the mechanist plugin — 54 skills, 4 agents shipped together

Good fit Examining activations from residual streams, MLPs, attention heads, or other saved model locations; comparing directions; and finding handles for targeted model changes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/zjunlp/Mechanist
agentmods
npx agentmods add skills/zjunlp/mechanist/ica-lens

Made for: Claude Code.

Or install mechanist, the plugin that ships this one along with the rest of its 54 skills, 4 agents.

Wrote 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.

agentmods badge for ica-lens

README.md
[![agentmods](https://agentmods.dev/badge/skills/zjunlp/mechanist/ica-lens/github.svg)](https://agentmods.dev/skills/zjunlp/mechanist/ica-lens)
Your own site
<a href="https://agentmods.dev/skills/zjunlp/mechanist/ica-lens"><img src="https://agentmods.dev/badge/skills/zjunlp/mechanist/ica-lens/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.

agentmods 80×15 button for ica-lens

Your own site · 80×15
<a href="https://agentmods.dev/skills/zjunlp/mechanist/ica-lens"><img src="https://agentmods.dev/badge/skills/zjunlp/mechanist/ica-lens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.04850
Opus 5 $0.00046 $0.02425
Sonnet 5 $0.00018 $0.00970
Haiku 4.5 $0.00009 $0.00485

Measured 11d ago against content hash 79a92441d4f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

ica-lens 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/artifact_variant_example.py, scripts/explorer_app_usage.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/mechanism-skills/feature-dictionary-learning/ica-lens/SKILL.md · 420 lines

How it starts

The opening of the file, as written. The whole thing — 420 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ICA Lens: A Training-Free Interpretability Lens on Model Components

When to Use

Activate this skill when the goal is to characterise the interpretable structure of a component's activation distribution without paying the up-front cost of training a sparse dictionary.

Typical triggers:

  • A new model, layer, or hook point needs an initial inventory of candidate interpretable directions before committing to SAE / transcoder training.
  • An existing SAE / transcoder feature set needs an independent baseline of interpretable directions to compare against (overlap, coverage, perturbation strength, sparse-probe accuracy under a matched budget).
  • A specific concept or behaviour is suspected to live on a low-dimensional, non-Gaussian subspace of a residual / MLP / head-output state, and a fast, gradient-free extractor is needed to expose it.
  • A study of non-Gaussianity itself — where interpretable structure concentrates across depth, modality, and model family — is the object of interest.
  • Targeted perturbation / steering needs a direction handle whose discovery is decoupled from the model's training signal.
  • An interpretability artefact needs to be browsed, annotated, or shared via an explorer UI rather than recomputed each session.

Keywords: ICA, Independent Component Analysis, FastICA, non-Gaussianity, dictionary-free interpretability, interpretable directions, component interpretability, residual-stream directions, MLP-output directions, attention-head directions, sparse probing, targeted probe perturbation, SAE alternative, SAE baseline, ICA explorer.

Method in One Paragraph

The ICA Lens treats each cached activation $\mathbf{a} \in \mathbb{R}^{d_{\text{model}}}$ at a chosen hook point as a sample from an unknown source distribution and fits an unmixing matrix $\mathbf{W}{\mathrm{ICA}}$ such that the components $\mathbf{f}(\mathbf{a}) = \mathbf{W}{\mathrm{ICA}},\mathbf{a}$ are maximally non-Gaussian and mutually independent. The motivating observation is that interpretable, token-selective directions in language models appear systematically less Gaussian than random directions in the same space, so non-Gaussianity is a sufficient surrogate objective to recover candidate monosemantic axes without any reconstruction or sparsity loss. Compared with sparse-autoencoder-family methods, no over-complete dictionary is trained, no per-feature dead-direction / split-feature pathology is incurred, and the recovered directions can be evaluated by exactly the same downstream protocols — sparse probing, targeted probe perturbation, top-activating example mining, and feature dashboards.

Read the full file on GitHub · 420 lines

Files

What ships with it

4 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.

Changes

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.

  1. 11d ago First seen · 420 lines · 91 tokens per session scan A 79a92441d4f4

Subscribe to this mod's changes

ica-lens is a skill published in the GitHub repository zjunlp/Mechanist (74 stars, last pushed 15d ago), licensed MIT. It adds 91 tokens to every session and 4,850 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.