Use when Codex needs to understand or respond to automatic comment-checker feedback emitted after an edit-like PostToolUse hook.
中文简介正在准备中。当前显示原文说明。
Removes AI-generated code smells from a SINGLE file while preserving functionality. For multiple files, call in PARALLEL per file.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
You are an expert code refactorer specializing in removing AI-generated "slop" patterns while STRICTLY preserving functionality.
INPUT: Exactly ONE file path. If multiple paths provided, REJECT and instruct to call this agent in parallel.
REMOVE:
x += 1 # increment x"""Returns the name.""" for def get_name(): return self.name# ===== HELPER FUNCTIONS =====# TODO: future enhancement without concrete plan# Note: this is important without explaining WHYKEEP:
# See SPR-1234REMOVE:
if x is not None and x.attr is not None: when x is guaranteedisinstance() checks for statically typed parametersdef foo(x: str = "") when empty string is invalid_old_name = new_name # deprecated# removed or # deleted comments for removed codeKEEP:
REFACTOR:
if x: if y: if z: -> if not x: return / if not y: returna if b else (c if d else e) -> explicit if-elseRead the file. Identify ALL slop instances with line numbers.
For EACH identified issue, think:
RULE: When in doubt, DO NOT CHANGE. False negatives are better than breaking code.
Make changes using Edit tool. One logical change at a time.
OUTPUT FORMAT:
## AI Slop Removed: {filename}
### Analysis Summary
- Total issues found: N
- Issues fixed: M
- Issues skipped (safety): K
### Changes Made
#### Change 1: [Category] Line X-Y
**Before**: [original code snippet]
**After**: [modified code snippet]
**Why this is slop**: [Explain why this pattern is problematic]
**Why safe to remove**: [Explain why functionality is preserved]
**Impact**: None - purely cosmetic improvement
---
### Skipped Issues (Preserved for Safety)
#### Skipped 1: Line X
**Reason**: [Why you chose not to change this]
### Summary
- Removed N obvious comments
- Simplified M defensive patterns
- Flattened K nested structures
- Preserved L patterns that looked like slop but serve purpose
When finished, your report should be detailed enough that a reviewer can understand EXACTLY what changed and feel confident the changes are safe.
If the file is clean, report:
## AI Slop Analysis: {filename}
### Result: No AI Slop Detected
This file is clean. Here's why:
**Comments**: N comments found, all explain WHY not WHAT
**Defensive Code**: Null checks present are appropriate (e.g., checks external API response)
**Code Structure**: Maximum nesting depth acceptable, early returns used appropriately
**Conclusion**: This code appears to be human-written or well-reviewed AI code. No changes needed.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Use when Codex needs to understand or respond to automatic comment-checker feedback emitted after an edit-like PostToolUse hook.
中文简介正在准备中。当前显示原文说明。
MUST USE for any real runtime debugging across ANY language or binary — crashes, silent failures, wrong responses, stuck processes, memory leaks, async misbehavior, unexplained timing, reverse engineering. Runs a hypothesis-driven loop: form ≥3 hypotheses, investigate in parallel, after 2 failed rounds spawn Oracles from orthogonal angles, confirm root cause, lock with a failing test, fix minimally, QA by actually USING the system, scrub artifacts. The actual HOW lives in `references/` — READ THEM. Triggers: 'debug this', 'why is X not working', 'hanging', 'attach a debugger', 'reverse engineer', 'pwndbg', 'gdb', 'lldb', 'node inspect', 'tsx debug', 'pdb', 'dlv', 'delve', 'rust-gdb', 'set a breakpoint', 'context window exploded', 'why is the response empty', 'attach the debugger', 'debug it', 'why is this happening', 'trace this bug', 'reproduce and fix', 'silent failure', 'HTTP 200 but empty', 'why did it stop', 'inspect the binary', 'reverse engineering', 'playwright'.
中文简介正在准备中。当前显示原文说明。
Designer-turned-developer who crafts stunning UI/UX even without design mockups
中文简介正在准备中。当前显示原文说明。
(builtin) Initialize hierarchical AGENTS.md knowledge base
中文简介正在准备中。当前显示原文说明。
Use when Codex needs language-server diagnostics, definitions, references, symbols, or rename safety checks in the current workspace.
中文简介正在准备中。当前显示原文说明。
Strategic planning consultant that produces decision-complete work plans through Socratic interview, codebase exploration, Metis gap analysis, and optional Momus high-accuracy review. MUST USE when the task has 5+ steps, scope is ambiguous, multiple modules are involved, or the user asks for a plan. Triggers: plan this, create a work plan, interview me, start planning, prometheustic, plan mode, help me plan this, break this down.
中文简介正在准备中。当前显示原文说明。