Structured issue requirements before repository patch generation
Repository issue agents need a requirement-writing step before they attempt a patch. REAgent gives a concrete pattern: turn the issue and repository context into a structured requirement with background, reproduction steps, expected behavior, root cause, modification location, and success criteria; generate tests from that requirement; then refine the requirement when the tests expose conflict, omission, or ambiguity. The reported gain is large enough to justify building this as a separate product layer for teams already using SWE-bench-style issue agents: 9.17% to 24.83% more resolved issues across three benchmarks, with average improvement of 17.40%.
A practical build is a repo-connected triage tool that opens every incoming bug or feature request by drafting the requirement record first, showing missing fields to the developer, and only then handing the task to the patch agent. The first users are teams with high issue volume and uneven ticket quality, where missing reproduction steps and unclear success criteria waste agent runs. A cheap check is simple: take a sample of your own unresolved issues, add the requirement record and test-generation loop, and compare patch acceptance and rerun count against the current flow.