agentmesh
π€πΈοΈ Production-grade multi-agent orchestration framework powered by Pregel BSP. Build sophisticated AI workflows with parallel execution, state management, and observability.
Install / Use
claude mcp add hupe1980 -- npx -y github:hupe1980/agentmeshIf the server publishes to npm under a different name, use that package instead β check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Our assessment of agentmesh
agentmesh scores 78/100 on our quality scale, 2561st of 2,865 Automation skills we index.
Its MCP Server is 11 KB long, well organised into 27 sections with 7 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 10 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 91/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit β read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-10-29. It catches known dangerous patterns, not every risk β read a skill before letting an agent act on it.
agentmesh compared with similar skills
All 4 of these similar skills score higher than agentmesh; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| agentmesh (this skill)by hupe1980 | 78 | 10 | 10mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 105.7k | 4d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.2k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.7k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 90.2k | today | MCP Server |
Frequently asked questions
- How do I install agentmesh?
- Run
claude mcp add hupe1980 -- npx -y github:hupe1980/agentmesh. The install tabs above show the steps for each supported agent. - Which AI agents does agentmesh work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is agentmesh safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 91/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is agentmesh still maintained?
- The repository was last updated about 10 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubπ€πΈοΈ AgentMesh
Production-grade multi-agent orchestration framework powered by Pregel-style bulk-synchronous parallel (BSP) graph processing. Build sophisticated AI agent workflows with parallel execution, state management, and enterprise-grade observability.
Requires Go 1.24+
β¨ Key Features
Core Engine
- π Pregel BSP Execution - Parallel graph processing with optimized concurrency (4-10x faster state access)
- π§ LLM Integration - Native support for OpenAI, Anthropic, Gemini, Amazon Bedrock, Ollama with streaming and reasoning models
- πΎ State Management - Lock-free channel-based state with checkpointing, managed value descriptors, and resume-time rehydration hooks
- π οΈ Tool Orchestration - Type-safe function calling with automatic schema generation
- π Model Routing - Intelligent model selection based on cost, capabilities, and availability
Production Ready
- β Graph Validation - Comprehensive compile-time error checking (cycles, missing nodes, unreachable paths)
- πΎ Checkpointing - Persistent state with auto-resume, encryption, and signing
- β»οΈ Zero-Copy Resume - Copy-on-write checkpoint restores reuse the saved map and only allocate when keys mutate (10k+ key checkpoints resume without GC spikes)
- βΈοΈ Human-in-the-Loop - Approval workflows with conditional guards and audit trails
- π Observability - Built-in OpenTelemetry metrics, non-blocking event bus fan-out, and distributed tracing
- π Resilience - Configurable retry policies, circuit breakers, and timeouts
- π Security - WASM sandboxing and integrity checks
AI/ML Features
- π’ Embeddings & Memory - Semantic search and long-term conversation storage
- π RAG Integration - Vector stores (pgvector, Qdrant, Pinecone, Weaviate), AWS Bedrock Knowledge Bases, Kendra, and automatic query rephrasing
- π§ Native Reasoning - First-class support for o1, o3, Gemini 2.0, Claude reasoning models
- π Prompt Templates - Variable substitution with reusable patterns
Extensibility
- π€ A2A Protocol - Multi-agent collaboration with standardized communication
- π MCP Support - Dynamic tool discovery from Model Context Protocol servers
- π LangChainGo Tools - Import existing tool ecosystem
- βοΈ Custom Backends - Pluggable MessageBus for distributed execution (Redis, Kafka)
π Quick Start
Installation
go get github.com/hupe1980/agentmesh@latest
Hello World ReAct Agent
package main
import (
"context"
"fmt"
"log"
"os"
"strings"
"github.com/hupe1980/agentmesh/pkg/agent"
"github.com/hupe1980/agentmesh/pkg/graph"
"github.com/hupe1980/agentmesh/pkg/message"
"github.com/hupe1980/agentmesh/pkg/model/openai"
"github.com/hupe1980/agentmesh/pkg/tool"
)
// WeatherArgs defines the JSON schema for the weather tool.
type WeatherArgs struct {
Location string `json:"location" jsonschema:"description=The city to get weather for"`
}
func main() {
ctx := context.Background()
// Validate API key
if strings.TrimSpace(os.Getenv("OPENAI_API_KEY")) == "" {
log.Fatal("OPENAI_API_KEY environment variable is required")
}
// Create OpenAI model (uses OPENAI_API_KEY env var)
model := openai.NewModel()
// Define a tool with typed arguments
weatherTool, err := tool.NewFuncTool(
"get_weather",
"Get current weather for a location",
func(ctx context.Context, args WeatherArgs) (string, error) {
return fmt.Sprintf("Weather in %s: Sunny, 72Β°F", args.Location), nil
},
)
if err != nil {
log.Fatal(err)
}
// Create ReAct agent
reactAgent, err := agent.NewReAct(model,
agent.WithTools(weatherTool),
agent.WithMaxIterations(5),
)
if err != nil {
log.Fatal(err)
}
// Execute agent and get the final result
messages := []message.Message{
message.NewHumanMessage("What's the weather in San Francisco?"),
}
lastMsg, err := graph.Last(reactAgent.Run(ctx, messages))
if err != nil {
log.Fatal(err)
}
fmt.Println(lastMsg.String())
}
Output:
Thought: I need to check the weather in San Francisco
Action: get_weather("San Francisco")
Observation: Weather in San Francisco: Sunny, 72Β°F
The weather in San Francisco is currently sunny with a temperature of 72Β°F.
π Documentation
Getting Started
- π Getting Started Guide - Complete tutorial with examples
- ποΈ Architecture Overview - Understanding the Pregel BSP design
- π API Reference - Complete godoc
Core Concepts
- πΈοΈ Graph Building - Nodes, edges, and execution flow
- ποΈ State Management - Channels, reducers, checkpointing, and approval workflows
- π§ Tools Guide - Building and integrating tools
- π€ Model Integration - LLM provider setup and configuration
Advanced Features
- π€ Agent Patterns - ReAct, RAG, and Supervisor agents
- π Observability - Metrics, tracing, and monitoring
- π Middleware - Caching, rate limiting, circuit breakers
- π Custom Schedulers - Priority-based and resource-aware vertex execution
- π§ Memory & Embeddings - Semantic search and conversation storage
- π€ A2A Protocol - Multi-agent collaboration
- π WASM Sandboxing - Secure untrusted code execution
π¨ Examples
Explore 41 comprehensive examples in the examples/ directory:
| Example | Description | |---------|-------------| | basic_agent | Simple ReAct agent with tools | | blogwriter | Multi-agent blog writing with progress tracking | | conversational_agent | Agent with long-term memory across turns | | document_loader | Document loading and ingestion pipeline | | supervisor_agent | Multi-agent coordination with supervisor | | reflection_agent | Self-critique and iterative refinement | | checkpointing | State persistence and resume | | human_approval | Approval workflows with conditional guards | | parallel_tasks | Concurrent node execution | | streaming | Real-time response streaming | | middleware | Rate limiting and circuit breakers | | custom_scheduler | Priority and resource-aware scheduling | | observability | OpenTelemetry integration | | a2a_integration | Agent-to-agent communication | | wasm_tool | Sandboxed tool execution |
Running Examples
# Run any example
cd examples/basic_agent
go run main.go
# Set required environment variables
export OPENAI_API_KEY=your-key-here
export ANTHROPIC_API_KEY=your-key-here # For Anthropic examples
ποΈ Architecture
AgentMesh uses a layered architecture with clean separation of concerns:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Application Layer (pkg/agent) β
β β’ ReActAgent, SupervisorAgent, RAGAgent β
ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Graph Orchestration (pkg/graph) β
β β’ Workflow construction β’ State management β’ Validation β
ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Execution Engine (pkg/pregel) β
β β
β β’ BSP Runtime β’ Worker pools β’ MessageBus β
β β’ Superstep sync β’ Sharded frontier β’ Backpressure β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Key Components:
- Graph - Define nodes, edges, and execution flow with
NodeFunc - BSPState - Copy-on-write state with typed
Key[T]andListKey[T] - Pregel Runtime - Bulk-synchronous parallel execution with sharded message passing
- Checkpointer - State persistence with encryption, signing, and two-phase commit
- Agents - High-level abstractions (ReAct, Supervisor, RAG)
Learn more about the architecture β
π§ͺ Testing
# Run all tests
go test ./...
# With coverage
go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out
# Run benchmarks
go test ./... -bench=. -benchmem
Testing Utilities
The pkg/testutil package provides mock implementations and builders for testing agents and workflows. See the Testing Guide for comprehensive documentation.
import "github.com/hupe1980/agentmesh/pkg/testutil"
// Create a mock model with builder pattern
model := testutil.NewModelBuilder().
WithResponse("Hello!").
WithToolCalls(message.ToolCall{Name: "search"}).
Build()
// Create a mock tool
tool := testutil.NewToolBuilder("search").
WithResult("search results").
Build()
// Record and assert model interactions
recorder := testutil.NewConversationRecorder()
// ... run agent ...
recorder.AssertRequestCount(t, 1)
recorder.AssertToolCallMade(t, "search")
π€ Contributing
Contributions are welcome!
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Write tests for your changes
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Guidelines
- All new code must have tests (target 85%+ coverage)
- Run
go fmtandgolangci-lintbefore committing - Update documentation for public API changes
- Add examples for new features
π License
Licensed under the Apache License 2.0 - see LICENSE for details.
π Acknowledgments
- Pregel Paper - Google's bulk-synchronous parallel graph processing model
- Go Community - Exceptional tooling and ecosystem
- OpenTelemetry - Production-grade observability standards
<div align="center">
β Star this repo if you find it useful!
Made with β€οΈ by hupe1980
</div>Related Skills
Agent-Reach
105.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu β one CLI, zero API fees.
headroom
78.2kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.7kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
90.2kπ·οΈ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit β see the Safety scan above for what the skill file itself contains.
