@bcherny: I used Opus 5.5 to formally verify the Claude Agent SDK using Lean. A couple short prompts = 16 PRs fixing various bugs…
Summary
The author used Claude's Opus 5.5 model to formally verify the Claude Agent SDK using Lean, generating 16 PRs to fix bugs and race conditions, and recommends combining Lean with TLA+ for enhanced bug finding.
View Cached Full Text
Cached at: 09/23/26, 02:00 AM
I used Opus 5.5 to formally verify the Claude Agent SDK using Lean. A couple short prompts = 16 PRs fixing various bugs and race conditions. Video attached.
TLA+ also works well. I sometimes combine Lean and TLA+ to look for issues around data flow, concurrency, and state mgmt.
I don’t know either language well, but Claude is excellent at both. This approach is super useful for formally modeling your code and finding bugs that a human probably wouldn’t have spotted.
Is formal verification the future of coding (or at least, bug finding)?
Similar Articles
@chetaslua: Claude Opus 5.2 currently being tested inside claude code > opus 5 is routing to new opus 5.2 > this one shot < but opu…
A user reports testing Claude Opus 5.2 inside Claude Code, noting that Opus 5 routes to the new version and exhibits looping behavior similar to a specific training method without explicit prompting.
Getting the most out of Opus 5.5 in Claude and Claude Code
Anthropic published a practical guide on getting the most out of Opus 5.5 in Claude and Claude Code, covering how to hand over whole tasks with clear finish lines, drop "think carefully" lines since the model always reasons before replying, and steer long autonomous coding runs.
@RayFernando1337: Opus 5.5 Medium and I tell Claude Code to delegate subagents and easy work to Sonnet and it’s mind blowing how fast it …
A user shares that Claude Opus 5.5 Medium paired with Claude Code delegation of easy tasks to Sonnet subagents delivers surprisingly fast and accurate results, with the Claude desktop app's memory management greatly improved over terminal use.
@mirku21: THIS IS ABSOLUTE F*CKING GOLD Anthropic just shared one of the best tricks for Claude Code The idea: run Opus 5.5 as le…
网友分享 Claude Code 的「Agent Teams」玩法:由 Opus 当组长拆解任务 DAG,多个 Haiku 队友并行负责安全、性能和 QA,Sonnet 处理重型多文件重构,从而用低成本模型获得 Opus 级别的整体架构效果。
@trq212: before I joined Anthropic, I spent about 2 weeks hacking on this as a side project with Opus 4. It used the Agent SDK s…
An Anthropic employee shares how they ported their side project — a personalized AI-generated homepage — from Opus 4 with the Agent SDK to Claude Managed Agents using a single prompt to Opus 5.5, making it far more reliable.