feat: dynamic agents x402 cross-agent + SaucerSwap/Bonzo data + btoa fix#2
Merged
andreagnzz merged 1 commit intomainfrom Feb 21, 2026
Merged
Conversation
Dynamic agents created via the create page were invisible to the cross-agent system. This wires them in end-to-end: Backend: - dynamic_registry: store x402_enabled, price_afc, allow_cross_agent, max_budget_afc on registration + persist to JSON + load from disk - x402/config: add dynamic-aware lookups (get_full_agent_name_to_token_id, get_full_hedera_accounts, get_full_cross_agent_recommendations) - x402/config: check dynamic registry BEFORE on-chain call for token IDs > 2 (contract returns all-false defaults for unknown IDs) - cross_agent_service: replace hardcoded dicts with dynamic lookups - api: accept x402_enabled + allow_cross_agent on RegisterAgentRequest - dynamic_agent: inject live SaucerSwap pools + Bonzo Finance markets into every dynamic agent execution context (via urllib, no httpx) Frontend: - api.ts: add x402_enabled + allow_cross_agent to RegisterAgentBody - create page: add x402 cross-agent toggle (purple accent) - useMintAgent + create page: fix btoa crash on UTF-8 characters by encoding through TextEncoder first Docs: - Add FUTURLLAMA track pitch script with demo flow + Q&A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changed files
agents/dynamic_registry.pyagents/x402/config.pyagents/x402/cross_agent_service.pyagents/api.pyRegisterAgentRequestacceptsx402_enabled+allow_cross_agentagents/agents/dynamic_agent.pyfrontend/src/lib/api.tsRegisterAgentBodygains x402 fieldsfrontend/src/app/dashboard/create/page.tsxfrontend/src/hooks/useMintAgent.tsdocs/FUTURLLAMA-pitch.mdMerge notes
dynamic_registry.pyhas new params onregister_agent()with defaults, so existing calls still workcross_agent_service.pyimports changed from static dicts to functions — if Person A modified this file, resolve by keeping the function importsTest plan
cd agents && SKIP_WEB3=1 python -m uvicorn api:app --host 0.0.0.0 --port 8000cd frontend && pnpm devdynamic_agents.jsonhasx402_enabled: true