Ahmad Awais 解释为什么 DeepSeek V4 在编码 agent 里"很慢、很笨"——不是模型不够强,
Ahmad Awais 解释为什么 DeepSeek V4 在编码 agent 里"很慢、很笨"——不是模型不够强, 而是它发出错的 tool call 后听不进 Zod error,平均会原样重发 56 次。 他们写了 3,200 行确定性 repair logic(现在 16,000 条 variation,覆盖 600 亿 tokens), 让 Dee…
DeepSeek/Kimi/MiniMax 在编码 agent 里"很慢、很笨"——其实问题不在模型本身。
3,200 行确定性 "repair files" → 16,000 条 patch,覆盖 600 亿 tokens。
工具调用 → 设计 slop → 安全代码,本质都是"contract gap"。
每个 repo 一份 markdown,记录你的微决策,合并时由 PR 审核。
履历
与 AI 的起点
2020 年 7 月,Greg Brockman 和 Sam Altman 给了他 GPT-3 早期访问。
他做的第一件事:让 LLM 补全下一行代码 —— 比 GitHub Copilot 早一年多。
2020 Corona CLI 走红,第一个 AI CLI 玩具 (CLAI)
2024 LangBase 上线,做 AI cloud / 记忆基础设施
1.2B agent runs / 月
2025 转向编码 agent,命名 Command Code
$5M 种子轮 · Matt Mullenweg 是天使投资人之一
2026.5 这次访谈:揭示 "tool confusion" 现象
"there is only one type of agent, and that is a coding agent. it can do it all."
能写代码 = 能调用任何工具、生成任何工件、修改自己的环境。把这能力藏在 "memory primitive" 后面是浪费。
"programmers stopped writing code." 那 taste 从谁那儿学?
答:直接从模型本身学。
时间:2026 年 5 月,DeepSeek V4 Pro 刚发布约一个月。
社区一半人说 "DeepSeek 好到吓人",一半人说 "DeepSeek 慢得离谱"。
Ahmad 在 Command Code 上每天处理几十亿 tokens,他需要做出判断——DeepSeek V4 Pro 是不是真能替代 Opus。
Tool Confusion
不是模型笨,是模型听不进返回来的 schema 错误。
典型场景
Agent 想 list 一些文件 / 读一个日志 / 跑一段 shell。
它发出 tool call,但 args 形状错了——比如该传数组的地方传了个 JSON 字符串,该传 number 的地方传了 null。
Zod 解析失败 → 抛错给模型。
正常情况下,一个"足够聪明"的 LLM 应该读懂 schema error 并修正下一次调用。
DeepSeek V4 Pro 不会。
它会原样重发,平均 56 次。
"DeepSeek V4 Pro has this weird alpha male energy where whatever it sends you, it thinks that that is the right thing to do."
Ahmad 的假设(他自己说这是 hot take / vibe 推测):
很多开源模型在训练中被告知 "你看到的训练数据都是高质量的、来自更强的模型"——
所以它们的天性变成:我说的就是对的,别试图纠正我。
核心思路
不要把 Zod error 原样抛回去——先把 args 修好,把结果返回,然后顺便附一个 hint 告诉模型"你本来该这么写"。
关键观察
"the moment you send the result with the repair logic, right after that the third tool call is fixed."
不是第二次。第三次调用就开始自我纠正。
结构
"think of it like you're teaching somebody how to drive a car. and they're about to hit another car. instead of telling them what to do correctly, you'll first try to save them and then you will explain why you saved them."
抛出 schema error
→ 模型懵 → 重试 → 还是错
先修好 args,把正确结果塞回去
+ 附一句 "本来该这么写"
模型已经吃到正确结果
自动改对下一次输入
许多人想用开源模型,但用法是——把 Claude Code 当 harness,改一下 base URL 和 API key,指向 DeepSeek。
"they didn't build their coding agent for open models."
修开源模型不是 Anthropic 的利益所在——所以错误被静默吞掉是合理的。
作者概括:这不是阴谋,是产品定位。但副作用是——开源模型在 Claude Code 里永远拿不到公平评测。
"we have been able to figure out how to deterministically fix tool calling for open source models or open models."
这套补丁可以拆出去,任何编码 agent 都能用。Ahmad 把它公开了。
Ahmad 推送 repair 更新后,他们的投资人之一——Tom Preston-Werner 的基金 PW——的 GP 私聊问他:
"what did you do? why is DeepSeek V4 flash super solid now?"
DeepSeek V4 flash 在他们家几乎不可用——tool call 失败堆积。
"the vibe of the model completely changes. it starts doing things in a different way."
Ahmad 观察到的现象:任何编码 agent,开着 permission prompts 跑时模型更笨;完全 bypass permissions 跑时模型更聪明。
即使你一直按 yes / accept,模型也会被 "permission block 的慢" 引偏方向。
作者概括:tool call 错误少 → 模型上下文不被噪声污染 → 行为质量更高。这与他的 "repair logic 让模型瞬间聪明" 的发现是同一回事。
Ahmad 自评:"I personally have not done that, right?"
连他自己都没这么 hardcore 用过——但这正是 tool confusion 修好之后才可能出现的用法。
他们推出 Go Plan:
"just to prove like open models are actually really really good and they are catching up."
Ahmad 觉得(他用了 "I think I would it wouldn't be too far to say")这件事可能间接推动了 DeepSeek 自己降价——既然别人能用 DeepSeek 跑出 Opus 体验,他们也该这么定位自己。
DeepSeek 团队在 Ahmad 的帖子下被大量 tag → 一周后宣布招聘 DeepSeek Code 的工程师。
问题
所有 LLM 在生成 UI 时都会写出同一种丑:
Ahmad 的发现
跟一群优秀设计师聊后,他发现:
设计 slop 也是有限集合——可以被确定性修。
框架长这样
"it's not a capability gap. it's more like a contract gap in what your hardness is telling an LLM to do versus what your user is saying."
Zod schema 失败 → patch 修复 → 继续
indigo 渐变 → /design skill → OKLCH
(在做)从日志学常见漏洞 → 自动 patch 包
模型能力不缺,缺的是 "你想要什么" 的明确合同。
"I personally don't use OKLCH, but apparently LLMs are really good at it."
Ahmad 不爱用,但他的设计师朋友们都用——这变成 Command Code design skill 的 hard rule 之一。
附注:Ahmad 在原文里说他"love the purple color"——他抱怨的不是紫色,是"indigo slop"那个特定的紫蓝渐变。
核心定义
Taste 是一个 meta-neuro-symbolic 模型。
不是用户写规则,而是从你的行为自动学——并产出 markdown 文件,提交进你自己的 git repo。
例子
pnpm 装包,但 link 本地 CLI 时用 npm linkvitest + ts-up关键设计
KL-divergence loop:如果 LLM 已经知道的事,就不要进 taste 文件——那是没用的 context。
Skills vs Taste
"taste is the highest order bit, which is managing your skills and rules."
Taste 是引擎,自动管理 skills。
人坐下来写的宏决策。
问题:
机器从合并时刻自动学的微决策。
优点:
Ahmad 给的例子:他用 Command Code 建过 70+ 个 CLI。
所有这些经验最后浓缩成一个关于 CLI 建设的 taste 文件——很小、很具体。
pnpm 做 build dependencies0.0.1 起步$ npx taste pull
把这个文件拉到新仓库 → 任何 coding agent 接到 "follow my taste of building CLIs" 就能复刻你的口味。
Ahmad 观察到他们 Discord 里正在发生的用法:
用高质量贵模型(Opus、GPT 5.5)跑一个项目
→ 在过程中沉淀 taste 文件
带着这份 taste 文件去开下一个项目
用便宜模型接着干
便宜模型 + 好 taste ≈ 贵模型独立工作
Taste 是把贵模型的"判断力"凝固成 markdown,让便宜模型借用。
Command Code 团队跑过一个70+ 开发者的研究,测的是——
"用户需要手动编辑 LLM 生成的代码 / 中途打断方向"的次数。
"they found that their number of edits or steers went down."
不是 LLM 变聪明了,是它更早就被告知了你的口味——所以一开始就不会走偏。
Repair 修的是 tool 层失误,Taste 修的是品味层失误。两层一起,让中途打断的成本降到最低。
即将发生的事
三种产品哲学
不做 "1500 个模型的 soup"——选择有限模型 + 可深度 hack。
Ahmad 发完那个 tool confusion 帖之后约一周,DeepSeek 官方宣布要做 DeepSeek Code——也就是他们自己的编码 agent。
但 Ahmad 提醒:DeepSeek Code 只会服务 DeepSeek 模型。Command Code 的卖点是跨模型。
访谈录制时,Qwen 3.7 Max 刚发布 2–3 天,已经是 Command Code 上第二常用的模型。
"Qwen 3.7 max is the second most used model on Command Code right now. it's just two or three days old."
开源模型的迭代速度可能比我们以为的更快。
"there is only one type of agent, and that is a coding agent. it can do it all."
"programmers stopped writing code. so, who are we going to learn taste from? we started learning taste from models."
"DeepSeek V4 Pro has this weird alpha male energy where whatever it sends you, it thinks that that is the right thing to do."
"like teaching somebody how to drive a car — instead of telling them what to do correctly, you'll first try to save them and then explain why you saved them."
"it's not a capability gap. it's more like a contract gap in what your hardness is telling an LLM to do versus what your user is saying."
"taste is the highest order bit, which is managing your skills and rules."
"build it like Apple. it will have the best of the best models, both open and closed. it will not have every model, but it will be hackable in any way."
"the vibe of the model completely changes. it starts doing things in a different way."
Ahmad Awais · CommandCode.ai · Latent Space, 2026