卧槽。仅凭行为重建的身份验证器,133 项测试全部通过,共 133 项。别再往运行流程里加智能体了 别再让同一个智能体读取原始实现,再编写新代码 分工如下: → 智能体定位:指出目标,选择工具,梳理功能所在的位置 → 智能体解释:重命名每个变量,清晰地重写伪代码,标记自己不确定的地方 → 智能体制定规格:接口、数据模型、可测试的需求。不包含地址,不复制代码 → 第二个团队仅依据这份规格进行构建,绝不接触原始实现 → 测试框架将 50 个输入分别送入两个构建版本,其中 30 个正常输入、10 个边界输入、10 个格式错误的输入,然后给出匹配率 你只需要关注三个时刻: → 设置阶段。在进行任何操作之前,它会展示每一项改动,并备份你的配置。未经你批准,什么都不会动 → 存疑的行。每项判断都会标注为观察、推断或未知,并附上文件和地址。在规格交给 B 团队之前,先阅读标为推断和未知的内容 → 匹配率。“我觉得匹配”不是证据。50 个里匹配了 49 个,就意味着有一个输入出了问题,你要先打开查看那一个 值得照搬的是这个顺序:调查、制定规格、构建、验证。绝不允许智能体直接跳到构建阶段 完整提示词在回复里 你上次运行智能体时,跳过了这三项中的哪一项:设置阶段、存疑的行,还是匹配率?
看原文
holy sh*t. 133 of 133 tests passing on an authenticator rebuilt from its behavior alone. stop adding agents to the run stop letting one agent read the original and write the new code here's the split: → Agent points: names the target, picks the tool, maps where the feature lives → Agent explains: renames every variable, rewrites the pseudocode clean, flags what it's unsure of → Agent specs: interfaces, data model, testable requirements. no addresses, no copied code → a second team builds from that spec alone and never sees the original → the harness runs 50 inputs through both builds, 30 normal, 10 edge, 10 malformed, and gives you a match rate You only look at three moments: → setup. it shows every change before touching anything and backs up your config. nothing moves until you approve → the unsure lines. every claim is tagged observation, inference or unknown, with file and address. read the inference and unknown ones before the spec goes to team B → the match rate. "I think it matches" is not evidence. 49 of 50 means one input broke, and you open that one first the part worth copying is the order: investigate, spec, build, verify. the agent never gets to jump straight to build full prompt in the reply which of the three did you skip on your last agent run, the setup, the unsure lines or the match rate?