claudeers.
// Claude Plugins

agent-formal-verify

TLA+ model checking and Lean proofs for coding agents, with explicit tool setup.

Actively maintained
100/100
last commit 2 days ago
last release none
releases 0
open issues 6
// star history

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up agent-formal-verify (claude-plugin project) into my current project.
Found on https://claudeers.com/agent-formal-verify
Repo: https://github.com/michael-denyer/agent-formal-verify
Homepage/docs: —
Detected install method: claude-plugin → /plugin install agent-formal-verify@michael-denyer/agent-formal-verify
Category: plugins. Platforms: cli, api.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
active; community-verified: false. Confirm the source before running anything.
// or install directly (claude-plugin)
/plugin marketplace add michael-denyer/agent-formal-verify
/plugin install agent-formal-verify@michael-denyer/agent-formal-verify
// or clone
git clone https://github.com/michael-denyer/agent-formal-verify

// compatibility

Platformscli, api
Operating systems—
AI compatibilityclaude
LicenseGPL-3.0
Pricingopen-source
LanguageJavaScript

Get your FREE $2.50 API credits to access TickAtlas financial data ↗

Agent formal verify

Agent formal verify: model protocols with TLA+ and TLC, prove invariants with Lean 4, and check bounded Rust with Kani.

agent-formal-verifyagent-formal-verifyagent-formal-verifyagent-formal-verifyagent-formal-verifyagent-formal-verifyagent-formal-verifyagent-formal-verify

A skill for Claude Code, Codex and Pi that implements the targeted formal-verification method recently promoted by Boris Cherny. The agent models selected parts of your code, checks their properties, maps counter-examples to source lines, and helps reproduce and fix reachable bugs.

It uses TLA+ and TLC for thread interleavings, shutdown and resource ownership, and Lean 4 for arithmetic, bounds and sequential state transitions. A protocol that depends on arithmetic can use both. For Rust functions with bounded inputs and loops, Kani checks the production code for overflow, invalid memory access, panics and broken invariants.

Install

Claude Code

Run in Claude Code:

/plugin marketplace add michael-denyer/agent-formal-verify
/plugin install agent-formal-verify@agent-formal-verify

Codex

Run in your terminal:

codex plugin marketplace add michael-denyer/agent-formal-verify
codex plugin add agent-formal-verify@agent-formal-verify

Pi

Run in your terminal:

pi install git:github.com/michael-denyer/agent-formal-verify

Run setup once to prepare the shared Java, Python, TLC, elan, Lean, Rust and Kani tools. In Claude Code, use /agent-formal-verify:setup. In Codex, request the plugin's setup skill. In Pi, use /skill:setup. It reuses installed prerequisites and needs no target repository.

For local checkouts and skills-only installs, see shared installation.

Getting started

Use formal-verify to check this queue's shutdown protocol and window arithmetic.

In Claude Code, use /agent-formal-verify:formal-verify. In Codex, type $formal-verify or request the plugin's formal-verify skill. In Pi, use /skill:formal-verify.

How it works

Agent formal verify works with Claude Code, Codex and Pi. Thread protocols use TLA+ and TLC; arithmetic and state transitions use Lean 4; bounded Rust functions use Kani to check production code. The agent finds counter-examples, reproduces reachable bugs, fixes code and models, and tests mutations. Checks rerun in CI. Set up once, verify each repository, and report assumptions and bounds.

The agent selects risky code, builds TLA+ or Lean models or adds Kani harnesses that call the Rust code, and checks their properties. Reachable counter-examples guide reproductions and fixes to both the code and model. Mutation checks test whether the properties detect mistakes, and CI reruns the models as the code changes.

A passing check establishes its stated properties under its assumptions and bounds. Reports must identify omitted constraints and unfinished proofs. See scope and evidence.

Details

Data handling

The plugin configures no MCP servers or hooks, requires no credentials and has no telemetry. The agent sends selected source excerpts, models and results to its model provider. Helpers run locally and download nothing. Setup verifies a TLC JAR you obtain from the pinned TLA+ release, and Lean preparation installs the pinned toolchain through elan. Install the pinned Kani through Cargo and run its setup command as described in tool setup. The plugin's Kani helpers install nothing.

Contributing

Bug reports, documentation fixes and runtime improvements are welcome. See CONTRIBUTING.md for development checks and pull requests.

License

Copyright (c) 2026 Michael Denyer. Licensed under the GNU General Public License, version 3, SPDX identifier GPL-3.0-only.

// faq

What is agent-formal-verify?

TLA+ model checking and Lean proofs for coding agents, with explicit tool setup.. It is open-source on GitHub.

Is agent-formal-verify free to use?

agent-formal-verify is open-source under the GPL-3.0 license, so it is free to use.

What category does agent-formal-verify belong to?

agent-formal-verify is listed under plugins in the Claudeers registry of Claude-compatible tools.

34 views
★ 49 stars
unclaimed
updated about 1 month ago

// embed badge

agent-formal-verify on Claudeers
[![Claudeers](https://claudeers.com/api/badge/agent-formal-verify.svg)](https://claudeers.com/agent-formal-verify)

// retro hit counter

agent-formal-verify hit counter
[![Hits](https://claudeers.com/api/counter/agent-formal-verify.svg)](https://claudeers.com/agent-formal-verify)

// reviews

// guestbook

0/500

// related in Claude Plugins

🔓

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

// pluginsmultica-ai/★ 230,631[ claude ]
🔓

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explainin…

// pluginsanthropics/⟨Python⟩★ 156,472[ claude ]
🔓

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

// pluginsHKUDS/⟨Python⟩★ 58,467◷ Apache-2.0[ claude ]
🔓

financial-services — a Claude ecosystem project on GitHub.

// pluginsanthropics/⟨Python⟩★ 41,409◷ Apache-2.0[ claude ]
→ see how agent-formal-verify connects across the ecosystem