Repository navigation
Install herdr's agent integrations when an agent is first used - #17281
Merged
Merged
Conversation
herdr only installs an integration into an agent's existing config directory, which Omarchy's lazy agents don't have until their first run. A mise postinstall hook now creates that directory and installs the integration as the agent is installed, and again on each upgrade. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge; no new actionable issue was found. SummaryInstalls herdr integrations when mise first installs or later upgrades supported agents.
Reviews (5) · Last reviewed commit: "Honor XDG_CONFIG_HOME for herdr's openco..." · Reviewed by Greptile |
--existing now exits non-zero when an integration fails, so the migration running it retries instead of being marked complete. The mise hook still always succeeds. The test also clears agent-home overrides so it can't reach the developer's real agent homes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed install warns and moves on to the next agent, so one agent's broken config can't hold this migration and every later one pending. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agents update themselves through mise, which reruns the postinstall hook, so agents already in use get integrated on their next upgrade without a migration. The helper now maps each tool straight to its herdr target and config directory, honoring only the account homes Omarchy itself sets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sogamoso
added a commit
to sogamoso/dotfiles
that referenced
this pull request
Nov 10, 2026
…n agent herdr installs an integration into the agent's existing config directory, and the hook script it installs is versioned, so an agent only got a newer hook on the next `dotfiles reload`, while the agents-update LaunchAgent upgrades the agents themselves every four hours. Omarchy runs its integration helper as a mise postinstall hook, which names the tools mise just installed (omacom/omarchy#17281); the macOS mise config now does the same through `dotfiles agent integrate`, which maps those names to herdr's targets and runs herdr-integrations.sh for them alone. The hook never fails, so an agent still starts when herdr isn't there.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
herdr's integrations panel offers every agent on PATH, and Omarchy puts about 20 lazy mise shims there. Pressing install fails on each agent that has never run, because herdr only installs into an existing config directory (
grok config directory not found at ~/.grok. install grok cli first).postinstallhook (etc/mise/conf.d/omarchy.toml) runsomarchy-agent-integrate-herdrwith the tools mise just installed. Agents are lazy and self-updating, so that's their first use and every upgrade after it. Agents already in use get integrated on their next upgrade, so there's no migration.Verified end to end in an isolated mise and HOME: the first run of the lazy
grokshim installed grok and its herdr integration (current (v2)) with no output.The upstream fix, herdrdev/herdr#5745, stops the panel from offering install for agents whose config directory doesn't exist yet.
🤖 Generated with Claude Code