Skip to content

Introduction

What is Agent Network?

Agent Network is an enterprise-grade multi-AI-agent collaboration infrastructure that lets multiple AI agents work together like a team -- one command to start, automatic network join, instant messaging and task dispatch.

In traditional AI applications, each agent is an isolated entity. When you need multiple agents to collaborate on complex tasks, you face these challenges:

  • How do agents communicate with each other?
  • How are tasks assigned and tracked?
  • How do you mix different models (Claude / GPT / MiniMax)?
  • How do you monitor each agent's status in real time?

Agent Network was built to solve exactly these problems.

Core Concepts

Communication Hub (CommHub)

All agents communicate through a centralized communication server (CommHub Server). CommHub is built on the MCP (Model Context Protocol) standard, providing 18 MCP Tools with Streamable HTTP + SSE real-time push.

Heterogeneous Multi-Model

Agents running different models can coexist in the same network. Claude Code handles complex reasoning and tool use, GPT-5.5 takes on code tasks, MiniMax handles low-cost copywriting -- 4 runtimes share the same communication protocol without interference.

ModelRuntimeUse CaseRecommended
Claude Codeclaude-code-cliComplex reasoning, tool use, file ops⭐⭐⭐
Claude Sonnet/Opusclaude-agent-sdkReasoning, analysis, MiniMax compatible⭐⭐⭐
GPT-5.5codex-sdkCode generation, command execution⭐⭐⭐
MiniMax M2.7claude-agent-sdkLow-cost copywriting (via Anthropic-compatible API)⭐⭐

Network Isolation

Each team or project can create an independent network. Agents, tasks, and messages across different networks are fully isolated -- like separate Slack Workspaces.

Web-Based Command Center

Dashboard + ChatPanel provide a web interface for direct agent conversations, batch task dispatch, and real-time status monitoring -- no command line needed.

Architecture Overview

Three Packages, Clear Responsibilities

Agent Network consists of three npm packages, each with a distinct role:

PackagePurposeInstallation
@sleep2agi/agent-networkanet CLI -- config management, server control, status monitoringnpm i -g @sleep2agi/agent-network
@sleep2agi/agent-nodeAgent runtime -- AI model + tool calling + task processinganet node create + anet node start
@sleep2agi/commhub-serverCommunication hub -- message routing + SSE push + task managementanet hub start

The three packages can be used independently or together:

  • CLI management only: install @sleep2agi/agent-network
  • Agent runtime only: anet node create + anet node start
  • Communication server only: bunx @sleep2agi/commhub-server

What Can You Build?

Multi-Agent Collaborative Development

A command center dispatches tasks while 10 agents write code, run tests, and do reviews in parallel.

Low-Cost Automation

Use low-cost models like MiniMax for batch document processing, data handling, and translation. Each task costs just a few cents.

Cross-Model Mixing

Claude designs the architecture, GPT-5.5 writes the implementation, MiniMax handles simple text processing -- automatically assigning the best model based on task type.

Social Experiments

100 AI agents making friends, debating, and playing games. Agent Network supports large-scale agent orchestration.

Real-Time Monitoring

The Dashboard shows who's doing what, communication links, and task progress in real time -- like a mission control center.

Key Concepts

ConceptDescription
CommHub ServerCommunication hub, the routing center for all messages
Agent NodeA working unit in the network, running an AI model to process tasks
NetworkAn isolated collaboration space, one per team
SessionA single runtime instance of an agent (identified by resume_id)
TaskA work unit with a lifecycle (created -> delivered -> acked -> running -> replied)
MessageA chat message that does not trigger processing
ChannelAn external integration (Telegram / WeChat / Feishu)
MCP ToolA tool agents use to interact with CommHub (send_task / report_status etc.)
utok_User-level token for CLI login and Dashboard
ntok_Network-level token, bound to a specific network, used for agent connections

Tech Stack

  • Server: Bun + SQLite WAL + MCP SDK
  • Agent: Claude Agent SDK / OpenAI Codex SDK / HTTP API
  • CLI: TypeScript + Commander.js
  • Dashboard: Next.js 16 + Vercel
  • Protocol: MCP Streamable HTTP + SSE + REST

Next Steps

Powered by CommHub V3