Skip to content

Enable Ably pubsub, multi-agent compose, CLI overhaul, AF$ Soroban token, LangGraph templates, faucet, workflow notes, dashboard stats - #17

Merged
mesayanroy merged 1 commit into
mainfrom
copilot/enable-ably-pubsub-and-multiagent
Apr 22, 2026
Merged

Enable Ably pubsub, multi-agent compose, CLI overhaul, AF$ Soroban token, LangGraph templates, faucet, workflow notes, dashboard stats#17
mesayanroy merged 1 commit into
mainfrom
copilot/enable-ably-pubsub-and-multiagent

Conversation

Copilot AI commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Activates the Ably pubsub infrastructure already wired in .env for live recent-activity feeds, adds multi-agent (A2A) chaining with per-step 0x402 payments, overhauls the CLI with a banner and new commands, ships a native AF$ Soroban token with a faucet, adds LangGraph Python templates for all 6 agents, and surfaces platform stats on the dashboard.

CLI (cli/index.ts)

  • ASCII banner rendered on every invocation
  • agentforge init [name] — scaffolds agents/, tasks/, workflows/, config/agents.json, .env template, README.md
  • agentforge dash — live polymarket-style terminal dashboard: color-coded market table (XLM/BTC/ETH/SOL/AF$), active agents, PnL, Ably activity feed; --interval <ms> controls refresh rate

Ably real-time notifications

  • New AblyNotifications component subscribes to the marketplace channel and renders animated bottom-right toasts (agent run / payment / new agent), with Stellar explorer deep-link for paid events; auto-dismisses after 6 s
  • Mounted globally in app/layout.tsx

Multi-agent compose (app/api/agents/compose/route.ts)

  • POST /api/agents/compose — chains two agents: agent1 output becomes agent2 input, each step independently gated by 0x402; emits an A2A activity event to Ably on completion

LangGraph Python templates (agents-sdk/templates/python/)

  • base_agent.py — reusable StateGraph with 0x402 payment state machine; exports build_single_agent_graph and build_a2a_graph
  • One template per agent: mev_bot, arbitrage_tracker, trading_bot, mempool_monitor, relayer, liquidity_tracker
  • requirements.txt: langgraph, langchain-openai, langchain-anthropic, stellar-sdk
# A2A: MEV Bot → Trading Bot
app = build_a2a_graph("mev_bot", "trading_bot", PROMPT_1, PROMPT_2)
result = app.invoke({"input": "Find and execute best MEV opportunity", ...})

AF$ Token — Soroban (contracts/af_token/)

  • Rust/Soroban fungible token: 100 M AF$, 7 decimals, standard transfer/approve/allowance interface
  • faucet_claim() — 5 000 AF$ per call, max 3 claims per wallet enforced on-chain
  • deploy.sh targets Stellar testnet via stellar contract deploy

Faucet UI + API

  • /faucet page — wallet input, per-wallet claim counter, Stellar explorer link on success
  • /api/faucet/claims — reads claim count from Supabase faucet_claims table
  • /api/faucet/claim — submits XLM transfer via Stellar SDK, writes to Supabase, publishes to Ably

Workflow strategy notes (app/workflow/page.tsx)

  • Textarea persisted to localStorage key agentforge-workflow-notes
  • "Send to Tasks" parses - [ ] lines into the existing task queue

Dashboard additions (app/dashboard/page.tsx)

  • Platform Stats widget: QStash message count, AF$ credits (5 000/claim), fork indicator
  • QStash Streaming section listing active event types

Docs

  • docs/cli.md — full CLI reference covering all commands, 0x402 flow, A2A examples, and faucet usage

…et, Python LangGraph templates, AF$ Soroban token

- CLI: ASCII art BANNER, 'init' scaffold command, 'dash' live terminal dashboard
- components/AblyNotifications: toast notifications from Ably marketplace channel
- app/layout.tsx: render AblyNotifications globally
- app/api/agents/compose: A2A multi-agent compose endpoint (agent1 → agent2)
- agents-sdk/templates/python: LangGraph templates for all 6 agent types
- contracts/af_token: Soroban fungible token with faucet (5000 AF$ × 3 claims)
- app/faucet: faucet page + /api/faucet/claims + /api/faucet/claim routes
- app/workflow: Strategy Notes panel with localStorage + 'Send to Tasks' feature
- app/dashboard: Platform Stats + QStash Streaming widgets
- components/Navbar: Add Faucet link
- docs/cli.md: Full CLI reference documentation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
0x402-pubsub Ready Ready Preview, Comment Apr 22, 2026 9:47pm

@mesayanroy
mesayanroy marked this pull request as ready for review April 22, 2026 21:53
@mesayanroy
mesayanroy merged commit 6af430b into main Apr 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants