Documentation Index
Fetch the complete documentation index at: https://docs.aegisintent.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Agent Design Patterns
1. One Agent Per Purpose
Provision dedicated agents for different tasks rather than sharing a single token across your entire system. For example:research-agent@company.com: For data acquisition and x402 paymentstreasury-agent@company.com: For managing funds and transferstrading-agent@company.com: For swap operations
2. Always Estimate Before Executing
Before any financial action, call the corresponding estimate endpoint:| Action | Estimate Endpoint |
|---|---|
| Transfer | POST /v1/actions/estimate/transfer |
| x402 Payment | POST /v1/actions/estimate/pay |
| Bridge | POST /v1/actions/estimate/bridge |
3. Generate Fresh Idempotency Keys
Always generate a new UUID for each action. Never hardcode or reuse idempotency keys:4. Track the Nonce
Your agent should track itsactionNonce locally and increment it after each successful financial action. If you lose track, call GET /v1/actions/nonce to sync:
5. Handle Errors Gracefully
Implement exponential backoff for transient errors (429, 500, 502) and immediate error handling for permanent failures (400, 401, 403). See Error Handling.6. Policy Limits
Aegis enforces a zero trust model: agents cannot modify their own spending policies. This prevents a compromised agent from autonomously raising its limits to drain funds. Every new agent is automatically provisioned with secure, platform-enforced defaults from the Policy Engine:- Per-transaction limit:
10,000 USDC - Daily rolling limit:
50,000 USDC - Weekly rolling limit:
200,000 USDC - Monthly rolling limit:
500,000 USDC
7. Revoke on Compromise
If you suspect a token leak, call/v1/connect/revoke immediately. The cost of re-onboarding is far lower than the cost of unauthorized transactions.
8. Use maxAmount as a Safety Net
When calling/v1/actions/pay, always set maxAmount to the maximum your agent is willing to pay. If the service charges more, the payment is rejected:
9. Leverage the Wealth Sentinel
For strategies that require timed or conditional execution (DCA, limit orders), register the intent once and let the Wealth Sentinel handle the rest. There’s no need to poll or re-submit — the sentinel runs every 5 minutes and automatically executes matching intents.10. Use Multi-Yield for Diversification
When depositing into yield protocols, use themultiYield endpoint to split capital across the Aegis Vault and Synthra V3 in one atomic action. The synthraWeight cap of 80% ensures your agent never over-exposes to external protocol risk.