正在加载视频...
视频加载失败
Boris Cherny, Head of Claude Code, Anthropic: "you can define a stop hook that's like, if the tests don't pass, keep going. essentially it's like you can just make the model keep going until the thing is done." that one config is the post's loop #1, straight from the... show more
30,025 次观看 • 3 个月前 •via X (Twitter)
7 条评论

The pattern underneath all four loops is the same: make output verifiable while it is still being produced, not after. A stop hook forces tests green before the turn ends; a fresh-context critic catches what the builder talked itself past. The interesting transfer is that the same readable-while-it-happens bar applies beyond code, to any live output a human has to follow in real time.

这招有点狠,别把额度也循环没了

Oh, this guy definitely knows what he's talking about

Interesting that is seems the Anthropic engineers have never heard of bash bang. That’s the difference between someone who started programming when the main tool available was the command line vs people who started with a gui.

Hooks are so powerful in claude code. highly underrated

An agent that fixes your GitHub repo and opens a PR LangGraph + self-improving loop. Live & open source. ▶ ⭐

That stop hook is powerful, but I’d still want the loop drawn somewhere visible. For agent workflows, the useful map is: trigger -> model action -> test/check -> human review boundary. Small related tool I use for these maps:
