Network-AI CLAUDE.md

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/jovancoding/network-ai/claude-md
Clone the repo
git clone --depth 1 https://github.com/Jovancoding/Network-AI
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. Scan, not verified.
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 $0.01635 $0.01635
Opus 5 $0.00817 $0.00817
Sonnet 5 $0.00327 $0.00327
Haiku 4.5 $0.00163 $0.00163

Measured 2d ago against content hash 4d1d883fe176, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.1.

Build & Test Commands

npm install                   # Install dependencies
npx tsc --noEmit              # Type-check (zero errors expected)
npm run test:all              # Run all 3,638 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. 2d 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 (72 stars, last pushed 8d ago), licensed MIT. It adds 1,635 tokens to every session, about $0.0082 per session on Opus 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

kungfu AGENTS.md

AGENTS.md instructions for kungfu-systems/kungfu, covering agents.md, start from the person's objective, rules that always apply, load bounded context before changing the repository and execute and verify through shifu.

kungfu-systems/kungfu · 1,532 tokens

kungfu copilot-instructions.md

Copilot instructions for kungfu-systems/kungfu: Read and follow AGENTS.md before proposing or running changes. It is the shared agent router for this repository, including the canonical Shifu development and build entrypoint.

kungfu-systems/kungfu · 45 tokens

rn-dev-agent AGENTS.md

Instructions for Lykhoyda/rn-dev-agent, covering repository guide for agents, repository map, editing rules, architecture rules and supported node runtimes.

Lykhoyda/rn-dev-agent · 5,241 tokens

designpowers GEMINI.md

Gemini CLI instructions for Owl-Listener/designpowers, covering designpowers, mandatory: welcome sequence first, skills, agents and notes for gemini cli.

Owl-Listener/designpowers · 569 tokens

awesome-agent-infrastructure CLAUDE.md

Instructions for backblaze-labs/awesome-agent-infrastructure, covering claude.md — awesome-agent-infrastructure, what this list is, scope and files, schema, workflow, rules.

backblaze-labs/awesome-agent-infrastructure · 370 tokens

pi-agent-dashboard CLAUDE.md

Instructions for BlackBeltTechnology/pi-agent-dashboard, a project described as: Real-time web dashboard for pi coding-agent sessions. Multi-session view, live chat mirroring, integrated terminal, diff viewer, pi-flows execution, and mobile-first remote control via mDNS or zrok tunnel. Coexists with pi's TUI — doesn't…

BlackBeltTechnology/pi-agent-dashboard · 5 tokens