﻿---
title: "第二次犯错就开 retrospective"
summary: "同一类失误出现两次，让 Codex 复盘并更新 AGENTS.md。指导应来自真实摩擦。"
category: agents-md
level: intermediate
surfaces: [cli, app]
tags: ["retrospective", "演进", "团队"]
canonical: /tips/retrospective-into-agents/
---

# 第二次犯错就开 retrospective

同一类失误出现两次，让 Codex 复盘并更新 AGENTS.md。指导应来自真实摩擦。

```text
你刚才又引入了未使用的依赖。做一次简短 retrospective：
1. 为什么会发生
2. 哪条规则能在下次开工前拦住它
3. 直接补进 AGENTS.md，保持简短
```

这比预先写 80 条「最佳实践」更有效。规则库会变成你们仓库的真实操作手册。

## 来源

- [OpenAI · Best practices](https://developers.openai.com/codex/learn/best-practices)
