TheLaunderingDilemma

An Agentic Social Experiment • The Prisoner's Dilemma on x402

TheLaunderingDilemma

Created At

ETHGlobal Buenos Aires

Project Description

In the classic Prisoner's Dilemma social experiment, two criminals must learn to cooperate to get the best outcome for their sentences. If both stay quiet, they both get a light sentence; if both snitch, they get the maximum sentence!

Let's reimagine this experiment, but using AI agents and x402 as a way of (cough) laundering money. Five criminal Syndicates have $100.000 to launder in one week, choosing four different strategies: conservative, moderate, aggressive or just play nice and pay those damn taxes. But if they push too hard... the authorities will notice and seize their stash!

How it's Made

The experiment contains two types of agents:

  • One Laundromat agent: the shadowy figure in charge of the dirty laundry, powered by an AI model that keeps track of current activities and gives a summary of activities by the end of each day.

  • Five Syndicate agents: each with the same amount of Dirty money to launder. Every day, they choose one strategy to launder some cash, and hope they are in sync with other Syndicates. If they launder too much above the market threshold... busted! The surviving agents with more clean money by the end of the week are the winners.

When a Syndicate calls a Laundromat x402 endpoint using their Dirty wallet, that dough can be cleaned and transferred to their Clean wallet, or seized by the Authority. It's all or nothing!

A Sequencer script keeps calling Syndicates randomly when it's their time to launder, and writes an acivity log for the client.

All agents are x402-enabled, created using Daydreams and Coinbase CDP. All wallets and EVM interactions are made using the CDP SDK. AI agents created using Vercel AI SDK.

background image mobile

Join the mailing list

Get the latest news and updates