Network-AI
Copilot instructions78 starsChanged 7 months agoMITView on GitHub
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination (v5.15.4). 3,679 tests across 41 suites.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- network-aiSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Blackboard pattern: All coordination via LockedBlackboard — propose() → validate() → commit() with filesystem mutex.
- Very specific: line 11
Adapter system: All 32 adapters extend BaseAdapter.
- Very specific: line 12
Audit trail: Every write, permission grant, and state transition is logged to data/audit_log.jsonl via SecureAuditLogger.
- Distinctive: line 19
No new runtime dependencies without explicit approval
- Distinctive: line 21
Keep adapter files self-contained — no cross-adapter imports
- Very specific: line 60
All tests must pass before any commit.
- Distinctive: line 66
No hardcoded secrets, keys, or credentials
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions for Network-AI
Project Overview
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination (v5.15.4). 3,679 tests across 41 suites.
Architecture
- Blackboard pattern: All coordination via
LockedBlackboard—propose()→validate()→commit()with filesystem mutex. Never write to shared state directly. - Permission gating:
AuthGuardianuses weighted scoring (justification 40%, trust 30%, risk 30%). Require permission before sensitive resource access. - Adapter system: All 32 adapters extend
BaseAdapter. Each is dependency-free (BYOC — bring your own client). No cross-adapter imports. - Audit trail: Every write, permission grant, and state transition is logged to
data/audit_log.jsonlviaSecureAuditLogger.
Code Conventions
- TypeScript strict mode, target ES2022
- No
anytypes — use proper generics orunknown - JSDoc on all exported functions and classes
- No new runtime dependencies without explicit approval
- Input validation required on all public API entry points
- Keep adapter files self-contained — no cross-adapter imports
Key Files
index.ts— Core engine: SwarmOrchestrator, AuthGuardian, FederatedBudget, QualityGateAgentsecurity.ts— SecureTokenManager, InputSanitizer, RateLimiter, DataEncryptor, SecureAuditLoggerlib/locked-blackboard.ts— LockedBlackboard with atomic propose → validate → commitlib/fsm-journey.ts— JourneyFSM behavioral control planelib/compliance-monitor.ts— Real-time agent behavior surveillancelib/adapter-hooks.ts— AdapterHookManager lifecycle hooks + matcher-based filteringlib/skill-composer.ts— SkillComposer meta-operations (chain/batch/loop/verify)lib/semantic-search.ts— SemanticMemory BYOE vector storelib/phase-pipeline.ts— PhasePipeline multi-phase workflows with approval gateslib/confidence-filter.ts— ConfidenceFilter multi-agent result scoring and filteringlib/fan-out.ts— FanOutFanIn parallel agent spawning with pluggable aggregationlib/mcp-transport-http.ts— McpStreamableServer MCP 2025-03-26 Streamable HTTP + resources/promptslib/agent-runtime.ts— AgentRuntime sandboxed execution with SandboxPolicy, ShellExecutor, FileAccessor, ApprovalGate, SourceProtectionErrorlib/env-manager.ts— EnvironmentManager: promotion chain dev→st→sit→qa→preprod→prod, backup/restore, env diff, NETWORK_AI_ENV routinglib/console-ui.ts— ConsoleUI interactive terminal dashboardlib/strategy-agent.ts— StrategyAgent meta-orchestrator with AgentPool, WorkloadPartitioner, adaptive scalinglib/goal-decomposer.ts— GoalDecomposer, TeamRunner, runTeam: LLM-powered goal → task DAG → parallel executionlib/circuit-breaker.ts— CircuitBreaker CLOSED/OPEN/HALF_OPEN state machine; CircuitOpenError; wired into AdapterRegistry per-adapter with fallbackChainlib/telemetry-provider.ts— ITelemetryProvider BYOT interface; NullTelemetryProvider, CapturingTelemetryProvider; createOtelHooks() factory for AdapterHookManagerlib/claude-hooks.ts— ClaudeHookBridge: AuthGuardian-gated coding-agent tool calls (Claude Code PreToolUse/PostToolUse), observe/enforce modes,network-ai hookCLIlib/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; estimateTokens()lib/mcp-tools-context.ts— ContextMcpTools:context_pack+blackboard_searchMCP toolsadapters/— 32 framework adapters (LangChain, AutoGen, CrewAI, MCP, Codex, Gemini, OpenAI Responses, Claude Agent SDK, MiniMax, NemoClaw, APS, Hermes, Orchestrator, etc.)
Build & Test
npx tsc --noEmit # Type-check (zero errors expected)
npm run test:all # All 3,679 tests across 41 suites
npm test # Core orchestrator tests
npm run test:adapters # All 32 adaptersAll tests must pass before any commit. No test should be skipped or marked .only.
Security
- AES-256-GCM encryption at rest
- HMAC-SHA256 / Ed25519 signed tokens with TTL
- No hardcoded secrets, keys, or credentials
- Path traversal and injection protections on all file operations
- Rate limiting on public-facing endpoints
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

