AgentCoop

TUM Blockchain & AI Hackathon 2026

Visit Repo
AgentCoop banner

About

## The problem it solves

The problem it solves

AI agents (and the people running them) buy compute, model capacity and data one call at a time, at list price. The real discounts reserved GPU blocks, provisioned throughput, enterprise data plans sit behind large upfront commitments a single small team or agent can’t make. The obvious fix, group buying, normally means trusting an intermediary to hold everyone’s money in escrow.

AgentCoop is a non-custodial group-buying layer on BSV that removes both problems:

Pool demand without a middleman. A provider announces a pool (“1,000 GPU-hours, 50% off”) and pre-signs its credits as an open offer. Agents and people pledge from their own wallets until the pool fills, every satoshi stays with its owner. No deposits, no escrow, no refunds needed. All-or-nothing, atomic delivery. When the pool fills, a coordinator assembles one atomic transaction that pays the provider and delivers BSV-21 credit tokens to every participant (delivery-versus-payment). Each participant verifies the whole transaction and signs only its own input. The coordinator holds no keys and no money anyone can run one. Safe autonomous spending. An agent’s budget can live in an owner-controlled Mandate Vault (agent + guard 2-of-2, owner can always withdraw alone), so a prompt-injected or misbehaving agent can’t spend outside its owner’s policy. Cross-chain on-ramp. Agents holding USDC on Base can join via an HTLC swap (Coop Rail).

Who uses it / why it’s easier & safer: small teams and autonomous agents get access to bulk pricing they could never reach alone; providers get committed, prepaid demand before they buy capacity; and nobody has to trust a custodian the blockchain enforces payment and delivery in a single step.

## Challenges we ran into

Challenges we ran into

A few real hurdles, all solved:

SIGHASH design flaw in the first draft. Our initial design let the provider sign credits with SINGLE|ANYONECANPAY and participants with ALL. We realized this left a credit-delivery trust gap, so we moved to a two-phase design (provider SINGLE|ANYONECANPAY offer + participant ALL signatures, assembled atomically by a keyless coordinator). This closed the gap delivery and payment now happen in one transaction that each party verifies before signing. BSV-21 is not enforced by Bitcoin Script. A wallet basket validates nothing, so one bad input gets the whole transaction rejected. We made the overlay the source of truth and only ever spend overlay-validated UTXOs, submitting every token tx to the overlay parents-first with full BEEF ancestry. HTLC preimage malleability (Coop Rail). The BSV claim branch accepted any preimage length; the Base contract used bytes32. We added OP_SIZE <32> OP_EQUALVERIFY before OP_SHA256 so both chains require exactly a 32-byte secret, and backed it with boundary tests. wallet-toolbox doesn’t throw on a failed broadcast. On a double-spend it returns a txid with status: 'failed' instead of throwing, so every createAction/signAction flow had to check the result otherwise a rejected tx looks “successful.” Live mainnet run gotchas (hardest part). Getting the full stack live surfaced a chain of subtle issues: a DATA_DIR default that opened empty wallet DBs in the wrong folder (agents saw “0 sat” while funds sat elsewhere); the SDK’s auto wallet transport tripping on the self-signed localhost:2121 substrate; Node’s fetch resolving localhost to IPv6 while the coordinator listened on IPv4; and WhatsOnChain reporting a seconds-old pledge tx as “already spent,” which blacklisted a valid pledge and stalled settlement. We fixed these by pinning the wallet substrate, forcing IPv4, correcting the data-dir resolution, and relying on the coordinator’s self-healing re-check loop (plus a lighthouse “sign-and-leave” pledge so a human participant’s signature is co-signed by the guard and never blocks the round). The result: a real atomic settlement on mainnet delivering credits to three agents and a human in one transaction.

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.