natori-hrj/herdr-lazy
概要
Declarative, reproducible plugin manager and curated distro for Herdr — one list, a lockfile, and a safe manage pane.
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- +4
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルherdr-lazy
v0.47.0 release notes · Changelog · GitHub Releases · v0.46.0 archive
With v0.45.0 or later, run herdr-lazy --version or herdr-lazy -V to identify your installed build.
Find, install, and update Herdr plugins from one pane.
When you set up Herdr on another machine, a plain-text plugin list records what you want and a lockfile records the commits you installed. In your workspace, Manage gives you one pane to browse the Marketplace, inspect plugins, and decide what to install or update.

Recorded with herdr-lazy v0.46.0. Watch the MP4 · Recording guide
Try it in 60 seconds
On a new Herdr setup, install the plugin, restart Herdr, and press prefix+shift+l to open the
manage pane:
herdr plugin install natori-hrj/herdr-lazy
The first start writes a list you can review; it does not install the recommended third-party
plugins without an explicit action. In the pane, press / to find a plugin, Enter to add it to
your list, and i to install what you selected. Press ? whenever you want the complete keymap.
If you already have a plugin list or want to open the pane directly:
herdr plugin pane open --plugin herdr-lazy --entrypoint manage --focus
The short version: start in the manage pane. plugins.list and plugins.lock stay underneath
when you want to inspect, version, or reproduce the setup on another machine.
| If you want to… | Use… |
|---|---|
| Find and add a plugin | / to search, Tab to change category, Enter to add |
| Find a Manage command | Ctrl+P |
| Install what is selected | i |
| Update installed plugins | u |
| Remove a plugin | x |
| Reproduce a setup elsewhere | plugins.list + plugins.lock |
Press Ctrl+P in the Manage list and type a command name or abbreviation. Use the arrows
to choose a result, Enter to open it, and Esc to return. The palette opens views and
reloads the list. Install, update, remove, and restore use their existing shortcuts.
What it gives you
- Search the marketplace. Press
/to find plugins by name, description, or topic without leaving the terminal. - Install, update, and remove. The common actions are one key away:
i,u, andx. - Keep a readable setup.
plugins.listis plain text, andplugins.lockrecords the exact commits so the setup can be reproduced elsewhere. - See what each plugin does. Installed rows show a short description, and
lopens the full details when you need them.
Advanced workflows — workspace profiles, the starter, machine health, recommendations, and maintenance checks — remain available when you need them. They are kept out of the first-run path so the common job stays easy to find.
herdr-lazy is itself a herdr plugin: it drives the herdr CLI (via HERDR_BIN_PATH) to
manage the other plugins.
Install
Requires herdr ≥ 0.9.0. Herdr 0.9.0 resolves the plugin manifest’s relative
commands on Windows, which lets the same manifest run on all supported platforms.
Check your version with herdr --version before installing.
herdr plugin install natori-hrj/herdr-lazy
Install fetches a platform-matched prebuilt binary and verifies its SHA-256; if none matches your platform, or anything about the download is not exactly right, it falls back to building from source with Rust (≥ 1.78). No toolchain is needed on the fast path.
The v0.47.0 notes describe the response and local-file limits, lock permission handling, and measured performance tradeoff.
The first herdr start after installing sets up the route into the manager (a [[startup]]
hook): it writes the curated list and binds prefix+shift+l to the manage pane, but does not
install third-party plugins automatically. It tells you how many recommended plugins are waiting,
then one explicit herdr-lazy sync or I (install all) action installs them. Review the list
first if you want to; the manage pane is there for exactly that. It prints everything it did.
That happens only on a machine that has plainly never been set up — no plugin list, and
nothing installed but herdr-lazy itself. If you already have plugins, or already have a list,
nothing is written and nothing is installed; see Already using herdr?
for adopting what you have. It never runs twice, and it will not take prefix+shift+l if
something else is already bound to it. HERDR_LAZY_NO_BOOTSTRAP=1 turns it off entirely.
To bind the pane yourself, or to a different key:
# ~/.config/herdr/config.toml
[[keys.command]]
key = "prefix+shift+l"
type = "plugin_action"
command = "herdr-lazy.manage"
description = "manage plugins"
Pick a key that is actually free — prefix+l is focus_pane_right, and h/j/k/n/p/
c/g are taken too. prefix+? lists your active bindings. The first-run bootstrap binds
herdr-lazy.manage on every supported platform.
herdr has no command palette, so without a binding the only way in is the CLI:
herdr plugin pane open --plugin herdr-lazy --entrypoint manage --focus
Use
Everything below is also in the manage pane, which is the normal way to use this: open it and
press ? for the keymap. Scroll it with the arrow keys, j / k, Page Up / Page Down,
or the mouse wheel. Home / End jump to the first / last page, and Esc closes it. The CLI exists for scripting and for things you would rather not do
interactively.
herdr-lazy is not on your PATH. It lives inside herdr's plugin directory, whose name
contains an install-specific hash, so there is nothing sensible to symlink. If you want it in
a shell, add this to your shell config:
herdr-lazy() {
local root
root=$(herdr plugin list --json | python3 -c \
"import json,sys;print([p['plugin_root'] for p in json.load(sys.stdin)['result']['plugins'] if p['plugin_id']=='herdr-lazy'][0])")
"$root/target/release/herdr-lazy" "$@"
}
The Manage list keeps status visible in narrow panes and shows commit and detail columns
when there is room. A > points to the focused plugin, [x] marks a bulk selection,
^ flags repository activity since install, and ! flags a newer Herdr requirement.
Press l for the focused plugin's details. In very narrow panes, the status labels
shorten to OK (installed), MIS (missing), DRF (drifted), UNV (unverified),
OFF (disabled), EXT (unlisted), LNK (local link), or MGR (herdr-lazy).
herdr-lazy init # write the curated default list
herdr-lazy list # show what the list asks for
herdr-lazy check # inspect local state, update hints, and maintenance age without changing plugins
herdr-lazy check --fail # exit nonzero if plugins are missing, drifted, disabled, or unlisted
herdr-lazy check --json # print the report as JSON for scripts
herdr-lazy sync # install what is missing
herdr-lazy update # move unpinned entries to their latest commit
herdr-lazy starter # preview and start the current workspace
herdr-lazy sync --prune # also uninstall anything not in the list
herdr-lazy extras # list the opt-in extras
herdr-lazy init --extras worktrunk # defaults plus a chosen extra
herdr-lazy init --from owner/repo # start from someone else's list instead
Terminal themes
The Manage and Workspace Starter panes use your terminal's ANSI colors by default.
Set HERDR_LAZY_THEME in the environment that starts the pane to select a truecolor
palette. Available values are terminal, catppuccin (Mocha), tokyo-night, gruvbox,
and nord. The palettes change status and accent colors while keeping the terminal's
background and main text. They are designed for dark backgrounds.
HERDR_LAZY_THEME=nord herdr-lazy ui
HERDR_LAZY_THEME='success=#80c7a2,warning=#f3bc78' herdr-lazy ui
A custom palette accepts any combination of danger, success, warning, info,
local, and accent with six-digit #RRGGBB values. Omitted roles use ANSI colors.
Invalid settings use the terminal palette and show a message when the pane opens.
Press T in Manage to preview themes. Use the arrow keys or j / k to move and
Enter to save the highlighted theme. Select Custom and press Enter to edit the same
comma-separated color assignments, then Enter to save a valid palette. Delete clears the
editor and Esc cancels.
The saved choice is shared by Manage and Workspace Starter and is stored in the
theme file in herdr-lazy's plugin configuration directory. HERDR_LAZY_THEME takes
precedence over this file. While the variable is set, the picker lets you preview
other choices and keeps the environment's theme active.
Workspace context
When Herdr opens the manage pane, herdr-lazy reads the point-in-time
HERDR_PLUGIN_CONTEXT_JSON snapshot and shows the workspace label, cwd, worktree branch, and
focused agent when Herdr provides them. The context is a label for the pane, not a second plugin
configuration: a missing context leaves the pane behaving as before.
Agent-aware recommendations
If Herdr provides a focused Codex, Claude Code, or Muse agent, the header offers n. The
picker explains why each curated extra is relevant and keeps it separate from the default bundle.
Enter adds the highlighted recommendation to the existing plugin list for review; it does not
install or enable anything. Use the normal i action when you explicitly want to install the
newly listed rows. d dismisses a recommendation for the current view only.
The current mapping is deliberately small and inspectable: Codex and Claude Code recommend
worktrunk, while Muse recommends pluck. Missing or unknown agent context leaves the
marketplace and normal list unchanged.
Machine health
Press m in the manage pane to inspect plugin health for the local machine and saved SSH
machines. Select a target with j/k, press Enter to inspect it, and use i or u only
after the confirmation screen names the exact target. The view shows connection state, Herdr
version and compatibility, missing/drifted/disabled plugins, cached update candidates, and the
latest known sync result.
The view is read-only until that confirmation. A disconnected machine is shown as unavailable;
it is never interpreted as a reason to remove or change local plugins. Herdr versions without
machine-scoped command forwarding keep the existing local-only view. The remote sync and
update actions are invoked for one saved machine at a time, and an unavailable action is
reported without falling back to a local operation.
If the current workspace has .herdr-lazy/plugins.list, the header shows a project profile and
p opens a reviewable diff against the global selection. The profile is read only from that
exact workspace root; herdr-lazy does not search parent directories or use an unrelated shell
cwd. The profile uses the same one-entry-per-line owner/repo[@ref] format as the global list.
The profile view has three explicit actions:
sconfirms a profile sync. It installs missing profile entries, repairs drifted pins, and writes.herdr-lazy/plugins.lock. It never prunes plugins that are outside the profile.rconfirms a restore from that profile lockfile, reproducing its recorded commits without touching the global list or lockfile.mconfirms a merge into the globalplugins.list; profile pins replace a pin for the same repository. This edits the global list but does not install or uninstall anything.
Discovery is read-only. A missing or malformed profile is shown as an error and cannot fall back to an empty list or affect the global configuration.
Workspace starter
The workspace starter is the repeatable setup path for a project. Press w in the manage pane,
choose Lazy: start workspace from Herdr, or run herdr-lazy starter from a Herdr workspace.
When a valid .herdr-lazy/plugins.list exists, it is selected; otherwise the starter uses the
global bundle. A malformed profile is blocked until you explicitly press b to use the global
bundle.
The first screen previews missing entries, pinned drift, disabled plugins, and cached update hints. Install/repair and update are separate confirmations. The starter never runs commands from a repository profile, never prunes, and never edits the global list. After the state is ready, a second screen lets you choose panes and actions. Those choices are re-checked against the currently installed, enabled plugin manifests immediately before launch; unavailable or changed targets are reported and the remaining safe targets continue. Running the workflow again is safe because it only opens declared Herdr targets and does not add duplicate list entries.
herdr-lazy also listens for worktree.created and worktree.opened. Those hooks only save the
last event under HERDR_PLUGIN_STATE_DIR, so the pane can show it when it belongs to the current
workspace. They do not install, remove, enable, disable, or update anything. An absent or
malformed context/event is ignored safely; a malformed event is reported in Herdr's plugin log.
sync and update take plugin names to work on just those:
herdr-lazy sync cloudmanic/herdr-plus
herdr-lazy update smarzban/herdr-file-viewer
| command | what it does |
|---|---|
init [--force] [--extras <id,…>] [--from <owner/repo[@ref]>] [--dry-run] |
write the curated default bundle, or adopt someone else's list; --dry-run prints it instead |
extras |
list the opt-in extras (e in the pane picks them interactively) |
list |
show the desired plugin set |
install [<repo>…] |
install what is missing, restore drifted pins |
sync [<repo>…] [--prune] |
the same, plus --prune to uninstall what is not listed |
update [<repo>…] |
re-resolve unpinned entries to their latest commit |
restore [--previous] [<repo>…] |
put plugins back to the commits in the active lockfile, or the newest saved lockfile with --previous |
ui / manage |
open the manage pane (/ inside it searches the marketplace) |
starter |
open the confirmation-first workspace starter pane |
add <owner/repo> |
add an entry to the bundle |
remove <owner/repo> |
remove an entry from the bundle |
lock |
write the lockfile from the current bundle |
auto-sync [on|off] |
install missing plugins automatically when herdr starts |
doctor |
check that every entry in your list still resolves |
check [--fail] [--json] |
report plugin state and installed plugins absent from the list; automation flags are optional |
probe [--raw] |
check the herdr bridge and show the resolved paths; --raw adds the full payloads |
Already using herdr?
Nothing has to be reinstalled, and init is optional. The pane lists every plugin you
already have, marks the ones your list does not mention, and a adopts the highlighted one
into it. Working through that list turns a setup you built by hand into a declared one
without touching the plugins themselves — after which it can be pinned, locked, and
reproduced on another machine.
Check before changing anything
check reads your list and herdr's installed snapshot, then explicitly refreshes the
marketplace index so it can report missing entries, drifted pins, disabled plugins, and
repositories that may have moved since installation. It does not install, update, enable,
disable, uninstall, edit plugins.list, or rewrite plugins.lock.
The explicit refresh may update herdr-lazy's marketplace cache, which is separate from those
files and from plugin state.
The marketplace check is intentionally honest about uncertainty. If refreshing it fails or
only stale cache data is available, update status is shown as unknown rather than current.
doctor checks whether repositories resolve; check checks whether your local setup needs
attention.
For automation, check --fail exits 1 when a plugin is missing, drifted, disabled, or
installed but absent from the list; it exits 2 when the list or Herdr state cannot be checked,
or a pin cannot be verified. Possible updates and marketplace availability remain informational.
check --json prints the same per-plugin fields as JSON, with installed_not_listed for
plugins outside the declared list. install, sync, restore, and update exit 1 if an
install or update operation fails.
The same report includes each repository's last known push age. A repository with no push for
180 days is marked quiet; this is a factual maintenance signal, not a claim that the plugin is
broken, abandoned, or unsafe. It does not change install, update, enable, or uninstall behavior.
The manage pane uses the cached index and only highlights quiet rows when that information is
available, while check explicitly refreshes the index.
Both files live in the directory herdr assigns the plugin — herdr plugin config-dir herdr-lazy prints it:
plugins.list— the set you declare, edited by hand or viaadd/removeplugins.lock— the commits actually installed, written when the lock is refreshedplugins.lock.1through.3— the latest previous lockfile contents, kept when a lock-writing command changes it (install,sync,update,lock, or auto-sync)
Run from a shell, herdr-lazy asks herdr for that path rather than guessing, so the CLI and the manage pane always read the same files.
Workspace profiles are independent of those global files and live in the project checkout:
.herdr-lazy/plugins.list— the optional project-scoped selection.herdr-lazy/plugins.lock— the project commits recorded by profile sync
What did I just install?
Installing a curated set hands you plugins you did not pick one by one. Press l on any row
to see what one actually does — herdr's own manifest already knows, so this is not a
description someone had to remember to write:
cloudmanic/herdr-plus
─────────────────────────────────────────────────────────────────────────────
An extension for herdr — a collection of tools that make it better. Projects:
fuzzy-pick a declarative template to spin up a whole workspace…
things you can run (enter runs the highlighted one)
> Herdr Plus: Projects projects
Herdr Plus: Quick Actions quick-actions
panes it can open
Herdr Plus: Projects zoomed · herdr plugin pane open --plugin … --entrypoint picker
runs by itself on worktree.created, worktree.opened
bind one to a key: [[keys.command]] type = "plugin_action" command = "…"
Enter runs the highlighted entry — an action, or a pane it opens — so you can try something without first working out how to reach it.
Binding it to a key
herdr has no command palette, and a plugin manifest cannot suggest a keybinding. Until an
action is written into config.toml by hand there is no way to reach it, and nothing tells
you it exists in the first place.
Press b, then a letter: the entry gets bound to prefix+shift+<letter>. Shift is not
optional — herdr's own defaults live on prefix+<letter> and are not exposed by the CLI, so
staying out of that range is the only way to be sure nothing is shadowed.
Panes can be bound too. herdr has a binding type for actions (plugin_action) but none for
opening a pane, so those are written as type = "shell" running herdr plugin pane open.
This matters more than it sounds: several plugins expose only a pane, and without it b
would do nothing for them.
Before writing anything, the pane shows the exact lines and the file they go into:
This appends to /Users/you/.config/herdr/config.toml:
# added by herdr-lazy
[[keys.command]]
key = "prefix+shift+z"
type = "shell"
command = "herdr plugin pane open --plugin triage --entrypoint list"
[y] write it [n / esc] cancel
That confirmation is not a formality. The pane is launched by herdr, so an environment
variable set in your shell never reaches it — there is no way to point this at a scratch file
and try it safely. Your config is copied to config.toml.herdr-lazy-backup before the first
write, every added block is marked # added by herdr-lazy, and a key that is already bound
is refused rather than shadowed.
Spotting updates
↑ beside a commit means the plugin's repository has been pushed to since that copy was
installed, and the header counts how many. u updates them.
It is a hint, and worded as one. The comparison is between the marketplace index's
pushedAt and when herdr fetched the plugin, so a push to any branch counts even if the
default branch — the thing that actually gets installed — has not moved. Erring toward
reporting is deliberate: a needless u costs a moment, while a missed update stays missed.
Pinned entries are never marked. A pin means "this commit, deliberately", and flagging it would teach you to ignore the marker.
This costs no network access. It reads the marketplace index that browsing already cached; with nothing cached, the column is simply absent.
Inspecting plugin logs
Select an installed plugin and press L in the manage pane. This asks herdr for its latest
100 command logs without reading plugin-owned files. The native response stays visible for
diagnosis; j/k (or the arrows and mouse wheel) scroll it, r reloads it, and esc returns
to the list. Plugins with no logs show an explicit empty state, and herdr errors stay in the
pane so the next troubleshooting step is visible.
Acting on several at once
Space ticks the row under the cursor; press it again to untick. A click does the same. Then
i, u, x, r and a apply to everything ticked.
With nothing ticked they apply to the row under the cursor, so this changes nothing for
anyone who never touches a checkbox. esc clears the selection.
A click only ever ticks — nothing installs or uninstalls until you press a key for it.
Finding plugins
herdr publishes its marketplace as a single index, so the pane can search it directly.
Press / and type. Enter adds the highlighted plugin to your list, closes the search, and
leaves the cursor on the new entry — so i then installs the thing you just chose, and not
whatever row you happened to be on before.
Each result shows whether the plugin is installed or listed. When there is room, the
pane also shows stars and the time since the repository's last push, such as 3d or 2w.
Press Ctrl+O to open the repository before installing it.
Search terms are ANDed and each may match the name, description or topics, so worktree fzf
finds a worktree plugin whose description mentions fzf. When no literal result passes the
active filters, a single abbreviation of 3–12 ASCII letters or digits can match prefixes
of repository name parts, such as wti for worktree-tool-inspector.
Marketplace discovery combines the query with category and installation filters. The header normally shows the result count and catalog size, but can omit both when the inventory is unavailable or when a narrow pane shows refresh status or an error.
| Key | Marketplace action |
|---|---|
Tab / Shift+Tab |
Cycle categories forward / backward, including all |
Ctrl+F |
Cycle any, installed, and not installed using Herdr's plugin inventory |
Ctrl+N |
Toggle between stars order and alphabetical order by repository slug |
Ctrl+L |
Clear the query and filters, restore stars order, and select the first result |
Ctrl+R |
Refresh the catalog in the background |
Categories use keywords in names, descriptions, and topics. Unclassified entries appear in
other. Herdr's installed inventory and your list are tracked separately. If the inventory is
unavailable, the installed and not-installed filters report that state. Choose any to browse
without the installation filter, or press Ctrl+R to retry the inventory lookup.
Enter adds to your list rather than installing outright: one keystroke on a fuzzy match should not run a stranger's build script. The list is where intent is recorded.
Adding one also reads its manifest and says so if it cannot install here. herdr runs plugin
builds with a minimal PATH that excludes ~/.cargo/bin, so a plugin whose build is a bare
cargo build --release fails even on machines where Rust works perfectly in your own shell —
the failure then reads as a broken toolchain, which it is not. The check only fires on that
shape and stays quiet on anything it cannot read confidently: sending you away from a plugin
that works would be worse than saying nothing. It never blocks the add, and it says nothing on
Windows, where herdr resolves cargo without trouble.
The index is cached for six hours and works offline from that cache, saying how old it is. Two caveats worth stating plainly: the index endpoint is not a documented API — it is what the marketplace page itself fetches, and it may change without notice — and everything here fails soft, so if it becomes unreachable, browsing stops working and nothing else does.
Pinning and reproducibility
owner/repo # tracks the default branch
owner/[email protected] # pinned to a tag
owner/repo@9f3c1ab # pinned to a commit — reproducible and checkable
These map onto herdr's native plugin install --ref. sync writes the lock from
herdr's own source.resolved_commit, so the lock records what is installed, not
merely what was requested.
sync also enforces commit pins: a plugin sitting at the wrong commit is restored,
not silently accepted. Tag and branch pins cannot be checked locally — herdr resolves
them at install time and does not report the original ref back — so those are flagged
as unverifiable rather than reinstalled on every run.
update deliberately skips pinned entries. A pin means "this commit"; moving it
silently would make the lock disagree with the list. Edit the list to move a pin.
restore is the other direction: it converges to the lock rather than the list, so a
lock copied from another machine reproduces that machine directly — no editing the list by
hand. It never rewrites the lock, since here the lock is the input.
scp other-machine:~/.config/herdr/plugins/config/herdr-lazy/plugins.lock .
cp plugins.lock "$(herdr plugin config-dir herdr-lazy)/"
herdr-lazy restore
When an entry stops resolving
herdr-lazy doctor
A repository that no longer exists is the one way a list quietly stops being reproducible: copy
it to a new machine, sync, and the install fails. doctor asks whether each entry still
resolves and reports the ones that do not.
9 plugin(s) · 8 resolve · 1 not found
someone/herdr-thing — repository not found
It reports facts and does nothing else — no entry is removed and nothing is uninstalled. A plugin you already have keeps working, and the entry is worth keeping while you decide what replaces it.
"Not found" is what was observed, not a conclusion: a repository made private looks exactly like
a deleted one from outside. A renamed or transferred one redirects and is not reported, because
herdr plugin install follows the same redirect. When the network is unavailable it says so,
rather than reporting everything as gone.
Keeping in sync automatically
Press A in the manage pane. herdr-lazy then installs anything on your list that is missing
whenever herdr starts (the same [[startup]] hook the first run uses) — open herdr on a new machine with
a list already in place and your plugins appear on their own. The header shows auto-sync on
while it is active.
It is off by default, and deliberately narrow:
- Off unless you turn it on — a plugin that installs other software at startup should not do so by surprise. The first run is not an exception: it writes the list and waits for an explicit install action. Every later start is silent until you turn this on.
- Installs only — it never prunes and never moves a pinned commit. Startup completes a
setup that is missing things; it does not change one that is working. Use
syncfor that. - Silent when there is nothing to do — which is almost always, so a normal
herdrlaunch is unaffected.
Safety
--prune uninstalls only what it can prove is extraneous. A match is strong when
herdr's source names the repo (owner + repo), and weak when only the display
name lines up — herdr's plugin_id and name bear no reliable relation to the repo
(cloudmanic/herdr-plus registers as cloudmanic.herdr-plus). Prune acts on strong matches only.
Locally-linked plugins have no owner/repo at all and are always kept: herdr-lazy is
normally one, so this also stops prune from removing the tool running it.
Under-removing is recoverable. Uninstalling the wrong plugin is not.
Managing your list with dotfiles
Your plugins.list is the whole declaration — one owner/repo per line — and plugins.lock
is the exact commits it resolved to. Both are plain text, both belong in a dotfiles repo, and
together they are all another machine needs.
Point herdr-lazy at a file in your repo with HERDR_LAZY_LIST:
# in your shell profile, or a herdr-lazy env
export HERDR_LAZY_LIST="$HOME/dotfiles/herdr/plugins.list"
The lock is written next to it (plugins.lock), so both live in your repo. The marketplace
cache is kept out of the way in $XDG_CACHE_HOME/herdr-lazy/ (or ~/.cache/herdr-lazy/), so
nothing you did not choose ends up staged.
On a new machine:
git clone …/dotfiles && export HERDR_LAZY_LIST="$HOME/dotfiles/herdr/plugins.list"
herdr-lazy restore # the exact commits from plugins.lock
# or: herdr-lazy sync # the latest of whatever the list asks for
restore reproduces the lock commit-for-commit; sync installs the latest each entry
resolves to. If a sync introduced a bad update, herdr-lazy restore --previous converges to
the newest saved lockfile without changing the active plugins.lock; inspect the result first,
then copy the snapshot over the active lock if you want to make the rollback permanent. Commit
the active lock and its snapshots after a change if you want the history available on another
machine.
Nix
herdr's own flake packages the CLI; plugins are herdr-lazy's job, not the flake's. There is no
home-manager module yet — if that is something you would use, open an issue. In the meantime a
Nix user can generate plugins.list from their config and set HERDR_LAZY_LIST to it, which
keeps the plugin set declarative without herdr-lazy needing to know about Nix at all. Note that
auto-sync installs on herdr startup, a side effect a purist may want off (it is off by
default); restore in an activation script is the more Nix-shaped fit.
The default bundle
A distro is an opinion, so here is the reasoning rather than just the list. Two criteria, in order: prefer what the ecosystem has already vetted, then fill the gaps nothing else covers. Overlapping plugins are excluded rather than stacked — two plugins that both open a file pane is a worse default than one.
| plugin | why |
|---|---|
| natori-hrj/herdr-lazy | this tool, listed so that u can update it like anything else |
| cloudmanic/herdr-plus | projects and quick actions; the broadest general-purpose add-on |
| smarzban/herdr-file-viewer | git-aware read-only file pane |
| persiyanov/herdr-reviewr | review an agent's diff line by line and send comments back to it |
| razajamil/herdr-plugin-workspace-manager | per-workspace tab/pane layouts, applied automatically |
The first entry is this tool. herdr-lazy update and the pane's u only act on what your list
names, and record the resolved commits in the lockfile. Herdr's herdr plugin update can also
update GitHub-managed plugins independently, using their recorded refs. Keeping herdr-lazy in
the bundle lets its own update flow manage and lock its version alongside the other entries.
Removing it from the list does not endanger it: --prune refuses to uninstall it by identity,
not by membership.
There is one more criterion, and it outranks the rest: somebody has to actually use these. Popularity is evidence of that, not a substitute — an earlier version of this set kept a plugin on three stars that its own author never ran. The author's own plugins clear that bar or leave, exactly as anyone else's do.
A third criterion showed up during testing: it has to actually install. herdr runs plugin
builds with a minimal PATH that excludes ~/.cargo/bin, so a plugin whose build is a bare
cargo build --release fails on machines where Rust is installed and works fine in your own
shell. herdr-lazy itself works around this on Unix and Windows (see the platform-specific
scripts in scripts/), but a default set cannot hand a new user a failed install.
Deliberately not included, despite being good: herdr-spreader (41★) is the better-known layout plugin, but it hits exactly that build problem, and workspace-manager does the same job with no build step; herdr-remote and collie cover remote approval, where the right choice depends on where you want to be pinged — not a decision a default set should make for you.
None of this is load-bearing: init just writes these lines into plugins.list. Edit it,
or skip init and build your own with add.
Starting from someone else's list
herdr-lazy init --from owner/repo # their plugins.list becomes yours
herdr-lazy init --from owner/repo@v1 # at a ref, if you would rather it not move
A real one, if you want somewhere to start:
herdr-lazy init --from natori-hrj/herdr-config
That is this project author's own list — the five plugins actually in use, which is also why
they are the ones in the default set. Publishing yours is a repository with a plugins.list at
the root and nothing else required.
Press f in the pane to read one before taking it. Each entry becomes a row, marked with what
your machine already says about it — in your list, installed but unlisted, or new — and space
ticks the ones you want. Everything you do not already have starts ticked, so enter takes "the
rest of theirs" without touching a row. Three of someone's five is a flag away from impossible
and a keystroke away in the pane.
On the command line, --dry-run prints what would be written and writes nothing:
herdr-lazy init --from owner/repo --dry-run
init --from reads plugins.list from the root of that repository and writes it as your list,
comments and all. After that it is your file: there is no upstream, no link back, and nothing to update
from. A fork, not a subscription — the whole point is that you can now disagree with it.
The lockfile does not come with it. Their list means the same plugins; their lock would mean the same commits, which is a much stronger thing to accept from a stranger.
Nothing is installed by this, as with any init — you get a list to read first, and sync
when you agree with it. It refuses to overwrite an existing list without --force, and it
refuses anything that does not look like a plugin list rather than writing it over yours.
Extras
The default bundle stays out of choices that depend on you — which worktree tool, which notifier. Extras are how you opt into those.
Press e in the pane for the menu: space ticks the ones you want, enter adds them to your
list, and they come back ticked in the list itself so i installs exactly those. A ✔ marks
an extra you already have. Nothing is installed by the picker — adding to the list is still a
separate step from running someone's build.
The same menu, from a shell:
herdr-lazy extras # see what is on offer, grouped by category
herdr-lazy init --extras worktrunk # curated defaults, plus the worktrunk workflow
An extra is one coherent capability, not a category dump. Where two plugins do the same job
they are two extras you choose between — --extras never stacks them, the same way the
default set swaps rather than adds. Each extra's description names any external setup it needs
(a CLI to install, a service to configure) so opting in is an informed choice.
Extras of your own
An extra is a .list file with two comment lines, which is a format you can write by hand.
Drop one in extras/ beside your plugin list and it joins the menu — no pull request, nothing
to convince anyone of:
# category: mine
# the three things I install on every machine
cloudmanic/herdr-plus
smarzban/herdr-file-viewer
Saved as extras/mine.list, that is herdr-lazy init --extras mine, and a row marked * in
the pane. It sits beside the list rather than in a config directory for the reason the lockfile
does: if you keep your list in a dotfiles repo, the things you wrote belong there too. Giving
one the same name as a bundled extra replaces it, and the listing says so. A file that lists no
plugins is reported and skipped, never a crash and never a silent disappearance.
Extras are plain owner/repo lists under extras/, embedded at build time, so
listing one never touches the network. Adding an extra is a small, reviewed pull request —
drop a file in extras/ and add a line to the registry. The bar it clears is in
CONTRIBUTING.md, and it is the same bar for a
contributor's plugin and the author's.
Roadmap
Directions, not promises. Anything with an issue open is specified enough to be worked on; the rest still needs design.
- Platform-scoped list entries (#15) — skip incompatible entries when lists and locks move between operating systems.
Design notes
- Rust, and nearly dependency-free. The manager is orchestration — shelling out to
the herdr CLI — which std covers, including a small hand-written JSON reader for
plugin list --json. The UI usescrosstermfor terminal input. In views sized by display cells,unicode-segmentationprovides forward grapheme boundaries for clipping and wrapping.unicode-widthmeasures whole text runs, including ligatures that span graphemes. Terminal emulators can use different shaping, bidirectional text handling, and cell widths for ligatures, emoji, variation selectors, and ambiguous-width characters. - Never parse human output. All state comes from
herdr plugin list --json. - Long operations leave the TUI rather than being redrawn as in-pane progress, so a failing plugin build shows you its actual output.
License
MIT
関連プロジェクトを探す
読み込み中…