neuronpedia: Instructions file for Codex

AGENTS.md

neuronpedia AGENTS.md is an instructions file for Codex, OpenCode from hijohnnylin/neuronpedia. It costs 7,206 tokens per session, scanned A, original, Apache-2.0.

Development instructions for Neuronpedia, a website and research platform for examining and experimenting with features inside neural networks.

In plain words
What is it for?
Use them when working on model inference, neuron or feature explanations, circuit graphs, sparsity tools, the web app, or the SDK.
Why use it?
They describe the repository layout, its Python services, web application, generated files, and configuration rules so changes go in the right place.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is hijohnnylin/neuronpedia's own configuration. It tells Codex and OpenCode how to work on neuronpedia itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything neuronpedia configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is make engine-link APP=inference # ENGINE_SRC=../interp-engine by default, i.e. a sibling clone.

About the project

Neuronpedia is an open-source platform for examining how neural networks work through model activations, circuits, feature representations, and related analyses. Researchers and developers use it to inspect, search, score, visualize, and export interpretability data. Its catalogue add-ons support local development and workflows around the platform.

hijohnnylin/neuronpedia · 1,206 stars · on GitHub · neuronpedia.org

Reuse

Borrowing it

Nothing to install: this file belongs to hijohnnylin/neuronpedia. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hijohnnylin/neuronpedia/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/hijohnnylin/neuronpedia

Made for: Codex, OpenCode.

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 neuronpedia AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hijohnnylin/neuronpedia/agents-md/github.svg)](https://agentmods.dev/instructions/hijohnnylin/neuronpedia/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/hijohnnylin/neuronpedia/agents-md"><img src="https://agentmods.dev/badge/instructions/hijohnnylin/neuronpedia/agents-md/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 neuronpedia AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hijohnnylin/neuronpedia/agents-md"><img src="https://agentmods.dev/badge/instructions/hijohnnylin/neuronpedia/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,206 This file is loaded in full into every session.
When invoked 7,206 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.07206 $0.07206
Opus 5.5 $0.02882 $0.02882
Sonnet 5.5 $0.01441 $0.01441
Haiku 4.5 $0.00721 $0.00721

Measured 1mo ago against content hash cca0d4c26265, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neuronpedia AGENTS.md 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 1mo 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.

AGENTS.md · 466 lines

How it starts

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

Neuronpedia Development Guide

This file is the single source of truth for agent instructions, and every harness reads it — see "Agent instruction files" at the bottom before adding rules anywhere else.

Repository layout

apps/
  autointerp/
  graph/
  inference/
  nla/
  sparsity/
  webapp/
    lib/api/        # generated: <app>.d.ts from each server's openapi.json
docs/               # the long-form reasoning this file's rules point at
utils/
webapp-python-client/   # hand-written public SDK

Neuronpedia is an interpretability website/platform: a reference for what is inside a neural network, plus tools for researchers to experiment with those internals — viewing activations for a given 'neuron' (or feature/latent), steering on them, tracing circuits.

apps/ holds most of the code. Five of the six are Python FastAPI servers, called by the webapp rather than by users directly:

  • inference has the actual model loaded, and serves anything requiring a forward pass. The webapp calls it mostly from apps/webapp/lib/utils/inference.ts.
  • autointerp explains and scores neurons/features/latents. Called mostly from apps/webapp/lib/utils/autointerp.ts.
  • graph, nla and sparsity are the attribution-graph, Natural Language Autoencoder (activation vector <-> text) and sparse-circuit services.

webapp is the sixth: a Next.js app that is both the frontend and the user-facing API under apps/webapp/app/api. Its database schema is apps/webapp/prisma/schema.prisma, and it has its own AGENTS.md with frontend conventions.

Cross-server types are generated from the Python, in one direction. Each server's pydantic models are the source of truth; make openapi regenerates every spec and every lib/api/<app>.d.ts from them. There is no hand-written spec and no client package in the loop, so adding an endpoint means writing pydantic models, not editing a schema file. The full workflow, and which servers are camelCase on the wire versus deliberately snake_case, is under "Cross-server APIs" below.

Read the full file on GitHub · 466 lines

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. 1mo ago Changed · +1 lines · +30 tokens per session cca0d4c26265
  2. 1mo ago Changed · -1 lines · -26 tokens per session 9f23718d323d
  3. 1mo ago Changed 3c1ff84c098e
  4. 1mo ago Changed dd25fbab77c8
  5. 2mo ago Changed d37538366876
  6. 2mo ago First seen · 466 lines · 7,202 tokens per session scan A 5c4a70ee65c5

Subscribe to this mod's changes

neuronpedia AGENTS.md is an instructions file published in the GitHub repository hijohnnylin/neuronpedia (1,206 stars, last pushed yesterday), licensed Apache-2.0. It adds 7,206 tokens to every session, about $0.0288 per session on Opus 5.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.

Related

neuronpedia AGENTS.md compared with instructions from other repositories

neuronpedia AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuronpedia AGENTS.mdhijohnnylin/neuronpediaInstructions file1.2kyesterdayApache-2.0A7,206Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode