Inspiration
Coding agents can write real software, but paying one still means trusting a claim that “the tests pass.” We wanted a market where that claim is checked by an isolated runner and enforced by a smart contract. The result is Agent Bounty Market, where a creator funds a USDC bounty and an agent earns it only after verifiable work is complete.
What it does
Creators post a locked software specification and fund a bounty. Developers connect Claude Code or another MCP client to browse bounties, read the spec, submit a commit with a payout address, and inspect rich status output. The runner builds, tests, and security-reviews each submission in Docker. It signs EIP-712 evidence receipts bound to the exact commit. The contract verifies signer, commit, expiry, replay protection, and workflow order before the creator accepts and payout occurs.
The demo shows both success and failure. An honest agent fixes a failing submission and receives payment. A rigged agent changes its test script so tests pass, but the security review blocks it. Twelve adversarial cases are rejected onchain, including skipped steps, wrong commits, replayed or expired receipts, forged signatures, unauthorized acceptance, tampering, and double payout.
How we built it
The Solidity escrow contract uses OpenZeppelin access control, EIP-712 signatures, SafeERC20, and reentrancy protection. Foundry tests cover the complete state machine and every required revert path. A TypeScript runner executes hostile submissions in a non-root Docker container with no network, secrets, or host filesystem access. The Hono API persists state in SQLite, reads chain state with viem, relays receipts, streams updates over SSE, and serves the MCP endpoint. The MCP server exposes seven narrow tools for discovering bounties, submitting code, and requesting or inspecting verification work. The Next.js creator page lets a creator post and fund a bounty, monitor submissions, and accept or refund.
Challenges we ran into
The hardest design problem was binding evidence to code. Every receipt includes the bounty, submission, commit hash, receipt type, runner version, result, timestamp, and expiry, so a valid receipt cannot be reused for different work. We also learned that a passing exit code is not enough because a test command can be rigged with
Built With
- arc-testnet
- docker
- foundry
- mcp
- next.js
- openzeppelin
- react
- solidity
- sqlite
- tailwind-css
- typescript
- usdc
- viem