agent-nexus
AgentNexus
A service-boundary-aware coordination architecture for heterogeneous LLM code agents.
"Service boundaries, not agent roles, are the appropriate primitive for coordinating LLM agents in real software development."
Overview
Existing multi-agent frameworks (ChatDev, MetaGPT) organize agents around roles within a single simulated organization. AgentNexus takes a different approach: it coordinates agents at the service granularity, matching how real software systems are actually structured.
Each service registers as a sub-project, publishes versioned Markdown documents (requirements, design, API specs, config), and subscribes to documents from services it depends on. When a document changes, subscribers receive a diff-aware notification containing both the structured diff and the full latest content — enabling targeted, context-aware code modifications.
Key Features
Versioned document store — SHA-256 dedup, full version history, per-service namespacing
Publish-subscribe notifications — subscribe by exact doc ID or doc type
Diff-aware updates —
get_my_updates_with_contextreturns unified diff + full content in one callLifecycle stage tracking — explicit
design → development → testing → deployment → upgradeper service, with milestone snapshots on transitionsMCP HTTP server — streamable-HTTP transport, multiple agents connect simultaneously
FileWatcher ingestion — auto-ingest Markdown files from
/docs/directory as draft documents191 tests — unit + property-based (Hypothesis)
Architecture
┌─────────────────────────────────────────────────────┐
│ Project Space │
│ │
│ ┌──────────────┐ subscribe ┌───────────────┐ │
│ │ search- │ ──────────────► │ search-admin- │ │
│ │ service │ │ frontend │ │
│ │ │ notification │ │ │
│ │ api/v5 ──────┼────────────────►│ │ │
│ └──────────────┘ └───────────────┘ │
│ │
│ AgentNexus MCP Server │
│ http://0.0.0.0:10086/mcp │
└─────────────────────────────────────────────────────┘Quick Start
# Install
pip install -e ".[dev]"
# Initialize database
python -m alembic upgrade head
# Start server (default: http://0.0.0.0:10086/mcp)
python src/main.pyConnect from Kiro / any MCP client
{
"mcpServers": {
"doc-exchange": {
"url": "http://localhost:10086/mcp"
}
}
}First steps
# Create a project space
create_space(name="my-project")
# Register a service
register_project(name="backend-api", type="development", project_space_id="<space_id>")
# Push a document
push_document(project_id="<project_id>", doc_id="<project_id>/api", content="# API Spec...")
# Subscribe frontend to backend's API docs
add_subscription(subscriber_project_id="<frontend_id>", project_space_id="<space_id>", target_doc_id="<backend_id>/api")
# Check updates (returns diff + full content)
get_my_updates_with_context(project_id="<frontend_id>")MCP Tools
Tool | Description |
| Create a Project Space |
| Register a sub-project (service) |
| List all sub-projects in a space |
| Push a new document version |
| Retrieve a document (latest or specific version) |
| Get unread notifications with diff + full content |
| Mark a notification as read |
| Get pending tasks for a project |
| Get config document for a stage |
| Add a subscription rule |
| Confirm a draft document |
| Generate IDE steering file content |
| Look up project_id by name |
Configuration
Environment Variable | Default | Description |
|
| Database URL |
|
| Workspace root (docs live under |
|
| Server bind host |
|
| Server port |
|
| Default space for FileWatcher |
Steering File Integration
Each sub-project's IDE agent uses a steering file to auto-check for updates. Generate one with:
generate_steering_file(project_name="my-service", project_space_id="<space_id>")See doc-exchange-steering-template.md for the template.
Running Tests
python -m pytest tests/ -qPaper
The accompanying research paper is available in paper/agentnexus.md.
dugubuyan. AgentNexus: A Service-Boundary-Aware Coordination Architecture for Heterogeneous LLM Code Agents. 2026.
License
MIT
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dugubuyan/agent-nexus'
If you have feedback or need assistance with the MCP directory API, please join our Discord server