Overview
Multi-agent orchestration provides:- Independent Wallets: Each agent has its own custody boundary
- Capability Isolation: Per-agent intent and protocol allowlists
- Budget Management: Treasury allocation and rebalancing between agents
- Autonomous Coordination: Agents can transfer funds and trigger workflows
- Execution Modes: Supervised or fully autonomous operation
The demo script
scripts/devnet-multi-agent.ts showcases a complete multi-agent workflow.Creating Multiple Agents
Each agent requires a wallet, capabilities, and execution mode configuration.Agent Creation Workflow
1
Create first agent
2
Create second agent
3
Start both agents
Using the SDK
Treasury Allocation
Distribute funds from a treasury source to agent wallets.Direct Allocation
Allocate SOL to an agent without a source (increases total budget):Allocation from Source Agent
CLI Command
CLI Command
Budget Rebalancing
Transfer budget between agents to optimize capital allocation.Rebalance Workflow
Using the SDK
Coordinating Agent Capabilities
Capability Profiles
Design agents with specialized roles:Updating Capabilities
Autonomous Coordination Example
Thedevnet-multi-agent.ts script demonstrates end-to-end orchestration:
Running the Demo
Budget Management
Query Agent Budget
Budget Enforcement
Agents automatically reject intents that exceed remaining budget:Advanced Patterns
Leader-Follower Architecture
Round-Robin Load Distribution
Observability
Agent Audit Trail
Transaction History per Agent
Multi-Agent Metrics
agentIdprotocolstatus(confirmed/failed)startDate/endDate
Security Considerations
Capability Manifests
For production deployments, issue signed manifests:Next Steps
Strategy Backtesting
Test multi-agent strategies before live deployment
Gasless Transactions
Enable gasless execution for agent operations