neurolink: Instructions file for Claude Code

CLAUDE.md

neurolink CLAUDE.md is an instructions file for Claude Code from juspay/neurolink. It costs 8,422 tokens per session, scanned A, original, MIT.

A project instruction document for NeuroLink, an AI development platform with a TypeScript software library and command-line tool. It records the project structure, important rules, commands, and coding patterns.

In plain words
What is it for?
Use it when working on NeuroLink code, finding key files and development commands, or checking how providers are registered and configured.
Why use it?
It gives an AI coding assistant the background needed to make changes that match the repository. It also highlights rules that could otherwise cause build failures or bugs.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; positional $N argument; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/juspay/neurolink/claude-md"><img src="https://agentmods.dev/badge/instructions/juspay/neurolink/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,422 This file is loaded in full into every session.
When invoked 8,422 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.08422 $0.08422
Opus 5.5 $0.03369 $0.03369
Sonnet 5.5 $0.01684 $0.01684
Haiku 4.5 $0.00842 $0.00842

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

Security

Grade A, and why

neurolink 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 4d 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 · 481 lines

How it starts

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

CLAUDE.md

Guidance for Claude Code when working in this repository.

Critical Rules

These are non-negotiable. Violating them breaks the build or introduces bugs.

  1. Dynamic imports only in registry — All providers must use dynamic imports inside factory functions in providerRegistry.ts. Static imports create circular dependencies.
  2. Types in canonical location — All type definitions go in src/lib/types/. Never create type files inside feature subdirectories.
  3. Gemini tools + JSON schema are mutually exclusive — Google AI Studio and Vertex Gemini models cannot use tools and structuredOutput with a JSON schema simultaneously (a Gemini API limitation). This does not apply to Vertex Claude models, which support both at once — the exclusion is gated on isGeminiProvider in structuredOutputPolicy.ts, not on the Vertex provider as a whole. Providers that reject the combination at runtime (e.g. Groq) are detected via isToolsSchemaConflictError and transparently retried without structured output. Regardless of provider, generate({ schema }) is guaranteed to return valid JSON in content plus a parsed structuredData object (see coerceJsonToSchema).
    • Huge-text / truncation: the native Claude paths (Vertex+Claude, direct Anthropic) must default max_tokens to the model's real output ceiling via resolveClaudeMaxTokens (Sonnet 4.x → 64K, Opus 4.x → 32K), never the legacy hard-coded 4096 that silently truncated large structured responses mid-JSON. The direct Anthropic non-streaming path also passes an explicit request timeout so the SDK's "streaming is required for long requests" pre-flight guard doesn't reject a large max_tokens. When output still hits the cap, truncation is surfaced — not silent: coerceJsonToSchema returns { repaired, truncated }, and GenerateResult exposes jsonRepaired / jsonTruncated (set when finishReason==="length" or the recovered JSON came from an unclosed span) plus a WARN log. A truncated response must still yield a partial object — never a raw string: coerceJsonToSchema prefers the candidate starting at the document's real root (so a bracket pair scraped from inside a string value can't win), and backs off to the last completed field when jsonrepair can't close the span. That recovered structuredData is a plain object, not necessarily a schema-valid one — when the response was cut short it may be partial — and jsonTruncated is set in exactly that case (jsonRepaired when the JSON had to be recovered), so a caller can distinguish a salvaged object from a complete one. A caller that needs schema-valid data must check jsonTruncated before trusting the object; a caller that wants best-effort data can use it as is. Only schema-rejected scalar roots (e.g. a raw string under an object schema) are suppressed via schemaAccepts, since they carry no recoverable structure.
  4. CLI ≠ SDK — CLI can use manual MCP connections; the SDK cannot. Keep concerns separate.
  5. Backward compatibility — Public SDK API must not break existing callers.
  6. formatProviderError must return, never throw — Any provider error formatter must return the error object, not throw it.
  7. Zero interface — always use type — Never use interface. Always use type X = { ... }. The only exception is declare global { interface Window { ... } } which TypeScript requires for declaration merging. Use intersection (&) instead of extends.
  8. No "Types" suffix in type filenames — Files inside src/lib/types/ must not contain "Types" or "Type" in their name. The folder IS the types folder — mcp.ts not mcpTypes.ts, auth.ts not authTypes.ts.
  9. Unique type names across all files — Every exported type name must be globally unique across all files in src/lib/types/. Use domain prefixes to disambiguate:
    • Client SDK types: Client* prefix (e.g., ClientAuthConfig, ClientToolInfo, ClientStreamResult)
    • CLI types: Cli* prefix (e.g., CliGenerateResult, CliStreamChunk)
    • Server types: Server* prefix (e.g., ServerAuthConfig)
    • Stream types: Stream* prefix (e.g., StreamToolCall, StreamToolResult)
    • Processor types: Processor* prefix (e.g., ProcessorRetryConfig)
    • Workflow judge types: Judge* prefix (e.g., JudgeScoreResult)
  10. Barrel uses export * only — src/lib/types/index.ts must only contain export * from "./file.js" lines. No selective exports (export type { X, Y }), no aliases (X as Y). If adding export * causes a name collision, rename the type at the source with a domain prefix per rule 9.
  11. No local types/ directories — There must be no types/ directory anywhere except src/lib/types/. No src/lib/observability/types/, no src/lib/workflow/core/types/, etc. Move those types into the canonical src/lib/types/ folder.
  12. No type re-exports from non-type files — Files outside src/lib/types/ must not re-export types (export type { X } from). Consumers should import types from src/lib/types/ directly. Module index.ts files should only re-export runtime values (classes, functions, constants), never types.

Read the full file on GitHub · 481 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. 4d ago Changed · -1,109 lines · -17,620 tokens per session scan C → A 81d5cc36aeaf
  2. 13d ago Changed · +3 lines · +74 tokens per session 87976d7e7a0d
  3. 17d ago Changed · +10 lines · +159 tokens per session 1a59c59b40ef
  4. 18d ago Changed · +22 lines · +494 tokens per session 5a84aaa25a8a
  5. 19d ago Changed · +47 lines · +1,091 tokens per session 4f4f90199d5f
  6. 21d ago Changed · +2 lines · +318 tokens per session a727bce9e3ca
  7. 22d ago Changed · +89 lines · +1,755 tokens per session 9416a0eb192d
  8. 29d ago Changed · +4 lines · +117 tokens per session 3a1474042eed
  9. 1mo ago Changed · +76 lines · +1,448 tokens per session 9f94edba5ae7
  10. 1mo ago First seen · 1,337 lines · 20,586 tokens per session scan C 91e53f779d18

Subscribe to this mod's changes

neurolink CLAUDE.md is an instructions file published in the GitHub repository juspay/neurolink (168 stars, last pushed yesterday), licensed MIT. It adds 8,422 tokens to every session, about $0.0337 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

neurolink CLAUDE.md compared with instructions from other repositories

neurolink CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neurolink CLAUDE.mdjuspay/neurolinkInstructions file168yesterdayMITA8,422Claude Code
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