Documentation

Complete nlmx ask command and .ask settings index

This page records the complete user-facing Maxson interface for nlmx 4.16.1. Generate the installed template with nlmx ask --print-config nlmx.ask and inspect help with nlmx ask --help.

The ask settings map

Invocation forms

nlmx ask "check data/pk.csv and list blockers"
nlmx ask -c nlmx.ask "screen data/pk.csv with 1 and 2 compartments"
nlmx ask -c nlmx.ask                    # interactive conversation
nlmx ask --plan-only "plan an er analysis"
nlmx ask --llm-backend mock --llm-script replies.json "test" --yes

Ask-specific and operational CLI options

Option Meaning
[REQUEST]... quoted plain-language request; absent in a terminal starts conversation; stdin also supported
-c, --config FILE.ask settings file; command-line values override it
-o, --output DIR new or empty session directory; otherwise nlmx_ask/<date-time>
--llm-backend embedded|server|mock backend selection
--llm-model FILE.gguf explicit embedded model path
--llm-gpu-layers auto|all|off|N embedded GPU offload
--llm-url URL server address; default http://127.0.0.1:8080
--llm-name NAME server model name; default qwen2.5:3b-instruct
--llm-script FILE.json mock reply list
--threads N embedded CPU threads; default all
-y, --yes skip confirmations when policy allows
--plan-only verify and display proposals; execute no analysis command
--print-config FILE.ask write annotated template and exit
--suppress-console 0|1 hide progress at 1; logs remain
--log-file FILE outer ask transcript log location when directly invoked by user
--no-color, -v, -q terminal format/verbosity; -q suppresses live child output
--license, -h/--help print and stop

The shared help parser also displays options belonging to child commands (--approximation, --replicates, --samples, --filter, and others). They are not .ask controls; Maxson may place them in a proposed nlmx child command subject to policy.

[assistant]

Key Default Accepted / effect
name Maxson introduction/name
instructions_file unset plain-text site instructions, path relative to .ask
instructions_mode append append or replace; protocol/policy remain
mode auto auto or guide
manual true automatic relevant built-in manual excerpts

[model]

Key Default Accepted / effect
backend build/source dependent embedded, server, mock
path searched embedded GGUF
url http://127.0.0.1:8080 server URL
name qwen2.5:3b-instruct server model
script unset mock JSON script
temperature 0.1 0–2
max_tokens 768 longest model reply
context 16384 context window in tokens (8192 before 4.18.1); must be supported by model; the history is trimmed to fit
threads all available embedded CPU threads
gpu_layers auto auto, all, off, positive count
seed 20241024 embedded sampling seed
grammar true structured grammar; server receives it only when explicitly supported/configured
json_mode true request server response_format; disable if rejected
timeout_seconds 600 model-reply timeout

Backend source precedence: CLI backend/path/script, settings, NLMX_MODEL, model search and build availability. Embedded file precedence is explicit CLI path, settings path, environment variable, then searched folders.

[policy]

Key Default Effect
commands compiled allowlist only listed nlmx subcommands; ask always forbidden
forbid_options [] plus built-ins adds forbidden flags; cannot remove built-ins
read_dirs [] plus start/session extra readable roots
confirm every every, long, none
allow_yes true permit/deny --yes
allow_remote_server false server must be local unless true
settings_files true require/generate reproducibility settings and explicit fit options

Built-in forbidden options: --overwrite, --log-file, --print-config, --run-dir, --keep-subject-ids in model-proposed child commands.

Compiled no-config command allowlist: inspect, validate, qc-data, qc-nm, eda, custom, report, nca, autoinit, screen, fit, vpc, forest, cov, posterior, sims, power, er, generate, schema. The generated template currently writes an explicit list that omits power; add it deliberately if required.

[policy.max_values]

Defaults: --subproblems=1000, --samples=5000, --study-replicates=200, --replicates=1000. Add options such as --threads or override with tighter values. Matching settings-file values are also checked.

[limits]

Key Default Meaning
max_rounds 12 model replies per request
max_steps 15 proposed commands per request
step_timeout_minutes 120 child timeout
total_minutes 480 request timeout
result_chars 3500 command listing returned to model
fix_attempts 2 changed corrections after normal failure
manual_chars 3000 automatic/manual/template/file excerpt budget

Interactive commands and confirmations

At confirmation: y one, n decline, a this and later commands in the request, q stop request. At you>: /guide, /auto, /help; exit, quit, bye, or q ends the conversation.

Exit codes and interpretation

Code Outer ask meaning
0 session ran; individual child commands may still be refused, declined or failed
2 usage/backend/policy invocation error, including mock without script
3 I/O or server connection failure
4 invalid .ask settings
5 embedded requested from a build without it

Always inspect request summary/end event and child results, not only outer exit code.

Session artifacts

transcript.md, ask_log.jsonl, commands.txt, ask_settings.ask, system_prompt.txt, templates/, generated command settings, settings_history/, numbered step folders with ask_console.txt and native outputs, outer log, and checksum manifests.

Return to the Chapter 35 overview or begin 35.1.