Skip to content

Instantly share code, notes, and snippets.

@ObaidUr-Rahmaan
Created January 4, 2026 20:13
Show Gist options
  • Select an option

  • Save ObaidUr-Rahmaan/7f4c53ad8bc57e0230a2b4f1c8990a9e to your computer and use it in GitHub Desktop.

Select an option

Save ObaidUr-Rahmaan/7f4c53ad8bc57e0230a2b4f1c8990a9e to your computer and use it in GitHub Desktop.
Clean PR

Remove AI code slop

Check the diff against main, and remove all AI generated slop introduced in this branch.

This includes:

  • Extra comments that a human wouldn't add or is inconsistent with the rest of the file
  • Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
  • Casts to any to get around type issues
  • Any other style that is inconsistent with the file

Report at the end with only a 1-3 sentence summary of what you changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment