Zuctro AgentMesh is an open-source, production-grade Agent Control Plane & Gateway designed to solve multi-agent infrastructure challenges for enterprises. AgentMesh acts as the Enterprise Gateway, Security Interceptor, and Kubernetes Pod Orchestrator for AI Agents.
- Declarative Plugin Architecture: Reusable YAML plugins for PII sanitization, OWASP prompt injection shields, token budget capping, and HITL approval routing.
- Model Context Protocol (MCP) Proxy Gateway: Centralized proxying, tool discovery filtering (
tools/list), parameter sanitization, and HITL authorization for MCP tool calls (tools/call). - Kubernetes Scale-to-Zero Pod Execution: Dynamic worker pod lifecycle managed via KEDA based on queue depth metrics (
agentmesh_queued_tasks > 0) with container sandbox isolation (gVisor/Kata). - gRPC & REST Dual Protocol Support: Full parity between REST/SSE (
app.py) and high-performance gRPC service (agentmesh.v2.proto). - SDK-Agnostic Worker Runtimes: Orchestrate agents built in Python, TypeScript, Go, LangGraph, CrewAI, AutoGen, or custom scripts.
- Real-Time Telemetry & Observability: OpenTelemetry GenAI trace DAGs, Prometheus metrics, and enterprise showback/chargeback accounting.
AgentMesh/
├── SPECIFICATION.md # Zuctro AM-CP-v2.5 Enterprise Protocol Specification
├── architecture_plan.md # System Architecture & Topology Guide
├── app.py # Ingress REST API & SSE Streaming Gateway (FastAPI)
├── core/
│ ├── models.py # AM-CP Data Contracts (Pydantic)
│ ├── plugins.py # Declarative Plugin Interceptor Pipeline & Engine
│ ├── governance.py # Governance Interceptor (PII & Token Budgets)
│ ├── database.py # State Store & Chargeback Accounting Ledger
│ ├── orchestrator.py # Async Priority Task Queue, HITL Pauser & DLQ Engine
│ ├── mcp_gateway.py # Model Context Protocol (MCP) Proxy Gateway
│ └── telemetry.py # OpenTelemetry AI Span Emitter
├── proto/
│ └── agentmesh.v2.proto # gRPC Protocol Contract
├── grpc_service/
│ └── server.py # gRPC Server Implementation
├── tests/ # Unit, Property, and AM-CP-v2.5 Conformance Suite
│ ├── test_models.py
│ ├── test_plugins.py
│ ├── test_governance.py
│ ├── test_orchestrator.py
│ ├── test_api.py
│ ├── test_grpc.py
│ └── test_conformance.py
└── README.md # Project Overview
python3 -m venv venv
source venv/bin/activate
pip install fastapi uvicorn pydantic pyyaml hypothesis pytest httpx opentelemetry-api opentelemetry-sdk grpcio grpcio-tools pytest-asynciopip install -e .uvicorn app:app --reload --port 8000Access the UI Dashboard at http://localhost:8000/, interactive API documentation at http://localhost:8000/docs, and Prometheus metrics at http://localhost:8000/metrics.
# Check control plane status & metrics
agentmesh status
# Submit a task instruction
agentmesh task submit -i "Scrub PII and analyze ticket JIRA-102" --agent-type data_analyst --follow
# List tasks or inspect a task
agentmesh task list
agentmesh task inspect tsk_55436075
# Manage Human-in-the-Loop (HITL) approval gate
agentmesh hitl list
agentmesh hitl approve tsk_af2bd402
# List registered MCP tools
agentmesh mcp listPYTHONPATH=. pytest -v- 🔑 Enterprise Authentication & Multi-Tenant RBAC (Okta / Auth0 / Keycloak): API Keys & Bearer JWT Validation, Granular Scopes (
agentmesh:task:submit,agentmesh:hitl:approve,agentmesh:mcp:admin), and Tenant Cryptographic Isolation. - 🗄️ Production Distributed Storage Backing (Redis & PostgreSQL): Redis Streams / PubSub task queue, PostgreSQL audit ledger for task history, HITL decision logs, and FinOps chargeback.
- ☸️ Production Helm Chart & KEDA Kubernetes Auto-scaler CRD:
charts/agentmeshHelm deployment on EKS/GKE/AKS with KEDA ScaledObjects (agentmesh_queued_tasks > 0) and gVisor/Kata sandbox isolation. - 🔔 Interactive Slack & Teams HITL Approval Bot: Real-time Slack/Teams notifications when HITL triggers occur; interactive "Approve" / "Reject" buttons inside chat channels.
- 🧠 Semantic LLM Prompt Caching & Smart Model Router: Vector similarity prompt caching (Redis/Qdrant) cutting token costs by up to 80%, combined with dynamic model routing (
gpt-4o-minivsclaude-3.5-sonnet). - 📊 Real-Time LLM Quality & Hallucination Guardrails (Eval Engine): Automated quality scoring for completed task outputs and automatic retry/DLQ routing on hallucination thresholds.
Zuctro AgentMesh defines AM-CP-v2.5 (Control Plane Specification) and AM-MCP-v1.0 (Model Context Protocol Gateway). Any language runtime or framework can implement compliant worker nodes or control planes using our JSON/gRPC contracts.
Distributed under the Apache 2.0 License. © Zuctro AI