Fighting AI Code Slop With Package Cohesion Before Review

newlido · reddit · 2026-09-11

A simple prompting strategy to curb AI-generated messy codebases: ask the model to consider package cohesion first — siblings should share the same architectural role and variation axis (e.g. entrypoints/cli.py vs gui.py, or models/building.py vs school.py), never a mix of everything.

Original post →

More from coding & agent

coding & agent channel →