deslop
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRemove AI code slop
移除AI生成的冗余代码
Check the diff against main and remove AI-generated slop introduced in the branch.
对比main分支的代码差异,移除当前分支中引入的AI生成的冗余代码。
Focus Areas
重点关注领域
- Extra comments that are unnecessary or inconsistent with local style
- Defensive checks or try/catch blocks that are abnormal for trusted code paths
- Casts to used only to bypass type issues
any - Deeply nested code that should be simplified with early returns
- Other patterns inconsistent with the file and surrounding codebase
- 不必要或与本地风格不一致的额外注释
- 在可信代码路径中异常存在的防御性检查或try/catch块
- 仅用于绕过类型问题的类型转换
any - 应通过提前返回简化的深层嵌套代码
- 与文件及周边代码库不一致的其他模式
Guardrails
注意事项
- Keep behavior unchanged unless fixing a clear bug.
- Prefer minimal, focused edits over broad rewrites.
- Keep the final summary concise (1-3 sentences).
- 除非修复明显bug,否则保持代码行为不变。
- 优先进行最小化、针对性的编辑,而非大范围重写。
- 最终总结需简洁(1-3句话)。