synapse: Instructions file for Claude Code

CLAUDE.md

synapse CLAUDE.md is an instructions file for Claude Code from NimbleBrainInc/synapse. It costs 4,684 tokens per session, scanned A, original, MIT.

A set of project instructions for Synapse, an application software development kit for building apps that communicate through the MCP ext-apps protocol. It defines required checks, release rules, and where different specification types belong.

In plain words
What is it for?
Use it when changing, verifying, or releasing the Synapse package. It covers the continuous-integration command, versioning, changelog entries, GitHub Actions publishing, and specification locations.
Why use it?
It gives coding agents consistent rules for verifying changes and publishing releases. It helps prevent skipped checks, incorrect version changes, and release workflow mistakes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is NimbleBrainInc/synapse's own configuration. It tells Claude Code how to work on synapse 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 synapse configures →

Reuse

Borrowing it

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

Made for: Claude Code.

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 synapse CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nimblebraininc/synapse/claude-md"><img src="https://agentmods.dev/badge/instructions/nimblebraininc/synapse/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,684 This file is loaded in full into every session.
When invoked 4,684 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.04684 $0.04684
Opus 5.5 $0.01874 $0.01874
Sonnet 5.5 $0.00937 $0.00937
Haiku 4.5 $0.00468 $0.00468

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

Security

Grade A, and why

synapse CLAUDE.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 8d 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.

CLAUDE.md · 289 lines

How it starts

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

@nimblebrain/synapse

Agent-aware app SDK for the MCP ext-apps protocol (2026-01-26).

Verification

npm run ci           # lint → typecheck → build → size budget → test
npm run conformance  # our wire behaviour, against the spec's own implementation

Run npm run ci before declaring any change complete. No exceptions.

conformance is deliberately not part of npm run ci: it drives real Chromium, so folding it in would make the documented verification command fail on a fresh clone until someone ran npx playwright install chromium. CI runs both as separate jobs. Run it by hand whenever you touch a transport, a handshake, an adapter, or the preview host — see conformance/README.md for what it covers and how to add a row.

Re-vendor the Python client asset whenever the build output moves. The trigger is not "a change under src/host/": the bundle reaches outside it — src/host/adapters/mcpapps.ts imports from src/detection.ts, and src/host/theme.ts from src/theme-defaults.ts — and esbuild assigns minified names across the whole output, so deleting an unrelated export from a module it touches re-mangles the bundle at an unchanged size. Diff it rather than reasoning about which files matter, and never take a byte count as evidence the bundle is unchanged. The build writes dist/synapse-ui.iife.global.js; the copy the Python package ships is a committed file that nothing updates for you:

npm run build && cp dist/synapse-ui.iife.global.js python/nimblebrain_synapse/_assets/synapse-ui.iife.js

CI's build job diffs the two, and the conformance suite runs the vendored copy — so a forgotten re-vendor shows up as a conformance failure describing behaviour you already fixed.

Testing UI components — what the test DOM cannot see

happy-dom drops every CSS declaration whose value contains var(...), shorthand and longhand alike. background: var(--color-background-secondary, #fafafa) leaves the element with no background in the rendered style attribute, and so does border-bottom-color: var(--c, #eee). Vendor-prefixed properties (-webkit-line-clamp) are dropped too, as are values it does not model (display: -webkit-box).

Read the full file on GitHub · 289 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. 8d ago Changed · +5 lines · +72 tokens per session 3652c441b478
  2. 23d ago Changed · +11 tokens per session 92e48a8c5163
  3. 1mo ago Changed · -52 lines · -583 tokens per session scan C → A 59ed1526bf8b
  4. 1mo ago Changed · -6 lines · -21 tokens per session c638bfb02d10
  5. 1mo ago Changed · +2 lines · +44 tokens per session 9192516ea5df
  6. 1mo ago Changed · +1 lines · +10 tokens per session 2cff22eafb92
  7. 1mo ago Changed · +15 lines · +320 tokens per session f5021e9d83e2
  8. 1mo ago Changed · +64 lines · +884 tokens per session 46492598a7c2
  9. 1mo ago Changed · +5 lines · +100 tokens per session c5e73917ce9c
  10. 1mo ago First seen · 255 lines · 3,847 tokens per session scan C 836826f846b8

Subscribe to this mod's changes

synapse CLAUDE.md is an instructions file published in the GitHub repository NimbleBrainInc/synapse (2 stars, last pushed 5d ago), licensed MIT. It adds 4,684 tokens to every session, about $0.0187 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-31.

Related

synapse CLAUDE.md compared with instructions from other repositories

synapse CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
synapse CLAUDE.mdNimbleBrainInc/synapseInstructions file25d agoMITA4,684Claude Code
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