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

profile

The profiles in the config file, read and never written (ADR 6.5). An agent that can’t read the file, because its tool permissions or a sandbox keep it out, reads them here. The values of MCP servers’ env and headers show as <redacted>, their names kept; there is no flag that shows them. Arguments are not redacted: put secrets in env.

With --remote, each command reads the destination’s config (remote hosts).

brnr profile list

The config file’s path, then each profile with doctor’s line for it.

brnr profile list [--json]
FlagMeaning
--jsonPrint the profiles as JSON.

Output (--json):

FieldTypeMeaning
configstringThe config file’s path.
existsbooleanWhether there is a file. With none, defaults apply.
profileslist of objectsOne for each profile, by name.
profiles[].namestringIts name, as --profile takes it.
profiles[].agentlist or nullIts agent; null where it has none, and the agent is given after --.
profiles[].bridgesnumberHow many bridges it starts.
profiles[].mcp_serversnumberHow many MCP servers its headless sessions get.
profiles[].strictbooleanIts strict.
profiles[].experimentallist of stringsIts editor part’s experimental.
profiles[].client_capabilitieslist of stringsIts editor part’s client_capabilities.
profiles[].echo_asstringIts editor part’s echo_as.
profiles[].featureslist of stringsIts editor part’s features.
{
  "config": "/home/me/.config/brnr/config.toml",
  "exists": true,
  "profiles": [
    {
      "name": "work",
      "agent": ["brnr-claude-adapter"],
      "bridges": 0,
      "mcp_servers": 0,
      "strict": false,
      "experimental": [],
      "client_capabilities": [],
      "echo_as": "tool_call",
      "features": []
    }
  ]
}

Text output: the file’s path and how many profiles it has, or none; defaults apply, then a line for each profile.

Exit codes: 0, also with no file; 1 if the file doesn’t load. Errors: config_invalid, with each problem and where it is.

brnr profile show

A profile as session new --profile <name> and acp --profile <name> would use it, from the file as it is now; or, with --pid, what a running process was started with.

brnr profile show [<name> | --pid <pid>] [--json]
Argument or flagMeaning
<name>The profile. Without it, the one used without --profile: default, or the empty profile where there is none, which it says.
--pid <pid>The process’s start request, from its socket, not from the file: true of that process whatever the file says now, and there where the file can’t be read.
--jsonPrint it as JSON.

Output (--json), for a name:

FieldTypeMeaning
configstringThe config file’s path.
namestringThe profile’s name: default without one.
foundbooleanWhether the file has it. false only without a name: the empty profile applies.
profileobjectThe profile, in the file’s layout. A key the file doesn’t set has its default, or null where a rule applies instead; unset names it. profile keys has the defaults and rules.
profile.agentlist or nullThe agent’s command, or null: the agent given after --.
profile.logstringall, events or off.
profile.strictbooleanStable ACP only.
profile.bridgeslist of objectsThe bridges, as the file has them (bridges).
profile.bridges[].commandstringThe program.
profile.bridges[].argslist of strings, optionalIts arguments.
profile.bridges[].eventslist of strings, optionalThe events it gets.
profile.headlessobjectWhat session new and session resume use.
profile.headless.cwdstring or nullThe sessions’ working directory.
profile.headless.modestring or nullThe mode.
profile.headless.modelstring or nullThe model.
profile.headless.thought_levelstring or nullThe thought level.
profile.headless.optionsobjectConfig options, by id.
profile.headless.response_timeoutnumber or nullSeconds an approval or elicitation waits.
profile.headless.stop_when_idlenumber or nullSeconds until an idle session is closed.
profile.headless.authstring or nullThe login method.
profile.headless.mcp_serverslist of objectsThe MCP servers, as the file has them, the values of env and headers <redacted>.
profile.headless.mcp_servers[].namestringIts name.
profile.editorobjectWhat brnr acp uses.
profile.editor.experimentallist of stringsThe experimental actions enabled.
profile.editor.client_capabilitieslist of stringsThe editor’s capabilities that reach the agent.
profile.editor.echo_asstringHow a message sent through brnr is shown to the editor.
profile.editor.featureslist of stringsThe process-management features enabled.
unsetlist of stringsThe keys the file doesn’t set, by path: log, headless.cwd.
{
  "config": "/home/me/.config/brnr/config.toml",
  "name": "work",
  "found": true,
  "profile": {
    "agent": ["brnr-claude-adapter"],
    "log": "all",
    "strict": false,
    "bridges": [],
    "headless": {
      "cwd": null,
      "mode": null,
      "model": null,
      "thought_level": null,
      "options": {},
      "response_timeout": null,
      "stop_when_idle": null,
      "auth": null,
      "mcp_servers": []
    },
    "editor": {
      "experimental": [],
      "client_capabilities": [],
      "echo_as": "tool_call",
      "features": []
    }
  },
  "unset": ["log", "strict", "bridges", "headless.cwd", "editor.features"]
}

Text output: TOML in the file’s layout, each part’s table with who uses it, and each key the file doesn’t set marked: its default, # not set: the default, or a comment with the rule, # cwd: not set; --cwd, else where brnr session new runs.

Output (--pid --json):

FieldTypeMeaning
pidnumberThe process.
start_requestobjectWhat the process was started with, as its host log’s process_started record has it, without the prompt and foreground.
start_request.profilestring or nullThe profile’s name; null where none was given.
start_request.agentlist of stringsThe agent’s command as it was run.
start_request.cwdstringThe directory the process started in.
start_request.strictbooleanStable ACP only.
start_request.logstringWhat it records.
start_request.bridgeslist of objectsThe bridges, each command as it was run.
start_request.bridges[].commandstringThe program.
start_request.bridges[].argslist of stringsIts arguments.
start_request.bridges[].eventslist of strings or nullThe events it gets; null: every event but acp.
start_request.retentionnumber or nullThe config’s retention.
start_request.roleobjectheadless or editor, with what that role was started with.
start_request.role.headlessobject, optionalA headless process’s.
start_request.role.headless.resumestring or nullThe session it resumed.
start_request.role.headless.transcriptbooleanWhether brnr had the resumed session’s transcript.
start_request.role.headless.settingsobjectWhat the start’s flags set: mode, model, thought_level, options.
start_request.role.headless.settings.modestring or null--mode.
start_request.role.headless.settings.modelstring or null--model.
start_request.role.headless.settings.thought_levelstring or null--thought-level.
start_request.role.headless.settings.optionsobject--option, by id.
start_request.role.headless.defaultsobjectWhat the profile set, the same fields: the flags win over it.
start_request.role.headless.defaults.modestring or nullThe profile’s mode.
start_request.role.headless.defaults.modelstring or nullThe profile’s model.
start_request.role.headless.defaults.thought_levelstring or nullThe profile’s thought_level.
start_request.role.headless.defaults.optionsobjectThe profile’s options.
start_request.role.headless.mcp_serverslist of objects, ACP’sThe MCP servers as session/new sends them, the values of env and headers <redacted>.
start_request.role.headless.authstring or nullThe login method.
start_request.role.headless.eventslist of stringsThe events the start followed its first turn by (--wait).
start_request.role.headless.start_timeoutnumberSeconds the start had.
start_request.role.headless.stop_when_idlenumber or nullSeconds until an idle session is closed.
start_request.role.headless.response_timeoutnumber or nullSeconds an approval or elicitation waits.
start_request.role.editorobject, optionalAn editor’s process’s.
start_request.role.editor.proxy_pidnumberThe brnr acp process.
start_request.role.editor.sigmasklist of numbersThe editor’s signal mask, which the agent got.
start_request.role.editor.experimentallist of stringsThe experimental actions enabled.
start_request.role.editor.client_capabilitieslist of stringsThe editor’s capabilities that reach the agent.
start_request.role.editor.echo_asstringHow a message sent through brnr is shown to the editor.
start_request.role.editor.featureslist of stringsThe process-management features enabled.
{
  "pid": 4466,
  "start_request": {
    "profile": null,
    "agent": ["/opt/homebrew/bin/brnr-claude-adapter"],
    "cwd": "/home/me/project",
    "strict": false,
    "log": "all",
    "bridges": [],
    "retention": null,
    "role": {
      "headless": {
        "resume": null,
        "transcript": false,
        "settings": {"mode": null, "model": null, "thought_level": null, "options": {}},
        "defaults": {"mode": null, "model": null, "thought_level": null, "options": {}},
        "mcp_servers": [],
        "auth": null,
        "events": ["agent_message", "turn_ended"],
        "start_timeout": 120,
        "stop_when_idle": null,
        "response_timeout": null
      }
    }
  }
}

Text output: the same, as TOML, the null fields left out.

Exit codes: 0; 1 if it fails. Errors: profile_not_found (a name the file doesn’t have), config_invalid (a file that doesn’t load, or a name with no file), as a start fails; with --pid, process_not_found, process_unreachable.

brnr profile keys

Every key a profile can have. It reads the same table as the check that loads the file and as profile show, so the three can’t disagree.

brnr profile keys [--json]
FlagMeaning
--jsonPrint the keys as JSON.

Output (--json):

FieldTypeMeaning
keyslist of objectsOne for each key, by part, in the file’s layout.
keys[].keystringIts name.
keys[].partstringIts part: shared ([profiles.<name>]), headless ([profiles.<name>.headless]) or editor ([profiles.<name>.editor]). In another part it fails to load.
keys[].typestringIts TOML type: string, list of strings, array of tables: command, args, events, …
keys[].defaultany or nullIts value when the file doesn’t set it; null where rule applies instead.
keys[].rulestring or nullWhat applies when the file doesn’t set it and it has no default.
keys[].nameslist of stringsThe names it takes, as its value or its list’s items; empty for a key that takes any.
keys[].adrstringThe ADR section that decides what it does.
{
  "keys": [
    {
      "key": "agent",
      "part": "shared",
      "type": "list of strings",
      "default": null,
      "rule": "the agent given after --",
      "names": [],
      "adr": "6.1"
    },
    {
      "key": "log",
      "part": "shared",
      "type": "string",
      "default": "all",
      "rule": null,
      "names": ["all", "events", "off"],
      "adr": "5.1"
    }
  ]
}

Text output: each part’s table, then a line for each of its keys.

Exit codes: 0.