Options in this group use the same names as Mini-A help. Unset means the entry point leaves the value unspecified; the description explains conditional behavior. Explicit CLI arguments override agent-file settings and mode defaults.

Start with the related guide for a worked example.

All options are listed below. Filtering requires JavaScript.

Prompt and tool routing

adaptiverouting

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Enable the adaptive route layer (js/core/mini-a-router.js) that chooses execution pathways (direct MCP/proxy/shell/utility/delegation) from rule-based intent analysis and execution history while preserving existing policy controls.

Source definition · Runtime default

promptprofile

Type
string
Default

minimal in chatbot mode, verbose with debug=true outside chatbot mode, and balanced otherwise

Available in
Console, Agent job, Web startup

Control system prompt verbosity. balanced (the default) omits worked examples and the step-by-step “how to call MCP tools” walkthroughs, includes full plan-schema guidance only while a plan is first being generated, and trims MCP/utils tool-schema descriptions to their essential clause — this is a meaningfully leaner prompt than earlier releases while keeping all functional guidance. minimal goes further: no examples, no tool-schema descriptions for optional parameters, terse planning reminders only, and at most 8 skills listed. verbose restores the full worked examples, complete tool-schema descriptions, and detailed planning guidance at all times — use it if you hit unexpected tool-calling mistakes and want the richer guidance back. When unset, Mini-A defaults to minimal in chatbot mode, verbose with debug=true outside chatbot mode, and balanced otherwise.

Source definition · Runtime default

routerallow

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup

Comma-separated allowlist of route types the adaptive router may use.

Source definition · Runtime default

routerdeny

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup

Comma-separated denylist of route types the adaptive router must not use.

Source definition · Runtime default

routerorder

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup

Comma-separated preferred route order (for example mcp_direct_call,mcp_proxy_path,shell_execution).

Source definition · Runtime default

routerproxythreshold

Type
number
Default

Unset.

Available in
Console, Agent job, Web startup

Payload threshold in bytes where proxy-style handling is preferred (falls back to mcpproxythreshold when unset).

Source definition · Runtime default

systempromptbudget

Type
number
Default

Unset.

Available in
Console, Agent job, Web startup

Maximum estimated system-prompt token budget. When the rendered prompt exceeds it, Mini-A automatically drops lower-priority sections in this order: examples, skill descriptions, detailed tool reference, extended planning guidance, then excess skill entries.

Source definition · Runtime default

Decisions and advisors

advisorbudgetratio

Type
number
Default

0.20

Available in
Console, Agent job, Web startup

Fraction of session token budget that advisor calls can consume before low-value consults are declined.

Source definition

advisorcooldownsteps

Type
number
Default

2

Available in
Console, Agent job, Web startup

Minimum step distance between advisor consultations when modelstrategy=advisor.

Source definition

advisorenable

Type
boolean
Default

true

Available in
Console, Agent job, Web startup

Master toggle for advisor consultations inside modelstrategy=advisor runs.

Source definition

advisormaxuses

Type
number
Default

2

Available in
Console, Agent job, Web startup

Maximum advisor consultations per run when modelstrategy=advisor.

Source definition

advisoronambiguity

Type
boolean
Default

true

Available in
Console, Agent job, Web startup

Allow advisor consults on ambiguity signals.

Source definition

advisoronharddecision

Type
boolean
Default

true

Available in
Console, Agent job, Web startup

Allow advisor consults for hard-decision checkpoints.

Source definition

advisoronrisk

Type
boolean
Default

true

Available in
Console, Agent job, Web startup

Allow advisor consults on risk signals.

Source definition

emergencyreserve

Type
number
Default

0.10

Available in
Console, Agent job, Web startup

Portion of advisor budget reserved for higher-value/high-risk consults.

Source definition

evidencegate

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Enable lightweight evidence gating for non-trivial actions and final claims.

Source definition

evidencegatestrictness

Type
string
Default

"medium"

Available in
Console, Agent job, Web startup

Tuning level for evidence gate heuristics.

Source definition

harddecision

Type
string
Default

"warn"

Available in
Console, Agent job, Web startup

Controls hard-decision checkpoints for high-impact actions. require blocks hard actions unless advisor consultation succeeds.

Source definition

lcbudget

Type
number
Default

0 = unlimited

Available in
Console, Agent job, Web startup

Maximum total LC model token usage for the session. When the cumulative LC token count reaches this threshold, Mini-A permanently locks to the main model for the remainder of the session, logging a warning. Set to 0 to disable the budget cap.

Source definition

lcescalatedefer

Type
boolean
Default

true

Available in
Console, Agent job, Web startup

When enabled, if an escalation trigger fires but the current LC model response has a confidence score ≥ 0.7 (based on JSON validity, completeness, and action specificity), Mini-A defers the escalation by one additional step. If the next step also triggers escalation, it escalates immediately. Set to false to disable deferral and escalate as soon as the trigger fires.

Source definition

lcjsonretries

Type
number
Default

1

Available in
Console, Agent job, Web startup

Number of extra same-step attempts to give the low-cost model when its response fails to parse as valid JSON, before falling back to the main model. Each retry re-prompts the low-cost model with a concrete response example and formatting instructions and does not consume a step from maxsteps. It does consume tokens and counts toward lcbudget and call/token limits. Text, already-parsed objects, and arrays are accepted; retries preserve provider JSON-mode compatibility settings. Set to 0 to restore the previous behavior of falling back to the main model immediately on the first invalid-JSON response.

Source definition

lcreplytool

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Replace corrective LC JSON retries with a capture-only submit_reply MCP tool call on OpenAI-compatible (type=openai) and Ollama adapters. Enable with lcreplytool=true lcjsonretries=1. OpenAI recovery requests force that tool; Ollama receives only that tool plus explicit instructions. One valid single-action payload returns to the normal dispatcher; missing, malformed, or multiple calls leave recovery unsuccessful. Unsupported adapters keep the text retry. This uses the existing lcjsonretries budget and LC token accounting; it requires neither usetools=true nor usejsontool=true. See reply recovery details.

Source definition

llmcomplexity

Type
boolean
Default

Unset; configured decision-model refinement remains available unless false

Available in
Console, Agent job, Web startup

Refine medium complexity with the configured decision model. Set false to disable this; true also enables the legacy low-cost-model fallback when decision refinement is unavailable.

Source definition · Runtime default

usedecide

Type
boolean
Default

unset

Available in
Console, Agent job, Web startup

Enable decision-assisted selection, complexity, and bounded wiki auto link repairs with modeldec or OAF_DECIDE_MODEL (false disables).

Source definition · Runtime default

Outer loop

changetrackroot

Type
string
Default

current working directory

Available in
Console, Agent job

Filesystem root inspected by outer-loop change tracking (default current working directory).

Source definition

outerloop

Type
boolean
Default

false

Available in
Console, Agent job

Enable autonomous multi-cycle coding loop with durable per-session state

Source definition

outerloopinstructions

Type
string
Default

Unset; see conditional behavior below.

Available in
Console, Agent job

Path to persistent outer loop instructions markdown file

Source definition

outerloopmaxcycles

Type
number
Default

5

Available in
Console, Agent job

Maximum autonomous outer loop cycles

Source definition

outerloopmaxnochange

Type
number
Default

2

Available in
Console, Agent job

Stop after N cycles without meaningful change

Source definition

outerloopmaxtime

Type
number
Default

0 (no elapsed-time cap)

Available in
Console, Agent job

Maximum outer loop runtime in seconds

Source definition

outerloopsessionid

Type
string
Default

Unset; see conditional behavior below.

Available in
Console, Agent job

Existing durable outer loop session identifier to resume or continue

Source definition

outerloopstoponrepeat

Type
boolean
Default

false

Available in
Console, Agent job

Stop when the same validation failure repeats

Source definition

specfile

Type
string
Default

unset

Available in
Console, Agent job
Alias for
outerloopinstructions

Alias for outerloopinstructions

Source definition

taskfile

Type
string
Default

unset

Available in
Console, Agent job
Alias for
outerloopinstructions

Alias for outerloopinstructions

Source definition

trackchanges

Type
boolean
Default

automatic with no-change stopping

Available in
Console, Agent job

Track filesystem changes in the outer loop; enabled automatically when its no-change stopping condition is active.

Source definition

Model selection

contractargs

Type
string
Default

unset

Available in
Console, Agent job, Web startup

Positional supervised contract inputs.

Source definition

contractfile

Type
string
Default

unset

Available in
Console, Agent job, Web startup

Explicit supervised CONTRACT.md.

Source definition

model

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup, Ingestion job, Absorption job

Override OAF_MODEL configuration

Source definition · Runtime default

modeldec

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup

Override OAF_DECIDE_MODEL with a SLON/JSON configuration for this run. Select interactively with /model dec; /models displays the decision slot. See Decisions.

Source definition · Runtime default

modellc

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup

Override the low-cost model configuration at runtime (same format as OAF_LC_MODEL). Useful for quick per-run model selection without changing environment variables.

Source definition · Runtime default

modellock

Type
string
Default

adaptive behaviour

Available in
Console, Agent job, Web startup

Select a model tier for normal steps, bypassing score-based escalation and de-escalation. Recovery paths (including invalid-JSON fallback) can still call the main model, so this is not a strict spending or provider-isolation boundary. Use modellock=main to select the main model (OAF_MODEL), modellock=lc to select the low-cost model (OAF_LC_MODEL), or leave unset/auto for the default adaptive behaviour. A one-time info message is logged at startup when a lock is active.

Source definition

modelstrategy

Type
string
Default

"default"

Available in
Console, Agent job, Web startup

Select the model orchestration profile. auto resolves once per run (in init(), before the system prompt is built) to a concrete strategy: resumed runs keep theirs, contract options pick supervised, no LC model or modellock=main|lc picks default, eligible complex batch execution goals with a deliverable and verification signal pick supervised, while interactive and other complex goals pick advisor, medium low-risk goals with lcbudget>0 pick delegate, otherwise default. Medium goals are refined by the decision model when configured. orchestration=auto uses the same resolver when modelstrategy is not set explicitly. Subtasks of an auto run resolve for their own goal. default keeps current LC-first behavior with escalation. advisor keeps LC as the executor and selectively calls the main model as an internal advisor for difficult steps.

Source definition

modelval

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup

Override the validation model configuration at runtime (same format as OAF_VAL_MODEL). Useful when you want a dedicated validation model for one run without changing environment variables.

Source definition · Runtime default

modelvisual

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup, Ingestion job

SLON/JSON vision-model configuration for all image analysis, including wiki ingestion. Precedence: modelvisual, OAF_VISUAL_MODEL, then the existing main model. Select with /model visual; /models shows the visual slot.

Source definition · Runtime default

reusecontract

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Reuse applicable supervised contracts in the workspace.

Source definition

savecontract

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Save accepted supervised contracts.

Source definition

secpass

Type
string
Default

Unset; see conditional behavior below.

Available in
Console, Agent job, Web startup

Password used to unlock OpenAF sBucket model secrets when loading saved model definitions (for example, encrypted entries managed through modelman=true).

Source definition

Planning

convertplan

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Perform a one-off format conversion instead of running the agent. Requires planfile= (input) and outputfile= (target path) and preserves notes/execution history across Markdown/JSON/YAML.

Source definition

earlystopthreshold

Type
number
Default

3, auto-adjusts to 5 with low-cost models

Available in
Console, Agent job, Web startup

Number of identical consecutive errors before the early stop guard activates. The system automatically increases this threshold when using low-cost models before escalation to give them more recovery opportunities. Set explicitly to override automatic behavior.

Source definition

forceplanning

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Force planning to be enabled even if the complexity assessment suggests it’s not needed. Overrides the automatic planning strategy selection.

Source definition · Runtime default

forceupdates

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

When true, Mini-A records plan updates even when actions fail so the plan reflects obstacles and retry instructions.

Source definition · Runtime default

orchestration

Type
string
Default

manual

Available in
Console, Agent job, Web startup

Execution strategy mode: manual or deterministic auto.

Source definition

orchestrationcontext

Type
string
Default

auto

Available in
Console, Agent job, Web startup

Automatic strategy context: auto, interactive, or batch.

Source definition

plancontent

Type
string
Default

Unset; see conditional behavior below.

Available in
Console, Agent job, Web startup

Provide plan content directly as a string instead of loading from a file. Useful for programmatic plan injection.

Source definition

planfile

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup

When planning, write the generated plan to this path. In execution mode, load an existing plan from this path (Markdown .md, JSON .json, or YAML .yaml/.yml) and keep it in sync as tasks complete.

Source definition · Runtime default

planformat

Type
string
Default

the detected extension of planfile, or Markdown when unspecified

Available in
Console, Agent job, Web startup

Override the plan output format during planmode (markdown, json, or yaml). Defaults to the detected extension of planfile, or Markdown when unspecified.

Source definition · Runtime default

planlog

Type
string
Default

Unset.

Available in
Console, Agent job, Web startup

Append every plan update to the specified log file for auditing and debugging.

Source definition · Runtime default

planmode

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Switch to planning-only mode. Mini-A studies the goal/knowledge, generates a structured Markdown/JSON/YAML plan, and exits without executing any tasks. Mutually exclusive with chatbotmode.

Source definition

planstyle

Type
string
Default

simple

Available in
Console, Agent job, Web startup

Controls the plan structure style. Use simple for flat sequential task lists (recommended for better model compliance) or legacy for phase-based hierarchical plans with nested tasks. The simple style generates numbered steps that models can follow more reliably.

Source definition

resumefailed

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Resume execution from the last failed task when re-running Mini-A against a partially completed plan file.

Source definition

saveplannotes

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

When enabled, persist execution notes, critique results, and dynamic adjustments within the plan file structure. Useful for maintaining a complete audit trail of plan evolution.

Source definition · Runtime default

updatefreq

Type
string
Default

auto

Available in
Console, Agent job, Web startup

Controls how often Mini-A writes progress to planfile. Accepted values are auto (every updateinterval steps), always (after every qualifying action), checkpoints (25/50/75/100% of maxsteps), or never.

Source definition · Runtime default

updateinterval

Type
number
Default

3

Available in
Console, Agent job, Web startup

Step interval used when updatefreq=auto. Mini-A updates the plan after this many steps without a recorded update.

Source definition · Runtime default

useplanning

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Load (or maintain) a persistent task plan in agent mode. When no pre-generated plan is available Mini-A falls back to the adaptive in-session planner and disables the feature for trivial goals.

Source definition

validateplan

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Validate a plan using LLM-based critique and structure validation without executing it. Can be combined with planmode=true to generate and validate in one step, or used with planfile= to validate an existing plan. The validation checks for structural issues, missing work, quality risks, and provides an overall PASS/NEEDS_REVISION verdict.

Source definition

Research and validation

deepresearch

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Enable deep research mode with iterative validation

Source definition

maxcycles

Type
number
Default

3

Available in
Console, Agent job, Web startup

Maximum research cycles in deep research mode

Source definition

persistlearnings

Type
boolean
Default

true

Available in
Console, Agent job, Web startup

Carry forward learnings between deep research cycles

Source definition

valgoal

Type
string
Default

Unset; see conditional behavior below.

Available in
Console, Agent job, Web startup
Alias for
validationgoal

Alias for validationgoal (string or file path)

Source definition

validationgoal

Type
string
Default

Unset; see conditional behavior below.

Available in
Console, Agent job, Web startup

Validation criteria for deep research outcomes (string or file path; implies deepresearch=true, maxcycles=3)

Source definition

validationthreshold

Type
string
Default

“PASS”

Available in
Console, Agent job, Web startup

Required validation verdict (e.g., ‘PASS’ or ‘score>=0.7’)

Source definition

valtools

Type
boolean
Default

false

Available in
Console, Agent job, Web startup

Give the validator read-only tool access (read_file, fetch_url) so it can inspect files/URLs referenced in the valgoal

Source definition · Runtime default

Budgets and limits

lccontextlimit

Type
number
Default

0 = disabled

Available in
Console, Agent job, Web startup

Maximum context token count before escalating to the main model. When the estimated context size reaches this threshold, Mini-A switches to the main model for that step. Useful when the low-cost model has a smaller context window than the main model. Set to 0 to disable context-based escalation.

Source definition

maxsteps

Type
number
Default

15 via mini-a.sh/ojob, 50 when using the MiniA class programmatically

Available in
Console, Agent job, Web startup, Worker startup

Maximum consecutive steps without a successful action before the agent forces a final answer

Source definition · Runtime default

maxtotalsteps

Type
number
Default

0/disabled

Available in
Console, Agent job, Web startup

Hard ceiling on total steps regardless of progress. When reached, forces a final answer the same way maxsteps does — use this to bound goals that keep making “successful” progress but never call final.

Source definition · Runtime default

rpm

Type
number
Default

Unset.

Available in
Console, Agent job, Web startup

Rate limit in calls per minute

Source definition · Runtime default

rtm

Type
number
Default

Unset; deprecated alias for rpm

Available in
Console, Agent job, Web startup
Alias for
rpm

Rate limit in calls per minute

Source definition

runmaxtimems

Type
number
Default

0

Available in
Console, Agent job, Web startup, Worker startup

Aggregate auto-mode elapsed-time admission cap in milliseconds (0=unlimited).

Source definition · Runtime default

runmaxtokens

Type
number
Default

0

Available in
Console, Agent job, Web startup, Worker startup

Aggregate auto-mode model token admission cap across the agent tree (0=unlimited).

Source definition · Runtime default

tpm

Type
number
Default

Unset.

Available in
Console, Agent job, Web startup

Maximum tokens per minute across prompt and completion

Source definition · Runtime default

Configuration recipes

1. Model Configuration

Option definitions: model, modellc, modelval, modeldec, modelvisual, usedecide, modellock, lccontextlimit, lcescalatedefer, lcbudget, lcjsonretries, lcreplytool, orchestration, orchestrationcontext, runmaxtokens, runmaxtimems, acceptancereview, acceptanceoptimization, proxyargrepair, llmcomplexity, modelstrategy, contractfile, contractargs, savecontract, reusecontract, advisorenable, advisormaxuses, advisoronrisk, advisoronambiguity, advisoronharddecision, advisorcooldownsteps, advisorbudgetratio, emergencyreserve, harddecision, evidencegate, evidencegatestrictness, rpm, tpm.


6. Deep Research

Option definitions: deepresearch, validationgoal, valgoal, modelval, maxcycles, validationthreshold, persistlearnings.


7. Planning

Option definitions: useplanning, forceplanning, planstyle, earlystopthreshold, planmode, validateplan, convertplan, resumefailed, planfile, planformat, plancontent, updatefreq, updateinterval, forceupdates, planlog, saveplannotes, showthinking.


7a. Outer Loop Autonomous Coding

Option definitions: outerloop, outerloopinstructions, taskfile, specfile, outerloopsessionid, outerloopmaxcycles, outerloopmaxtime, outerloopstoponrepeat, outerloopmaxnochange.


13. Rate Limiting

Option definitions: rpm, tpm, rtm.