Herdr update check. Compares this setup's clones and custom mods with what changed in Herdr and in herdr-core since they were last checked, and reports what breaks, what to port and what's new. It also checks whether the issues and pull requests labeled `blocked: upstream` can move. Use after Herdr or herdr-core updates itself, when the owner asks what a new Herdr or core version means for this setup, whether a blocked issue is unblocked yet, or before porting the clones.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Herdr Update?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/stefanoginella-herdr-update)
---
name: herdr-update
description: Herdr update check. Compares this setup's clones and custom mods with what changed in Herdr and in herdr-core since they were last checked, and reports what breaks, what to port and what's new. It also checks whether the issues and pull requests labeled `blocked: upstream` can move. Use after Herdr or herdr-core updates itself, when the owner asks what a new Herdr or core version means for this setup, whether a blocked issue is unblocked yet, or before porting the clones.
---
# Check a Herdr update
This setup's mods and layout were built against one Herdr version. Herdr has since updated itself. This skill finds everything in between that bears on the setup and ends in one **report** to the owner.
Two programs update, each with its own version, repository and changelog: the app (`herdr-app`, `herdrdev/herdr-app`) and the core (`hc`, `herdrdev/herdr-core`). The core can update without the app: Settings → Updates and `app.update_core` move it on their own. A check covers both ranges. When only the core moved, it is a **core-only check**: steps 3 and the app parts of 4 and 5 have nothing to read, since the clones and their originals are app files.
Use the scratchpad (outside Claude Code: `$TMPDIR/herdr-update`) for upstream sources and comparisons. The only repository write during a release check is its entry in `checks.md` (step 8): nothing is posted to GitHub, and no label is changed. **The run ends with the report.**
`AGENTS.md` is the map of the setup: "What is custom" lists each mod and points to its notes in `docs/agents/`. Those say what the mod is and what it stands on, and their "Behavior to preserve" headings say what must keep working. Read it and every file in `docs/agents/` in full first. Run every command from this repository's checkout: its paths are relative to it. The installed copies and Herdr's own files (`mods/`, `layouts/`, `update-notes.json`, the `*.error` files) are in the Herdr home, `~/.config/herdr-app` (`$HERDR_APP_HOME` when set).
## 1. The range
- **Baseline:** the `from version X` in the clone entries under "What is custom" in `AGENTS.md`. It is the version the clones are ported up to. (`cloned_from.version` in a clone's `mod.json` is Herdr's record of the first clone. It stays put, so it is never the baseline.)
- **Last checked:** the `to` version of the newest entry in `checks.md`.
- **Start:** the newer of the two. **Installed:** `herdr-app --version`.
- **Open items:** every item still under "Open" in any entry of `checks.md`. They are carried into this report as they are, and they don't need checking again.
- **Core start:** the `core` `to` version of the newest entry in `checks.md` that names one. An older entry without one: the newest herdr-core release dated on or before that entry's date (`gh api "repos/herdrdev/herdr-core/tags"`, and the dates in its changelog), and say in the report that it was inferred.
- **Core installed:** `version` in `hc server status --json`, the core that is running. `hc --version` is the installed binary; if the two differ, the core has not restarted into the update yet: check up to the running version and say so in **Health**.
If start is the installed version and core start is core installed, run step 6 anyway, since a Herdr issue can move between releases. Report both checked versions, any open items and step 6's results, then stop before fetching or writing a log entry. Otherwise fetch what moved, once, into the scratchpad. The app:
```sh
gh api "repos/herdrdev/herdr-app/contents/CHANGELOG.md?ref=v<installed>" -H "Accept: application/vnd.github.raw" > <scratch>/CHANGELOG.md
gh api "repos/herdrdev/herdr-app/compare/v<start>...v<installed>" > <scratch>/compare.json
```
The core:
```sh
gh api "repos/herdrdev/herdr-core/contents/CHANGELOG.md?ref=v<core installed>" -H "Accept: application/vnd.github.raw" > <scratch>/core-CHANGELOG.md
gh api "repos/herdrdev/herdr-core/compare/v<core start>...v<core installed>" > <scratch>/core-compare.json
```
A compare lists at most 300 files and gives no warning when it cuts. If `jq '.files|length'` says 300, use a local diff of the upstream tags in the scratchpad for the full file list and patches (`git clone --filter=blob:none`, then `git diff -M --name-status v<start> v<installed>`: 0.1.19 changed 600 files).
Done when: start, installed, core start, core installed, and every version between them (the `## [x.y.z]` headings of each changelog) are named.
## 2. Health now
- Check that `last_run` in the home's `update-notes.json` matches the installed version. If a restart is pending, skip the live checks and give a provisional report from the tagged sources. Defer the log entry until the new version has run so the next check still covers this release.
- `herdr-app status` shows `"layout": "herdr-powertools"` (or a personal layout built on it) and `"errors": []`.
- `find "${HERDR_APP_HOME:-$HOME/.config/herdr-app}" -maxdepth 2 -name '*.error'` finds nothing (`layout.error`, `keys.error`, `settings.error`, `programs.error`: a file Herdr refused).
- Run `python3 docs/sync-mods.py --check` before interpreting the runtime checks. Identify any stale runtime copy so its result is attributed to the code actually checked.
- `herdr-app check mods/<name>` passes for every custom mod listed by `packages/*/mods/*/mod.json`.
- Record `hc --version` and the running core's version (step 1). Where an app release changes a core-dependent feature, identify the required core version and the affected uses, such as Quick Actions background jobs or File Editor’s remote previews.
- Find every use of the core in `packages/` (`rg -n '\bhc\(|hc (run|exec|put|get|read|kill|rm|machine)' packages`) and in `docs/screenshots/` (the sandbox runs its own core). These are what step 4 holds core items against.
Done when: each of these has a result, and every custom mod has a pass or fail line with any warnings, quoting the exact error on a fail.
## 3. The originals
After Herdr restarts, use the installed copy as the new version. If the restart is still pending, compare both upstream tags in the scratchpad.
```sh
gh api "repos/herdrdev/herdr-app/contents/<original>?ref=v<start>" -H "Accept: application/vnd.github.raw" > <scratch>/<name>.old
diff <scratch>/<name>.old <installed copy>
```
The clones, copied from a shipped file (`rg -l cloned_from packages/*/mods/*/mod.json layouts/*.json` finds them all):
| Clone | `<original>` | Installed copy, in the Herdr home |
|---|---|---|
| `spaces-sidebar` | `defaults/mods/spaces/main.js` | `mods/spaces/main.js` |
| `mark-agents-unread` | `defaults/mods/agents/main.js` | `mods/agents/main.js` |
| `file-explorer` | `defaults/mods/files/main.js` | `mods/files/main.js` |
| `tabs-names` | `defaults/mods/sheet-tabs/main.js` (since 0.1.19; `tabs` before) | `mods/sheet-tabs/main.js` |
| `pane-names` | `defaults/mods/sheet-pane/main.js` (since 0.1.19; `pane` before) | `mods/sheet-pane/main.js` |
| `side-names` | `defaults/mods/sheet-side/` (every file) | `mods/sheet-side/` |
| `hide-names` | `defaults/mods/workspace-status/main.js` | `mods/workspace-status/main.js` |
| `toast-names` | `defaults/mods/toast/main.js` | `mods/toast/main.js` |
| `herdr-powertools` | `defaults/layouts/main.json` | `layouts/main.json` |
`spaces-sidebar` and `mark-agents-unread` were cloned from `spaces` and `agents`, which `main` no longer uses since 0.1.19. Diff their successors too, `defaults/mods/sheet-side/spaces.js` and `agents.js`: those carry Herdr's fixes and new features for the same lists.
For each original, also follow changes in its manifest, imported helpers and copied assets. Check renamed or removed shipped assets against their consumers in `packages/`, including paths to icons a mod loads directly from Herdr.
The shipped mods that other custom mods stand in for. Nothing was copied from them, but they show what Herdr added that the custom mod lacks:
| Stand-in | `<original>` | Installed copy |
|---|---|---|
| `git-panel`, `git-diff` | `defaults/mods/changes/main.js` | `mods/changes/main.js` |
| `go-to-file` | `defaults/mods/picker/main.js` | `mods/picker/main.js` |
| `file-editor` | the `file-explorer` diff, read again for the preview | |
Done when: every hunk is either a change to port (what it does, where it lands in the clone) or set aside with a reason.
## 4. The changelog
An **item** is one feature or one fix. Read every release after start through the installed version, including nested bullets, unsectioned bullets and sections besides `New` and `Fixed`. Split a bullet that names several features into one item for each. Hold each item against every custom mod, `editor-links` included, and file it under the first of these kinds it fits:
1. **Moves what a workaround stands on:** it changes something a "Behavior to preserve" item or a "Working here" note relies on. For example: how a mod pane gets the keyboard, key sections and their order, Cmd+F, Cmd+O or Cmd+P, file drags, link detection and what a link handler is given, `exec`, `writeTextFile`, which copies a command reaches, `workspace.panels` and the `changes` block's id, `on_size_change` at a zoom, the time a script may run, `mod.open` and popups. Name the "Behavior to preserve" items to try again.
2. **Replaces a mod:** Herdr now does what a custom mod does (one in "What is custom"). Say what switching would gain and what it would lose. The owner decides, and a mod stays until they say otherwise.
3. **Lifts a limit:** it gives what a note in `AGENTS.md` or `docs/agents/` says a mod can't have. For example: more than one selection, a scroll position, a mark beside an editor line, handlers on virtual-list rows, a remote `writeTextFile`, an import from another mod, a syntax highlighter for any text, a `props()` that stays the copy's own after an `await`, a faster script engine. Name the workaround it retires and its note.
4. **Everything else:** what it is, in a sentence. Why it matters for this setup (or that it doesn't). How it could be used here: a setting, a command or `herdr` function a mod could call, a key to bind, a shipped feature to try.
Read the core's changelog the same way, for every release after core start through core installed, and file its items under the same kinds. A core item touches the setup through the uses found in step 2: an `hc` command a mod runs and the JSON it reads back (Quick Actions jobs: `hc run --bg`, `get`, `read`, `put`, `kill`, `rm`; the sidebar's `hc machine`; File Editor's `hc exec --on`), `exec` with `on:` (it runs through the core there), the environment and folder terminals start with, kept terminals and their recovery, sub-agents and their parents, and the screenshot sandbox's core (`HC_SESSION`, `HC_SOCKET`, the environment it starts from). Name core items by their core version ("core 0.1.23").
Done when: every item of every version in both ranges appears in the report exactly once.
## 5. The source
The changelog misses things. 0.1.17 changed how a `keys.json` section name is read without saying so, and broke every `> Input` section. Read the diff (`jq -r '.files[] | select(.filename=="<file>") | .patch' <scratch>/compare.json`) of every file in the compare that is:
- under `defaults/`, `docs/`, `api/`, `crates/herdr-shell/` or `vendor/gpui-kit/`. This includes `defaults/AGENTS.md`, `defaults/herdr.d.ts` and `crates/herdr-shell/src/typings.rs` (the API and its types: `gpui-kit.d.ts` is written from it; the script bridge was `vendor/gpui-kit/crates/shell` before 0.1.19), the time limits in `crates/herdr-shell/src/engine/quickjs/sandbox.rs` and `scheduler.rs`, the mods other mods call (`worktree`, opened by `spaces-sidebar/menu.js`) or stand beside (`sheet-tabs`, `sheet-side`, `sheet-pane`), and `defaults/keys*.json`. Start with `git diff v<start> v<installed> -- api/released/`: since 0.1.19 Herdr locks the mod API there, so a change in it is a change to what mods can call. Also read `vendor/PATCHES.md`, Herdr's ledger of the behaviour it keeps on purpose when it updates GPUI and gpui-base. The owner's `keys.json` is edited, so new default keys never reach it: report every one.
- `src/keys.rs`, `src/mods.rs`, `src/mod_files.rs`, `src/links.rs`, `src/window.rs`, or under `vendor/gpui-pre/src/`.
- elsewhere if it implements a dependency in the mod notes. Trace both the existing workaround and any new API that could retire it. Examples include terminal side-button routing for Back and Forward, file drops and folder watches for File Explorer, cancellation of `exec` for Project Search, content-sized cards for `toast-names`, and command delivery to the status and dialog copies of Spotify Mini.
For a missing or incomplete patch, compare the tagged files in the scratchpad. Use the old path for a rename and the existing side for an addition or deletion. For binary assets, check the asset and its consumers.
On each release check, inspect the Settings implementation (shipped as `frame/settings/main.js`), mod manifest support and the script API at the installed tag. Can a mod add its own section or controls to Herdr’s built-in Settings dialog? If the dialog still accepts only Herdr’s own sections and controls, say so in **Health**. If support was added, cite the extension point under **Lifts a limit** and say which External Apps and Quick Actions controls could move there and whether their existing entry points could open the right section. Use `docs/agents/powertools-settings.md` for the behavior to preserve.
For File Editor’s optional renderer patch, read `docs/native/README.md`. Check the stock renderer for both guide placement on literal tabs and guide continuation on wrapped lines. Run `git apply --check` with the documented patch against clean installed-tag sources in the scratchpad. In **The originals**, report which behaviors upstream provides and whether the patch applies. A clean apply proves only that the hunks fit. If the patch needs porting or retiring, propose the corresponding patch and documentation changes for the owner.
In the core compare, read the diff of every file that says what `hc` accepts and prints: `docs/commands.md`, `crates/herdr-core/src/help.txt`, `crates/herdr-core/src/SKILL.md` (the manual `hc --skill` prints), `crates/herdr-core/src/cli.rs`, `crates/herdr-core/src/api/types.rs` and `schema/hc.openrpc.json`. Look for a renamed or removed option, a changed JSON field or output shape, a changed default, and what decides JSON versus text output (mods read piped output). Also read whatever implements a core use from step 2, such as `api/run.rs`, `exec.rs` and `platform/` for the environment and folder a terminal or command starts with. Tests, vendored code and build files get one line each.
Done when: every change in those files is matched to an item from step 4 or reported as a **silent change**, under the kind it would have had. Every other file in either compare gets one line saying why it doesn't touch the setup.
### Subagents
When the app compare lists more than about 20 files, give steps 3, 4 and 5 each to its own subagent, in parallel. Give each its step number, the start and installed versions, the scratchpad path and `AGENTS.md`. The step-5 agent also gets the changelog and matches against it itself. Each returns items as `{ kind, version, item or file, mods touched, proposal }`, and no report. Merge them into the report.
## 6. Issues blocked upstream
An issue or pull request here that needs a change in Herdr first has the label `blocked: upstream`. It links the Herdr issue it waits on, in its body or in a comment (`CONTRIBUTING.md`). List the open ones:
```sh
gh issue list --label "blocked: upstream" --state open --json number,title,url,body,comments
gh pr list --label "blocked: upstream" --state open --json number,title,url,body,comments
```
For each one, read its body and every comment. They say what it needs and what would settle it (a "Done when", or the owner's reply). Find every upstream reference: `herdrdev/herdr-app#N`, `herdrdev/herdr-core#N`, or a `github.com/herdrdev/<repo>/issues/N` or `/pull/N` link. If one names no reference, say so, and say in a line what it waits on. For each reference:
- Read its state and latest comments, because a maintainer may have proposed a design or a workaround, or declined. For an issue: `gh issue view N -R herdrdev/<repo> --json state,stateReason,closedAt,updatedAt,closedByPullRequestsReferences,comments`. For a pull request: `gh pr view N -R herdrdev/<repo> --json state,mergedAt,mergeCommit,comments`.
- If it was closed as completed or merged, find the commit that did it (the closing pull request's merge commit). `gh api "repos/herdrdev/<repo>/compare/v<installed>...<sha>" --jq .status` answers `behind` or `identical` when the installed tag already holds the commit. For the core, compare against the running core's tag. Then read what the commit gives, in the source and in `api/released/` or `herdr.d.ts`. Check that it meets the need the issue states, rather than trusting the title.
- If it is still open, hold the need against the items of steps 4 and 5 too. A release can lift the limit without closing the issue, and then the item is also filed under **Lifts a limit**.
Give each labeled issue or pull request one of these verdicts:
- **Unblocked:** an installed version gives what it needs. Name the version and the API or behavior, and the mods and files it touches. Propose the fix, removing the label and a comment on the issue.
- **Fixed upstream, not installed:** the change is merged, but no installed version has it. Name the release that has it, or say none does yet.
- **Partly:** what upstream now gives and what still waits.
- **Declined upstream:** closed as not planned. Give the reason upstream gave. Propose another way or closing the issue here, as the owner's decision.
- **Still blocked:** each reference's state and last activity, in one line.
Done when: every open labeled issue and pull request has a verdict and the state of each of its upstream references.
## 7. The report
In the chat, in this order. An empty section keeps its heading and says "None."
1. **Range:** start → installed, and core start → core installed, with the versions in between. Say which one did not move.
2. **Open from earlier checks:** the open items from `checks.md`, with their entry's date.
3. **Health:** the results of step 2.
4. **Moves what a workaround stands on**, 5. **Replaces a mod**, 6. **Lifts a limit:** one item each. Give the version and the item, the mods it touches, what it means for them and what is proposed. Mark silent changes from step 5.
7. **Blocked upstream:** the results of step 6, one line per issue or pull request (`#7`, its title, its verdict, each upstream reference with its state). List the unblocked ones first.
8. **The originals:** for each clone, the hunks to port, then each hunk set aside with its reason, one line each. Then what the stand-ins have that the custom mods lack.
9. **Everything else:** grouped by version, one line per item: what it is, why it matters, how it could be used.
10. **Source files set aside:** one line per file.
11. **Proposed changes:** a numbered list of every edit the report suggests, including step 6's fixes, label removals and issue comments. Name the files, and the "Behavior to preserve" items to try again by hand. Mark the ones that need the owner's decision.
## 8. The log
Add an entry at the top of `checks.md`, under its title:
```markdown
## <date>: <start> → <installed>, core <core start> → <core installed>
Open:
- 1. <proposed change, as numbered in the report>
Settled:
```
A core-only check keeps the app's version on both sides (`0.1.18 → 0.1.18, core 0.1.22 → 0.1.23`). Every proposed change starts under "Open". An entry with nothing to propose says `- None.` under "Open". The repository is public, so an entry holds versions, dates and short titles that name mods and Herdr features only: no paths outside this folder, no machine, space or project names, nothing personal.
## After the report
Make a proposed change only after the owner names it. Then:
- Port the change into the clone under `packages/`. Run `python3 docs/sync-mods.py`, run `herdr-app check` on the runtime copy and `herdr-app status`, and look with `herdr-app shot`.
- Run the affected package’s tests and use its mod notes to try interactions beyond the native check’s initial render. For a change to a shared helper, run `python3 docs/check-shared.py` too.
- For a lifted limit, use what Herdr now gives. Delete the workaround and its note in `AGENTS.md` or `docs/agents/`, and its example in step 4 here if it has one.
- Try again the "Behavior to preserve" items the report named, and say which could not be driven from a shell.
- For an unblocked issue, make the fix as for any other change. Remove the `blocked: upstream` label (`gh issue edit N --remove-label "blocked: upstream"`) and post a comment only after the owner approves the text. The comment names the Herdr version that unblocked it. Close the issue only when the fix is pushed, or leave it for the pull request that fixes it.
- In `checks.md`, move the item under "Settled", marked `made` or `declined`.
Advance the clone baseline through consecutive settled entries in release order. A core-only entry never moves it: the clones copy app files. An earlier open entry holds the baseline at the last fully settled version. Update `from version <old>` in the clone entries of "What is custom" and in the clones' notes in `docs/agents/`, the supported Herdr version in the README's install section, and `(version <old>)` in the clone notices in `NOTICE`. Other version mentions date a fact ("since 0.1.17") or identify a patch target.