Seedlabs

SmellSweep: test-gated, per-verified-fix code-smell cleanup for legacy Java

A service that cleans up old Java code and only charges the customer for fixes that pass their tests.

A done-for-you cleanup service for old Java codebases: AI models reduce code smells, every change must pass the customer's own unit tests before a pull request is opened, and the customer pays only for fixes that are verified and merged.

Computer ScienceSoftware Engineering Research
LLM Evaluation and BenchmarkingLegacy Java technical-debt remediation for enterprises and open-source foundations

Concept

A managed technical-debt remediation service scoped tightly to legacy Java estates. The service ingests a customer's Java modules, runs LLM refactoring passes focused on code-smell elimination using the model class demonstrated to reduce smells most (LLaMA-3-class, median 15.1% smell reduction in the study), samples up to 5 candidates per change, and only opens a pull request for candidates that pass the customer's own unit test suite (production-class models demonstrated >90% pass@5 on multi-file refactorings). Pricing is per verified, merged smell fix. Complex, context-sensitive refactorings such as attribute encapsulation are explicitly out of scope and left to the customer's engineers — the service only takes refactoring classes where LLMs are demonstrably safe and effective.

Why now

The study [0], run on 30 real open-source Java projects, shows that LLM refactoring now delivers measurable, test-verified quality gains: a median 15.1% code-smell reduction from the best model and >90% pass@5 unit-test success for production models on multi-file refactorings. That combination — quantified quality lift plus high test-pass reliability — is what makes per-fix-priced remediation economically viable rather than a research demo. Older corpus evidence that LLM-generated code can contain hallucinations beyond functional correctness [6] is precisely why every change is gated by the customer's own test suite instead of being trusted on static metrics alone.

Written by GLM · 29 Nov 2026

AI assessment

Backed by 2 papers87

A highly feasible, market-aligned service with strong evidence, though it lacks significant novelty compared to existing refactoring-router concepts.

Evidence strength
5/5
The idea directly leverages the 15.1% smell reduction and >90% pass@5 metrics from the cited empirical study, while correctly using the hallucination research to justify the test-gating mechanism.
Market pull
5/5
Enterprises with massive legacy Java estates have a high urgency to reduce technical debt, and a 'pay-per-verified-fix' model removes the primary risk barrier for procurement.
Novelty & moat
2/5
The idea is very similar to 'RefactorRouter' in its mechanism (test-gating, LLM dispatch, human escalation), differing primarily in its pricing model and focus on Java smells.
Feasibility
4/5
Building a pipeline that runs LLM prompts and executes existing unit tests is straightforward, though integrating with diverse enterprise CI/CD environments adds some friction.
Wedge clarity
5/5
The focus on 'code-smell cleanup' for legacy Java is a sharp, well-defined entry point that avoids the complexity of full-scale architectural migration.
Simplicity / focus
5/5
The product is a single, focused service with a clear value proposition and a narrow scope of work.

Scored by Gemma 4 · 29 Nov 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

  • SonarQube flags code smells across millions of Java projects but leaves fixing to developers; a test-gated LLM remediation service converts their smell reports into merged fixes, massively increasing the value of their detection product.

  • The ASF maintains hundreds of aging Java projects — exactly the kind of code in the study's 30-project corpus — and automated, test-gated smell cleanup directly reduces the workload on limited volunteer maintainers.

  • One of the world's largest legacy Java estates; paying per verified, test-passing smell fix lets them burn down technical debt without funding a large internal refactoring platform team.

  • Netflixcompany

    Netflix runs a large Java microservices estate where smell-heavy legacy services slow onboarding and increase change risk; a per-fix cleanup service gated by their own test suites fits their engineering model.

Research it builds on

  1. Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Code
    Fang Liu, Yang Liu, Lin Shi et al. · 2026 · 354 citations
    All ideas from this paper →
  2. An Empirical Study on the Code Refactoring Capability of Large Language Models
    Jonathan Cordeiro, Shayan Noei, Ying Zou · 2026 · 96 citations
    All ideas from this paper →
Leave feedback
feasibility