Skip to content

Install herdr's agent integrations when an agent is first used - #17281

Merged
dhh merged 5 commits into
quattrofrom
herdr-agent-integrations
Nov 1, 2026
Merged

dhh merged 5 commits into
quattrofrom
herdr-agent-integrations

Conversation

@dhh

@dhh dhh commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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).

  • A global mise postinstall hook (etc/mise/conf.d/omarchy.toml) runs omarchy-agent-integrate-herdr with 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.
  • The helper maps each mise tool to its herdr target and config directory, creates the directory, and installs quietly so nothing lands on the agent's first screen. A failure only warns, so the agent still starts.
  • The test runs the real herdr in a temp HOME, so it fails if the mapping or directories drift from herdr's.

Verified end to end in an isolated mise and HOME: the first run of the lazy grok shim 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

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>
@greptile-apps

greptile-apps Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issue was found.

Summary

Installs herdr integrations when mise first installs or later upgrades supported agents.

  • Mise installs herdr integrations before supported coding agents start.

Reviews (5) · Last reviewed commit: "Honor XDG_CONFIG_HOME for herdr's openco..." · Reviewed by Greptile

Comment thread migrations/1793531426.sh Resolved
dhh and others added 3 commits November 1, 2026 20:48
--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>
Comment thread bin/omarchy-agent-integrate-herdr Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit f2b8378 into quattro Nov 1, 2026
3 checks passed
@dhh
dhh deleted the herdr-agent-integrations branch November 1, 2026 20:01
@emirb emirb added this to the 4.6.0 milestone Nov 5, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants