Documentation
Configuring shefrd
shefrd saves its settings to ~/.config/shefrd/config.toml. It also reads
herdr's ~/.config/herdr/config.toml first, so a setup you already have carries
over, and a key set in both takes shefrd's value. shefrd never writes herdr's file.
01 · Install
Download the Linux x86-64 build from the install section of the home page, unpack it, and run it:
tar -xzf shefrd-0.9.3-linux-x64.tar.gz
cd shefrd-0.9.3
./bin/shefrd It needs glibc 2.39 or newer.
To run shefrd from anywhere, copy bin/shefrd into a folder on
your PATH, such as ~/.local/bin, and link herdr to it there:
install -m 755 bin/shefrd ~/.local/bin/shefrd
ln -s shefrd ~/.local/bin/herdr
The herdr name is part of the plugin contract: a plugin that does not read
HERDR_BIN_PATH runs herdr from PATH, so without the link every
such plugin breaks. Skip the link if a real herdr is already installed there.
02 · Hover cards
A [[hover]] entry pairs a regex against pane output with an argv. Rest the
pointer inside a match and shefrd runs the command, floating its output beside the text.
[[hover]]
pattern = '❇️\s+([0-9a-f]{8})'
command = ["stith", "card", "{1}", "--width", "56"]
title = "session" # card heading; defaults to the matched text
dwell_ms = 350 # 50–10000
timeout_seconds = 5
cache_seconds = 30 # 0 disables caching
max_width = 72
max_height = 20 command is argv, never a shell line. {}/{0}
expand to the whole match and {1}–{9} to capture groups,
each as one argument — so matched text out of a pane can never be parsed as shell syntax.
The same values arrive as HERDR_HOVER_MATCH and
HERDR_HOVER_MATCH_1..9.
Limits worth knowing
- The pattern matches against one display row, so a match broken across a soft wrap is not found.
- A card never moves once open — it closes rather than following its text.
- With
ui.mouse_capture = falsemotion goes straight to the pane and no card opens. - Provider stdout renders with its colours (SGR only — every other escape sequence is dropped, so a provider cannot move the cursor or repaint the screen from inside a card).
03 · Setups
A setup is a named TOML recipe that becomes an entire workspace — tabs, splits, agents with their prompts already typed, commands already running.
shefrd setup list
shefrd setup show review-stack
shefrd setup apply review-stack --cwd ~/code/my-app
Recipes live in .herdr-setups.toml. A setup needs --cwd or takes
the current pane's.
04 · Keys & attach
Upstream hardcodes ctrl+b in the raw attach byte filter, which also swallows
it from the program running inside. shefrd reads both from config.
[keys]
prefix = "f12"
detach = "d"
The filter works on bytes, so a prefix with no single-byte encoding
(f12, arrows) keeps the ctrl+b/q defaults and logs a
warning rather than leaving an attach session with no way out.
05 · Plugins
shefrd runs the herdr plugin ecosystem unmodified. That is a deliberate contract, not an
accident of forking: the HERDR_* environment variables,
herdr-plugin.toml, min_herdr_version and
herdr.sock keep the upstream name permanently.
shefrd plugin install ogulcancelik/herdr-browser --yes
shefrd plugin list --plugin official.browser --json Renaming that surface would break every published plugin while buying nothing — it is the ecosystem's API, not shefrd's branding.
Writing a plugin? Write it for herdr. It runs on both. Writing a plugin covers what shefrd keeps, the differences a plugin can hit, and when a plugin should say it needs shefrd.
06 · Relation to herdr
shefrd began as a fork of herdr (Apache-2.0) and is now its own product: a superset that keeps taking herdr's changes and adds its own on top. It never sends code back upstream.
Everything a plugin relies on keeps herdr's name, so a herdr plugin runs here without
changes: the socket, the plugin variables, the manifest name and the plugin directory all
still read herdr.
Not affiliated with or endorsed by the upstream project.