Network-AI: Instructions file for Claude Code

CLAUDE.md

Network-AI CLAUDE.md is an instructions file for Claude Code from Jovancoding/Network-AI. It costs 1,635 tokens per session, scanned A, original, MIT.

A repository instruction file for Claude Code, an AI coding assistant. It describes the Network-AI project, its structure, commands, architecture, and testing rules.

In plain words
What is it for?
Use it to guide setup, type-checking, test selection, security work, and changes to the orchestrator or its adapters.
Why use it?
It gives the assistant project-specific context before it changes code, reducing guesswork and inconsistent work.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

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

Reuse

Borrowing it

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

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 Network-AI CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jovancoding/network-ai/claude-md"><img src="https://agentmods.dev/badge/instructions/jovancoding/network-ai/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,635 This file is loaded in full into every session.
When invoked 1,635 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.01635 $0.01635
Opus 5.5 $0.00654 $0.00654
Sonnet 5.5 $0.00327 $0.00327
Haiku 4.5 $0.00163 $0.00163

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

Security

Grade A, and why

Network-AI 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 17d 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 · 106 lines

How it starts

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

CLAUDE.md — Project Instructions for Claude Code

This file is read automatically by Claude Code when working in this repository.

Project Overview

Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination. Version 5.15.4.

Build & Test Commands

npm install                   # Install dependencies
npx tsc --noEmit              # Type-check (zero errors expected)
npm run test:all              # Run all 3,679 tests across 41 suites
npm test                      # Core orchestrator tests only
npm run test:security         # Security module tests
npm run test:adapters         # All 32 adapter tests
npm run test:priority         # Priority & preemption tests
npm run test:cli              # CLI layer tests

All tests must pass before any commit. No test should be skipped or marked .only.

Project Structure

  • index.ts — Core engine: SwarmOrchestrator, AuthGuardian, FederatedBudget, QualityGateAgent, all exports
  • security.ts — Security module: SecureTokenManager, InputSanitizer, RateLimiter, DataEncryptor, SecureAuditLogger
  • lib/locked-blackboard.ts — LockedBlackboard with atomic propose → validate → commit and file-system mutex
  • lib/fsm-journey.ts — JourneyFSM behavioral control plane
  • lib/compliance-monitor.ts — Real-time agent behavior surveillance
  • lib/adapter-hooks.ts — AdapterHookManager: beforeExecute/afterExecute/onError lifecycle hooks + matcher-based filtering
  • lib/skill-composer.ts — SkillComposer: chain/batch/loop/verify meta-operations
  • lib/semantic-search.ts — SemanticMemory: BYOE vector store with cosine similarity
  • lib/phase-pipeline.ts — PhasePipeline: multi-phase workflows with approval gates
  • lib/confidence-filter.ts — ConfidenceFilter: multi-agent result scoring and filtering
  • lib/fan-out.ts — FanOutFanIn: parallel agent spawning with pluggable aggregation
  • lib/agent-runtime.ts — AgentRuntime: sandboxed execution with SandboxPolicy, ShellExecutor, FileAccessor, ApprovalGate
  • lib/console-ui.ts — ConsoleUI: interactive terminal dashboard with ANSI TUI
  • lib/strategy-agent.ts — StrategyAgent: meta-orchestrator with AgentPool, WorkloadPartitioner, adaptive scaling
  • lib/goal-decomposer.ts — GoalDecomposer, TeamRunner, runTeam: LLM-powered goal → task DAG → parallel execution
  • lib/env-manager.ts — EnvironmentManager: promotion chain dev→st→sit→qa→preprod→prod, backup/restore, env diff, NETWORK_AI_ENV routing
  • lib/circuit-breaker.ts — CircuitBreaker CLOSED/OPEN/HALF_OPEN state machine; CircuitOpenError; per-adapter in AdapterRegistry with fallbackChain
  • lib/telemetry-provider.ts — ITelemetryProvider BYOT interface; NullTelemetryProvider, CapturingTelemetryProvider; createOtelHooks() factory for AdapterHookManager
  • lib/claude-hooks.ts — ClaudeHookBridge: AuthGuardian-gated coding-agent tool calls (Claude Code PreToolUse/PostToolUse hooks), observe/enforce modes, network-ai hook CLI
  • lib/mcp-elicitation.ts — StdioElicitationChannel + createElicitationApprovalCallback: native in-client approval prompts over MCP elicitation (fail closed)
  • lib/a2a-server.ts — A2AServer: expose the orchestrator as a Google A2A agent (agent card + tasks/send, Bearer-gated)
  • lib/context-composer.ts — ContextComposer: token-budgeted, relevance-ranked context assembly (semantic/lexical × recency half-life × scope affinity, position-aware layout); estimateTokens()
  • lib/mcp-tools-context.ts — ContextMcpTools: context_pack + blackboard_search MCP tools (signal-over-noise retrieval)
  • adapters/ — 32 framework adapters (LangChain, AutoGen, CrewAI, MCP, Codex, Gemini, OpenAI Responses, Claude Agent SDK, MiniMax, NemoClaw, APS, Hermes, Orchestrator, etc.)
  • bin/cli.ts — CLI entry point (npx network-ai)
  • bin/mcp-server.ts — MCP server (SSE + stdio transport)
  • bin/console.ts — Interactive console with pipe mode (npx network-ai-console)
  • scripts/ — Python helper scripts (blackboard, permissions, token management)
  • types/ — TypeScript declaration files
  • data/ — Runtime data (gitignored): audit log, pending changes

Read the full file on GitHub · 106 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. 17d ago Changed 32b87300a186
  2. 19d ago Changed dde19ce89c3b
  3. 1mo ago First seen · 106 lines · 1,635 tokens per session scan A 4d1d883fe176

Subscribe to this mod's changes

Network-AI CLAUDE.md is an instructions file published in the GitHub repository Jovancoding/Network-AI (78 stars, last pushed 3d ago), licensed MIT. It adds 1,635 tokens to every session, about $0.0065 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,257 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens