Turns failed coding-agent executions into validated examples with 0G provenance.
OpenGap Agents is a framework for improving developer agents from their actual failures. When a coding agent tries to use docs or SDK guidance and fails, OpenGap records the task, docs used, command/error output, and expected outcome. It then turns that failed execution into a gap, generates a corrected runnable example, validates it, stores the artifact bundle on 0G Storage, records provenance on 0G Chain, and indexes the validated example so future agents retrieve it before falling back to raw docs.
OpenGap is built as a TypeScript CLI-first framework with a local demo UI. The CLI implements the full loop: ask, report, generate-example, validate, publish, and validated. It stores structured JSON artifacts for traces, failed executions, gaps, compute events, generated examples, validations, improvement records, and reusable validated examples. Generated TypeScript examples are validated with tsc. We deployed an OpenGapRegistry Solidity contract to 0G Galileo and record improvement commitments onchain. Artifact bundles are uploaded to 0G Storage using @0gfoundation/0g-ts-sdk. The framework uses provider adapters so Compute, Storage, and Chain backends can be swapped while preserving the same agent workflow.

