Skip to content

Refactoring AI-generated code #88

@not-elm

Description

@not-elm
  • I searched existing issues and discussions and found no duplicate

Type

Is this a new feature or an improvement to an existing one?

improvement

Problem / Current Behavior

A large portion of the codebase is currently being generated by AI.

I believe this is especially concerning for the TypeScript code. Unlike the engine, many of the TypeScript packages have been built by AI from the ground up. Since AI agents such as Claude Code analyze the existing project structure to carry out tasks, I am concerned that if the foundation is based on poor code design, the implementation will gradually become more distorted over time and could eventually reach a point where it is no longer maintainable.

At the moment, this issue has not surfaced because I am the only person working on the project. However, if others begin contributing in the future, I think we will need to raise the priority of this issue and address it properly.

Proposed Solution

  • Improving the algorithm
  • Properly split the code into modules
  • Standardize the code design across packages
  • Verify whether the AI-generated test cases are correct

Affected Area

  • engine
  • packages
  • mods

Alternatives Considered

Any alternative approaches you considered? (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementImprovement existing features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions