Skip to content

banto v0.6.0

Choose a tag to compare

@github-actions github-actions released this 05 Dec 06:52
· 7 commits to main since this release

Changes you should know about

  • claude_home, codex_home, --claude-home and --codex-home are removed; the agent homes follow CLAUDE_CONFIG_DIR and CODEX_HOME only. banto reads the same variables the agents do, and uses ~/.claude and ~/.codex when they are unset. Reason: with banto's own setting pointing at one home and the agent in a pane using another, the list, resume, relay wake, hook trust and the double-resume guard each looked in a home the pane did not use, and the same session id in both homes defeated the guard. A config file that still has claude_home or codex_home now stops banto at startup with a message naming the variable to set (claude_home is no longer supported; set CLAUDE_CONFIG_DIR before starting banto, the same for codex_home and CODEX_HOME); --claude-home and --codex-home are now internal, and given on the command line they are refused with the same pointer (exit 2). Delete the key and set the variable in the shell or shortcut that starts banto, for example $env:CLAUDE_CONFIG_DIR = "D:\agents\claude" in PowerShell. The UI refuses a relative CLAUDE_CONFIG_DIR or CODEX_HOME, since each pane can have its own working directory; banto list and banto versions do not. The start-up notice about mismatched homes is gone with the thing it warned about.
  • A leading ~ in banto's own paths now means your home directory. It applies to db_path, data_dir, the [agent_binaries] entries, --config, --data-dir, $BANTO_CONFIG and $BANTO_DATA_DIR. CLAUDE_CONFIG_DIR, CODEX_HOME and XDG_CONFIG_HOME stay as written, because other programs read them too. Migration: before, ~/x in any of these was joined onto the directory banto was started in, so data_dir = "~/x" quietly pointed at a folder literally named ~ under that directory. If banto has been keeping its database in such a folder, the next start with the same setting opens ~/x under your home instead and finds no database there, so it starts with an empty list. Move the banto.db files (and the data beside them) from the ~ folder to the new place, or write the old location as an absolute path, before you start the new version. A ~ also no longer slips a data directory past the check that keeps banto out of an agent's home (data_dir = "~/.claude/banto" is now refused). With no home directory known, a ~ stops startup.
  • A Director now calls request_decision first and writes the decision last. The turn ends with the decision written in full, once, as its last text. Text written before a tool call often reached you only as a folded summary: in one Director's transcript, 63 of 119 request_decision calls had no text before them, while every one of 1201 finished turns ended in a text block (Claude Code 2.1.327 to 2.1.334). The tool's description and result, the default Director prompt and the too-long-question message all say so now. If you set your own director_prompt that tells the Director to write the question first and then call the tool, change it: it contradicts the tool's description. Known side effect: a key sent to the Director's pane while it writes the question can let the quiet bell ring after the decision bell.
  • Every resumed Claude member now starts with --system-prompt-snapshot off. Claude Code records the system prompt and every tool definition in the transcript and reuses them on --resume, so a Director, Worker, Goinkyo or Planner resumed after an update kept the tool descriptions and schemas from when its conversation was created. banto used to add the flag only when it found the recorded briefing differed from the new one, which missed changes to the tools. Visible effect: the first resume with the flag writes the prompt cache once (measured on Claude Code 2.1.334: cache_read 0 and cache_creation 49228 tokens), and the next one reads it (49203 read, 65 created). A resumed member now sees the tool descriptions of the banto it runs under.
  • Locations given to the UI explicitly now reach its panes, so a second UI started in such a pane is refused. When you start banto with --data-dir, --config, $BANTO_DATA_DIR or $BANTO_CONFIG, it now passes those to every pane as absolute BANTO_DATA_DIR and BANTO_CONFIG values. The point is that banto list --json, archive and unarchive run by an agent in a pane reach the UI's database (Claude Code 2.1.337 and Codex 0.174.0 were measured passing a pane's environment to their shells). A UI started without any of them passes nothing. Before, a pane inherited the variables but never the flags, so a second banto started in a pane quietly opened the default database; now it resolves to the same database and the single-instance lock refuses it. Commands run in a pane (banto list --json, archive, unarchive) still resolve their own flags and environment; a relative data_dir or db_path inside a config is resolved from the pane's working directory and can select another database, so check db_path in their output.

New

  • The session list can be read and changed from a script: banto list --json, banto archive and banto unarchive. list --json prints one line, {"db_path": ..., "sessions": [...]}, newest first, with the rows the UI shows under a (eleven keys each: id, agent, cwd, archived, spawned, title, activity, mtime, pinned, group, role). archive and unarchive take ids as arguments or one per line from standard input with -, change all of them in one transaction or none, and print changed and unchanged; changed handed to the opposite command puts the list back. Exit codes: 2 wrong usage, 3 no database or a database at another schema, 4 an id that is not in list --json (nothing written). They open the existing database only, never create or migrate it and never take the UI's lock, so they run beside a running UI; the UI shows a change at its next reload of the list, not at once (how long that takes with no agent active is not measured). Take ids from list --json, never from plain banto list, which reads session files and knows nothing of archive marks, pins or groups. The manual is the help: banto --help has the workflow in one example (PowerShell; other shells on banto list --help), and banto list --help, banto archive --help and banto unarchive --help hold the JSON shapes, exit codes and refusals. --data-dir now appears in banto --help. Observed on codex-cli 0.173.0 (2026-12-02): a Codex session in the workspace-write sandbox can run list --json but its archive fails with could not write <path>, since the database is outside the sandbox's writable roots; widening the sandbox is Codex's setting.
  • A Director's brigade_status shows the model and effort each member runs with. Each Worker's, Goinkyo's and Planner's activity ends with a bracket such as [claude-sonnet-5-5, effort high: last answer 12m ago], read from the agent's own record. For Claude it is the member's last answer in its transcript. If that answer is older than the running process, the bracket says so (before this process started; a resume may have changed the effort); with no live process it says the next start is a resume. For Codex it is the thread's setting (thread setting). The values are shown because what banto launched a member with is not always what it runs with: on Claude Code 2.1.337 (2026-12-05) a resume with no flag answered at medium with the user settings excluded and high with them in, and CLAUDE_CODE_EFFORT_LEVEL overrode a settings file's effortLevel on resumes. [model: no turn yet] and [model: not found in its record] mean nothing could be read, the second being what a change in an agent's file format looks like. A member's own call shows its Director's row without a bracket.
  • New-session dialog (n): Tab completes a path from disk, and ~ works. With nothing highlighted, Tab extends the typed path to the longest prefix all matching subdirectories share, in the on-disk spelling; a single match gets a trailing separator, several are listed as rows above the remembered directories. With a remembered directory highlighted, Tab writes it into the line as a path. ~ stands for your home in what the dialog checks, opens and shows as the pane title. Enter launches a typed path as typed, and launches the highlighted row if there is one. The disk is read on Tab only, never per keystroke, on the loop's thread, so a directory on an unreachable \\host\share can stall the UI until the read returns.

Fixes

  • The group dialog (g) can create a group whose name another group contains (banto beside banto-dev). A + new group "<typed>" row is offered first whenever no group has exactly that name, and Enter does what the highlighted row says; the highlight starts on the group named exactly as typed, else the first match. Before, a fragment of an existing name could only join that group.
  • Archived sessions are marked 📦 instead of 🗃. 🗃 has no default emoji presentation, so terminals disagreed about whether it took one column or two, and in some the title ran into the mark.
  • Closing the reading screen (F5) could leave text underlined as if it were a link. The OSC 8 open and close are now written per cell, so ratatui's diff can no longer skip one half of a pair. Checked on Windows Terminal; the previous build was not run on the same layout, so the fix is not shown against the failure there.
  • A Codex turn cut off by a restart now reads as ended. A turn start older than the process that owns it used to look like an unfinished turn, so after a banto restart the member read busy until its next turn: the relay never woke it, brigade_status said busy, and its unread mail held the quiet bell. This now holds in the relay, for Codex panes outside a brigade, and in brigade_status. Measured on codex-cli 0.172.0 on Windows, where a queued message reached such a thread and started a turn; checked live by restarting banto under a Codex Worker mid-turn with unread mail.
  • A dead Codex thread could read as alive. sysinfo reports a start time of 0 for a process of another account that it can find but not open; that now counts as no live process.
  • check_messages no longer fails now and then with database is locked. It was 0.13% of calls with 8 background pollers and 0.7% with 24. The read and the sweep of empty brigades now begin their transaction as a write, like the other fourteen.
  • A Goinkyo that died before it was identified is no longer started again about once a second. The guard stays until the brigade is staged again or dismiss_goinkyo is called. A failed write of a member's session id is now said on the status line.
  • A member with no session id is described honestly. brigade_status says it may be starting or may have exited, and for a Goinkyo to call dismiss_goinkyo and consult again if it persists.
  • Dismissals and saves. A second Worker dismissal while the first is still in flight is refused on the status line, and the result of a dismissal now spends only the pane key of its own brigade. A Goinkyo or Planner ended while its start is in flight is ended when the start lands. Dragging a row border keeps a collapsed tile's share of the height. A failed write of a pin, the layout, the sidebar width, the bell setting or the last Worker agent is now said on the status line instead of dropped.
  • The default Director prompt no longer points at the removed off_plan list.

Other

  • deps: rusqlite 0.40.1 to 0.43.0 (bundled SQLite 3.54.1). The 0.5.0 build bundled SQLite before 3.54.0, which RUSTSEC-2026-0459 says can return uninitialised memory when a -wal file of a different page size is opened with its database. No call site changed.
  • ci: an Audit workflow runs cargo-audit weekly and when Cargo.lock changes; the release gate now includes a green Audit. Dependabot keeps the GitHub Actions current, and every action is pinned to a commit through actions.lock.
  • The BANTO_VERIFY_CACHE diagnostic is removed.
  • Docs: docs/REQUIREMENTS.md is split into one file per section under docs/requirements/, with a short entry that indexes them; the reading screen is nicknamed the ezu (絵図); new notes on what Claude and Codex report while waiting on a permission prompt, and on what a Claude ended in the middle of a turn loses.

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