How I work with Agents · 双语

How I work with Agents我如何和智能体一起工作

Personal bilingual reading edition, not an official translation. Author: Thorsten Ball (@thorstenball) · 2026-10-25 23:58 (UTC+8) · Source: https://x.com/thorstenball/status/2114386050638336082

个人双语阅读版,非官方译本。作者:Thorsten Ball(@thorstenball)· 2026-10-25 23:58(UTC+8) · 原文:https://x.com/thorstenball/status/2114386050638336082

Opening开篇

Cover art: a silver engraved sphere with radiating lines on a mint-to-grey gradient.

Cover art: a silver engraved sphere with radiating lines on a mint-to-grey gradient.

封面:薄荷绿到浅灰渐变背景上,一颗带辐射线的银色雕刻球体。

Finally summarized what I've been sending to friends in DMs

终于把我一直在私信里发给朋友们的那些东西,整理成文了。

... as of October 2026.

……截至 2026 年 10 月。

Use the latest and greatest models用最新、最强的模型

Use the latest and greatest models. Everything else is potentially a waste of time. If a model is wrong 10% of the time, you don't know which 10%, so you end up making multiple attempts. When do you really want to hire a generalist who's 50% cheaper but also randomly 20% dumber? Who's still using Opus 4.5? Exactly.

用最新、最强的模型。 别的选择都可能是在浪费时间。如果一个模型有 10% 的时候会错,你又不知道是哪 10%,结果就是反复试。什么时候你会真的想雇一个便宜一半、却还会随机再笨 20% 的通才?谁还在用 Opus 4.5?对吧。

Stop worrying about accumulating slop别再纠结「会不会堆出一堆垃圾代码」

Stop worrying about accumulating slop. "It'll turn your codebase into an unmaintainable mess." Maybe that was true six months ago. Now? I'm not convinced it adds slop. And even if it does, I'm not convinced the result is unmaintainable. *(author's claim, not independently verified)*

别再纠结「会不会堆出一堆垃圾代码」。 「它会把你的代码库搞成没法维护的烂摊子。」这话半年前也许成立。现在呢?我并不认为它一定会堆出 slop。就算真的堆了,我也不认为结果就一定没法维护。(作者自述,未经独立核实)

Prompt the What, not the How提示词写「要什么」,别写「怎么做」

Prompt the What, not the How. Describe What you want, now How you'd do it. You'll often get better results. "Make the bytecode compiler and VM AS FAST AS YOU CAN. Do not stop until it's 2x faster." "Here's how it should work in the end"

提示词写「要什么」,别写「怎么做」。 描述你想要什么,而不是你会怎么做。往往效果更好。比如:「把字节码编译器和虚拟机做到你能做到的最快。不做到快 2 倍就别停。」「最后它应该是这样工作的。」

Make the whole SDLC legible to the agent让整个软件开发生命周期对智能体可见

Make the whole SDLC legible to the agent. What stopped hallucinations? Tool calls. They let agents touch our reality. If the agent can't see something, it makes it up. So let it run what it builds end to end, let it read production logs, deploy, watch the rollout, cut the release, flip the flag, triage the bug report and email the customer. Anything you can see, the agent should see too.

让整个软件开发生命周期(SDLC)对智能体可见。 什么遏制了幻觉?工具调用。它们让智能体能碰触我们的现实。智能体看不见的东西,它就会瞎编。所以:让它端到端跑自己写出来的东西,读生产日志,部署,盯发布,切版本,翻开关,分拣缺陷报告,给客户发邮件。凡是你能看见的,智能体也应该能看见。

Give it tools for the SDLC给它做 SDLC 用的工具

Give it tools for the SDLC. We have custom plugins for bug reports, emailing users, "Is our system healthy?" and granting featuer flags.

给它做 SDLC 用的工具。 我们有定制插件:报缺陷、给用户发邮件、「系统健康吗?」、以及发放功能开关(feature flags)。

Eval agentic knowledge用评测检验智能体是否真的用上了知识

Eval agentic knowledge. Knowledge piles up in the codebase: AGENTS.md files, skills, scripts, docs. But do agents actually use it? Spawn five blind agents, control vs. treatment, and find out. Agents are really, really good at running experiments.

用评测检验智能体是否真的用上了知识。 知识会堆在代码库里:AGENTS.md、skills、脚本、文档。但智能体真的会用吗?拉五个盲测智能体,对照 vs. 实验组,测出来就知道了。智能体特别特别擅长跑实验。

Local dev feels yucky now本地开发现在感觉别扭

Local dev feels yucky now. Each agent should be able to install and run whatever it needs to get job done. Easy in remote machines, yucky in local dev. Hard to not run into resource conflicts locally when you want agents testing stuff end to end.

本地开发现在感觉别扭。 每个智能体都应该能安装并运行它把活干完所需的一切。这在远程机器上很容易,在本地开发就很恶心。你要智能体做端到端测试时,本地很难不撞上资源冲突。

Don't iterate with the agent — let it build tools to iterate别跟智能体来回试——让它自己造迭代工具

Don't iterate with the agent. Let it build tools to iterate. Not "let's try this. ... ah no, let's try that." Instead: "Generate 20 variations and a little page that lets me combine and test them." Not only applies to solution space, but also problem space: "Give me 4 theories on why this is slow, then check all four."

别跟智能体来回试。让它自己造用来迭代的工具。 不是「咱们试试这个……啊不行,再试试那个。」而是:「生成 20 个变体,再做个小页面让我组合、测试它们。」这不仅适用于解空间,也适用于问题空间:「给我 4 个关于为什么这么慢的理论,然后把这四个都查一遍。」

Ask for irrefutable proof要无可辩驳的证据

Ask for irrefutable proof. Biggest game changer. Agents are really good at producing proof: end-to-end walkthroughs, demo videos, before/after numbers. You have to build up trust and an instinct for this. Put "this is not evidence" in your AGENTS.md. *(author's claim, not independently verified)*

要无可辩驳的证据。 最大的游戏规则改变者。智能体特别擅长产出证据:端到端走查、演示视频、前后对比数字。你得自己建立起对此的信任感和直觉。把「这不算证据」写进你的 AGENTS.md。(作者自述,未经独立核实)

Don't wait for your agents — let them wait on you别等智能体——让它们等你

Don't wait for your agents. Let them wait on you. If you worry about TTFT, you're probably doing something wrong. Lean into async. Give them bigger tasks, be more ambitous. Batch instead of back and forth.

别等智能体。让它们等你。 要是你还在纠结首 token 时间(TTFT),大概方向就错了。拥抱异步。给它们更大的任务,野心再大一点。批量下单,别来回打乒乓球。

Automation / schedules / wake-up / heartbeat自动化 / 定时 / 唤醒 / 心跳

Automation/schedules/wake-up/heartbeat are killer feature. Didn't realize it, but missed it dearly once it was off. Use it all the time. "Check the logs in 2hrs." "Let me know once this is live" "Check every day at 9am". *(author's claim, not independently verified)*

自动化 / 定时 / 唤醒 / 心跳是杀手级功能。 以前没意识到,一关掉就特别想念。我一直在用。「两小时后查一下日志。」「上线了告诉我一声。」「每天早上 9 点查一次。」(作者自述,未经独立核实)

Stop manually managing context别再手动管上下文

Stop manually managing context. Every thought you spend wondering about "is it using 300k or 380k tokens?" is wasted time. Compaction works incredibly well. Don't manage context by hand. One thread = one task. Some threads are 46 messages, some are 3,714. *(author's claim, not independently verified)*

别再手动管上下文。 你花在想「它现在用了 30 万还是 38 万 token?」上的每一分心思,都是浪费。压缩(compaction)效果好得惊人。别手工管上下文。一条线程 = 一个任务。有的线程 46 条消息,有的 3,714 条。(作者自述,未经独立核实)

Threads are your company memory线程就是公司的记忆

Threads are your company memory. (In Amp) "Why did we do this?" The more team uses Amp the more knowledge multiplies. Threads are connected to git commits. Game changer. Avoids duplicate work. *(author's claim, not independently verified)*

线程就是公司的记忆。(在 Amp 里)「我们当初为什么这么做?」团队用 Amp 越多,知识就倍增得越厉害。线程和 git 提交连在一起。游戏规则改变者。避免重复劳动。(作者自述,未经独立核实)

Don't let agents write for humans别让智能体替人写给人看的东西

Don't let agents write for humans. Except: debugging steps, inicident reports, some docs. Mechanical stuff where human on other end doesn't matter that much.

别让智能体替人写给人看的东西。 例外:调试步骤、事故报告、一部分文档。偏机械、对面是谁不太要紧的那种。

Review only code with high blast radius只审查爆炸半径大的代码

Review only code with high blast radius. There are <5 central files -- those I review. Database migrations, yes. Closure vs. class, a neater type, variable names, even duplication: I don't care anymore. Does it work? Do I understand it at the arrows-in-a-diagram level? Did the agent test it end to end? Can I change it in a month? If yes, might review code. *(author's claim, not independently verified)*

只审查爆炸半径大的代码。 核心文件不到 5 个——那些我才会审。数据库迁移,要审。闭包还是类、更干净一点的类型、变量名、甚至重复:我已经不在乎了。它能跑吗?我能不能在「框图箭头」那个粒度上理解它?智能体做了端到端测试了吗?一个月后我还能改吗?如果都是,也许才会去看代码。(作者自述,未经独立核实)