AgentCourt is a verifiable execution layer and decentralized arbitration protocol for AI agents, built on 0G. It makes every AI decision tamper-proof and disputable: inference runs inside TEE (Trusted
AgentCourt is a verifiable execution layer and decentralized arbitration protocol for AI agents, built on 0G. Every AI decision runs inside a TEE (Trusted Execution Environment) via 0G Compute, producing cryptographic attestation. Execution data is stored on 0G Storage using dual-layer KV + Log with Merkle proofs, and results are anchored on 0G Chain. When disputes arise, a TEE-secured arbiter reviews evidence and settles automatically via smart contract escrow — no human intermediary needed. All 5 core 0G components are integrated with real SDK calls, zero mocks.
<p>All work was completed during the hackathon period (May 2–3, 2026). This project was built from scratch — no pre-existing code was reused.</p><p>Day 1 (May 2):</p><p>- Designed and implemented the full system architecture: 3 Solidity smart contracts (TaskRegistry, DisputeResolution, AgentRegistry), TypeScript SDK with TEE client, dual-layer storage client, proof builder, agent identity module, and automated arbiter service.</p><p>- Created architecture diagrams and data flow documentation (sequence diagrams for normal execution and dispute resolution).</p><p>- Built the arbiter agent service for automated dispute resolution with TEE-signed verdicts.</p><p>- Wrote unit tests for storage client and proof builder.</p><p>- Set up monorepo tooling (pnpm workspaces, npm scripts, CI pipeline via GitHub Actions).</p><p>- Resolved dependency and TypeScript compilation issues across SDK and dashboard packages.</p><p>Day 2 (May 3):</p><p>- Deployed all 3 smart contracts to 0G Mainnet (Chain ID: 16661): TaskRegistry, DisputeResolution, AgentRegistry.</p><p>- Executed real on-chain interactions: registered 2 agents (Alice, Bob), anchored 3 tasks with TEE signatures, submitted and resolved 1 dispute (FavorClient verdict).</p><p>- Replaced all mock/simulated code with real 0G SDK integrations:</p><p> - TEE inference via @0glabs/0g-serving-broker (createZGComputeNetworkBroker, listService, getRequestHeaders, processResponse)</p><p> - Storage via @0glabs/0g-ts-sdk (ZgFile, merkleTree, indexer.upload for Log layer; Batcher, KvClient for KV layer)</p><p>- Built and deployed an interactive demo website (<a href="https://bagpx66z.mule.page">https://bagpx66z.mule.page</a>) showcasing the full pipeline: TEE inference, storage logging, chain anchoring, proof verification, and dispute resolution — all with step-by-step terminal simulations.</p><p>- Recorded and published a 3-minute demo video.</p><p>- Finalized documentation (README in English and Chinese) with real SDK code examples, mainnet contract addresses, and network endpoint references.</p><p>Key achievement: Production-grade integration of all 5 core 0G components (Compute, Storage KV, Storage Log, Chain, Agent ID) with zero mocks and zero simulated data.</p>
<p><span style="color: rgb(0, 0, 0)">Not applicable. AgentCourt is an open-source project built during this hackathon. No fundraising has been conducted.</span></p>