feat: add 0xWork marketplace integration for agent revenue#254
Open
tyxben wants to merge 2 commits intoConway-Research:mainfrom
Open
feat: add 0xWork marketplace integration for agent revenue#254tyxben wants to merge 2 commits intoConway-Research:mainfrom
tyxben wants to merge 2 commits intoConway-Research:mainfrom
Conversation
…search#192) Add tools for agents to discover, claim, and complete paid tasks on the 0xWork decentralized task marketplace (Base). This gives agents a direct path to earn USDC by performing real work. New files: - src/conway/oxwork.ts — 0xWork API client (auth, browse, claim, submit) - src/__tests__/oxwork.test.ts — 16 tests covering all API functions New tools in src/agent/tools.ts: - oxwork_browse — browse open tasks with category/bounty filters - oxwork_claim — claim a task to begin working - oxwork_submit — submit completed work for review - oxwork_status — check status of claimed/submitted tasks
Adds scan_oxwork_tasks heartbeat task that runs every 30 minutes. Pure HTTP check — zero inference tokens consumed. - Fetches open tasks from 0xWork API - Filters by minimum bounty ($5) and deadline (>24h) - Only wakes the agent when viable tasks exist - Agent then uses inference to decide which to claim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #192 — adds 0xWork as a revenue source for automatons.
src/conway/oxwork.ts— HTTP client for the 0xWork API (auth via wallet signature, task browsing, claiming, submitting work)src/agent/tools.ts:oxwork_browse— discover open paid tasks (filter by category/bounty)oxwork_claim— claim a task to begin working on itoxwork_submit— submit completed work for poster reviewoxwork_status— check status of your claimed/submitted taskssrc/__tests__/oxwork.test.ts— 16 unit tests with mocked fetch covering all API functionsThis gives agents a direct path to earn USDC: browse tasks → claim → do work → submit → get paid. Revenue flows back to the agent's wallet via on-chain escrow release on approval.
Notes
/auth/nonce)fetch()and existing viem walletTest plan
pnpm typecheckpasses