PLANNING

AI-assisted requirements

RAIQL 0.17 adds an optional planning adapter. AI may propose RAIQL source, but only the deterministic compiler can accept and generate it.

Plan from text

terminal
OPENAI_API_KEY=... raiql plan "Build a tenant-aware CRM with users and projects" -o crm.raiql

The CLI sends requirements to the configured model, saves the returned source, then immediately runs the local RAIQL compiler.

Plan from a file

terminal
raiql plan requirements.txt --model gpt-6-luna -o draft.raiql

Use RAIQL_AI_MODEL or --model to choose the model.

Safety boundary

The planning model never deploys code. Generated text is saved as a normal RAIQL file, compiler diagnostics are shown, and invalid drafts stop before generation.

Deterministic authority

Parsing, validation, IR generation, code generation, tests and deployment artifacts remain deterministic. AI is an optional authoring assistant, not the compiler.

Continue exploring RAIQLOpen the playground →