Machine-verified,
Human-readable

req is a requirements-as-code language for spec-driven workflows: specify first, verify early.

Get started Try the playground

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 constraintWheel_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.

Documentation

  • LearnExample-based tutorials to get you started with minimal prerequisites.
  • WhyWhy req exists and what you can do with it.
  • ReferenceThe detailed and formal specification of the language.
  • BlogThe latest news and broader philosophical discussions.

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.

Built for agents

An agent reads the language instead of guessing it.

Use req with LLMs and agents

  • /llms.txtIndex of the documentation
  • /llms-full.txtThe whole documentation in one file
  • /md/…Every page as Markdown
  • reqtool check --jsonDiagnostics an agent can act on

req is under active development: the language and this documentation are subject to change.