Skip to content
Proyek

Tentang

Keyboard-driven terminal UI for Beads issues, modelled on k9s

Alat pengembangan

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

b9s

Go Version License CI Nightly

See what every agent is doing in your Beads project, and change it, from your terminal, your phone or any browser. b9s shows the issues as a tree, a board and a dependency graph, follows changes from bd or another agent as they happen, and makes every write through the bd CLI. No new tracker: your Beads project as it is.

b9s in a terminal: moving through the issue tree of a sample web shop, opening an issue in the detail pane, then the board with its epic rail, and back to the tree

Phone Tablet Desktop
b9s web on a phone: an issue opens in a sheet, then the board as stacked boxes, then back to the tree b9s web on a tablet: issues open beside the tree, then the board with its epic rail, then back to the tree b9s web on a desktop browser: the tree with the detail beside it, then the board with its epic rail, then back to the tree

Try it in your browser, no install: demo.b9s.osen.co opens a made-up web shop, with epics split into features and tasks, that anyone can edit. It resets every 30 minutes.

Or watch the 90-second demo: the tree and the board in a terminal, then the same project on a phone over Tailscale.

https://github.com/user-attachments/assets/ccc8ebc9-4daf-4867-8c41-3f91df364f42

Install · First five minutes · What you can do · Phone and browser · Documentation · Contributing

Who it is for

b9s is for people who keep their work in Beads and let coding agents work on it. An agent runs bd create, bd update --claim and bd close all day; b9s is the screen you keep open beside it to see what landed, what is blocked and what nobody picked up. It is a keyboard-driven terminal UI modelled on k9s, so if you know k9s, you already know most of b9s.

What it is not: b9s is not a tracker and stores nothing of its own. It reads your .beads directory, or the Dolt server behind it, and every change is a bd command, so b9s, bd and your agents always agree on what is stored. The phone view is a page in the phone's browser, not a native app, and it needs the computer that serves it to stay awake. Windows is not supported.

Install

With Homebrew on macOS or Linux:

brew install vanderheijden86/tap/b9s

On Linux or macOS without Homebrew, the install script downloads the release binary for your platform, checks it against the release checksums and puts it in ~/.local/bin:

curl -fsSL https://raw.githubusercontent.com/vanderheijden86/b9s/main/install.sh | bash

Set INSTALL_DIR to choose another directory. On a platform without a release binary, the script builds from source instead. After that, b9s --update installs new releases.

On Debian, Ubuntu, Fedora or RHEL, each release also carries .deb and .rpm packages for amd64 and arm64:

sudo dpkg -i b9s_<version>_linux_amd64.deb   # Debian, Ubuntu
sudo rpm -i b9s_<version>_linux_amd64.rpm    # Fedora, RHEL

On Arch Linux, build the b9s-bin package recipe from the release archive.

From source, with Go 1.25 or later: git clone https://github.com/vanderheijden86/b9s.git && cd b9s && make install.

b9s makes every write through the Beads bd command, and reads embedded Dolt projects through it too, so bd must be on your PATH. b9s is tested with bd 1.2.2 through 1.3.0. A newer bd usually works. docs/testing.md says how to check one.

Tried it? Tell me what worked and what did not in the feedback thread. To get an email when a release ships, use Watch → Custom → Releases on the repository.

First five minutes

Run b9s in a folder that has a .beads directory:

b9s
  1. Find an issue. The tree shows every issue under its parent. Move with j and k, fold with Tab, and type / to search: status:open label:backend or just a word from a title. o, r and a show open, ready or all issues.
  2. Understand its status. Enter opens the detail: status, priority, creator and assignee, the description as Markdown, its children with a progress bar, what blocks it and what it blocks, and the comments. g draws the dependency graph around it. b opens the board, with one lane per epic.
  3. Change it. S sets the status, e edits it in a form, K closes it, with a comment first if you press C in the dialog, and Ctrl-N creates one. Each key runs the matching bd command in your checkout, and the row updates when bd has written. Run bd show <id> in another terminal and you see the same change.

? lists every key, and Ctrl-C quits.

Ticket comments show newest first. Press s while the terminal detail has focus to reverse the order for the session. In the web detail, click Newest first or Oldest first beside Comments. The web remembers this choice in your browser.

No Beads project at hand? Download the sample project, the made-up web shop the demo runs, with epics split into features and tasks, two releases, blocked work and comments:

mkdir -p b9s-sample/.beads && cd b9s-sample
curl -fsSL -o .beads/issues.jsonl \
  https://raw.githubusercontent.com/vanderheijden86/b9s/main/examples/sample-project/.beads/issues.jsonl
b9s

To open the same project on your phone, run b9s web in the same folder and follow Phone and browser.

What you can do

Each paragraph names the key to press and links to the user guide, which has every key, gesture, query and setting.

See the tree. Epics hold features, features hold tasks, and every issue sits under its parent with its status, priority, assignee and age. h and l collapse and expand, t flattens the tree into a sortable list, | picks columns, and s sorts. Under Created and Updated a parent ranks by its newest descendant, so an epic moves up when a subtask changes. Tree view.

Follow the agents. b9s checks the Dolt database hash every 500 ms, so changes from bd or another agent appear by themselves, uncommitted ones included. F moves the cursor to whatever changed last. JSONL files reload when they change on disk. Live reload.

Query, do not scroll. / searches as you type. Plain words match IDs, titles and labels, and predicates narrow by field: status:open label:backend, type:bug !assignee:andre. Tab completes names, values and labels from the loaded issues. With a typed query, Up and Down keep the query and move into the results. With an empty query, they recall submitted queries. Alt-Up and Alt-Down recall history with a typed draft. --filter starts b9s with a query, which suits shell scripts and tmux bindings. Search.

Work the board. b groups the issues into status columns, one swimlane per epic, with the epic's completion, open P0 and P1 count and last change in a rail on the left. h and l change the column, Tab folds a lane, z folds a column into a rail, and s regroups by priority or type. Board view.

Change many at once. Space marks an issue, m marks it and moves down as in Emacs dired, V marks a range, and S, K and Delete then act on every marked issue, after a confirmation that lists them. Marks and bulk actions.

Switch projects. Recent projects sit on 1-9, like favourite namespaces in k9s, and 0 shows them all in one read-only view. :project lists every Beads database your Dolt user can read. A project that fails to open leaves the one on screen in place and says why. Projects.

Know who did what. Every issue shows its Creator, the bd actor that made it, and its Assignee, whoever holds it now. One person often appears as a git name, an email and a lane agent; list them once in bd config and b9s shows one name. Creators, assignees and identities.

Attach files. I attaches screenshots, logs or documents to an issue, and R lists and opens them. The bytes go to a local folder or an S3-compatible bucket, and the issue holds a reference comment, so Beads stores no binary data. b9s attach does the same from a script. Off until you configure a store. Attachments.

Keep b9s on the agent's issue. b9s ctl branch <id> steers the b9s in the same tmux window to an issue. A Claude Code hook calls it on bd create and bd update --claim, so the tree follows the agent's work. Steering b9s from another program.

Make it yours. ~/.config/b9s/config.yaml sets the sort, the board design and the poll interval, and hotkeys.yaml binds keys to : commands in the shape of the k9s file. Configuration.

Preview Memory Beads. With the Memory Beads preview build of bd, M opens Memories and their Links as wires in the terminal and as a graph in the browser. A released bd works as before and says in one line why the view is not available. Memory Beads preview.

If you know k9s

b9s takes its interaction model from k9s. The header with the logo and the project shortcuts, Ctrl-E to hide it. : for a command prompt with aliases such as :epic, :bug and :project. / for a filter that Enter keeps and Esc clears, and Ctrl-F to make it a find that hides nothing, as / does in a k9s YAML view. Space to mark, with bulk actions on the marks. PgDn and Ctrl-B to page. A bright full-row cursor, one line of key hints at the bottom, and plain-text tokens instead of emoji. Where k9s lists the pods in a namespace, b9s lists the issues in a project.

How it reads and writes

b9s reads the .beads directory of the current folder, or the one in BEADS_DIR, and uses the first source it finds:

Source Found through
Dolt server .beads/metadata.json with "dolt_mode": "server"
Proxied Dolt server .beads/metadata.json with "dolt_mode": "proxied-server", as in Gas City workspaces and rigs
Embedded Dolt .beads/metadata.json with "dolt_mode": "embedded", the default of bd init
SQLite .beads/beads.db, from older bd versions
JSONL .beads/issues.jsonl, also in linked git worktrees

Embedded Dolt is read by running bd export, so b9s never opens the store and your own bd writes never wait for it. A Dolt server is read over the MySQL protocol with the user and database from metadata.json and the password from BEADS_DOLT_PASSWORD, which b9s sends only to a loopback address or to a host:port you list in B9S_TRUSTED_DOLT_ENDPOINTS, so a cloned repository cannot choose where your password goes. A proxied server, such as a Gas City rig, is reached through bd's loopback proxy without any password. D shows the active source and any connection error.

Every write is a bd command run in the project's checkout, as your bd actor. A project opened from its database alone, without a checkout, is read-only. Data sources, Editing issues, Architecture.

Phone and browser

b9s web serves the same project to a browser at phone, tablet, desktop and wide-monitor sizes: the tree, the board, search, the detail, the dependency graph, and every write the terminal makes, through the same bd calls.

cd ~/code/my-project       # a folder with .beads, as for b9s itself
b9s web                    # serves 127.0.0.1:7979 and prints a pairing link
tailscale serve --bg 7979  # publishes it to your tailnet over HTTPS

Open the printed link once on each device: it sets a cookie for 90 days, and the server stays on loopback, so nothing outside your tailnet can reach it. With qrencode installed, the link also prints as a QR code. On a phone, swipe a row right to start it and left to close it, long-press to mark, and drag a card between columns, which stack as foldable boxes. A tablet shows the list and the detail side by side. A desktop adds a sidebar, a detail pane and a right-click menu, and takes the terminal's keys. A LAN address works too, over plain HTTP, for a network you trust. Phone and browser has the steps, the gestures and the risks.

With a keyboard:

Keys Effect
t Open the tree pane. In that pane, switch between tree and flat list, saved per project in this browser
b Switch between board and tree pane
/ Search. A positive or negated type: predicate forces a flat list with no parent context and sorts across the hierarchy
? Show all keyboard shortcuts

Documentation

Development

make build                            # builds ./b9s
go test ./... -skip DoltIntegration   # everything that needs no Dolt server
make web                              # npm ci, typecheck, build pkg/web/dist
make web-dev                          # live preview: rebuild on save, open browsers reload

The web UI lives in web/ (TypeScript, no framework) and builds into pkg/web/dist, which is committed so go build needs no Node. make web-dev leaves pkg/web/dist alone, so run make web before you commit. make install refuses to run in a git worktree, so a branch build never replaces the b9s on your PATH; use make build there, or pass FORCE=1. Tests named DoltIntegration need a Dolt server, and the ones that create databases run only against a disposable local one. docs/testing.md has the test layers and the Dolt rules.

Contributing

Pull requests are welcome. To keep review quick:

  1. Open an issue first for anything beyond a typo or a small bug fix. Agree on the change there before you write code, so no work is wasted on a change that will not be merged.
  2. Keep one change per pull request. A small, focused diff is reviewed sooner than a large one.
  3. Include tests. A bug fix comes with a test that fails before the fix. go test ./... -skip DoltIntegration must pass, and code must be gofmt-formatted. Tests never write to a shared Dolt server (see Development).
  4. Update the docs that your change affects: the user guide for a new key or setting, docs/ for new behaviour. The README stays a front page; a test keeps it under 300 lines. A change that goes against a decision record needs a new decision record, not a quiet exception.
  5. Use Conventional Commits for the pull request title, for example fix(tree): keep the selection after a refresh.

The maintainer reviews every pull request and merges it as one squashed commit on main, with the pull request title as its subject. A pull request can be declined when it does not fit the k9s-style direction of the project, even if the code is good. Contributions are licensed under the project's MIT licence.

Acknowledgments

License

MIT. See LICENSE.

Jelajahi proyek terkait

Memuat…