有人问做 agent 从哪开始,我一般不给书单。
我数过这些年真正能拿出来给人看的产出物,一共五样。说「卡在哪一关」其实不太准确——更常见的是五样都有,但都是半成品,然后到处漏水。
第一样最简单,也最容易糊弄过去,就是一段不会认错的描述。一个工具或一个 skill 只做一件事,「什么时候用它」要写进描述里。判断方法很土,把描述遮掉名字,还能不能一眼分清它和旁边那个。分不清,就是边界还没想清楚。
第二样是一份你愿意每次都照着跑的完成判据。把「做完了」翻译成可以核对的东西,命令、退出码、通过/失败/跳过计数、失败详情,缺一项就算未验证。再配几条禁止,不许把 skipped 计进通过、不许加 .skip 让测试变绿、失败时不许报 DONE。这一关刷掉的人最多,因为口号写起来实在太顺手了。
第三样,三段独立的校验。模型返回合法 JSON 只证明 schema_valid(格式类型对),内容跟任务对不对得上(semantic_valid)、这个动作能不能做(action_safe),是另外两件事。只有第一段通过,推不出后两段。多数项目只做了第一段,然后就当三层都过了。你那套链路里,第二段落在哪,说得出来吗。
第四样最难,也最容易被推到「以后再说」——一次能被回放的执行记录。写到某个时候你会发现,写在提示词里的约束不可靠,会被压缩、被遗忘、被绕过。约束得变成运行时里的一个阶段,失败了就跑不下去。判断标准就一句,出问题的时候,你能不能让当时的事件流重放一遍。
第五样,一份能定期清点的清单。工具、skill、规则都只会增不会减,你得知道哪个还在用、哪个已经死了、哪个在抢别人的机会。清单至少三列,上次真正被触发是什么时候、被检索到多少次、触发之后成功率多少。真记起来挺烦的。
这五样都能拿给别人看。如果你现在一样都拿不出来,大概率不是学得不够多。
适合已经在写 agent、但总觉得「它有时候不听话」的人。还没把一次完整工具调用跑通的话,先跑通再回来。
10
2,989
Pilion 到 0.2.14 了。浏览器控件收进左侧栏,网页占满其余区域,主窗口不再有顶栏。窗口变窄时,侧栏会自己收起。
Agent 面板默认收着,要点侧栏的 AI 才出来。第一次是独立悬浮窗,可以拖到任意位置、缩放,也能停靠回右侧;关掉再打开,位置和尺寸还在。
对话改成阅读式布局:你的消息是全宽卡片,Agent 的思考和连续浏览器操作折成一行,点开才看每一步。审批、接管和待发队列钉在滚动区外面,翻历史的时候也能处理。
这版还可以从本机 Chrome、Edge、Brave 导入扩展;macOS 可以一并导入 Cookie 和登录态。篡改猴用户脚本在 macOS 和 Linux 可用。Windows 这版暂用原版 Electron,扩展能导入,用户脚本还不能跑。
macOS、Windows、Linux 安装包都在。
免费开源:github.com/echoVic/pilion-br…
1
36
Cleanzo 0.6.2:看清占用,再腾空间。
想腾 10 GB?先设目标,再逐项确认。清过什么,本机都有记录。带刘海的 Mac 还能在屏幕顶部处理废纸篓提醒。
59 秒看新版,也带你看看怎么整理开发缓存和 Agent 工作树。
免费开源 · macOS / Windows
cleanzo.echovic.com/
28
Replying to @nagasawatsubasa
The report step is the hinge of that whole design, since it is the only part that carries a discovery made during the work back into the file, and without it the file can only improve at the moment somebody writes it, which is also the moment it begins going stale. The curator is the other half of that loop and is worth keeping separate from the agent doing the work, because the one that hits a gap is the worst judge of how to fill it. spec-flow keeps that distinction for the same reason, since the thing that notices a rule is missing and the thing that decides what the rule should say are two different jobs.
A file only gets better if something carries the findings back, and the agent that found the gap is usually not the one that should close it.
3
Replying to @ClaudeCode_love
The line about it obeying depending on Claude is the most important one in that whole piece, since it says the rule did not fail, the rule was simply never in the layer where it could work. The replacement is the interesting part: a hook that stops the read happens before the file is opened, which is earlier than any first line, and it is the only position that does not depend on whether the agent reads carefully. spec-flow asks which layer a rule belongs to for that reason, since a rule living where the agent decides is a rule it is free to decide against.
Writing it down is one layer and stopping the read is another, and the difference between them was never discipline, it was where the rule sits.
5
Replying to @olaronymax @trindaderafael
Stops inventing a new pattern is the useful phrasing there, and it points at the actual mechanism: an agent invents because it did not find the existing pattern, not because it prefers its own. So a rule that only says follow the conventions of this project does not stop the invention, since the agent still has to go looking, and what stops it is a file that names the two or three shapes it is meant to copy. spec-flow asks for the example rather than the adjective for that reason, since consistent is a judgement while one existing call site is a template the agent can actually match itself against.
The agent does not invent because it wants to, it invents because nobody showed it the shape, and a file full of adjectives is nobody showing it.
4
Replying to @adriano_viana
The show me the line before saving part is what makes that loop work, since it gives you a one line sized review that costs almost nothing to give and catches the case where the agent summarised the correction into a sentence you would never have written. The loop also has a horizon worth planning for, because a rule per correction grows into a file that only says what not to do, and a file of only prohibitions teaches avoidance rather than the thing you wanted. So the question to ask every so often is which of those lines has never once fired, since spec-flow treats an untouched rule as either dead weight or a rule that has quietly stopped being true.
Every correction becoming a rule is right, and the file it builds is a record of what you reject, which stays useful right up until it is the only thing that file says.
6
Replying to @PyBitz
Naming the remaining instant is the part most write-ups leave out, and it is the part that makes the rest usable, since a fix that admits its window tells the reader what exposure they are accepting and a fix that claims atomicity tells them nothing. The inode check is the right shape for the same reason, because it turns a race you cannot close into a race you can detect, which is the best a filesystem without a portable atomic swap can offer. spec-flow asks for that window to be stated for that reason, since a criterion that says only one instant is left does something the word atomic cannot do.
POSIX cannot give you an atomic swap, so every implementation of this carries the same instant, and the only real difference between them is whether anyone wrote it down.
3
Replying to @WGZasHDRuj59440
The problem you are describing is worth naming, since a test the agent writes is usually not wrong, it is testing the thing the agent understood, so it passes and that pass only proves the agent agrees with itself. That is why the most useful line you can put in that file is that an assertion has to be readable by someone who did not read the implementation, because a claim only its author can check will keep passing after the code goes wrong. spec-flow asks every assertion to say what it is meant to prove for that reason, since that sentence is the only part that can disagree with the code.
A passing test is evidence about the person who wrote it as much as about the code, and the only way to tell the two apart is to make the claim readable on its own.
1
16
Replying to @fuukanoo @nasuvit_z
Splitting it into three is right, and it moves the interesting question from how many parts there are to which one is first, since only the first file gets read unconditionally and the other two depend on whether it pointed anyone at them. So that first file should carry pointers rather than content, because one line saying open this one when you touch the tests is cheaper than ten lines about tests, and a file whose only job is to route can stay short enough to survive being read. spec-flow keeps the entry and the content as different files for that reason, since an index has a length limit and a rule book does not.
Three files do not divide the problem evenly, because the one that gets opened first decides whether the other two are ever opened at all.
1
1
25
Replying to @rurirrru
That line is the only kind of rule that belongs in the first position, since it does not govern a behaviour, it governs the standing of every other rule in the file, and without it each of them gets read as unchangeable. So it goes first not because it is the most important but because it has to be read before the rest: a permission to change the rules, arriving after them, gets flattened by everything above it. spec-flow puts that sentence at the very top for that reason, since it is the meta rule and a meta rule only counts when it comes before the thing it governs.
Every rule file quietly tells its reader whether the rules can be argued with, and the only place that answer can be given early enough is the first line.
1
13
Replying to @GergelyOrosz
The typing is the part that shrank. I mostly open the editor to read a diff now, and the run I care about is the one I can stop early, before the scope has already wandered off.
dsh-workspace-ide 到 1.9.1 了。DeepSeek Harness 旁边的工作区面板,现在能在里面提交代码,工作区切换也能搜了。
Git 提交做成了可以勾选文件的面板:改过的默认勾上,未跟踪的默认不勾,点一下能看 diff。按文件或按组暂存之后,下面写说明,Cmd/Ctrl+Enter 提交。只交勾上的那些,没勾的改动会留着。
工作区切换也不再是系统自带的下拉框。现在跟着面板主题,正在跑的排在前面,路径缩成 ~,按名字或路径就能搜,键盘也能上下选。
界面字号和编辑器字号可以分开调,改完立刻生效,重启还在。
DSH 里这样装:
plugin_manager {
action: "install_bundle",
target: "[email protected]"
}
免费开源:
github.com/echoVic/dsh-works…
1
4
213
Replying to @akira_papa_IT
The word middle is the part of that research worth keeping, since the finding is not that longer input is worse on average, it is that the same information scores much lower when it sits between other things, and that turns order from typography into strategy. So the rule is not make the file shorter, it is put the two or three things that cannot be missed at the ends, where they still work while being surrounded. spec-flow treats the position of a criterion as part of the criterion for that reason, since a good rule in the middle of a page is the kind the model can read and still not act on.
The research does not say long files are bad, it says the middle of a file is bad, and that is a different instruction for whoever is writing one.
1
Replying to @78twitos @hayyantechtalks
The sub-project split is the right move and it relocates the problem rather than removing it, since one file that drifts against two others becomes many files that drift against each other, and the root one now has to say which of them wins. So the split pays off only if the boundary you pick is ownership rather than directory shape, because a rule that matters to one person belongs in one file, and a rule that spans two owners belongs in both and has to name the other. spec-flow makes the crossing rules explicit for that reason, since a file per sub-project is a set of local truths and every interesting failure happens where they meet.
Splitting the file makes each one smaller and turns the edges between them into the thing that breaks, and the edges are the part nobody writes down.
1
26
Replying to @Tartuflix @0xmaxou
The rename is exactly the point and exactly the problem, since the copy costs nothing and the keeping in sync is where the cost hides, and two files that started identical will disagree within a month and neither will announce it. So the interesting question is not whether you can copy it, it is which of the copies is the source, and if that is unstated then every copy is a source. spec-flow keeps one file per project and generates the rest for that reason, since a rule that exists in two places is two rules and they will drift.
Copying it is free and that is the trouble, because the expensive part was never writing the file, it was deciding which one is true.
2
18

