astrio-labs/forall
关于
Forall (∀) 是 Astrio 推出的编程智能体执行框架,通过生成由规范驱动的代码及可由机器验证的证明,帮助开发者构建正确的软件。
开发工具实测星标增长
- 24小时
- 0
- 7天
- -3
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Why Forall exists
Review has always been the bottleneck in software. It is now the failure point, because code is produced faster than anyone can check it. Tests sample a handful of inputs. Types constrain shape. Neither tells you whether the code does what it was supposed to do.
Formal verification answers that question, as far as your specification states it, and it never failed on capability. Provers have been checking real programs for years. What kept them out of ordinary engineering was adoption cost. Writing the specifications, contracts and invariants a prover needs was more tedious than writing the code itself. That is precisely the work language models are now good at. The barrier was labour, and labour just got cheap.
Evidence can therefore become a build artifact rather than something reconstructed by hand long after the code is done. Regulated work already depends on it. Standards such as IEC 62304 and DO-178C require traceability from each requirement to the verification that discharges it. Mission-critical code should carry that evidence the way a paper carries its references, attached to the specific claim it supports.
A green mark that lies is worse than no mark. A proof is only as strong as the contract it discharges, and property testing only samples. Those differences matter, so Forall reports four levels of evidence instead of a pass and a fail, grading every requirement by the strongest evidence a machine actually produced, never by what was claimed.
Two ways to use Forall
1. Install Forall CLI
Full coding agent — specs, proofs, and workflow in your terminal.
curl -fsSL https://forall.astrio.app/install.sh | bash
forall
Add ~/.local/bin to your PATH if needed, then run forall --version.
On first launch, sign in with your Forall account — your browser opens, no API key to paste. Chat on your plan's hosted models, or bring your own model API key (OpenAI, OpenRouter, Anthropic (Claude), Google Gemini, Azure OpenAI, or Claude via Amazon Bedrock). Then forall init in a git repo and start working.
Note: A binary release must exist on GitHub Releases before install succeeds.
2. MCP verify-only
Stay on Cursor, Claude Code, or any MCP client — add hosted verification via MCP. Do not install the CLI.
- Create an API key at forall.astrio.app/dashboard
- Add to your MCP client:
{
"mcpServers": {
"forall": {
"command": "npx",
"args": ["-y", "@astrio/forall-mcp"],
"env": {
"FORALL_API_KEY": "forall_..."
}
}
}
}
Your coding agent edits the workspace from verify reports. See docs/getting-started.md and docs/hosted-mcp.md.
Supported programming languages
Forall grades every requirement by the strongest evidence a machine actually produced for it. Not every rung is reachable in every language, because the rung depends on the tool behind it:
| Spec tracked | Property tested | Contracted | Proved | |
|---|---|---|---|---|
| TypeScript | ✓ | ✓ | ✓ | ✓ |
| Python | ✓ | ✓ | ✓ | ✗ |
| Rust | ✓ | ✗ | ✓ | ✓ |
| Java | ✓ | ✗ | ✓ | ✓ |
| C | ✓ | ✗ | ✓ | ✓ |
- Spec tracked — a requirement cites this code.
- Property tested — a generator ran over many inputs and found no counterexample. Statistical evidence, honestly ranked below a proof.
- Contracted — a machine-checkable contract is written against the code, but nothing has confirmed it yet.
- Proved — a prover discharged that contract's obligations.
We are expanding to more languages, and to filling in more of this table for the languages already listed, based on demand.
Telemetry
First-party builds send product usage analytics — feature and reliability events, never your code or prompts. Opt out any time in ~/.forall/config.toml:
[analytics]
enabled = false
Connect
Join our Discord and X communities.
License
This repository is licensed under the Apache-2.0 License.
探索相关项目
加载中…