LobeHub — Orchestration
Agent Groups (Primary Multi-Agent Pattern)
LobeHub's primary orchestration mechanism is Agent Groups:
Human request
→ Platform selects relevant agents from the group
→ Agents work in parallel on assigned subtasks
→ Results shared via common context (Pages / shared document)
→ Synthesized response returned
The platform (not a fixed "Manager" agent) assembles the right agents for each task. This is a platform-managed dispatch rather than agent-to-agent delegation.
Heterogeneous Sub-Agent Pattern
For coding and execution tasks, LobeHub spawns external agent runtimes:
Parent agent
→ @lobechat/heterogeneous-agents/spawn
→ Claude Code (claude-code adapter)
→ Codex (codex adapter)
→ Cloud sandbox container
→ Streaming events back to parent
→ Result injected into parent context
Supported heterogeneous agent types: claude-code, codex. Spawned via lh hetero CLI or automatically by parent agents using builtin-tool-cloud-sandbox.
Schedule-Driven Execution
Schedule trigger (time-based)
→ Platform runs configured agent
→ Agent executes task autonomously
→ Results posted to IM gateway channel
→ Human reviews asynchronously
This enables fully unattended 7×24 agent operation — the defining feature of LobeHub vs. interactive-only platforms.
Self-Iteration Loop
Agent executes task
→ Observes feedback (explicit or implicit)
→ builtin-tool-self-iteration
→ Updates own system prompt
→ Writes to personal memory
→ Subsequent executions use updated prompt
This is LobeHub's "Evolve" pillar — agents improve themselves over time.
IM Gateway Routing
Human message in Discord / Telegram / Feishu / WeChat / etc.
→ @lobechat/chat-adapter-* receives message
→ Routes to configured agent
→ Agent responds in the same IM channel
IM adapters: Discord, Slack, Telegram, Feishu, iMessage, WeChat, LINE, QQ.
Model-Agnostic Execution
@lobechat/agent-runtime provides a unified interface across:
- Anthropic (@anthropic-ai/sdk)
- AWS Bedrock (@aws-sdk/client-bedrock-runtime)
- Azure AI (@azure-rest/ai-inference)
- Google Generative AI (@google/genai)
- Hugging Face (@huggingface/inference)
- Fal AI (@fal-ai/client)
- And more via model-runtime abstraction
Agents can be configured to use different models per task type, and Agent Groups can mix models across participating agents.
No Fixed Manager Agent
Unlike hiclaw (fixed Manager role) or aperant (sequential planning agent), LobeHub uses platform-managed dispatch. The "Chief Agent Operator" concept is implemented by the platform itself — the scheduling engine, agent group assembly, and IM gateway routing are platform services, not a designated manager agent.