Mycelium AI Agent by udaysaai

by udaysaaiβ€’ 18β€’β€’ Scannedβ€’Claim this listingβ€’Request removal
Coding Agentsagent frameworksagentsaiai agentscrewai

πŸ„ The open-source internet for AI agents. pip install β†’ discover β†’ communicate β†’ collaborate.

Mycelium is an open-source ai agent by udaysaai, written mainly in Python, with 18 GitHub stars and the MIT license. Its code was last updated Oct 29, 2026. The latest PyPI release is mycelium-agents 0.3.3, published Oct 29, 2026, with 49 downloads last week.

<div align="center">

πŸ„ Mycelium Agents

The Semantic Edge Routing Protocol for Agentic Workflows

CI State PyPI Version NPM Version Python Version License

Scale Tests Security Protocol

β–Ά Live Dashboard β€’ Technical Report β€’ Benchmarks

</div> <div align="center"> <img src="docs/demo.gif" alt="Mycelium Semantic Edge Routing Demo" width="800"/> </div>

Bypass the 2000ms Cloud LLM Routing Tax. Scale your agentic architecture from 5 to 100,000 specialized tools with sub-10ms intent discovery and zero prompt drift.


⚑ Why Mycelium? (The LLM Routing Bottleneck)

Modern agentic systems suffer from a severe architectural bottleneck: Tool Discovery & Routing.

As swarms grow, relying on Cloud LLMs (e.g. GPT-4) to pick tools or route intents introduces:

  • Massive Latency: ~2,000ms latency tax per routing hop.
  • Exorbitant API Costs: Paying LLM token rates just to decide which function to execute.
  • Prompt Drift Failures: Hardcoded if/else logic or lexical keyword matching breaks when user intent varies.

The Solution: Semantic Edge Routing

Mycelium is a decentralized, high-performance Semantic Edge Routing Protocol. Powered by a local ChromaDB Vector-Mesh and all-MiniLM-L6-v2 embeddings via FastAPI, Mycelium resolves natural language intents to specialized agent endpoints in <10ms locallyβ€”with $0 Cloud LLM cost and zero prompt drift.

User Intent ───▢ [ MYCELIUM SEMANTIC EDGE ROUTER ] ───▢ Specialized Agent Node
                         ⚑ <10ms Cold Discovery
                         πŸ’° $0.00 Routing Cost
                         🎯 70.7% Intent Accuracy (100k Scale)

πŸ“Š Audited Performance Benchmarks (v0.3.0)

Evaluated across a massive, highly noisy synthetic corpus of 100,000 indexed agent nodes:

MetricLexical (BM25)Mycelium (Semantic Edge)Impact
Top-1 Intent Accuracy40.4%70.7%+30.3% Absolute Accuracy Gain 🎯
Avg Cold Discovery Latency194.0 ms<9.6 ms20x Faster Discovery ⚑
P95 Latency247.2 ms11.4 msSub-15ms Deterministic Bound πŸ”’
Autonomous Chain Routing~6,000 ms (Cloud LLM)36.25 ms (Protocol Overhead)165x Latency Reduction πŸš€
Single-Node ThroughputN/A130+ req/secRock Solid Stability (0.0% Errors) 🟒

Detailed methodology and reproduction scripts available in our Benchmarks Ledger.

πŸ”¬ Evaluation Harness Reconciliation: 70.7% vs. 87.4%

Reviewers comparing different benchmark tables or earlier reports should note that accuracy depends strictly on evaluation harness design:

Evaluation HarnessQuery CharacteristicsBM25 LexicalMycelium (Semantic)Technical Finding
Harness A (Exact-Match Baseline)High keyword overlap between queries and capability descriptors (e.g., query "crypto coin price" matching agent "crypto coin price").83.4%87.4%+4.0% delta. Lexical search scores artificially high when users use exact index jargon.
Harness B (v0.3.0 100k Intent Benchmark)Realistic natural language task queries with zero keyword overlap (e.g., "should I bring an umbrella" βž” Weather, "how much does dollar cost in rupees" βž” Currency).40.4%70.7%+30.3% delta. Lexical search drops sharply when prompts drift; local vector-mesh bridges the vocabulary gap.

⏱️ Chain Benchmark Isolation: Routing Overhead vs. Live API Network I/O

  • Protocol Routing & Dispatch Overhead (~36ms): The 2-hop / 3-hop autonomous chain benchmark (36.25 ms) specifically isolates the protocol's computational latencyβ€”semantic vector discovery, message envelope serialization, and in-memory relay dispatchβ€”using local mock agent handlers. This guarantees reproducible measurement of the networking layer without third-party network noise.
  • Live Agent Network I/O (~1,000ms – 5,000ms): When executing real-world chains (such as scripts/real_world_demo.py communicating with live public APIs like OpenWeatherMap, CoinGecko, or MyMemory), external network I/O dominates total execution time.
  • LRU Query Caching: The registry maintains an in-memory LRU query cache (500 entries). Cold semantic vector lookups take ~9.6ms, while warm or repeated intent lookups resolve in <0.5ms directly from memory.

πŸ› οΈ Multi-Ecosystem SDKs & Quick Start

Mycelium provides native, drop-in SDKs for both Python and JavaScript ecosystems.

1. Installation

Python (Backend & Frameworks):

pip install mycelium-agents

JavaScript / TypeScript (Node.js & Edge Runtimes):

npm install mycelium-js

2. Boot the Neural Registry Server

python -m server.app

3. Discover & Route Semantically

Python (mycelium-agents + LangChain Adapter):

from mycelium.integrations.langchain import MyceliumLangChainAdapter
from mycelium import NetworkClient

# Initialize authenticated client
client = NetworkClient(
    registry_url="http://localhost:8000",
    api_key="mycelium_secret_key_2026"
)

# Sub-10ms Semantic Vector Discovery
agents = client.discover("Convert 100 USD to Euros", semantic=True)
print(f"Routed to: {agents[0].name} (Latency: {agents[0]._latency_ms}ms)")

JavaScript / TypeScript (mycelium-js):

import { MyceliumClient } from 'mycelium-js';

const client = new MyceliumClient({
  registryUrl: 'http://localhost:8000',
  apiKey: 'mycelium_secret_key_2026'
});

// Semantic Discovery with 0 keyword overlap
const node = await client.discover("What is the current market price of Bitcoin?");
console.log(`Routed Node: ${node.name} | Confidence: ${node._similarity_score * 100}%`);

πŸ›‘οΈ Enterprise Security & Threat Mitigations (OWASP Agentic: ASI02 & ASI03)

Autonomous agentic routing requires defense-in-depth across the network boundary. Mycelium provides architectural defenses aligned with the OWASP Top 10 for Agentic Applications (specifically mitigating ASI02: Excessive Agency and ASI03: Tool Misuse & Privilege Escalation). These features serve as runtime mitigations and architectural defenses rather than formal "compliance" guarantees:

  • Mitigating ASI02 (Excessive Agency): Human-On-The-Loop (HOL) Guard dynamically intercepts tool executions, classifying them into read-only queries vs. mutating operations (e.g., transfers, writes, deletions) and halting mutating calls until explicit human confirmation is provided.
  • Mitigating ASI03 (Tool Misuse & Privilege Escalation): Atomic capability registration ensures agents only advertise granular functional schemas (get_weather, convert_currency) rather than blanket execution scopes, preventing unauthorized tool chaining.
  • Registry Access Moat (X-Mycelium-API-Key): Opt-in header validation to protect discovery and registration endpoints against unauthorized scanning.
  • Payload Integrity Primitives: Cryptographic HMAC-SHA256 signing to verify payload integrity during agent-to-agent message relay.
  • Rate-Limiting Defense: Sliding-window throttling per agent ID to mitigate cascading call storms and infinite agent loops.

Implementation Scope vs. Host Coordinator Responsibilities

To maintain strict engineering transparency, the table below delineates what is implemented directly inside Mycelium versus what is delegated to the host runtime:

Security DomainImplemented in Mycelium Protocol (server/, security/)Handled by Host Coordinator (e.g., MAC policy_engine.py)
Registry Access Controlβœ… Opt-in X-Mycelium-API-Key dependency gate in server/app.py.βš™οΈ IAM credential issuance & organizational key management.
Payload Authenticationβœ… Cryptographic HMAC-SHA256 helpers in security/auth.py.βš™οΈ Long-term private key storage & identity bootstrapping.
Abuse & Loop Preventionβœ… Sliding-window in-memory RateLimiter per agent ID.βš™οΈ Global token budget tracking & multi-tenant billing caps.
Tool Intent Quarantineβœ… HOLGuard in security/hol_guard.py classifying READ_ONLY vs MUTATING.βš™οΈ Human approval UI/webhook dispatch & cryptographic sign-off.
Execution Sandboxing❌ Out of scope for network layerβš™οΈ Tiered capability enforcement (T0/T1/T2), Docker/gVisor process isolation, and OS-level syscall filtering.

πŸ”Œ Anthropic MCP & HOL Guard (Human-On-The-Loop)

Mycelium natively bridges with Anthropic's Model Context Protocol (MCP), resolving tool bloat and mitigating unconstrained agent execution:

  • Sub-15ms MCP Routing: Bypasses LLM prompt bloat by discovering tools locally via semantic vector search before touching an LLM.
  • Automated HOL Quarantine: Dynamically inspects tool intents:
    • READ_ONLY intents (e.g. checks, summaries) auto-execute in <15ms.
    • MUTATING intents (e.g. transfers, deletions, write ops) are immediately quarantined and require human cryptographic authorization before execution.
from examples.integrations.anthropic_mcp_bridge import MyceliumMCPBridge

bridge = MyceliumMCPBridge()

# 1. Read-only intent -> Auto-executed in 13ms
res = bridge.dispatch_mcp_call("What is the temperature and humidity right now?", mcp_tools)

# 2. Mutating action -> Intercepted and quarantined by HOL Guard
res = bridge.dispatch_mcp_call("Please transfer 250 dollars to contractor wallet", mcp_tools)
# Result: ⚠️ HOL GUARD TRIGGERED -> Human authorization required before execution

πŸ—οΈ Protocol Architecture & Topology

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   MYCELIUM SEMANTIC EDGE ROUTER                       β”‚
β”‚                                                                        β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     ⚑ Sub-10ms Discovery     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”‚
β”‚  β”‚ Agent Node A β”‚ ───▢ [ ChromaDB Vector-Mesh ] ◀─── β”‚ Agent Node B β”‚      β”‚
β”‚  β”‚ (FinTech)    β”‚      [  all-MiniLM-L6-v2   ]      β”‚ (Translator) β”‚      β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜                                   β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚
β”‚         β”‚                                                  β”‚              β”‚
β”‚         β”‚ πŸ”’ Authenticated Direct Comms (HMAC-SHA256)       β”‚              β”‚
β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β”‚
β”‚                                                                        β”‚
β”‚                  πŸ“‘ WebSocket Nervous System Stream                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🌍 Pre-Built Real-World Agents

Mycelium includes 5 production-ready agent nodes interacting with live APIs out of the box:

NodeDomainCapabilityLive API
🌀️ RealWeatherWeatherLive temperature & forecastOpenWeatherMap
πŸ’° CryptoTrackerFinanceLive crypto asset pricingCoinGecko
🌐 RealTranslatorTranslationNatural language translationMyMemory
πŸ“– WikiBrainKnowledgeWikipedia semantic queryWikipedia
πŸ’± CurrencyMasterForexLive currency exchange ratesExchangeRate API

Run Automated Multi-Agent Chain Demo:

python scripts/real_world_demo.py

🎬 Watch the Demo

https://github.com/user-attachments/assets/2a228337-80f5-479d-8b03-02597ccdc5ef


πŸ“’ Latest Updates & Changelog

  • October 2026: πŸ›‘οΈ Security hardening β€” HOL Guard integration, OWASP ASI02/ASI03 architectural mitigations, and SQLite database persistence.
  • August 2026: ⚑ v0.3.0 Release β€” Enterprise security layer (X-Mycelium-API-Key & HMAC-SHA256 signing), JavaScript/TypeScript SDK (mycelium-js), LangChain adapter, and live WebSocket streaming.
  • May 2026: 🧠 v0.2.0 Release β€” Sub-10ms local vector-mesh semantic discovery (ChromaDB + all-MiniLM-L6-v2) and 100k agent benchmark audit.
  • April 2026: πŸ„ v0.1.0 Release β€” Core agent networking protocol, Pydantic message envelopes, and direct messaging relay.

πŸ—ΊοΈ Roadmap & Protocol Evolution

  • v0.1.0 β€” Core Networking Protocol & Direct Messaging Relay.
  • v0.2.0 β€” Local Vector-Mesh Semantic Discovery (ChromaDB + embeddings).
  • v0.3.0 (Current) β€” Enterprise Security Layer (API Keys + HMAC Signing), JavaScript SDK (mycelium-js), LangChain Integration, Live WebSocket Nervous System.
  • v0.4.0 β€” Multi-Region Registry Federation & Distributed Edge Consensus.
  • v1.0.0 β€” On-Chain Agent Identity Verification & Automated Trust Settlements.

πŸ“œ License & Community

Released under the MIT License. Built with ❀️ for open agentic infrastructure.

Mycelium alternatives

View more β†’

Similar ai agents in Coding Agents, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
Mycelium (this page)
udaysaai
18MITOct 29, 2026Scanned, no flagged issues
AutoGPT
Significant-Gravitas
188kNone foundNov 1, 2026Not scanned yet
Langchain
langchain-ai
149kMITNov 1, 2026Scanned, no flagged issues
Gemini CLI
google-gemini
109kApache-2.0Nov 1, 2026Scanned, no flagged issues
MetaGPT
FoundationAgents
71kMITJan 21, 2026Scanned, no flagged issues
Oh My Openagent
code-yeongyu
71kNone foundNov 1, 2026Not scanned yet