Dev uses Opus 5.5 with Lean to formally verify Claude Agent SDK, yielding 16 bug-fix PRs
bcherny · x · 2026-09-23
Developer bcherny shared a hands-on workflow: he used Opus 5.5 to formally verify the Claude Agent SDK in Lean, and a couple of short prompts produced 16 PRs fixing bugs and race conditions.
- TLA+ also works well; he often combines Lean and TLA+ to probe data flow, concurrency, and state management issues
- He doesn't know either language well, but Claude is excellent at both—dramatically lowering the barrier to formal verification
- The approach is useful for formally modeling your own code and surfacing bugs a human would likely miss
- He poses the question: is formal verification the future of coding, or at least of bug finding?
More from coding & agent
- YouArt Desktop launches: AI agent edits video in CapCut, DaVinci and Premiere from client feedback — mhdfaran · 2026-11-11
- Boubou: one-command local voice AI that serves your phone and robots over Wi-Fi — LuozhuZhang · 2026-11-11
- Python 3.15 makes AttributeError actionable: suggests .append for .push mix-ups — KhuyenTran16 · 2026-11-11
- sentence-transformers maintainer releases new embedding pooling training method, code & checkpoints — tomaarsen · 2026-11-11
- droid-mcp turns your Android phone into an MCP server with 160+ tools for Claude Code — zvone1122 · 2026-11-11
- The decade of agents: simulate real customers to test your agent before launch — EXM7777 · 2026-11-11