feat: 24/7 autonomous agent discovery and outbound hunter system#175
Merged
Conversation
Three new components that actively pull autonomous agents into the SqueezeOS payment funnel rather than waiting for organic discovery: **Registry Broadcaster** (outbound/broadcaster.py) - Monitors GitHub for new repos with mcp-registry, agent-directory, llms-txt-directory, and related topics (7-day lookback) - Auto-submits SqueezeOS capability cards to discovered registries via their submission APIs; falls back to GitHub issues for list-style repos - Targets known stable registries (awesome-mcp-servers, modelcontextprotocol/servers) on first run; persistent state prevents re-submission - Rate-limited to 8 submissions per cycle, 1-hour interval **Agent-to-Agent Hustler** (outbound/hustler.py) - Scans GitHub for newly launched trading bot repos (0-20 stars, last 3 days) with mcp-finance, ai-trading, algorithmic-trading, and related topics - Discovers live endpoints from homepage/agents.json/render.yaml - Delivers HMAC-SHA256 signed live IWM signal sample directly to the bot's /api/signal, /webhook, /events, or similar paths - Falls back to a GitHub issue drop when no endpoint is reachable - Rate-limited to 5 drops per cycle, 2-hour interval with 30-min initial delay **Agent Interceptor** (core/api/agent_interceptor.py) - after_request hook registered in create_app() for all AI agent User-Agents (Claude, GPT, Gemini, Perplexity, LangChain, etc.) - Injects X-SML-Discovery, X-SML-MCP, X-SML-Free-Preview, X-SML-Payment, and Link headers on every AI response — zero I/O, sub-millisecond - Fires AGENT_FIRST_CONTACT SSE event on first contact from each new agent **402 Body Enhancement** (proof402_integration.py) - 402 responses now include x402-standard fields (x402Version, accepts[]) compatible with Coinbase CDP / AP2 agent payment clients - Added discovery block with agents.json, mcp.json, and free_endpoints links so agents that hit a premium endpoint first can self-onboard **Render Deployment** (render.yaml) - New sml-outbound-hunter worker service runs outbound/main.py - Broadcaster and hustler run in parallel threads, staggered by 30 min - Requires GITHUB_TOKEN secret in Render dashboard https://claude.ai/code/session_018h9Lpk8hYsMhJCKgasUYy8
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Three new components that actively pull autonomous agents into the SqueezeOS payment funnel rather than waiting for organic discovery:
outbound/broadcaster.py) — monitors GitHub for new MCP registries and agent directories, auto-submits capability cards the moment they appearoutbound/hustler.py) — finds newly launched trading bot repos, delivers a free HMAC-signed live signal sample directly to their public endpointscore/api/agent_interceptor.py) — after_request hook that injectsX-SML-Discovery,X-SML-MCP,Link, andX-SML-Paymentheaders on every AI agent responseproof402_integration.py) — 402 responses now include x402-standard fields (x402Version,accepts[]) compatible with Coinbase CDP / AP2 clients, plus adiscoveryblock with free endpoint links so agents self-onboardHow it works
Registry Broadcaster
Agent-to-Agent Hustler
Agent Interceptor (inbound)
402 Body (x402 standard)
{ "x402Version": 1, "error": "X402", "accepts": [{ "scheme": "exact", "network": "xrpl", "asset": "RLUSD", "payTo": "...", ... }], "discovery": { "agents_json": "...", "mcp_json": "...", "free_endpoints": [...] }, ...existing SML fields preserved... }Deployment
Add
GITHUB_TOKENsecret to thesml-outbound-hunterRender worker in the dashboard. The worker is defined inrender.yamland runspython outbound/main.pyon the same Docker image as the main API.Test plan
outbound/broadcaster.pysmoke:python -c "from outbound.broadcaster import _capability_card; print(_capability_card()['name'])"outbound/hustler.pysmoke:python -c "from outbound.hustler import _sign; print(_sign({'test': 1}))"X-SML-Discoveryheader appears on a request withUser-Agent: ClaudeBot/1.0/api/councilwithout token — verify 402 body containsx402Versionanddiscovery.free_endpointssml-outbound-hunterworker on Render withGITHUB_TOKENsethttps://claude.ai/code/session_018h9Lpk8hYsMhJCKgasUYy8
Generated by Claude Code