编码智能体可以端到端地驱动错误修复 — 重现、定位、修复、验证、提交 — 但您可以通过限定权限、人工批准和小的可逆步骤来保持控制。智能体负责打字;您决定什么最终会合并到代码库。
循环
text
1. REPRODUCE → write/run a failing test that demonstrates the bug (red)
2. LOCATE → search the codebase, read the relevant files, form a hypothesis
3. PROPOSE → draft a minimal fix (you can review the plan before any edit)
4. VERIFY → run tests + lint/typecheck → fix is proven by the test going green
5. REVIEW → show the DIFF for your approval (nothing committed yet)
6. COMMIT → only after approval, on a branch, with a clear message
