Machine-verified,
Human-readable
req is a requirements-as-code language for spec-driven workflows: specify first, verify early.
package System requirement Wheel_deceleration top bottom is @@ The wheel shall decelerate within 3s. @@ requirementpackage
reqtool check wheel.req
- 1:14E04010 requirement is missing a constraint
Wheel_deceleration
package System part Wheel part requirement Wheel_deceleration top bottom on Wheel is @@ The [[Wheel]] shall decelerate within 3s. @@ requirementpackage
reqtool check wheel.req
no output no issues
package System part Wheel let deceleration_duration in real \ s \ let speed in real \ m/s \ part requirement Wheel_deceleration top on Wheel is @@ The [[Wheel]] shall decelerate within 3s. @@ requirement # verification simulation # requirement Deceleration_bound bottom on Wheel::deceleration_duration refines Wheel_deceleration is Wheel::deceleration_duration <= 3 requirement # verification model-checking # requirement Wheel_stops bottom on Wheel::speed refines Wheel_deceleration is Wheel::speed > 0 implies eventually Wheel::speed = 0 requirementpackage
reqtool check wheel.req
no output no issues
Write the problem,
not the solution.
In the AI era, engineering is about expressing the right needs.
req formalizes those needs into requirements that are checked for soundness and can be verified automatically against solutions.
Specification is the source. Solution is the output.
With the rise of spec-driven workflows, you author the specification and the solution follows.
req gives your specification what code already has: versioning, review and automated checks.
Model visualization is the new browsing.
Prose is how we write. Models are how we understand.
req makes you write plain text. The model emerges.
Tools
- reqtoolThe main command-line toolkit: analysis and much more.
- reqlspA language server for any LSP editor.
- req-vscodeThe official Visual Studio Code extension.
- req-nvimNeovim syntax coloring.
- QitabThe commercial editor for req, for advanced analysis and visualization.
/llms.txtIndex of the documentation/llms-full.txtThe whole documentation in one file/md/…Every page as Markdownreqtool check --jsonDiagnostics an agent can act on
req is under active development: the language and this documentation are subject to change.