Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

config

A session’s settings: the agent’s config options (ACP’s configOptions), and its v1 modes where it has them (ADR 6.2). For the config file, see configuration.

brnr config get

Lists the config options the agent advertised and its v1 modes, each with its value and its choices.

brnr config get <session> [--mode] [--model] [--thought-level] [--option <o>]... [--json]
FlagMeaning
--modeOnly the option of category mode, else the v1 modes.
--modelOnly the option of category model.
--thought-levelOnly the option of category thought_level.
--option <o>Only option <o>, by its id. Repeatable.
--jsonPrint the options as JSON.

It lists only what the agent advertised: one it doesn’t have fails (setting_invalid).

Output (--json):

FieldTypeMeaning
sessionstringThe session.
optionslist of objectsThe options, then the v1 modes.
options[].optionstring or nullThe option’s id; null for the v1 modes.
options[].categorystring or nullACP’s category (mode, model, thought_level, …); null if the agent gave none.
options[].valuestring or booleanThe current value: a value id, or a boolean option’s true or false.
options[].choiceslist of objectsThe values it takes, a group’s too. A boolean option has none.
options[].choices[].valuestringA value id.
options[].choices[].namestringIts name.
options[].choices[].descriptionstring or nullIts description; null if the agent gave none.
options[].namestring or nullThe option’s name; null for the v1 modes.
options[].descriptionstring or nullIts description; null if the agent gave none, and for the v1 modes.
{
  "session": "sess-1",
  "options": [
    {
      "option": "model",
      "category": "model",
      "value": "small",
      "choices": [
        {
          "value": "small",
          "name": "Small",
          "description": null
        },
        {
          "value": "large",
          "name": "Large",
          "description": null
        }
      ],
      "name": "Model",
      "description": null
    },
    {
      "option": null,
      "category": "mode",
      "value": "default",
      "choices": [
        {
          "value": "default",
          "name": "Default",
          "description": "Asks before edits"
        },
        {
          "value": "plan",
          "name": "Plan",
          "description": "Plans, doesn't edit"
        }
      ],
      "name": null,
      "description": null
    }
  ]
}

Text output: a table of each option, then its choices, the current one marked *.

Exit codes: 0; 1 if it fails. Errors: those of a running session, setting_invalid.

brnr config set

Sets a session’s settings, as session new’s are resolved: by category for --mode, --model and --thought-level, by id for --option.

brnr config set <session> [--mode <m>] [--model <m>] [--thought-level <l>] [--option <o>=<v>]... [--json]
FlagMeaning
--mode <m>The option of category mode. session/set_mode only where the agent has v1 modes and no mode option.
--model <m>The option of category model.
--thought-level <l>The option of category thought_level.
--option <o>=<v>Option <o>, by its id. Repeatable.
--jsonPrint what was set as JSON.

One of them is needed. Two values for one setting fail, as does a mode, model or thought level the agent has no option for, before anything is sent (a usage error, or setting_invalid). Each is sent once, the mode first. An --option id the agent hasn’t advertised is sent too, for the agent to take or refuse; a refusal names what was already set.

Output (--json):

FieldTypeMeaning
sessionstringThe session.
setlist of objectsEach setting sent, in order.
set[].optionstring or nullThe option’s id; null for a v1 mode.
set[].categorystring or nullIts category; null if it has none.
set[].valuestringThe value sent.
{
  "session": "sess-1",
  "set": [
    {
      "option": "model",
      "category": "model",
      "value": "large"
    }
  ]
}

Text output: one <option>=<value> line for each setting sent, mode= for a v1 mode.

Exit codes: 0 once all are set; 1 if one fails. Errors: those of a running session, setting_invalid, agent_failed, experimental_disabled, process_stopping.