Blackbird

Build and install

There are no prebuilt downloads. You build Blackbird from source on macOS or Linux, and an install script puts a blackbird command in a bin directory you choose.

The build is pinned to exact compiler and Lua versions, and the repository's CMake presets point at tool paths on the maintainers' own machine. On a fresh machine you have to install the toolchain and adjust the build profile yourself before the installer will work. The installer does not install compilers or libraries.

Requirements

Adjust the build profile

The installer configures with the release preset in CMakePresets.json. That preset sets CMAKE_CXX_COMPILER and CMAKE_MAKE_PROGRAM to fixed paths. Change them to your Clang and Ninja.

On Linux, also set the cache variable BLACKBIRD_COMPILER_PROFILE to linux-llvm23. The default profile, macos-llvm23, refuses to configure anywhere except macOS. If CMake does not find Lua 5.5.1 on its own, point it there with LUA_INCLUDE_DIR and LUA_LIBRARY.

On macOS the installer refuses binaries that load shared libraries from /opt/homebrew or /usr/local. A release build links Lua statically when a liblua.a sits next to the Lua library CMake found.

Install

git clone https://github.com/antimemeai/blackbird.git
cd blackbird
./scripts/install-blackbird
blackbird --help

The script builds into a new generation directory and copies the Lua programs and assets beside the executables. Before switching to it, it runs offline checks: --version, --help, the provider list with a temporary credential directory, and a small local Lua program. These checks make no provider request and do not read your accounts. If the build or a check fails, the previous installation stays active.

The script prints where it installed the command and tells you if that directory is not on your PATH. It never edits your shell configuration.

Where it installs

The default prefix is ~/.local:

Use --prefix DIRECTORY to install somewhere else, then add DIRECTORY/bin to your PATH. The script refuses to replace a bin/blackbird it did not create. An installed build is tied to the paths it was built at; it is not a relocatable package.

Separately from the install, sessions are stored under ~/.local/state/blackbird and provider credentials under ~/.local/share/blackbird/auth.

Update

The installer never fetches or changes Git state. Pull the changes you want yourself, then rebuild:

git pull
./scripts/install-blackbird --update

This builds the checkout exactly as it is, including uncommitted edits, and switches to the new build. --jobs N sets build parallelism (default 6) and --source CHECKOUT builds a different local checkout.

A running blackbird keeps using the build it started with, and a new invocation uses the new build. A session you reopen keeps its saved turn program path, which can still point at the older build's copy of turn.lua. To move a session to the new default program:

blackbird_release=$(CDPATH= cd -- "$HOME/.local/lib/blackbird/current" && pwd -P)
blackbird --session DIRECTORY --workflow "$blackbird_release/share/blackbird/programs/turn.lua"

Roll back and clean up

Pruning does not check whether a running process or a saved session still uses a build. Don't remove one that is still in use.