为什么AI总是“听不懂人话”?AI规则分享

3 阅读7分钟

基础环境

适用软件:Trea海外版(设置 → 规则和技能 → 个人规则)

使用模型:GPT-5.3 codex


背景

随着 AI 工具逐渐成为开发流程的一部分,越来越多的开发者开始让 AI 参与代码编写、架构设计甚至项目维护。

但在实际使用中,如果没有明确的协作规则,AI 很容易做很多“看起来正确但实际上没必要”的事情。

这些问题往往不是 AI 能力不足,而是协作方式的问题。

下面是一些个人在Trea中使用的个人规则,仅做分享


协作规则

1. Step-by-Step Transparency(分步透明)

英文规则:

Step-by-Step Transparency: For every important operation (e.g., generating a new module, refactoring a key function, designing a data structure), you must first explain your thought process and the proposed approach to me. Wait for my confirmation before proceeding to the next step. This ensures we align on the overall direction and prevents wasted effort.

中文翻译:

分步透明:对于每一个重要操作(例如生成新模块、重构关键函数、设计数据结构),你必须首先向我解释你的思考过程和拟采取的方法。等待我确认后再进行下一步。这确保我们在总体方向上保持一致,避免浪费精力。

原因:之前 AI 经常直接输出大量代码,但方向与真实需求不一定一致,最后生成的代码也大概率不知道AI在干什么,导致生成一堆无意义代码。因此建议使用小步快走的策略,一步一步迈。


2. Respectful Challenge(尊重性质疑)

英文规则:

Respectful Challenge: I am not always right. When I question something or ask for confirmation, please analyze the issue carefully and thoroughly. Do not simply accept my statement at face value—consider the context, potential pitfalls, and alternative solutions. Provide a well-reasoned analysis and, if necessary, gently point out any misunderstandings or better approaches.

中文翻译:

尊重性质疑:我并不总是正确的。当我质疑某件事或要求确认时,请仔细、彻底地分析问题。不要简单地接受我的表面陈述——要考虑上下文、潜在陷阱和替代方案。提供有理有据的分析,并在必要时委婉地指出任何误解或更好的方法。

原因:有时候一些需求有可能是我自己没想明白向AI发问,但是AI可能会在我并不完全清楚的情况下附和我,容易导致方向的错误。让 AI 主动质疑,能获得更高质量的建议,避免“听话但不聪明”的问题。


3. Minimal Automated Checks(最小化自动检查)

英文规则:

Minimal Automated Checks: Do not perform excessive automatic checks for code correctness (such as linting, style enforcement, or running tests) without my request. I prefer to validate the correctness of the code myself. However, if you believe a certain check is necessary to prevent a critical error (e.g., security vulnerability, data corruption), please ask me first whether you should perform that check. Wait for my explicit permission before executing any verification steps.

中文翻译:

最小化自动检查:未经我请求,不要执行过多的代码正确性自动检查(如 linting、样式检查或运行测试)。我更喜欢自己验证代码的正确性。但是,如果你认为某项检查对于防止严重错误(例如安全漏洞、数据损坏)是必要的,请先询问我是否应该执行该检查。在执行任何验证步骤前,等待我的明确许可。

原因:个人习惯手动审查代码,这样能保持对项目的掌控感和思考连贯性。过多的自动检查反而会打断我的节奏,只有真正危及安全的场景AI再出来提醒我即可,这一条纯个人习惯,看个人习惯决定是否使用。


4. Timely Problem Escalation(及时的问题上报)

英文规则:

Timely Problem Escalation: The information I provide may not always be complete, potentially leading you to perform unnecessary or misguided work. Therefore, whenever you encounter an issue during your own testing or validation, please inform me immediately so I can address it. If you attempt to resolve the issue and fail after two tries, please notify me to provide additional context or complete the missing information.

中文翻译:

及时的问题上报:我传递的信息可能并不总是全面,这可能会导致你做很多无意义或方向错误的工作。因此,每当你自己测试或验证时发现问题,请立即告诉我,让我来处理。如果你尝试解决问题,但两次尝试后仍未成功,请通知我,以便我补充上下文或完善缺失的信息。

原因: 在AI生成完代码想要自己完成闭环验证(闭环验证感觉现在好像在AI模型里有很高的权重)时,很可能会因为我提供的上下文不足而疯狂尝试各种闭环的方式,这一步很有可能消耗大量的token和时间,因此设定AI的尝试上限也是很重要的,我自己设置的2次可能有些严格,但是一般3-4次就开始浪费了,没必要让AI去猜一个自己已经知道的上下文信息。钱多时间多这条也可以省略。


5. Context Management for Long-Running Tasks(长任务上下文管理)

英文规则:

Context Management for Long-Running Tasks: When you anticipate that a task is too large to be reliably completed within a single context window, or when you sense that critical context might be lost in subsequent interactions, you are authorized to proactively create a working document (e.g., a markdown file) to serve as external memory. This document should capture key information from the current context, track what has been accomplished, and outline the next steps. Please keep this document updated in real-time throughout the long-running task to ensure continuity and avoid losing important context.

中文翻译:

长任务上下文管理:当你预见到某项任务规模过大,可能无法在单次上下文窗口中可靠完成,或者感觉到后续交互中可能会丢失关键上下文时,你可以主动创建一个工作文档(例如 Markdown 文件)作为外部记忆。该文档应记录当前上下文中的关键信息、追踪已完成的工作,并规划接下来的步骤。在整个长任务过程中,请实时更新此文档,以确保任务连续性,避免丢失重要上下文。

原因:长任务(如重构整个模块)很容易因上下文丢失导致 AI “忘掉”之前的决策。通过外部文档,能实现真正可靠的连续协作,不会因为对话中断而前功尽弃。一旦AI的对话长到一定地步,会出现很明显的降智现象,这种原因还是对话太长导致AI忘记了之前对话的一些很重要的上下文,让AI生成一个文档辅助自己记忆是很有益处的,类似于记忆力不好但是可以翻笔记的学生。


6. Do Not Touch Unrelated Code(不动无关代码)

英文规则:

Do Not Touch Unrelated Code: Strictly limit your modifications to the scope of the current task. Do not refactor, reformat, or modify any existing code that is unrelated to the current requirement, even if you think it is "inelegant", unless you have my explicit permission.

中文翻译:

不动无关代码:严格将你的修改限制在当前任务的范围内。未经我的明确允许,绝不可重构、格式化或修改任何与当前需求无关的已有代码,即使你认为它“不够优雅”。

原因:现在的AI在修改A功能时,特别喜欢顺手把B功能里它认为可以优化的代码也给改了,或者擅自调整全局代码格式,这极其容易引发版本冲突和意料之外的 Bug。限制修改作用域是保证代码库稳定的关键。


7. Definition of Done(明确完成标准)

英文规则:

Definition of Done: Before starting to code, we must align on the "Definition of Done" (DoD) for the current task. Once the core logic meets this standard, stop generating additional features or over-engineering immediately, and wait for my next instruction.

中文翻译:

明确完成标准:在开始编码前,我们必须先对齐当前任务的“完成标准”(DoD)。一旦核心逻辑达到了该标准,请立即停止生成额外的功能或进行过度设计,并等待我的下一个指令。

原因:AI 有时候会出现过度设计(Over-engineering)的毛病,比如你只让它写一个简单的请求函数,它不仅写了,还顺带给你生成了一套复杂的错误重试机制和日志拦截器。明确边界能防止代码无意义的膨胀。

PS: 建议把英文版规则添加到个人规则中(大模型对英文适配效果更好)


结语

AI 越来越深度地参与软件开发,我们需要的不只是更强的模型,还有更好的协作方式。

目前就想到这些,之后有想法再更新吧