agent-nero
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-nero spawn 'reviewer' as code reviewer and ask it to analyze src/app.ts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Agent NERO
Persistent Agent Pool MCP Server for Claude Code
Your Context Is Always Near.
What Is Agent NERO?
Agent NERO is an MCP (Model Context Protocol) server that gives Claude Code the ability to spawn, manage, and communicate with persistent, named LLM agents that stay alive in memory for the duration of your session.
Unlike Claude Code's built-in subagents (which are fire-and-forget — spawned, used once, destroyed), NERO agents:
Persist — They stay alive in RAM with full conversation history
Remember — Each agent maintains its own conversation context across multiple interactions
Use tools — Agents can read/write files, search code, run commands, and interact with the filesystem
Collaborate — A shared memory bus lets agents publish findings that other agents (and you) can read
Specialize — Each agent has its own role, system prompt, model selection, and tag-based filtering
Zero modifications to Claude Code source required. NERO runs as a standard MCP server over stdio transport.
Related MCP server: AgentSpawnMCP
Architecture
Claude Code (Host)
│
├── nero_spawn ──→ AgentPool.spawn() ──→ NeroAgent(config, apiKey, memoryBus)
├── nero_ask ──→ AgentPool.get() ──→ NeroAgent.ask(message)
│ │
│ ├── Anthropic API (tool-use loop, max 15 iterations)
│ │ ├── read_file
│ │ ├── write_file
│ │ ├── list_files
│ │ ├── search_files
│ │ ├── run_command
│ │ ├── memory_read
│ │ └── memory_write
│ │
│ └── History (sliding window, token budget)
│
├── nero_broadcast ──→ AgentPool.broadcast() ──→ All agents concurrently
├── nero_status ──→ AgentPool.getStatus()
├── nero_memory_* ──→ MemoryBus (shared key-value store)
├── nero_kill ──→ AgentPool.kill()
├── nero_reset ──→ AgentPool.reset()
└── nero_configure ──→ NeroAgent.updateConfig()Installation
Prerequisites
Node.js >= 20.0.0
Claude Code CLI installed and configured
Anthropic API key (with access to Claude Opus/Sonnet)
Setup
Clone the repository:
git clone https://github.com/sanchez314c/agent-nero.git
cd agent-neroInstall dependencies:
npm installRegister as MCP server — Add to your
~/.mcp.json:
{
"mcpServers": {
"nero": {
"command": "npx",
"args": ["tsx", "/path/to/agent-nero/src/index.ts"],
"env": {
"ANTHROPIC_API_KEY": "your-api-key-here"
}
}
}
}Allow MCP tools — Add to
~/.claude/settings.local.json:
{
"enabledMcpjsonServers": ["nero"],
"permissions": {
"allow": [
"mcp__nero__nero_spawn",
"mcp__nero__nero_ask",
"mcp__nero__nero_broadcast",
"mcp__nero__nero_status",
"mcp__nero__nero_memory_write",
"mcp__nero__nero_memory_read",
"mcp__nero__nero_memory_dump",
"mcp__nero__nero_kill",
"mcp__nero__nero_reset",
"mcp__nero__nero_configure"
]
}
}Restart Claude Code to pick up the new MCP server.
Verify Installation
In a Claude Code session, the NERO tools should appear when you run /mcp. You can test with:
Use nero_spawn to create an agent named "test" with role "test agent"Usage
Spawn an Agent
nero_spawn:
name: "architect"
role: "Senior software architect"
system_prompt: "You are a senior software architect. Analyze code structure, identify patterns, and propose improvements."
model: "sonnet"
tags: ["analysis", "architecture"]Ask an Agent
nero_ask:
agent: "architect"
message: "Review the authentication flow in src/auth/ and identify any security concerns."
include_memory: falseThe agent will use its tools (read files, search code, run commands) to investigate and respond. Its conversation history persists — you can ask follow-up questions that reference prior answers.
Broadcast to All Agents
nero_broadcast:
message: "Summarize your findings so far."
tags: ["analysis"]
collect_responses: trueShared Memory Bus
Agents can share findings through the memory bus:
nero_memory_write:
key: "findings.auth"
value: "JWT tokens are not validated for expiry in the /api/admin routes."
nero_memory_read:
prefix: "findings"Agent Lifecycle
nero_status # Pool overview
nero_status agent:"architect" # Detailed agent status
nero_configure agent:"architect" model:"opus" # Switch model at runtime
nero_reset agent:"architect" # Clear history, keep agent alive
nero_kill agent:"architect" # Terminate permanentlyExport Memory to Disk
nero_memory_dump:
prefix: "findings"
output_path: "/path/to/memory_snapshot.json"MCP Tools Reference
Tool | Description |
| Create a new named persistent agent |
| Send a message to an agent, receive response |
| Message all agents (or filtered by tags) |
| Pool overview or detailed agent status |
| Write to shared memory bus |
| Read from shared memory bus |
| Export memory entries to JSON file |
| Terminate an agent permanently |
| Clear agent history, keep it alive |
| Update agent config at runtime |
Agent Internal Tools
Each agent has access to 7 tools via the Anthropic tool-use protocol:
Tool | Description |
| Read file contents from disk |
| Write/create files (creates parent dirs) |
| Glob-based file discovery |
| Grep-based content search with regex |
| Execute shell commands (30s timeout, destructive commands blocked) |
| Read from shared memory bus |
| Write to shared memory bus |
Configuration
Agent Defaults
Setting | Default | Range |
Model |
|
|
Max history messages |
|
|
Max tokens per response |
|
|
Tool-use loop iterations |
| Fixed |
Token budget (history) |
| Fixed |
Environment Variables
Variable | Required | Description |
| Yes | Anthropic API key for agent LLM calls |
Development
Run from Source
# Direct execution
npx tsx src/index.ts
# With file watching
npm run dev
# Using the run script
./run-source-linux.shType Check
npm run typecheckBuild
npm run buildProject Structure
agent-nero/
├── src/
│ ├── index.ts # Entry point — MCP server + transport
│ ├── types.ts # All TypeScript interfaces and types
│ ├── memory-bus.ts # Shared key-value memory store
│ ├── agent.ts # NeroAgent class — tool-use loop, history management
│ ├── agent-pool.ts # Agent lifecycle management
│ ├── agent-tools.ts # 7 internal tool definitions + executors
│ └── tools/
│ ├── spawn.ts # nero_spawn MCP handler
│ ├── ask.ts # nero_ask MCP handler
│ ├── broadcast.ts # nero_broadcast MCP handler
│ ├── status.ts # nero_status MCP handler
│ ├── memory-write.ts # nero_memory_write MCP handler
│ ├── memory-read.ts # nero_memory_read MCP handler
│ ├── memory-dump.ts # nero_memory_dump MCP handler
│ ├── kill.ts # nero_kill MCP handler
│ ├── reset.ts # nero_reset MCP handler
│ └── configure.ts # nero_configure MCP handler
├── docs/
│ ├── README.md # Documentation index
│ ├── QUICK_START.md # 5-minute setup guide
│ ├── ARCHITECTURE.md # System architecture deep-dive
│ ├── INSTALLATION.md # Setup and configuration guide
│ ├── DEVELOPMENT.md # Development workflow and standards
│ ├── BUILD_COMPILE.md # Build system and compilation
│ ├── DEPLOYMENT.md # Deployment and release process
│ ├── API.md # Complete API documentation
│ ├── FAQ.md # Frequently asked questions
│ ├── TROUBLESHOOTING.md # Common issues and solutions
│ ├── TECHSTACK.md # Technology stack breakdown
│ ├── WORKFLOW.md # Development workflow
│ ├── LEARNINGS.md # Development lessons and patterns
│ ├── PRD.md # Product requirements
│ └── TODO.md # Known issues and planned features
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ ├── workflows/
│ │ └── ci.yml
│ └── PULL_REQUEST_TEMPLATE.md
├── package.json
├── tsconfig.json
├── run-source-linux.sh
├── LICENSE
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
├── SECURITY.md
├── CLAUDE.md
├── AGENTS.md
├── VERSION_MAP.md
└── CHANGELOG.mdWhy "NERO"?
Named Entities with Retained Operations — persistent agents that remember, specialize, and collaborate. Unlike disposable subagents that vanish after one use, NERO agents are your standing team: always alive, always context-aware, always near.
License
MIT — Copyright (c) 2026 Jason Paul Michaels
Contributing
See CONTRIBUTING.md for guidelines.
Security
See SECURITY.md for reporting vulnerabilities.
Available Tools
10 toolsnero_askA
Send a message to a persistent agent and receive its response. The agent remembers all prior conversation. It can use tools (read files, search, run commands) to do real work.
Inputs: agent (required), message (required), include_memory.
nero_broadcastA
Send a message to all agents (or a filtered subset by tags). Optionally collect all responses.
Inputs: message (required), tags, collect_responses.
nero_configureA
Update an agent's configuration at runtime (model, history limit, token limit, system prompt, tags).
Inputs: agent (required), model, max_history, max_tokens, +2 more.
nero_killA
Terminate a named agent. Its conversation history and context are permanently destroyed.
Inputs: agent (required).
nero_memory_dumpA
Export memory bus entries matching a prefix to a JSON file on disk. Use for pipeline recovery, monitoring, and reports.
Inputs: output_path (required), prefix.
nero_memory_readA
Read entries from the shared memory bus. Can read a specific key, all keys with a prefix, or all entries.
Inputs: key, prefix.
nero_memory_writeA
Write a key-value entry to the shared memory bus. All agents and Master Control can read it.
Inputs: key (required), value (required), author.
nero_resetB
Clear an agent's conversation history and token counter, but keep the agent alive with its configuration intact.
Inputs: agent (required).
nero_spawnA
Create a new named persistent agent. The agent stays alive in memory with full conversation history until killed.
Inputs: name (required), role (required), system_prompt (required), model, +3 more.
nero_statusA
Get an overview of the agent pool, or detailed status for a specific agent.
Inputs: agent.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose: interacting with agents, managing memory, configuring, spawning, killing, resetting, and status. No two tools overlap in functionality.
All tools follow the consistent prefix 'nero_' and use a verb_noun pattern (e.g., nero_spawn, nero_kill, nero_memory_read). No mixing of conventions.
With 10 tools, the set is well-scoped for managing persistent agents and a shared memory bus. Each tool serves a necessary role without redundancy.
The tools cover the full lifecycle of agents (create, configure, interact, reset, kill) and shared memory (read, write, dump). No obvious gaps in the intended functionality.
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Shared memory and mail for your AI agents. Verified with Claude Code; other MCP clients in testing.
Hosted MCP server and Agent Skills for specs, engineering threads, and project memory.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server to dynamically load Claude Code skills into AI agents515MIT
- AlicenseNot gradedqualityDmaintenanceA universal MCP server for spawning agents with any OpenAI-compatible LLM, supporting cloud and local models, and integrating with Claude Code, OpenCode, and Codex CLI.67 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceA production-ready MCP server that injects a team of subagent interns, web search, and image generation capabilities into Claude Code using the Agy engine.MIT
- AlicenseNot gradedqualityDmaintenanceA multi-agent MCP server that enables AI coding agents (Claude Code, Codex CLI, Gemini CLI) to communicate with each other.MIT