A keyboard-first terminal UI for a beads task DB. It reads the DB over SQL from the dolt sql-server bd runs on and writes through bd subcommands, in a very opninionated way; suitable most for my personal workflows.
Note
Consider this AI-slop, and not a polished product. Kind of works fine for general-purpose beads, but is really tuned for my own workflows.
Warning
From commit c009e69 on, bt needs bd in server mode: a dolt sql-server serving the beads DB (dolt_mode: server in $BEADS_DIR/metadata.json). It reads over SQL and no longer reads an embedded-mode DB. Use an earlier commit with embedded bd.
bdonPATH, in server mode (see above). bt connects to the server bd is configured for:metadata.json, thenBEADS_DOLT_SERVER_PORT,dolt-server.portorconfig.yamldolt.port; the password fromBEADS_DOLT_PASSWORD.BEADS_DIRpointing at the beads directory. When it is unset, bt uses~/tasks/.beads.- Go, at the version
go.moddeclares. With the defaultGOTOOLCHAIN=auto, an older local Go downloads the right toolchain on first build. - Optional:
wlonPATHfor the external-ref picker, and$EDITORfor opening code refs and formulas.
make installThis runs go vet and the tests, builds bt with its version stamped in (git describe, or dev outside a git checkout), and installs it to ~/.local/bin/bt, next to bd. Pick another location with PREFIX or BINDIR:
make install PREFIX=/usr/local
make install BINDIR=~/binCheck it with bt --version.
To update, pull or copy the new source and run make install again. On another machine, copy the repo over (rsync -a ~/repo/beads-tui/ host:repo/beads-tui/) and run make install there.
To remove the binary, run make uninstall, with the same PREFIX or BINDIR you installed with. bt leaves two small files behind, which can be deleted by hand:
~/.config/bt/state.json: filters and other UI state~/.cache/bt/: the last snapshot, used for instant startup~/.config/bt/goals.accepted.toml: goal items you accepted in the Goals tab (your owngoals.tomlstays too)
bt # open the TUI
bt triage # hygiene violations as a plain list
bt triage --json # the same, for a cleanup agent
bt triage --machine # only this host's beads (plus unlabelled); --machine <host>|all
bt goals [--json] # the current goal cycle: goals, items, states and scoresInside the TUI, ? lists every key. The tab row shows each view as a Nerd Font icon with its key as a superscript, so the terminal needs a Nerd Font. Views: 1 Now, 2 Activity, 3 Inbox, 4 Backlog, 5 Memories, 6 Board, 7 Workflows, 8 Graph, 9 Triage, 0 Live, @ Goals. S runs bd sync.
make build # ./bt
make testTests that need a real DB are skipped unless their BT_* variable is set; see internal/ui/live_test.go. Tests of the SQL reads start a throwaway dolt sql-server and skip when dolt is not installed. BT_DIFF_BEADS_DIR=<scratch .beads> go test ./internal/bd -run TestListMatchesBDLive compares bt's reads with bd --json on a server-mode copy.