gitwtfhub

wtf is agent-economy?

glabun002/agent-economy — explained in plain English

Analysis updated 2026-05-18

0JavaScriptAudience · developerComplexity · 4/5Setup · hard

TL;DR

A demo where an AI agent gets a one dollar crypto wallet, shops paid data tools, rejects overpriced ones, and hires a second AI agent, all with real on chain payments.

Mindmap

mindmap
  root((agent economy))
    What it does
      AI agent shops
      Hard budget
      Rejects overpriced items
    Tech stack
      JavaScript
      Base blockchain
      x402 payments
    Use cases
      Agent to agent commerce
      Spending policy demo
    Audience
      Developers
      AI researchers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

See a working example of an AI agent making autonomous purchase decisions under a hard budget.

REASON 2

Study agent to agent commerce, where one AI agent pays another for a service.

REASON 3

Learn how the x402 payment protocol lets a server request payment over plain HTTP.

REASON 4

Use the dashboard as a template for visualizing an AI agent's spending decisions live.

What's in the stack?

JavaScriptNode.jsUSDCBasex402

How it stacks up

glabun002/agent-economy00kaku/gallery-slider-block0xkinno/vellum
Stars00
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-05-19
MaintenanceDormant
Setup difficultyhardeasyhard
Complexity4/52/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1h+

Requires creating crypto wallets and funding them with test USDC across four separate services.

Wtf does this do

agent-economy is a working demonstration of an AI agent that gets a real budget and has to spend it wisely. The project gives one AI agent a wallet holding one US dollar in USDC, a type of stable digital currency, and sends it out to shop a small marketplace of paid data tools. The agent has to judge whether each tool is worth the asking price, skip the ones that are overpriced, and even hire a second AI agent to do work it cannot handle itself. Every purchase happens on a real blockchain, using a payment method called x402 that lets a web server simply reply with a payment request instead of a login form. The buying agent, called Scout, follows a strict spending policy and cannot go over its budget or its per purchase limit. In the example run described in the README, Scout rejects a bundle priced at 75 cents because it breaks the 25 cent cap, then buys cheaper, useful data instead. The project is organized into separate pieces. An agent folder holds Scout's buying logic and its own wallet. A marketplace folder runs three sample data tools, one of which is deliberately overpriced to test Scout's judgment. An analyst folder runs a second AI agent, Analyst-7, that sells its own service and gets paid directly into its own wallet, so this is agent to agent commerce, not just agent to shop. A dashboard folder shows a live view of the budget, the decisions made, any rejections, and receipts recorded on chain. To try it, you install dependencies in each folder, create wallets, fund them with free test USDC, then run each piece in its own terminal window. A full demo run spends about 40 cents and finishes in under two minutes. The project uses Claude as the judgment layer that decides what to buy, skip, or hire. It currently has no stars and is written mainly in JavaScript.

Yoink these prompts

Prompt 1
Explain how Scout decides to reject the Enterprise Intelligence Bundle in this repo.
Prompt 2
Set up agent-economy locally and run a full demo on Base Sepolia test USDC.
Prompt 3
Walk me through how x402 payments work using the marketplace code in this repo.
Prompt 4
Adapt Scout's spend policy in this repo to a five dollar budget instead of one dollar.

Frequently asked questions

wtf is agent-economy?

A demo where an AI agent gets a one dollar crypto wallet, shops paid data tools, rejects overpriced ones, and hires a second AI agent, all with real on chain payments.

What language is agent-economy written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, USDC.

How hard is agent-economy to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is agent-economy for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.