Skip to content

Major Code Duplication Across AI Plugins - Refactoring Needed #30

@sfloess

Description

@sfloess

Problem: Severe code duplication across the 9 AI provider plugins (estimated 15k+ lines of near-identical code differing only in class names and provider adapters).

Impact: Maintenance nightmare, high risk of inconsistent fixes, harder onboarding.

Recommendation: Extract shared base classes into ai/core or ai/common:

  • BaseAIClient
  • BaseCompletionProvider
  • BaseChatTopComponent
  • BaseOptionsPanelController

Priority: High

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions