neurarch-mcp: Instructions file for Codex

AGENTS.md

neurarch-mcp AGENTS.md is an instructions file for Codex, OpenCode from neurarch-ai/neurarch-mcp. It costs 2,827 tokens per session, scanned A, original, MIT.

Repository instructions for an MCP server that turns a PyTorch machine-learning model into a structured graph and answers questions about it. A second tool can trace one model run and record real layer shapes.

In plain words
What is it for?
It is for inspecting PyTorch model structure, tracing a model's forward pass, and querying the resulting graph.
Why use it?
They tell coding agents which model information is trustworthy and warn them not to act on findings from the weaker static parser alone.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is neurarch-ai/neurarch-mcp's own configuration. It tells Codex and OpenCode how to work on neurarch-mcp 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 neurarch-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to neurarch-ai/neurarch-mcp. 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/neurarch-ai/neurarch-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/neurarch-ai/neurarch-mcp

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 neurarch-mcp AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/neurarch-ai/neurarch-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/neurarch-ai/neurarch-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,827 This file is loaded in full into every session.
When invoked 2,827 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.02827 $0.02827
Opus 5.5 $0.01131 $0.01131
Sonnet 5.5 $0.00565 $0.00565
Haiku 4.5 $0.00283 $0.00283

Measured 18d ago against content hash 921ec7863047, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neurarch-mcp 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 18d 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 · 213 lines

How it starts

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

AGENTS.md

For the agent, not the reader. If you are a coding agent that has landed in this repository or installed this package, this is the short version of what it gives you and, more usefully, of when its answers are worth trusting.

What this is

Two shipped artifacts from one repo:

  • neurarch-mcp (npm, Node 20+): an MCP server that turns a PyTorch model into a structured graph and answers questions about it with computation instead of inference, first of all what a training job on it needs. Every tool but plan, history and model_changes runs locally, needs no key and no account, and opens no socket.
  • neurarch-trace (PyPI, torch >= 2.0): runs one forward pass and writes the graph with real per-layer shapes.

Before you launch a training job

Call size_training_job before you submit or launch any training job, with the batch size and the card you are about to reserve:

size_training_job { batch_size: 32, gpu: "A100-40" }            # the server's model
size_training_job { model_path: "Model.neurarch.json", batch_size: 256, gpu: "8xH100" }
size_training_job { hf_id: "Qwen/Qwen2.5-0.5B", batch_size: 8, seq_len: 4096 }   # needs --hf

It returns the training peak at that batch (weights and optimizer state, activations, stored attention scores), the smallest card that holds it, the largest batch each card holds, a two-card split when one card does not, one run's cost, and a verdict line you can quote: fits an A100-40 with 22% headroom or will not fit an A100-40: needs ~76 GB ... use A100-80 or batch <= 15. If the verdict says it will not fit, change the batch or the card before launching, not after the OOM.

Pass attention: "eager" if the job uses eager attention; the default is SDPA, which keeps no score matrix. The number is a calibrated estimate under AdamW with bf16 autocast (fitted on 178 measured runs across 41 architectures; held out, the median error is 7% and it flagged 113 of the 131 times a run did not fit a card, where accelerate estimate-memory flagged at most 8; on 25 runs measured after the fit the median miss is 14%), not a measurement; say so when you quote it, and quote the 14% with the 7%.

Read the full file on GitHub · 213 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. 18d ago Changed · +4 lines · +83 tokens per session 921ec7863047
  2. 19d ago Changed · +37 lines · +555 tokens per session c273a9954177
  3. 20d ago Changed · +57 lines · +832 tokens per session 323b21ba5db2
  4. 1mo ago First seen · 115 lines · 1,357 tokens per session scan A afeaede6ecca

Subscribe to this mod's changes

neurarch-mcp AGENTS.md is an instructions file published in the GitHub repository neurarch-ai/neurarch-mcp (1 stars, last pushed yesterday), licensed MIT. It adds 2,827 tokens to every session, about $0.0113 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-09-19.

Related

neurarch-mcp AGENTS.md compared with instructions from other repositories

neurarch-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neurarch-mcp AGENTS.mdneurarch-ai/neurarch-mcpInstructions file1yesterdayMITA2,827Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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