Dependency Decision Matrix

7 min read · docs/dependency-decisions.md · View source on GitHub ↗

Single source of truth: scripts/optional-deps.toml (with [managed-tools] section for git-pinned items). All decisions, versions, URLs, and install methods live here. No lists or overrides exist elsewhere.

oooconf deps (or --yes-optional) offers everything marked optional. Automated items are handled in install_managed_tools() via the TOML.

Run oooconf lock after TOML changes to update deps.lock.json + docs.

Upgrade and Release-Binary Managers#

  • marcosnils/bin is the preferred installer and state tracker for tools distributed as GitHub releases. oooconf bootstraps it from versioned, SHA-256-verified upstream executables, then gives it tagged release sources to preserve reproducible initial installs.
  • topgrade-rs/topgrade is the preferred upgrade orchestrator. oooconf deps --latest ensures both management tools are selected and runs Topgrade with bounded retries, disabled self-update, and non-fatal per-manager warnings; Topgrade natively includes a bin step that executes bin update. GitHub API access receives GITHUB_AUTH_TOKEN, falling back to GITHUB_TOKEN.
  • Both managers belong to the minimal dependency profile, integrating them into the normal oooconf install bootstrap as well as explicit oooconf deps bin topgrade runs.
Key Repository Reason
oh-my-zsh ohmyzsh/ohmyzsh Zsh framework required by tracked .zshrc
powerlevel10k romkatv/powerlevel10k Prompt theme required by tracked config
zsh-autosuggestions zsh-users/zsh-autosuggestions Zsh plugin tracked by .zshrc
zsh-syntax-highlighting zsh-users/zsh-syntax-highlighting Zsh plugin tracked by .zshrc
zsh-history-substring-search zsh-users/zsh-history-substring-search Zsh plugin tracked by .zshrc
zsh-autocomplete marlonrichert/zsh-autocomplete Zsh plugin tracked by .zshrc
zsh-fzf-unified ooodnakov/zsh-fzf-unified Single fzf integration (Ctrl-R history, fzf-tab, Ctrl-T) tracked by .zshrc
forgit wfxr/forgit Zsh plugin tracked by .zshrc
you-should-use MichaelAquilina/zsh-you-should-use Zsh plugin tracked by .zshrc
auto-uv-env ashwch/auto-uv-env uv environment setup script
k supercrabtree/k Standalone k command for directory jumping
marker jotyGill/marker Git branch management UI
todo-txt todotxt/todo.txt-cli Plain-text todo manager
croc schollz/croc Secure peer-to-peer file transfer (github-release on Linux, brew on macOS, winget/choco on Windows)
just casey/just Cross-platform task runner for repeatable lint, format, test, completion, and lock commands
worktrunk max-sixty/worktrunk Optional Git worktree manager for parallel coding agents; Homebrew on Linux/macOS and winget on Windows, with conditional managed shell integration and the git-wt Windows command to avoid Windows Terminal

All decisions, categories, versions, install methods, pins, and reasons are defined exclusively in scripts/optional-deps.toml (see [managed-tools] section and per-entry comments).

The current optional dependency catalog includes:

bin, topgrade, wget, git, wezterm, oh-my-posh, posh-git, psfzf, choco, brew, gsudo, rg, fd, zsh, direnv, fzf, bat, delta, glow, gum, zoxide, q, eza, yazi, ffmpeg, jq, p7zip, poppler, fc-cache, cargo, dua, nvim, tree-sitter, k, python3, lazygit, lazydocker, docker, impala, bluetui, just, uv, bw, node, pnpm, bun, rtk, imagemagick, ghostscript, luarocks, tectonic, mermaid-cli, zig, neovim-node, neovim-python, fastfetch, btop, cava, blackhole-2ch, glazewm, zebar, overline-zebar, pandoc, pi-coding-agent, oh-my-pi, agent-deck, croc, s5cmd, taskwarrior, taskwarrior-tui, worktrunk

The [linux] section defines the Linux prerequisite toolset consumed by oooconf doctor (structured diagnostics) and scripts/setup/setup.sh doctor: required = ["zsh", "docker"] fails the doctor when missing, while suggested (brew, node, pnpm, bun, bat, eza, zoxide, lazydocker, lazygit, oh-my-pi) only prints an install hint. Every listed key must exist in the catalog.

oh-my-pi (binary omp) is the one catalog entry installed through the bun manager: bun add -g @oh-my-pi/pi-coding-agent on every platform, bootstrapping bun through its existing handler first. The bun manager joins pnpm and pip as a package-manager route handled by both setup dispatchers.

The [minimal] key list is the quick-setup set (git, zsh, uv, gum, rg, fd, bat, delta, jq, unzip, bin, topgrade, brew, node, pnpm, bun, eza, zoxide, lazydocker, lazygit, oh-my-pi), with oh-my-posh added by [minimal.windows] because only the PowerShell prompt uses it. Minimal install and minimal dependencies are independent: oooconf minimal / bootstrap.sh minimal link the minimal profile without packages, oooconf deps --min-dep / bootstrap.sh --min-dep install only those keys, and combining both flags (oooconf minimal --min-dep, bootstrap.sh minimal --min-dep) does both. --minimal on the deps command stays an alias for --min-dep.

Optional UI extras such as cava for the SketchyBar audio visualizer, plus BlackHole 2ch for macOS loopback capture, also live in that TOML catalog and can be installed through oooconf deps. The docker entry installs Docker Engine on Linux with the distribution's official procedure (Docker's apt repository on Ubuntu/Debian, pacman on Arch, Docker's dnf repository on Fedora), then enables and starts the Docker and containerd units and reports the docker group requirement. macOS/Windows stay manual (Docker Desktop); docs/docker-install.md carries the manual steps and fallback cases. Window-manager and agent-adjacent optional entries now include GlazeWM, Zebar, Overline Zebar widgets, RTK, the Pi coding agent, and agent-deck (installed from the asheshgoplani/tap Homebrew tap on Linux and macOS, and available on Windows through WSL).

The taskwarrior and taskwarrior-tui entries back the optional productivity capability (the task symlinks under ~/.config/task/ and the tt alias in 10-shell.zsh, the p10k taskwarrior segment, and the taskwarrior.nvim Lazy plugin). They are part of the optional catalog and are not auto-installed, so users opt in via oooconf deps taskwarrior taskwarrior-tui when they want the configured behavior.

Taskwarrior uses the Homebrew task formula on Linux and macOS, avoiding outdated apt packages. Install Homebrew first with oooconf deps brew if needed. The TUI continues to use Cargo.

brew is optional on both macOS and Linux. It uses Homebrew's official installer with the non-interactive environment flag after the normal oooconf deps confirmation path.

  • Automated: handled via [managed-tools] + install_managed_tools().
  • Optional: offered by oooconf deps (interactive picker or --yes-optional).
  • Manual: not offered by bootstrap (e.g. WezTerm, final editor choice).

Run oooconf lock after editing the TOML.

Rule of thumb: if the tool is the primary host for tracked config (terminal, editor, IDE), it stays manual. Config for the tool can be tracked; the tool itself should not be force-installed.

Adding a New Optional Dependency#

  1. Append a [[deps]] block to scripts/optional-deps.toml with the key, display name, description, and per-platform install info (linux.manager, macos.manager, windows.manager, plus package, command, winget_id, choco_id, url, or asset as needed). - For GitHub release archives, use manager = "github-release", package = "owner/repo", ver, bin, platform asset templates, and an integrity map from expanded asset names to lowercase SHA-256 digests. ${ver}, ${system}, and ${arch} placeholders are supported. - A directly downloaded archive without a pinned digest is rejected before extraction. If an upstream publishes only a mutable installer script, add a narrowly explained checksum_exception; the generated lock makes every such exception visible for review. - If the dependency requires specialized install logic, add handler = "<name>" and map that handler in setup dispatchers (setup.sh / setup.ps1). The node and pnpm handlers are intentionally paired so a fresh machine with neither can bootstrap the pinned Node.js archive, npm, and pnpm in one optional dependency run. Package-manager routes are apt/brew/cargo, pnpm, bun, and pip; bun bootstraps bun before bun add -g <package>.
  2. Add/adjust presence checks: - optional_dependency_present() in scripts/setup/setup.sh - Get-OptionalDependencyCommandNames / Test-OptionalDependencyPresent in scripts/setup/setup.ps1
  3. Add custom installer handling only when needed: - install_optional_dependency_from_catalog() in scripts/setup/setup.sh - Install-OptionalDependencyFromSpec in scripts/setup/setup.ps1
  4. Run oooconf lock to regenerate lock artifacts.
  5. Regenerate command completions with uv run python scripts/cli/generate_oooconf_completions.py; if the dependency adds shell completions, update scripts/generate/tool-completions.toml and run uv run python scripts/generate/generate_tool_completions.py --dry-run.
  6. Run drift checks so generated/consumer metadata stays aligned: - uv run pytest tests/test_optional_deps.py tests/test_optional_deps_drift.py tests/test_static_smoke.py - bash tests/test_shell.sh
  7. Document the decision in this file under the appropriate table.

Vendored Yazi Plugins#

Yazi plugins and flavors under home/.config/yazi/{plugins,flavors}/ are tracked files copied from upstream at a fixed revision, not git submodules and not installed by a plugin manager at runtime. scripts/optional-deps.toml installs the yazi binary only; the plugin tree must work offline from a fresh clone.

  • plugins/omz.yazi is the in-repo source of ooodnakov/omz.yazi (MIT): it renders the zsh/Oh My Zsh prompt in the header, replaying precmd hooks so Powerlevel10k and theme prompts materialize. Tracked here so Yazi works offline from a fresh clone; publish changes upstream first, then copy them back.
  • home/.config/yazi/init.lua loads omz on non-Windows hosts to mirror the zsh prompt; Windows PowerShell sessions skip the header.
  • Update a vendored plugin by copying the new upstream files over the existing directory and recording the new revision here — never by adding a submodule entry, because an uninitialized submodule leaves an empty directory and require() in init.lua then aborts Yazi.

Platform-Specific Installers#

Platform Primary Fallback
Linux (Debian/Ubuntu) apt manual download / archive
Windows winget choco
macOS brew —

The bootstrap detects the available package manager at install time and uses it. If no package manager is found, the dependency is skipped with a warning.

zsh on Windows (Git Bash)#

zsh is a special case on Windows: there is no winget/choco package that integrates with Git Bash, and Git for Windows intentionally does not bundle a shell other than bash. The decision was to install the pinned MSYS2 zsh package (repo.msys2.org, SHA-256 pinned in the catalog) into the Git for Windows installation tree, because Git for Windows is itself MSYS2-based and already ships the runtime DLLs zsh links against (msys-2.0.dll, ncurses, pcre2, iconv). Alternatives rejected:

  • Full MSYS2 with pacman: cleanest zsh, but a separate environment from Git for Windows (separate runtime, PATH, Git build) — it does not make Git Bash a zsh terminal.
  • WSL zsh: first-class OMZ/p10k support, but a Linux VM boundary, not the Windows-side Git Bash the setup automates.
  • Cygwin zsh: fully disjoint toolchain from Git Bash.

Extraction goes through scripts/security/secure_artifact.py (.tar.zst support with internal symlinks materialized as copies), and the merge into C:\Program Files\Git self-elevates for a single copy-only step when needed. See reproducibility.md for the full flow and the post-Git-upgrade re-run policy.