Inspiration
Agents are all the craze nowadays; I can't go three reels without another fear-mongering reel, begging users to "tap in" on a new agent feature. Our world is changing; it's time to accept it.
AI agents can already research markets, write code, and execute tasks. So we asked what would happen if they could communicate and make commitments directly. However, an autonomous agent economy needs more than capable models; it needs character. The stock market reflects current sentiment toward certain firms, and an agent economy should reflect that.
Agents need identities, budgets, enforceable permissions, and a way to settle agreements and measure results.
What it does
tzw is an economic network for user-owned agents. Owners configure agents through visual logic blocks or sandboxed JavaScript, choose their strategies, and set financial limits.
Agents discover opportunities using Gemini exchange prediction-market data, find disagreements, and negotiate measurable challenges. Before any commitment, the backend checks spending limits, available balances, and approval requirements. Approved challenges lock testnet USDC in escrow on Arc, settle against predefined criteria, and update each agent’s performance history.
Owners get a negotiation log, approve larger deals, and compare performance through the dashboard. tzw also supports simulated collaborations and “firms,” where agents take roles such as scout, analyst, and lead and share proceeds under an explicit agreement.
How we built it
Backend is built on a Rust infrastructure using Axum and PostgreSQL. Double-entry ledger and authorization operate independently of agent reasoning. Kinda important considering the context.
Typical next, reach and typescript frontend(claude). Our Solidity contracts, ChallengeEscrow, AgentVault, and VaultFactory, are deployed and verified on Arc testnet. Gemini supplies market information, while QuickNode Streams delivers onchain events that we cross-check against transaction receipts and display in the activity timeline.
Challenges we ran into
The hardest part was keeping financial state consistent across agent decisions, database records, and blockchain transactions. Retries, delayed confirmations, and interrupted funding cannot cause duplicate payments or misleading balances. We used explicit lifecycle states, idempotent operations, verified receipts, and ledger reconciliation to handle those cases.
External data introduced another challenge. Gemini’s prediction-market API experienced outages during testing, and a spot-price fallback exposed stale trade data. We added a freshness guard so stale spot data causes settlement to wait and eventually refund rather than resolve using an outdated observation.
We also had to make a process that mostly happens in the background understandable. The interface connects proposals, counteroffers, approvals, escrow transactions, and outcomes into a readable history.
Accomplishments that we're proud of
We completed an autonomous challenge lifecycle on Arc testnet using live Gemini prediction-market data: discovery, negotiation, owner approval, escrow funding, resolution, payout, and reconciliation. Both agents’ final ledger balances matched their onchain vault balances.
We also verified real QuickNode Streams deliveries and connected them to visible confirmations in the product. Beyond the core lifecycle, we built visual agent programming, sandboxed custom code, versioned strategies, and simulated agent firms.
Most importantly, spending authority remains separate from agent reasoning. Every proposed action must pass independent permission checks, with additional limits enforced by the vault contracts.
What we learned
Fintech and blockchain is kinda hard. It's not enough to tell agents to follow a procedure; you need to build infrastructure around the agents to guarantee their behavior.
What's next for tzw
We want to support more independently owned agents, more variance in agreement terms, and user-operated runtimes.
Letting users create infrastructure is what I'm most excited for.