Repository navigation
Releases
v0.12.0
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.--remoteis the only transport: without it, nothing connects to another machine. A profile is read on the machine that runs the command, so with--remote,--profileis the destination's. The destination's brnr is the one on its shell's PATH; without one the command fails withremote_brnr_not_found, which says where to set the PATH, and another version fails withremote_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'envandheadersvalues show as<redacted>. With--remote, they read the destination's. The library's facade has them asbrnr::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
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--jsonprints, 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 dosession delete,session pruneanddoctor;event logandevent watchgive each event to a closure.session newandsession resumestart the process as<program> host, which the program hands tobrnr::run. A usage error is the new codeusage_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, assession delete --purgedeletes 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.doctorsays the retention in days. - Junie (
junie --acp true) and Cursor (cursor-agent acp) through brnr: profile examples, andadapters/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 acpadds 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 ofbrnr acpand its process at rest, and their threads, with budgets inbenches/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 --purgedeletes 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).purgedlists 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.mdis gone (ADR 8.4, ADR 11.8, #375).
v0.10.0
Added
turn_ended, the status'slast_turnandprompt send --wait --jsonhavetokens: the counts the agent reported in its answer to the prompt (ACP's unstableusage),total,input,output,thought,cached_readandcached_write, each null where it gave none that is a count, and null when the answer has nousageobject. brnr adds nothing up.session statusshows 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 listandsession statussay 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 forksession forkmakes and for one an editor makes throughbrnr acp(session/fork) (ADR 3.12, ADR 5.1, #238).- Every event has the brnr process's
pid, besidehost_id, and so does every lineevent log --jsonandevent watch --jsonprint: therecords_skippednote hasts,host_id,pidand, in a session's file,session, andevents_missedhaspid;subscribe's answer haspidtoo (ADR 5.9, #314). elicitation show --json, and the elicitations in the socket'spendinganswer, have the process'spid, aselicitation requests --json's rows do (ADR 8.2, #150).--eventstakes the notes' names,records_skippedandevents_missed, which are shown whatever it chose:event log --events records_skippedlists only a transcript's gaps (ADR 5.9, #314).- The host log notes each subscription on the control socket,
peer_subscribedwith the connection'speer, once the connection gets the events that follow (ADR 10.2, #333). - A process says which brnr it is: its
<pid>.jsonand the socket'sstatushavebrnr, its version, andprotocol, the version of what its socket speaks. A command that fails because the process is another brnr (an editor's process outlivesbrew upgrade brnr) says so, and how to restart it:brnr process stop <pid>andbrnr 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 openand closes it (ADR 10.4). -
Breaking: a socket or bridge request with a field its
cmddoesn't take is refused,command_unknown, and nothing is done; it was done without it.allow's andreject's oldoptionis such a field now,command_unknown, notcommand_invalid(ADR 8.8, #149). -
subscribewith an event the process doesn't have subscribes to the rest, and names it in its answer'sunknown_events, so that a bridge written for a newer brnr gets an older process's events; it refused the subscription,event_unknown, which insubscribeis now only for a note's name; a profile's bridgeeventsstill 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 theerrorofturn_ended,last_turn,--wait --json's turn,session delete --json,process_exited,events_missed,records_skippedand 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 isagent_failed, the agent's JSON-RPC error whole asrpc_error: readerror.rpc_error.codewhere you readerror.codebefore. A failed command with--jsonprints{"error": {…}}on stdout, and stderr saysbrnr: <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 (--timeoutwithout--wait), orbrnror 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:
--helpand-hprint the usage on stdout and exit 0 in every command:doctor --help,skill --helpandskill install --helpprinted on stderr and exited 1, andbrnr acptook them only as its first word (ADR 8.3). -
brnr acp --helpnames its arguments<p>and<agent>, asbrnr --helpdoes (ADR 8.3). -
Breaking:
brnr acpexits 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 newline_too_deepevent (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--jsonoutput indented stays small (ADR 2.5, #268, #259). -
A process whose
statusanswer 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 -Nremoves 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 thechmodorchownthat fixes it, andbrnr doctorfails its config check the same way; brnr doesn't change the file. A config written as 0644 now fails:chmod 600it. 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 acpdrops the editor'sfsandterminalclient capabilities from itsinitializeagain by default, as ACP v2 has neither, and notescapabilities_droppedin 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 deleteof a session open in a process sayssess-1 is running in process 4466: close it first (…), andsession resumeandsession deleteof one whose process doesn't answer, is opening it or isn't listed say which, without offering--take-overor 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/projectsnames it and<hash>8 hex digits of a hash of the cwd (-Users-me-src-3db3a304), where/a-band/a/b, and on macOS/Aand/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/projectsby the exact name now matches by the prefix (ADR 9.2, #120). -
Breaking: the event
exitedisprocess_exited, itsstatusexit_statusand itsreasonerror:--events process_exited,BRNR_EVENT=process_exited, and a bridge'seventswith 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-openedissession_opened,records-skippedrecords_skipped,events-missedevents_missed,peer-droppedpeer_dropped,made-privatepath_made_private,session-log-failedsession_log_failed, and so on;sendismessage_accepted(orcontext_acceptedfor context),cancelcancel_requested,startedprocess_started(itsrequeststart_request),stoppingstop_requested,signalsignal_relayed,host-signalsignal_received,panicprocess_panicked,host-stderrprocess_stderr,idle-timeoutidle_timed_out,editor-closed-stdineditor_stdin_closed,not-sent-to-editoreditor_message_dropped. Anacprecord'sdiragent-stderrisagent_stderr(ADR 5.9, #314). -
Breaking: every record's head names the session
sessionand the brnr processpid, where it hadsession_idandhost_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'ssession_log_movedsays, andsession deletepasses one over.session delete --purgedeletes the files set aside too, every file of the session's id it finds, an...
v0.9.0
Added
process stopandsession closetake--json:{"pid": <n>, "status": "stopping"}and{"session": "<id>"}, what their text says (ADR 34).- The
historyevent hasloads, how many loads its replay covers: more than 1 when an editor loads a session again before the agent has answered its last load, andrecorded_updates, how many of itsupdatesthe transcript has (ADR 57). - A
session_reopenedevent,byeditor, 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'shistoryfollows, counting what it replayed across the close; what came while the session was closed isn't recorded, andrecorded_updatessays 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,declineandcancellist, 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. Eventselicitation_request,elicitation_resolvedandelicitation_completed, for watchers, bridges and editor sessions too;event wait --for elicitation;event notifyruns forelicitation_requestby default;prompt send --waitannounces one on stderr;session statuscountselicitations, and a session with one iswaiting. The socket'spendinghaselicitations, andelicitationanswers one. On an editor's session, answering is the experimentalelicitation(ADR 68). - A command the process cuts off for falling behind catches up:
event watch,event notify,event waitand 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"foracp, records skipped), or cut off 4 times in a row while catching up, the command says what it missed, anevents-missednote, and exits 3 (ADR 69). - Every event, live and in the transcript, and every raw ACP record has its position in its process,
seq;subscribeanswers with the connection'speer,host_idand theseqit starts after, assession new --wait's ready report does;loggedanswerslostwhen a file has lost records it hasn't noted yet; andrecords-skippedsays the positions it lost,first_seqandlast_seq(ADR 69). - A
peer_cut_offevent tells the other peers that one was cut off, and thelast_queuedevent it was sent, as the host log'speer-droppednow says too (ADR 69). echo_asin 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, oneuser_message_chunkper 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_timeoutisresponse_timeout, andsession newandsession resume's--permission-timeoutis--response-timeout: one timeout for the user's responses, which answers a permission request nobody answeredreject_once(else cancels its turn) and an elicitationcancel. Rename the key in your profiles and the flag in your scripts; a profile withpermission_timeoutfails 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 --timeoutwithout--waitfails, assession new's does, where it was ignored; drop it or add--wait(ADR 21). - Breaking:
event loghas no-f: use--follow. A word with one dash is an argument there and insession newandresume, 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 withXDG_RUNTIME_DIRand a cron job without it) but shared~/.brnreach 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 listthere shows the sessionunreachablewith that pid; commands on it, and an editor's load of it, are told the same, with the directory afterBRNR_DIR=quoted for the shell where it needs to be; anddoctorlists locks left by processes that are gone undersession locks.log = falsestill 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 acpno longer drops the editor'sfsandterminalclient capabilities, in strict mode or without: the agent gets them as the editor offers them, itsfs/*andterminal/*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 nocapabilities-droppedrecord (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.mdmarks 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 whatbrnr acppasses 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 notifyon 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
brnrcrate's public library API is removed: its modules (brnr::render,brnr::schema,brnr::jsonand the rest) are private, and its one public item isbrnr::run, the command line as a function. Runbrnrwith--json, or callbrnr::run, instead; a typed facade that mirrors the command line follows #150 (ADR 66).
Fixed
- A detached process's own stderr (
host-stderrin 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 -hsendsexplain ls -h:-hand--helpprint the usage only before the prompt, where they printed it, sending nothing, from anywhere in it (ADR 63).session status --jsonwithout a session prints its usage, and an optionsession status,session closeorprocess stopdoesn't take is said as unknown, where each was taken for the session or pid (no session --json) (ADR 63).session list,process list,doctorandskillsay which option they don't know, as the other commands do, where they printed their usage (ADR 63).- Text says in words what
--jsonhas as a value (ADR 34): a failed turn isturn failed: boom (control), without JSON quotes; an exit isagent exited with code 1,agent killed by SIGTERMoragent exited (status unknown)(ADR 11), inevent watch,event log,event notify'sBRNR_TEXTandevent wait --for exit;event watch --pidshows each session's whole id, to paste into the next command (ADR 13); andsession statussaysworkingfor a busy session whose turn time it doesn't have, andwaiting for an approvalfor one that is waiting, where it saididle. permission requestswith no session lists the approvals in the processes that answer, and exits 0, when one doesn't...
v0.8.0
Added
session newandresumetake--thought-level <l>, the option of categorythought_level, and--permission-timeout <s>, which wins over the profile'spermission_timeoutas 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'squeuetakesshow(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 newsession_deletedevent in it, as it does for an editor'ssession/deletethroughbrnr acp.--purgealso 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--purgeof a session it already deleted exits non-zero). A file that can't be deleted, or havesession_deletedrecorded 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>andsession 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 asnewandresume. 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 withstop_when_idlewhose agent can't close sessions;--take-overworks 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:psandstopareprocess listandprocess stop;status,forkandclosearesession status,session forkandsession close;send,cancelandcommandsareprompt send,prompt cancelandprompt commands;queue <s>isqueue list <s>(andqueue clear <s>, below), andqueue --drop <m>isqueue drop <s> <m>;pendingandshowarepermission requestsandpermission show;log,watch,notifyandwaitareevent log,event watch,event notifyandevent wait. Flags are unchanged. A profile's bridge that runsbrnr notifyrunsbrnr event notifyinstead.brnr --helphas a section per group,brnr <group> --helplists a group's commands, andbrnr <group> <verb> --help(or-h, before any--) prints that command's usage (ADR 63). - Breaking:
brnr mode,brnr modelandbrnr configarebrnr config get <s>andbrnr config set <s>.getlists 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-leveland--option <o>narrow it.settakes--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 planisbrnr config set $s --mode plan, andbrnr config $s effort=highisbrnr 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--optionid the agent hasn't advertised is sent, and a refusal says what was already set.getlists only advertised options (ADR 63). - Breaking: an agent with a config option of category
modehas its mode set through that option, andsession statusreports its value, even where the agent has v1 modes too;session/set_modeis sent only with v1 modes and no mode option.session status --jsonhasmodesas the agent gave them (currentModeId,availableModes) (ADR 63). - Breaking: the socket's
set_mode,set_modelandset_configare oneset_config, withmode,model,thought_levelandoptions(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
settingsisconfig:experimental = ["config"]under[profiles.<name>.editor];settingsfails to load (ADR 4, ADR 63). - Breaking:
brnr startisbrnr session new, andbrnr start --resume <s>isbrnr session resume <s>, with every flagstarttook but--set, which is--option <o>=<v>;startfails as an unknown command, with no alias.--take-overgoes withsession resumeonly. A start is atomic as before, andresumebrings a recorded session's cwd, agent and profile as--resumedid (ADR 7, 14, 63). - Breaking: a profile's headless
configisoptions, beside the newmodelandthought_level:config = { model = "opus" }becomesmodel = "opus"(oroptions = { model = "opus" }). A profile withconfigfails to load, andbrnr doctorsays so (ADR 33, ADR 63). - Breaking:
approveanddenyarebrnr permission allowandbrnr permission reject <session> <request> [--always] [--option <id>], and answer with the request's option of one kind:allow_once,allow_always(--always),reject_onceorreject_always. No other kind stands in, so a request without that kind, or with two, fails, listing the options: whereapprovetookallow_alwaysanddenyansweredcancelled, name the option with--option, or cancel the turn withprompt cancel.--optionof an ACP kind must be on the verb's side, and the always kind with--always. The socket'sapproveanddeny {option}areallowandreject {always, option}, and the editor's experimental actionapproveispermission(ADR 63). - Breaking:
permission_timeoutanswers with thereject_onceoption; a request without one has its turn cancelled (session/cancel), which answers every request pending in the sessioncancelled. It never answersreject_always, which it took where there was noreject_once(ADR 63). - Breaking:
permission_resolvedhasanswer(allowed,rejectedorcancelled) andoption_kind, the chosen option's kind, and readspermission p1 allowed with allow (allow_once), by …as text. The editor is told "Allowed via brnr" or "Rejected via brnr" (ADR 63). - Breaking:
queue --clearand--clear-contextarequeue clear <s> --messagesand--context, andqueue clear <s>with neither drops both;queue listtakes neither flag (ADR 63). - Breaking:
brnr session listreplaceslistandsessions, which fail as unknown commands. On its own it is brnr's index, open and ended sessions in every cwd, with nothing started (whatlist --allwas;--include activefor whatlistwas,--include inactiveforlist --inactive). With--profileor-- <agent>it is whatsessionswas, joined: the cwd's sessions (here, or--cwd) and the agent's, every page ofsession/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 anunreachablesession is the cwd's if the agent lists it there or brnr has its transcript there. A SOURCE column after AGENT (sourcein--json) says who knows each,brnr,agentorboth; a session only the agent knows isinactivewhere it was-, and every row has its AGENT (ADR 63).
v0.7.0
Added
brnr start --auth <method>,--strict(andbrnr acp --strict), and--resume <session> --take-over(ADR 30, 41, 3).send --steersends 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, andstatusshowslock_error(ADR 50). - Events:
message_dropped,context_droppedandsession_closed(ADR 20),tool_progress(ADR 23), andline_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, andbrnr 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
panicand anexitedwith the reason; the agent is killed and the runtime files removed (ADR 11). start --foregroundpasses the agent's stderr through, and a failed start ends with the agent's last stderr lines (ADR 9, 10).doctorchecks 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, anddocs/threat-model.md.- A
historyevent 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 historyselects it; it's shown by default (ADR 57).
Changed
- Breaking: brnr never follows a symlink in its state directory. A symlinked
~/.brnror$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 issession-log-failedin the host log. SetBRNR_HOMEto the directory a symlink pointed at instead (ADR 59). - Breaking: profiles have parts.
[profiles.<p>.headless]hascwd,mode,config,mcp_servers,permission_timeout,stop_when_idleandauth;[profiles.<p>.editor]hasexperimentalandfeatures.logis"all","events"orfalse. The flat layout fails to load, andbrnr doctorsays which key goes where (ADR 33). - Breaking: acting on an editor's session is experimental.
send,cancel,mode,model,configand the rest are refused there until named in the editor part'sexperimental = [...]; strict mode refuses them all (ADR 4). - Breaking:
sendholds a message while a turn runs (ADR 18). - Breaking:
turn_endedhasmessagesinstead ofmessage, and a dropped message is amessage_droppedevent instead ofexited'sundelivered(ADR 17, 20).usageandtool_progressare left out by default, andsession_changedcarries a merge patch of what changed (ADR 23). - Breaking: a session has two transcripts:
<id>.jsonlits events,<id>.acp.jsonlthe raw ACP (ADR 22). - Breaking:
brnr modelsets the config option of categorymodel;session/set_modelis no longer sent. A boolean config option takestrueorfalseand is sent as a boolean (ADR 28). - Breaking:
brnr hostisn't run by hand: a process is started with one resolved request on its stdin (ADR 8). As a profile bridge,notifyiscommand = ["brnr", "notify", "--stdin", "--", …](ADR 36). - Breaking: text output shows control characters and bidi overrides in the agent's text escaped;
--jsonkeeps the text as sent.notify'sBRNR_TEXT,BRNR_TITLEandBRNR_MESSAGEare escaped and capped at 32 KiB (ADR 1, P8; ADR 36). - Breaking:
waiton a session that is already idle exits as its last turn ended: 1 if it failed or was stopped (ADR 21).start --foregroundexits 1 when the start fails (ADR 9), andnotifyexits 1 when it is cut off (ADR 36). - Breaking:
approve --optionrefuses a reject option, anddeny --optionan allow one (ADR 27). - Breaking: a start's
--mode,--modeland--setwin over its profile, whatever the option's id. Two values for one setting (--set a=1 --set a=2, or--modeland--setof 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/bisa%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 answersinitializewith 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 acpand its process, the process sendsEOFonce the agent's stdout ends, and aSTDERRframe for each read of the agent's stderr rather than for each line. Run both from the same version, asbrnr acpstarts them (ADR 62). - Breaking: the host log records the agent's stderr as lines alongside forwarding it: one
agent-stderrrecord 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, andnot-sent-to-editorfor 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 logreports 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_endedwaits 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 untilcancelorclosedrops the steer (ADR 56). - Breaking: events from a load's replay that brnr records carry
"replayed": true, and text shows them as(replayed) …. A replayeduser_messagehas nobyand no message id (ADR 57). brnr startcommits 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). logof 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 itsexited(ADR 48).- Past 64 MiB waiting for a slow disk, the logger skips records and the transcript says
records-skipped(ADR 22). closecancels 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, thequeuedstatus, and the bridge modesnowandafter-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/loadreplay keeps the session's title, mode, config and commands (ADR 14). start --foregroundreports a failed setup step, and isn't stopped bystty tostop(ADR 9).log --last 0, and timeouts too large to count, no longer panic;brnr list | headends quietly;brnr sessionskills 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_endedor in amessage_dropped, whichever order the agent answers in:send --steer --waitno longer times out when the agent acknowledges the steer after the turn's answer (ADR 56). start --resumeof a session brnr has no transcript of, throughsession/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 tobrnr mode, nor asend's turn with the editor's answer, and the editor's$/cancel_requestreaches only its own request...
v0.6.0
v0.5.0
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
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
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