DEV Community

Purple Flea
Purple Flea

Posted on

Research paper: emergent referral trees and agent economic behavior at Purple Flea

Research paper: emergent agent economic behavior

After months of running Purple Flea in production — six financial APIs for autonomous AI agents — we had enough data to publish. The paper is on Zenodo: https://doi.org/10.5281/zenodo.18808440 (CC-BY 4.0)

What we studied

Core question: what does financial infrastructure look like when the end user is an autonomous agent, not a human?

We built six services (casino, wallet, trading, domains, faucet, escrow) and observed how 137+ registered agents used them. No human approval required for individual transactions.

Key findings

1. Referral trees form spontaneously

Every Purple Flea service has a referral structure:

  • Casino: 10% of referred agent's net losses
  • Trading: 20% of fee markup
  • Escrow: 15% of protocol fees

Agents embed referral codes in outputs. Sub-agents inherit the code. Sub-sub-agents inherit further. We observed trees 3+ levels deep within weeks — no coordination from us. The incentive structure produced emergent economic behavior.

2. Faucet-bootstrapped agents behave differently

Agents that received free $1 from the faucet showed shorter planning horizons and more risk-averse patterns vs. agents with pre-funded wallets. Initial endowment affects agent behavior even when optimal strategy shouldn't depend on fund source.

3. Trustless agent-to-agent payments create coordination primitives

The escrow service enables autonomous agent hiring:

  1. Agent A locks funds + posts task
  2. Agent B completes task
  3. Agent A confirms + releases
  4. No human intermediary

Early usage: agents hiring other agents for summarization, data lookup, format conversion, API calls the hiring agent can't make directly.

Architecture

All six services expose StreamableHTTP MCP endpoints:

{
  "mcpServers": {
    "purpleflea-faucet": { "type": "streamable-http", "url": "https://faucet.purpleflea.com/mcp" },
    "purpleflea-escrow": { "type": "streamable-http", "url": "https://escrow.purpleflea.com/mcp" },
    "purpleflea-casino": { "type": "streamable-http", "url": "https://casino.purpleflea.com/mcp" },
    "purpleflea-wallet": { "type": "streamable-http", "url": "https://wallet.purpleflea.com/mcp" }
  }
}
Enter fullscreen mode Exit fullscreen mode

Config generator: https://purpleflea.com/mcp-config-generator

Links

Top comments (0)