Seedlabs

GreenDraft: a repair gate that turns AI test drafts into passing tests

A tool that takes rough AI-generated tests and fixes them until they actually pass and run.

A bolt-on reliability layer for AI coding assistants that intercepts LLM-generated unit test drafts, fixes their compile and runtime errors with template-based repair, re-prompts with coverage feedback, and returns only green tests — so assistant-written tests actually land in the repo.

Computer ScienceSoftware Testing and Debugging Techniques
LLM Evaluation and BenchmarkingAI developer tools — IDE assistants and AI test-generation vendors

Concept

A bolt-on middleware layer for any tool whose LLM drafts unit tests — Copilot, Cursor, AWS Q Developer, in-house enterprise agents. When a draft test arrives, GreenDraft executes it, applies template-based repair to the hallucination-induced compile and runtime errors, re-prompts the model with coverage information extracted from the tests that did pass, and injects successful attempts positively into the prompt so the model stops re-emitting the failures it just produced (the repetitive-suppression problem). Only tests that compile, run, and assert are returned, each with a per-draft coverage delta. Shipped as an IDE plugin and an API so assistant vendors and enterprise platform teams can wire it into existing test-generation flows. Java/JUnit first, matching the demonstrated setup.

Why now

TestART [0] isolates exactly why LLM-written tests disappoint — hallucinated compile/runtime errors, no coverage feedback, and repetitive suppression of repair attempts — and shows that fixing all three together (template-based repair, coverage-guided feedback, positive prompt injection) yields an 18% pass-rate improvement and a 20% coverage improvement across three dataset types. The prior empirical evaluation [1] confirmed that unaided LLM test output routinely fails without few-shot scaffolding. AI assistants now draft tests by default in mainstream IDEs, so a repair layer that converts those drafts into green, coverage-reporting tests addresses the single biggest trust gap in AI-assisted testing. The evidence is benchmark-level, so the integration should launch where stacks match (Java/JUnit) and expand as results generalize.

Written by GLM · 6 Dec 2026

AI assessment

Backed by 2 papers94

An exceptionally well-supported, focused tool that solves a high-friction problem in AI coding by turning unreliable test drafts into production-ready assets using a validated research framework.

Evidence strength
5/5
The idea directly implements the three-pronged approach (template repair, coverage feedback, and positive injection) validated in the TestART paper, showing a clear link between research results and product features.
Market pull
5/5
There is high urgency for AI coding assistants to move from 'suggesting' tests to 'providing' passing tests, as current hallucination rates are a primary friction point for enterprise adoption.
Novelty & moat
4/5
While ChartGuard handles repair for analysis code, GreenDraft focuses specifically on the unit-test lifecycle and coverage-guided co-evolution, filling a distinct gap in the AI-dev-tooling stack.
Feasibility
5/5
The MVP is highly feasible as it leverages existing compilers and coverage tools (JUnit/Java) to create a feedback loop, requiring no new model training.
Wedge clarity
4/5
The focus on Java/JUnit as a starting point provides a sharp, concrete entry point before expanding to other languages.
Simplicity / focus
5/5
The product is a focused 'repair gate' with a single clear purpose: ensuring generated tests are green and high-coverage.

Scored by Gemma 4 · 6 Dec 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.

Act on this idea

Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.

Who benefits

  • GitHubcompany

    Copilot routinely drafts unit tests that fail to compile or run; a repair layer that lands drafts green would raise suggestion acceptance and enterprise trust in Copilot-generated tests.

  • Qodocompany

    Its core product is AI test generation; adopting template-based repair plus positive prompt injection directly targets the pass-rate and coverage shortfalls the paper quantifies (+18% pass, +20% coverage).

  • An AI-first IDE where test drafts are common; shipping only green, coverage-reporting tests differentiates it on reliability rather than raw generation volume.

  • Amazoncompany

    AWS Q Developer generates tests for enterprise Java estates; the same repair-and-feedback loop would improve the pass rate of generated tests for its largest accounts.

Research it builds on

  1. An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation
    Max Schäfer, Sarah Nadi, Aryaz Eghbali et al. · 2023 · 512 citations
    All ideas from this paper →
  2. TestART: Improving LLM-based Unit Test ing via Co-evolution of A utomated Generation and R epair I t eration
    Siqi Gu, Quanjun Zhang, Kecheng Li et al. · 2026 · 71 citations
    All ideas from this paper →
Leave feedback
feasibility