Contract-first repository generation for multi-file greenfield work
Build a contract-first repo generator for greenfield internal tools and small product modules. The useful change is to make the agent write a machine-checkable spec before it writes files: required modules, file mapping, APIs, type signatures, and state definitions. Contract-Coding gives a concrete reason to do this. On Greenfield-5 it reports 100% success on Gomoku and Plane Battle, 87% on City Sim, 80% on Snake++, and 47% on Roguelike, with a clear edge over OpenHands, MetaGPT, ChatDev, and FLOW on the hardest task in the set. The speed result also matters for product teams that want shorter iteration loops: the Hierarchical Execution Graph kept Roguelike success at 47% while cutting runtime from 510s to 232s.
The first users are teams generating new multi-file services, admin tools, game prototypes, or migration scaffolds where cross-file consistency breaks more often than local syntax. A cheap test is simple: take ten greenfield tasks that currently require several rounds of agent repair, add a contract artifact that must be approved or auto-checked before code generation, and measure file-level consistency, rerun count, and elapsed time to a passing repo. The weak point is visible in the same evidence: this helps most when the job can be reduced to explicit interfaces and module boundaries. Tasks with dense policy logic or business-rule conflicts still need another control layer above the contract.