Skip to content

Releases

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 22:52
3720ca4

Added

  • Muse Code through brnr-muse-adapter, built from pinned upstream Rust source; adapter discovery and version reporting, ACP v1 checks, Dependabot and canary coverage (ADR 11.1–11.3).
  • Execute commands over system SSH with --remote <[user@]host>, including ACP, session control and event streams. --remote is the only transport: without it, nothing connects to another machine. A profile is read on the machine that runs the command, so with --remote, --profile is the destination's. The destination's brnr is the one on its shell's PATH; without one the command fails with remote_brnr_not_found, which says where to set the PATH, and another version fails with remote_version_mismatch. remote check <target> checks a destination's installation. SSH owns authentication and host trust; matching brnr versions are required (ADR 12, #401, #409).
  • brnr profile list | show [<name> | --pid <pid>] | keys, which read and never write: the config file's profiles, a profile as a start would use it (its unset keys marked, with their defaults or rules), what a running process was started with, and every key a profile can have. MCP servers' env and headers values show as <redacted>. With --remote, they read the destination's. The library's facade has them as brnr::profile (ADR 6.5, 8.5, #409).
  • The bridge protocol's start_request: the request the process was started with, redacted, without the prompt (ADR 6.5). The protocol stays version 1 until after 1.0.0 (ADR 8.8).

Changed

  • The Claude adapter is built from claude-agent-acp 0.94.0 (brnr-claude-adapter) (ADR 11.3).

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 21:47
68a804c

Added

  • The library has a typed facade: a module for each command group and a function for each verb (brnr::session::list, brnr::prompt::send), which runs the command and returns what its --json prints, with the same names and shapes, and an error with its code (brnr::Error, brnr::Code). Waits return their exit status with their data (brnr::Exit), as do session delete, session prune and doctor; event log and event watch give each event to a closure. session new and session resume start the process as <program> host, which the program hands to brnr::run. A usage error is the new code usage_invalid, which only the facade returns (ADR 8.5, 8.7, #215).
  • A retention policy for transcripts and host logs (ADR 9.5, #373). brnr still keeps everything by default, and now says so: the README and the transcripts guide say what it keeps, where, and for how long. brnr session prune --older-than <s> [--dry-run] [--json] deletes brnr's transcripts of the sessions last active more than <s> seconds ago, and the host logs of processes that have gone and were, as session delete --purge deletes them. retention = <s> at the top of the config has every process do the same as it starts, and record it in its host log (transcripts_pruned). A session open in a process, or whose lock is held, is never pruned. doctor says the retention in days.
  • Junie (junie --acp true) and Cursor (cursor-agent acp) through brnr: profile examples, and adapters/smoke.py, a smoke check run by hand with the real agent, which checks initialize, a session, a prompt, a cancel, a clean shutdown, and fork, list, resume and close where the agent advertises them. The guide records the results, with the versions: Junie 26.10.5 passes every check; Cursor 2026.10.19 fails two of its own making, which brnr doesn't work around (ADR 11.9, #231).
  • What brnr acp adds is measured on every pull request: a prompt's round trip and a streamed turn's time, each over the same agent on a direct pipe, the memory of brnr acp and its process at rest, and their threads, with budgets in benches/budgets.toml. The job fails when a number passes its budget, and a comment on the pull request has the numbers. The README and the book give one run's (ADR 1, N3, #35).

Changed

  • Breaking: session delete --purge deletes a session's events file last, after its raw ACP and the files set aside, so a purge cut short leaves the file the session is found by (ADR 9.5). purged lists them in that order.
  • The documentation is a book, at brnrhq.github.io/brnr/docs, with search: the guide that was the README, the interface reference, the ADRs and the threat model. The README is short: what brnr is, installing, a quick start and links to the book. The landing page links to the book (ADR 11.8, #374).
  • The landing page, the README and the book's introduction say what brnr is for, in the same words: a burner phone for your coding agents, and four things it does, each with an example on the page and the introduction. The diagram is an image, light and dark, in place of the text one (ADR 1, #376).
  • The interface reference is a section of the book, docs/reference/: a page for each command group, and pages for the events, the bridge protocol, exit codes, errors, the configuration and the files. Each output has a table of its fields and an example, which a test runs and compares with what brnr prints. docs/interface.md is gone (ADR 8.4, ADR 11.8, #375).

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 01:24
ff36220

Added

  • turn_ended, the status's last_turn and prompt send --wait --json have tokens: the counts the agent reported in its answer to the prompt (ACP's unstable usage), total, input, output, thought, cached_read and cached_write, each null where it gave none that is a count, and null when the answer has no usage object. brnr adds nothing up. session status shows the last turn now, in text and --json, and a turn's text line ends with its counts: turn ended: end_turn (control); tokens: 1.2k total, 1.0k input, 234 output (ADR 4.4).
  • session list and session status say which session a fork came from (forked_from, a FORKED FROM column in the list), also once its process has ended: the fork's transcript records it in its first record, session_opened. That is so for a fork session fork makes and for one an editor makes through brnr acp (session/fork) (ADR 3.12, ADR 5.1, #238).
  • Every event has the brnr process's pid, beside host_id, and so does every line event log --json and event watch --json print: the records_skipped note has ts, host_id, pid and, in a session's file, session, and events_missed has pid; subscribe's answer has pid too (ADR 5.9, #314).
  • elicitation show --json, and the elicitations in the socket's pending answer, have the process's pid, as elicitation requests --json's rows do (ADR 8.2, #150).
  • --events takes the notes' names, records_skipped and events_missed, which are shown whatever it chose: event log --events records_skipped lists only a transcript's gaps (ADR 5.9, #314).
  • The host log notes each subscription on the control socket, peer_subscribed with the connection's peer, once the connection gets the events that follow (ADR 10.2, #333).
  • A process says which brnr it is: its <pid>.json and the socket's status have brnr, its version, and protocol, the version of what its socket speaks. A command that fails because the process is another brnr (an editor's process outlives brew upgrade brnr) says so, and how to restart it: brnr process stop <pid> and brnr session resume <session> for a headless one, the agent restarted in its editor for an editor's. Events a command asked for that the process doesn't have are said on stderr, and the command goes on (ADR 8.8, #149).

Changed

  • Commands ask every process for its status at once, so processes that don't answer cost about 5 s in all, not 5 s each. A process serves at most 128 connections at once, and answers the next too many connections: 128 open and closes it (ADR 10.4).

  • Breaking: a socket or bridge request with a field its cmd doesn't take is refused, command_unknown, and nothing is done; it was done without it. allow's and reject's old option is such a field now, command_unknown, not command_invalid (ADR 8.8, #149).

  • subscribe with an event the process doesn't have subscribes to the rest, and names it in its answer's unknown_events, so that a bridge written for a newer brnr gets an older process's events; it refused the subscription, event_unknown, which in subscribe is now only for a note's name; a profile's bridge events still fail with it for an event brnr doesn't have (ADR 8.8, #149).

  • Breaking: every error brnr reports as data is {"code", "message"}: a socket or bridge reply that fails is {"ok": false, "error": {"code": "session_not_found", "message": "no session s"}}, not "error": "<text>"; so are the error of turn_ended, last_turn, --wait --json's turn, session delete --json, process_exited, events_missed, records_skipped and the host log's failure records. The code is a word that keeps its meaning (docs/interface.md lists them); the message is for people. An error the agent answered with is agent_failed, the agent's JSON-RPC error whole as rpc_error: read error.rpc_error.code where you read error.code before. A failed command with --json prints {"error": {…}} on stdout, and stderr says brnr: <message> [<code>] (ADR 8.7).

  • Breaking: a usage error exits 2, not 1, in every command: an unknown command, verb or option, an argument missing or one too many, a value a flag can't take (event wait --for soon, --events nope, brnr skill nope), flags that don't go together (--timeout without --wait), or brnr or a group with no command. Nothing is done; brnr says what was wrong, then the command's usage, on stderr. An operation that fails still exits 1. A script that took 1 for both tells them apart now (ADR 8.3).

  • Breaking: --help and -h print the usage on stdout and exit 0 in every command: doctor --help, skill --help and skill install --help printed on stderr and exited 1, and brnr acp took them only as its first word (ADR 8.3).

  • brnr acp --help names its arguments <p> and <agent>, as brnr --help does (ADR 8.3).

  • Breaking: brnr acp exits 1 for a config error, not 2, as the control commands do: 2 is a usage error only (ADR 8.3, #338).

  • Breaking: brnr reads a line nested up to 128 levels ([[1]] is 2), about what serde_json and ACP's Rust SDK read, where it read any depth on a thread whose stack it sized to the line. A deeper line from the agent or the editor is treated as one past 32 MiB: with an editor it goes on unread and unrecorded, headless it is dropped, and a new line_too_deep event (from, max_depth, relayed) says so; brnr tracks nothing of it, so a permission request that deep isn't listed, answered from outside or timed out. The commands read what brnr wrote (answers, events, transcripts) up to 256 levels, and fail, saying so, past it. No event or timer runs on a thread of its own any more, and --json output indented stays small (ADR 2.5, #268, #259).

  • A process whose status answer has an agent's turn error nested past 128 is answering: the commands that look for processes (session list, permission requests, …) no longer pass it over as not answering (ADR 2.5, #323).

  • Breaking: brnr refuses a config file that isn't yours, or that the group or others can read or write, or whose folder isn't yours or they can write, or, on macOS, either with an access control list (chmod -N removes it), as ssh does its keys: the file names the commands brnr runs and can hold MCP secrets. Every command that reads it fails, naming the path, the owner or mode, and the chmod or chown that fixes it, and brnr doctor fails its config check the same way; brnr doesn't change the file. A config written as 0644 now fails: chmod 600 it. A symlink is followed, and the file it points at, and that file's folder, are checked (ADR 9.4, #271).

  • The decision records are 11 topic records, each decision a numbered section, cited as ADR T.k (ADR 3.9: ownership is a per-session lock). Entries of releases before this one cite the former numbers, 1 to 71; docs/adr/README.md maps each to its section now.

  • Breaking: brnr acp drops the editor's fs and terminal client capabilities from its initialize again by default, as ACP v2 has neither, and notes capabilities_dropped in the host log. A profile passes them by name, client_capabilities = ["fs", "terminal"] in its editor part, and strict mode passes both, as stable ACP v1 has them (ADR 2.7, #272).

  • The Claude adapter is built from claude-agent-acp 0.90.0 (brnr-claude-adapter) (ADR 11.3).

  • A command refused for where its session is says it in the same words, whichever command it is: session delete of a session open in a process says sess-1 is running in process 4466: close it first (…), and session resume and session delete of one whose process doesn't answer, is opening it or isn't listed say which, without offering --take-over or closing it first, which can't work there (ADR 3.9, #281).

  • Breaking: each cwd has a project folder of its own: a new session's transcript goes in ~/.brnr/projects/<claude>-<hash>/, <claude> the cwd as ~/.claude/projects names it and <hash> 8 hex digits of a hash of the cwd (-Users-me-src-3db3a304), where /a-b and /a/b, and on macOS /A and /a, shared one folder. Transcripts already written stay where they are; they are an older brnr's, which isn't read (below). A tool that joins brnr's folders to ~/.claude/projects by the exact name now matches by the prefix (ADR 9.2, #120).

  • Breaking: the event exited is process_exited, its status exit_status and its reason error: --events process_exited, BRNR_EVENT=process_exited, and a bridge's events with the new name (ADR 5.9, #314).

  • Breaking: transcript and host-log records are snake_case and named subject first, as ADR 5.9 lists them: session-opened is session_opened, records-skipped records_skipped, events-missed events_missed, peer-dropped peer_dropped, made-private path_made_private, session-log-failed session_log_failed, and so on; send is message_accepted (or context_accepted for context), cancel cancel_requested, started process_started (its request start_request), stopping stop_requested, signal signal_relayed, host-signal signal_received, panic process_panicked, host-stderr process_stderr, idle-timeout idle_timed_out, editor-closed-stdin editor_stdin_closed, not-sent-to-editor editor_message_dropped. An acp record's dir agent-stderr is agent_stderr (ADR 5.9, #314).

  • Breaking: every record's head names the session session and the brnr process pid, where it had session_id and host_pid. A transcript or host log an older brnr wrote isn't read (below). A session resumed starts a new transcript in its cwd's folder; nothing goes on in an older brnr's file: one in the way is renamed <name>.older.jsonl, which the host log's session_log_moved says, and session delete passes one over. session delete --purge deletes the files set aside too, every file of the session's id it finds, an...

Read more

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 22:38
39d304e

Added

  • process stop and session close take --json: {"pid": <n>, "status": "stopping"} and {"session": "<id>"}, what their text says (ADR 34).
  • The history event has loads, how many loads its replay covers: more than 1 when an editor loads a session again before the agent has answered its last load, and recorded_updates, how many of its updates the transcript has (ADR 57).
  • A session_reopened event, by editor, says that the agent answered an editor's load of a session with success after answering its close: the session is open in the editor's process again, and the load's history follows, counting what it replayed across the close; what came while the session was closed isn't recorded, and recorded_updates says so: history: 4 updates replayed by the agent, 3 recorded (ADR 57).
  • Elicitations, the agent asking for input (elicitation/create): a form, or a URL to open, such as an MCP server's login. Headless, brnr advertises both modes, which claude-agent-acp needs for AskUserQuestion. brnr elicitation requests, show, accept, decline and cancel list, show and answer them; accept --field name=value (or a JSON object on stdin) is checked against the form before anything is sent, and a URL is shown, never opened. One outside any session is named with --pid. Events elicitation_request, elicitation_resolved and elicitation_completed, for watchers, bridges and editor sessions too; event wait --for elicitation; event notify runs for elicitation_request by default; prompt send --wait announces one on stderr; session status counts elicitations, and a session with one is waiting. The socket's pending has elicitations, and elicitation answers one. On an editor's session, answering is the experimental elicitation (ADR 68).
  • A command the process cuts off for falling behind catches up: event watch, event notify, event wait and the --waits ask the process whether it cut them off (was_cut_off, a new request), subscribe again, and read what they missed from the transcript before going on live, so a burst bigger than a peer's queue and the 64 MiB set aside (#117) no longer loses events. Where the transcript can't have them (log = false, log = "events" for acp, records skipped), or cut off 4 times in a row while catching up, the command says what it missed, an events-missed note, and exits 3 (ADR 69).
  • Every event, live and in the transcript, and every raw ACP record has its position in its process, seq; subscribe answers with the connection's peer, host_id and the seq it starts after, as session new --wait's ready report does; logged answers lost when a file has lost records it hasn't noted yet; and records-skipped says the positions it lost, first_seq and last_seq (ADR 69).
  • A peer_cut_off event tells the other peers that one was cut off, and the last_queued event it was sent, as the host log's peer-dropped now says too (ADR 69).
  • echo_as in a profile's editor part: "user_message_chunk" shows a message or context sent to the editor's session through brnr as the user's message, one user_message_chunk per block, for an editor that renders one outside a turn; "tool_call", "Message via brnr", stays the default. brnr's own notes stay tool calls (ADR 70).
  • Release candidates, vX.Y.Z-rc.N: a GitHub pre-release, and on crates.io (cargo install brnr --version X.Y.Z-rc.N --locked), while Homebrew stays on the last release. A release's notes take in its release candidates', so they say everything since the last release (ADR 40).

Changed

  • Breaking: a headless session's elicitation waits for an answer, where brnr declined it at once: an unattended run now waits on it. Set response_timeout (or --response-timeout), which has no default and cancels one nobody answered, never declines or accepts it (ADR 68).
  • Breaking: the headless permission_timeout is response_timeout, and session new and session resume's --permission-timeout is --response-timeout: one timeout for the user's responses, which answers a permission request nobody answered reject_once (else cancels its turn) and an elicitation cancel. Rename the key in your profiles and the flag in your scripts; a profile with permission_timeout fails to load (ADR 68).
  • Breaking: prompt send's options go before its prompt: from the prompt's first word on, every word is the prompt's, as after --, so an option after the text (brnr prompt send $s "fix it" --wait) is sent as text; put it before the text. - (stdin) goes alone: a word after it fails the command; quote a prompt that starts - (ADR 63).
  • Breaking: prompt send --timeout without --wait fails, as session new's does, where it was ignored; drop it or add --wait (ADR 21).
  • Breaking: event log has no -f: use --follow. A word with one dash is an argument there and in session new and resume, as for the other commands, not an unknown option (ADR 63).
  • Breaking: a session's lock is $BRNR_HOME/sessions/<id>.lock, beside its transcript, where it was $BRNR_DIR/sessions/<id>.lock. Two processes whose runtime directories differed (on Linux, a shell with XDG_RUNTIME_DIR and a cron job without it) but shared ~/.brnr each took a lock of their own, so both could own one session and append to one transcript, and each environment's commands saw only its own process. Now the second resume is refused, naming the process and its runtime directory (sess-1 is running in process 4466 with runtime directory /run/user/1000/brnr (BRNR_DIR=/run/user/1000/brnr reaches it)), with or without --take-over; session list there shows the session unreachable with that pid; commands on it, and an editor's load of it, are told the same, with the directory after BRNR_DIR= quoted for the shell where it needs to be; and doctor lists locks left by processes that are gone under session locks. log = false still writes the locks there. A lock left in $BRNR_DIR/sessions/ is read by nothing: remove the directory. How the runtime and state directories are found, and how a session id (file_name) and a cwd (project_key) become file names, are fixed for 1.x (ADR 3, ADR 65).
  • Breaking: brnr acp no longer drops the editor's fs and terminal client capabilities, in strict mode or without: the agent gets them as the editor offers them, its fs/* and terminal/* requests go to the editor, and the editor's answers come back to it. Whether real editors then serve unsaved buffers and their terminals as they do run directly isn't checked yet (ADR 67's real-editor checks, #216). There is no setting to drop them again: whether to serve them is the editor's. A headless session still offers neither, and the host log has no capabilities-dropped record (ADR 67).
  • Every side-channel action on an editor's session (send, context, cancel, permission, config, close) stays experimental, opt-in by name, for all of 1.x; one leaves experimental only by an ADR with evidence from real editors (ADR 67).
  • From 1.0.0, what docs/interface.md marks Covered is kept compatible within a major version: the command line, --json, exit codes, events, the protocol of the bridges brnr starts, transcripts, where brnr's files are, config and what brnr acp passes through. Text output, error wording, host logs and the control socket are not covered. Until 1.0.0 nothing is kept for compatibility, as before (ADR 64).
  • event notify on the socket, cut off for falling behind while its command runs, lets the command finish and catches up, where it stopped the command and exited 1; a started bridge (--stdin) is cut off as before (ADR 69).
  • The adapters are built from claude-agent-acp 0.89.1 (brnr-claude-adapter) and codex-acp 2.2.2 (brnr-codex-adapter) (ADR 39).

Removed

  • Breaking: the brnr crate's public library API is removed: its modules (brnr::render, brnr::schema, brnr::json and the rest) are private, and its one public item is brnr::run, the command line as a function. Run brnr with --json, or call brnr::run, instead; a typed facade that mirrors the command line follows #150 (ADR 66).

Fixed

  • A detached process's own stderr (host-stderr in the host log) is read in pieces of 64 KiB at most, as the agent's and a bridge's are, where a line of any length was held whole. The agent's stderr pieces end between characters, so a character the 64 KiB boundary cut is no longer two U+FFFD in the host log; a line of exactly 64 KiB is one record, not one and an empty one; and a failed start's tail cuts a long line between characters (ADR 11, ADR 51).
  • brnr prompt send $s explain ls -h sends explain ls -h: -h and --help print the usage only before the prompt, where they printed it, sending nothing, from anywhere in it (ADR 63).
  • session status --json without a session prints its usage, and an option session status, session close or process stop doesn't take is said as unknown, where each was taken for the session or pid (no session --json) (ADR 63).
  • session list, process list, doctor and skill say which option they don't know, as the other commands do, where they printed their usage (ADR 63).
  • Text says in words what --json has as a value (ADR 34): a failed turn is turn failed: boom (control), without JSON quotes; an exit is agent exited with code 1, agent killed by SIGTERM or agent exited (status unknown) (ADR 11), in event watch, event log, event notify's BRNR_TEXT and event wait --for exit; event watch --pid shows each session's whole id, to paste into the next command (ADR 13); and session status says working for a busy session whose turn time it doesn't have, and waiting for an approval for one that is waiting, where it said idle.
  • permission requests with no session lists the approvals in the processes that answer, and exits 0, when one doesn't...
Read more

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 14:40
e287dc4

Added

  • session new and resume take --thought-level <l>, the option of category thought_level, and --permission-timeout <s>, which wins over the profile's permission_timeout as the other flags win over theirs (ADR 58, ADR 63).
  • brnr queue show <s> <m> shows one held message in full: its text, whether it interrupts, and its attachments; the socket's queue takes show (ADR 63).
  • brnr session delete <s> has the agent delete its copy of a session (session/delete), the agent brnr recorded for it or the one named, and is refused for a session open in a process and for an agent that can't delete sessions. brnr's transcript stays, with a new session_deleted event in it, as it does for an editor's session/delete through brnr acp. --purge also deletes brnr's transcript of the session (its events and raw ACP files, not the host logs) whatever the agent answered, and exits non-zero unless the agent deleted the session or doesn't have it (resource_not_found; the Claude adapter answers another error, so --purge of a session it already deleted exits non-zero). A file that can't be deleted, or have session_deleted recorded in it, is said and exits non-zero, the others done all the same, and a transcript made private first is said on stderr (ADR 63).
  • session new --pid <pid> and session resume --pid <pid> <session> open a session in a running process, with its agent, profile and MCP servers, and the socket and bridges have the same as new and resume. The session, its settings and its prompt commit as one, as a start's do: a setting that fails, or the start timeout passing (the process's, as for a start), closes the session again and says so (or names the session left open, for an agent that can't close sessions); the process stopping fails it; and a command gone first leaves no session. A session being opened keeps the process from stopping as its other sessions close or go idle. The process flags and -- <agent> are an error with --pid; an editor's process refuses, as does one with stop_when_idle whose agent can't close sessions; --take-over works as without --pid, and first checks that the process would resume the session (ADR 63).

Changed

  • Breaking: commands are grouped by what they act on, brnr <group> <verb>, and the old names fail as unknown commands, with no aliases: ps and stop are process list and process stop; status, fork and close are session status, session fork and session close; send, cancel and commands are prompt send, prompt cancel and prompt commands; queue <s> is queue list <s> (and queue clear <s>, below), and queue --drop <m> is queue drop <s> <m>; pending and show are permission requests and permission show; log, watch, notify and wait are event log, event watch, event notify and event wait. Flags are unchanged. A profile's bridge that runs brnr notify runs brnr event notify instead. brnr --help has a section per group, brnr <group> --help lists a group's commands, and brnr <group> <verb> --help (or -h, before any --) prints that command's usage (ADR 63).
  • Breaking: brnr mode, brnr model and brnr config are brnr config get <s> and brnr config set <s>. get lists every option with its category, value and choices, each choice with its name and description, the current one marked, and the agent's v1 modes as a row with no option; --mode, --model, --thought-level and --option <o> narrow it. set takes --mode <m>, --model <m>, --thought-level <l> (the option of that category) and --option <o>=<v> (by id) together, resolved as a start's settings are: brnr mode $s plan is brnr config set $s --mode plan, and brnr config $s effort=high is brnr config set $s --option effort=high. A mode, model or thought level the agent has no option for fails ("the agent offers no thought level"), as do two values for one setting, and a v1 mode the agent doesn't list fails before anything is sent, a start's too; an --option id the agent hasn't advertised is sent, and a refusal says what was already set. get lists only advertised options (ADR 63).
  • Breaking: an agent with a config option of category mode has its mode set through that option, and session status reports its value, even where the agent has v1 modes too; session/set_mode is sent only with v1 modes and no mode option. session status --json has modes as the agent gave them (currentModeId, availableModes) (ADR 63).
  • Breaking: the socket's set_mode, set_model and set_config are one set_config, with mode, model, thought_level and options (an object of option ids to values), answered once every setting is set with what was sent (set); a failure names what was set before it (ADR 63).
  • Breaking: the editor's experimental action settings is config: experimental = ["config"] under [profiles.<name>.editor]; settings fails to load (ADR 4, ADR 63).
  • Breaking: brnr start is brnr session new, and brnr start --resume <s> is brnr session resume <s>, with every flag start took but --set, which is --option <o>=<v>; start fails as an unknown command, with no alias. --take-over goes with session resume only. A start is atomic as before, and resume brings a recorded session's cwd, agent and profile as --resume did (ADR 7, 14, 63).
  • Breaking: a profile's headless config is options, beside the new model and thought_level: config = { model = "opus" } becomes model = "opus" (or options = { model = "opus" }). A profile with config fails to load, and brnr doctor says so (ADR 33, ADR 63).
  • Breaking: approve and deny are brnr permission allow and brnr permission reject <session> <request> [--always] [--option <id>], and answer with the request's option of one kind: allow_once, allow_always (--always), reject_once or reject_always. No other kind stands in, so a request without that kind, or with two, fails, listing the options: where approve took allow_always and deny answered cancelled, name the option with --option, or cancel the turn with prompt cancel. --option of an ACP kind must be on the verb's side, and the always kind with --always. The socket's approve and deny {option} are allow and reject {always, option}, and the editor's experimental action approve is permission (ADR 63).
  • Breaking: permission_timeout answers with the reject_once option; a request without one has its turn cancelled (session/cancel), which answers every request pending in the session cancelled. It never answers reject_always, which it took where there was no reject_once (ADR 63).
  • Breaking: permission_resolved has answer (allowed, rejected or cancelled) and option_kind, the chosen option's kind, and reads permission p1 allowed with allow (allow_once), by … as text. The editor is told "Allowed via brnr" or "Rejected via brnr" (ADR 63).
  • Breaking: queue --clear and --clear-context are queue clear <s> --messages and --context, and queue clear <s> with neither drops both; queue list takes neither flag (ADR 63).
  • Breaking: brnr session list replaces list and sessions, which fail as unknown commands. On its own it is brnr's index, open and ended sessions in every cwd, with nothing started (what list --all was; --include active for what list was, --include inactive for list --inactive). With --profile or -- <agent> it is what sessions was, joined: the cwd's sessions (here, or --cwd) and the agent's, every page of session/list, on the session id; an agent that can't list fails it. A cwd is the same however it is spelled (a trailing slash, a symlink), and an unreachable session is the cwd's if the agent lists it there or brnr has its transcript there. A SOURCE column after AGENT (source in --json) says who knows each, brnr, agent or both; a session only the agent knows is inactive where it was -, and every row has its AGENT (ADR 63).

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 15:36
c9e4d07

Added

  • brnr start --auth <method>, --strict (and brnr acp --strict), and --resume <session> --take-over (ADR 30, 41, 3).
  • send --steer sends into the running turn, where the agent can be steered (ADR 18).
  • A session is locked by the process that serves it. An editor's load of a session another process holds is refused unless the editor part has features = ["shared_sessions"] (ADR 3, 42). A session that can't be locked isn't served headless; an editor's is passed through, and status shows lock_error (ADR 50).
  • Events: message_dropped, context_dropped and session_closed (ADR 20), tool_progress (ADR 23), and line_too_long (ADR 51).
  • brnr doctor --report: a bug report to paste into an issue, redacted. A panic prints a link to a pre-filled issue; nothing is sent (ADR 45).
  • brnr skill, the skill for agents that use brnr, and brnr skill install (ADR 46).
  • brnr is on crates.io: cargo install brnr --locked (ADR 47).
  • Each release has its source tarball as an asset, with build provenance (gh attestation verify), and a CycloneDX SBOM; the Homebrew formulae build from that tarball. Release builds are checked to be reproducible (ADR 52).
  • A panic is recorded, as panic and an exited with the reason; the agent is killed and the runtime files removed (ADR 11).
  • start --foreground passes the agent's stderr through, and a failed start ends with the agent's last stderr lines (ADR 9, 10).
  • doctor checks what keeps a session from being locked, and tells processes that are gone by their socket, so a reused pid isn't taken for one (ADR 11, 50).
  • docs/interface.md, the reference for commands, JSON, exit statuses, configuration and the bridge protocol, and docs/threat-model.md.
  • A history event after a session is loaded says how many updates the agent replayed, and whether brnr recorded them or its transcript already had the session. --events history selects it; it's shown by default (ADR 57).

Changed

  • Breaking: brnr never follows a symlink in its state directory. A symlinked ~/.brnr or $BRNR_HOME, project folder or transcript is refused, as are another user's paths and transcripts with other hard links. A refused host log fails the start, and a refused session file is session-log-failed in the host log. Set BRNR_HOME to the directory a symlink pointed at instead (ADR 59).
  • Breaking: profiles have parts. [profiles.<p>.headless] has cwd, mode, config, mcp_servers, permission_timeout, stop_when_idle and auth; [profiles.<p>.editor] has experimental and features. log is "all", "events" or false. The flat layout fails to load, and brnr doctor says which key goes where (ADR 33).
  • Breaking: acting on an editor's session is experimental. send, cancel, mode, model, config and the rest are refused there until named in the editor part's experimental = [...]; strict mode refuses them all (ADR 4).
  • Breaking: send holds a message while a turn runs (ADR 18).
  • Breaking: turn_ended has messages instead of message, and a dropped message is a message_dropped event instead of exited's undelivered (ADR 17, 20). usage and tool_progress are left out by default, and session_changed carries a merge patch of what changed (ADR 23).
  • Breaking: a session has two transcripts: <id>.jsonl its events, <id>.acp.jsonl the raw ACP (ADR 22).
  • Breaking: brnr model sets the config option of category model; session/set_model is no longer sent. A boolean config option takes true or false and is sent as a boolean (ADR 28).
  • Breaking: brnr host isn't run by hand: a process is started with one resolved request on its stdin (ADR 8). As a profile bridge, notify is command = ["brnr", "notify", "--stdin", "--", …] (ADR 36).
  • Breaking: text output shows control characters and bidi overrides in the agent's text escaped; --json keeps the text as sent. notify's BRNR_TEXT, BRNR_TITLE and BRNR_MESSAGE are escaped and capped at 32 KiB (ADR 1, P8; ADR 36).
  • Breaking: wait on a session that is already idle exits as its last turn ended: 1 if it failed or was stopped (ADR 21). start --foreground exits 1 when the start fails (ADR 9), and notify exits 1 when it is cut off (ADR 36).
  • Breaking: approve --option refuses a reject option, and deny --option an allow one (ADR 27).
  • Breaking: a start's --mode, --model and --set win over its profile, whatever the option's id. Two values for one setting (--set a=1 --set a=2, or --model and --set of the model option) fail the start instead of the last one winning (ADR 58).
  • Breaking: transcript and lock file names escape every byte of a session id but lowercase ASCII letters, digits, - and _ (a/b is a%2fb). Existing files aren't renamed; UUID ids, which the Claude Code and Codex adapters use, keep their names (ADR 53).
  • Breaking: a headless start, or brnr sessions, fails against an agent that answers initialize with an ACP version other than 1, or none (ADR 54).
  • Breaking: a line over 32 MiB from the agent isn't interpreted: headless it is dropped, and an editor gets it byte for byte (ADR 51).
  • Breaking: between brnr acp and its process, the process sends EOF once the agent's stdout ends, and a STDERR frame for each read of the agent's stderr rather than for each line. Run both from the same version, as brnr acp starts them (ADR 62).
  • Breaking: the host log records the agent's stderr as lines alongside forwarding it: one agent-stderr record per line, or per 64 KiB of a longer one, with a line still unfinished recorded when stderr ends or the process exits. For when bytes reached the editor, read its stderr, not the host log (ADR 62).
  • Breaking: the host log has two new notes: agent-stdout-ended, and not-sent-to-editor for a line of brnr's own (a sent message's tool call, a refusal, a withdrawal) not written because the editor's stdout had already ended (ADR 62).
  • Breaking: brnr log reports on stderr each transcript line it can't read, and a transcript that ends partway through a record, where it used to skip them silently. It still exits 0 (ADR 55).
  • Breaking: a turn's turn_ended waits until the agent has answered every steer sent into it, so it can come after the prompt's answer. A steer the agent never answers holds it until cancel or close drops the steer (ADR 56).
  • Breaking: events from a load's replay that brnr records carry "replayed": true, and text shows them as (replayed) …. A replayed user_message has no by and no message id (ADR 57).
  • brnr start commits once its ready report is written: interrupted before that, the process stops and the prompt is never sent (ADR 7).
  • Backpressure replaces the 30 s timeout on the editor link and the agent's stdin; signals reach the agent on a link of their own (ADR 2, 6).
  • One long message doesn't cut off a reader that keeps up, also one that asked for acp. A reader that stopped reading is cut off soon after 16 MiB, or 64 MiB of lines longer than that (ADR 49, 60).
  • log of a running session waits, up to 5 s, for its process to write what it has recorded, and an exiting process stays listed until its transcript has its exited (ADR 48).
  • Past 64 MiB waiting for a slow disk, the logger skips records and the transcript says records-skipped (ADR 22).
  • close cancels a running turn first (ADR 16).
  • ACP is read with agent-client-protocol-schema's types, and every RFC 8259 line is read, lone surrogates and deep nesting too; the bytes are still forwarded untouched (ADR 26, 43).
  • A GitHub release's notes are its section of this file, not the titles of the pull requests it merged (ADR 40).

Removed

  • Breaking: send --after-turn, the queued status, and the bridge modes now and after-turn: a message sent during a turn is held until it ends, or use --steer (ADR 18).

Fixed

  • An editor that stops reading ends its agent and the agent's process group, as the editor going away does (ADR 2).
  • An agent that crashes has its process group's children stopped too, not only on a requested stop (ADR 11).
  • Distinct session ids never share a transcript or a lock (ADR 53).
  • A process closes a session's transcript files when it closes the session, so one that forks and closes sessions doesn't run out of descriptors (ADR 22).
  • A session/load replay keeps the session's title, mode, config and commands (ADR 14).
  • start --foreground reports a failed setup step, and isn't stopped by stty tostop (ADR 9).
  • log --last 0, and timeouts too large to count, no longer panic; brnr list | head ends quietly; brnr sessions kills an agent that ignores SIGTERM.
  • A bridge's request line that isn't UTF-8 gets an error reply, instead of the bridge being dropped (ADR 35).
  • A session whose transcript ends partway through a record, as a process killed mid-write leaves it, is still listed, logged and resumed, from its last whole record. A process that reopens it starts its first record on a new line, and a line that isn't UTF-8 no longer fails log (ADR 55).
  • A steered message always ends, in its turn's turn_ended or in a message_dropped, whichever order the agent answers in: send --steer --wait no longer times out when the agent acknowledges the steer after the turn's answer (ADR 56).
  • start --resume of a session brnr has no transcript of, through session/load, records the history the agent replays. A transcript made by an earlier load keeps its gap unless it is deleted (ADR 57).

Security

  • Every request to the agent has an id of brnr's, the editor's too, and its answer goes only to whoever sent it: an editor's request whose id was one brnr gave its own (brnr-1) can no longer end the editor's turn with the answer to brnr mode, nor a send's turn with the editor's answer, and the editor's $/cancel_request reaches only its own request...
Read more

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 07 Oct 00:11
1a0886e

What's Changed

Full Changelog: v0.5.0...v0.6.0

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 06 Oct 17:43
6743992

What's Changed

  • Sessions by id, processes by pid; the editor's agent goes with the editor by @juanheyns in #12
  • Release 0.5.0 by @juanheyns in #13

Full Changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 06 Oct 14:31
59d3bce

What's Changed

  • Release workflow: a new adapter version drops the formula's revision by @juanheyns in #9
  • One --events for log, watch and notify; resume what only the agent knows by @juanheyns in #10
  • Release 0.4.0 by @juanheyns in #11

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 05 Oct 17:54
6cbafb7

What's Changed

  • Homebrew adapter formulae, adapter versions, release.sh by @juanheyns in #6
  • brnr acp: what an editor runs, named for what it is by @juanheyns in #7
  • Release 0.3.0 by @juanheyns in #8

Full Changelog: v0.2.0...v0.3.0