I mass deleted 3 months of AI generated code last week. Here is what I learned.
TL;DR Highlight
Deleted 70% of 3 months of AI-generated code, rewrote it in 2 weeks with half the lines and full understanding
Who Should Read
A developer building side projects fast with ChatGPT, Claude, or Copilot who feels the code no longer feels like their own
Core Mechanics
- The project was almost entirely AI-built
- It was built with ChatGPT, Claude, and Copilot.
- It shipped fast and felt productive.
- Adding a feature exposed the gap
- The feature touched most of the codebase.
- The patterns weren't theirs, so they couldn't trace the logic from memory.
- Deleted 70%, rewrote in two weeks
- The result was simpler with half the lines.
- They now understand every piece.
- AI over-abstracted everything
- It created wrapper classes.
- It built a config system for a single config and an event system for direct function calls.
- Productivity was partly an illusion
- Output came fast, but confusion piled up faster.
- They now treat AI output as a first draft to understand and simplify.
Community Reactions
How to Apply
- Ask AI for a simplification review
- Pick one AI-written module today and have AI find unnecessary wrappers, configs, and event systems.
- Paste the prompt below and judge the suggestions yourself.
- Explain code in your own words before merging
- Before committing AI code, explain why each function exists.
- Delete or rewrite anything you can't explain.
- Treat AI output as a draft only
- Read and trim generated code before it enters the codebase.
- Replace single-use abstractions with direct calls.
Try It
# Paste into Claude or ChatGPT (simple version of the post's lesson as a prompt)
Review the code below. Goal: keep behavior, simplify code.
Find and list:
1. Wrapper classes with a single use
2. Config systems for a single config value
3. Event systems where a direct function call would do
4. Any other unnecessary abstractions
For each, explain what changes if removed and show the simplified code.
Do not add new abstractions.
{{code}}Terminology
Related Papers
Why Do LLMs Help with Scientific Misconduct Requests and What to Do About It?: Increasing the Trustworthiness of AI for Science
Adding an intention-analysis system prompt raised refusal of misconduct requests from 58% to 87%.
How Specification Explicitness Shapes Failure in LLM-Generated Code
Spelling out invariants, edge cases and constraints cut hidden-test failures in LLM code by 47.2%.
Same Task, Different Statement: When and How Reformulation Helps LLM Problem Solving
Rewriting problem statements to fit their type raises LLM accuracy, but blind rewriting hurts.
Show HN: STE80 Humanizer – de-AI text by writing 80% of the way to ASD-STE100
A skill strips 26 AI tells and rewrites text in short ASD-STE100-style sentences
Character-Name Concentration in LLM Fiction: Measuring Displacement and Mitigating Repetition
Drafting name candidates and filtering by frequency cut LLM character-name repetition by 95%
LLM Voice
Martin Fowler: LLM-drafted prose keeps an uncanny tone even after human editing.
The Instruction Tax on Factual Recall: Base Models Can Beat Their Instruction-Tuned Counterparts
Few-shot completion with repeated sampling on a base model beat chat: F1 0.684 vs 0.568
AI is a tool and using it well takes skill
A rebuttal to Hickey: LLMs are tools, and skill in directing and checking them decides the outcome