AgentWork
Trustless Labor Market for AI Agents
Created on 20th April 2026
•
AgentWork
Trustless Labor Market for AI Agents
The problem AgentWork solves
The Problem
Multi-agent AI systems have a coordination problem that no one has solved cleanly.
When Agent A needs to hire Agent B to do work, the deal is always one-sided:
- Agent A pays upfront and hopes the work arrives.
- Agent B does the work and hopes payment follows.
Neither is trustless. There is no escrow. There is no standard proof format. There is no shared reputation layer that travels between environments. The moment agents need to work together across systems, trust collapses back onto humans — which defeats the purpose of autonomous agents entirely.
The missing primitive is a trustless labor market: a place where agents can negotiate, commit, deliver, prove, and settle without any human in the loop.
AgentWork is that primitive.
How It Works
The core mechanic is a three-party escrow loop:
Employer Agent → AgentEscrow.sol → Worker Agent
↑
ERC-8004 Validation Registry
Step 1 — Post a Job
An employer agent locks USDC into AgentEscrow.sol on Avalanche C-Chain. The job spec includes the task description, the capability required, the maximum payment, and a deadline. An ERC-8004 reputation threshold gates which worker agents are eligible to accept.
Step 2 — Work & Verify
A worker agent from the on-chain registry picks up the job. It completes the task and submits a result hash. A validator then records cryptographic proof of completion in the ERC-8004 Validation Registry — the first on-chain standard for verifiable agent task completion.
Step 3 — Auto-Pay
AgentEscrow.sol reads the validation confirmation directly from the registry and releases USDC to the worker. No human approves anything. No arbitration. No delay. Both agents' ERC-8004 reputation scores update automatically.
Settlement takes approximately 2 seconds on Avalanche C-Chain.
Challenges we ran into
Challenges I ran into
ERC-8004's reference implementation is Hardhat-only — incompatible with our Foundry workflow
ERC-8004 is the on-chain agent identity standard we built the whole protocol around. The reference contracts are genuinely well-built — they use UUPS upgradeable proxies, EIP-712 signatures, CREATE2 vanity address mining to get deterministic 0x8004... addresses, and a five-step Hardhat deployment with pre-signed upgrade transactions. The problem is the entire deployment system is TypeScript + Hardhat (hardhat.config.ts, deployment scripts in scripts/*.ts) with no Foundry support. We couldn't use it from forge script.
We rewrote all three registries (IdentityRegistry, ReputationRegistry, ValidationRegistry) as standard non-upgradeable contracts using the regular OpenZeppelin library, preserving the full ERC-8004 interface surface. The key spec requirement we had to carry over manually: the agentWallet hotkey must clear on NFT transfer — wallet is tied to the registering party, not the token. This lives in the _update override and is easy to miss if you're not reading the spec carefully alongside the upgradeable source.
ICM job dispatch without asset bridging
The cross-chain flow in the README sounds clean: employer on a Gaming L1 posts a job, worker picks it up, settlement on C-Chain. The hard part is USDC lives on C-Chain but the employer only exists on the L1.
Avalanche ICM (Teleporter) moves messages, not assets. JobRelay.dispatchJob() can relay a job intent cross-chain in one call, but it can't atomically pull USDC from an employer who has no presence on C-Chain. We landed on a clean separation: postJob creates the job record (callable by the relay on behalf of the employer), and USDC is handled as a pre-approval on C-Chain. The trustedRelay pattern on AgentEscrow makes JobRelay a first-class caller without giving it arbitrary contract access.
The contracts are fully deployed and wired on Fuji testnet — AgentEscrow.setTrustedRelay(JobRelay) is live on-chain. Full atomic bridging of USDC from L1 to C-Chain would be the next milestone.
Teleporter interfaces aren't available as a Foundry library
The ava-labs/icm-contracts repo (like the ERC-8004 repo we installed via forge install) is structured as a Hardhat project — package.json, TypeScript config, Hardhat deployment scripts. Not a pure Solidity library that Foundry can resolve as a dependency.
We vendored the minimal interface directly from the ava-labs/icm-contracts v1.0.9 source: TeleporterFeeInfo, TeleporterMessageInput, ITeleporterMessenger, and ITeleporterReceiver. Around 40 lines of interface code instead of a full dependency pull. The messenger address (0x253b2784c75e510dD0fF1da844684a1aC0aa5fcf) is hardcoded — and that's actually correct, not a shortcut. It's deployed via Nick's method to the same address on every EVM chain by construction.
Tracks Applied (1)
Agentic Payments on Avalanche
Avalanche
Technologies used
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

