docs / Command-line tool

mini tool#

Installed with the Python package. Put the global --forks DIR option before the command to use another family directory: mini --forks my-families validate response.mini.

Command What it does
mini forks Lists the registry families.
mini validate FILE Strict validation; exits 1 on errors.
mini diagnose FILE Lenient validation; prints a JSON report with errors and lines to regenerate.
mini to-json FILE .mini → canonical JSON.
mini from-json FILE -p PREFIX Canonical JSON → .mini.
mini build SAMPLE.json [OTHERS.json] --prefix PREFIX --out .mini Generates the domain toolkit from JSON samples.
mini prompt PREFIX --lang es Specification block for the model prompt.
mini tokens FILE --enc o200k_base Tokens and bytes, declaring the tokenizer.
mini check-forks Checks the five invariants and fixture round-trips.
mini new-fork PREFIX --from PARENT --add "field:type" Creates a new family from another.
mini validate forks/a/fixtures/valid.mini
mini diagnose respuesta.mini | jq '.errors'
mini prompt log --lang es > prompt_sistema.txt
mini new-fork quiz2 --from a --add "feedback:str" "level:enum{easy|hard}"
mini check-forks