Repository navigation
Give agents mise shims so they find tools installed after launch - #16593
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge. SummaryRestores mise shims to the agent’s
Reviews (1) · Last reviewed commit: "Give agents mise shims so they find tool..." · Reviewed by Greptile |
20 of 34 tasks
4 tasks
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.
Claude, Codex and Grok start through mise's command wrappers. Before running a wrapper, mise strips its shims and wrapper directories from PATH and adds only the install directories of tools that exist at that moment.
omarchy-agent-account-execalready restored the wrappers dir but not the shims, so a long-running agent could not see any mise tool installed after it started (e.g.museinstalled this morning was invisible to Claude sessions started two days ago), and tools not yet installed had no lazy shim to trigger their install.This appends the shims dir back to PATH, after the real install dirs so they keep precedence, matching
default/bash/env-bootstrap. Running agents pick it up on their next launch.Test:
bash test/shell.d/agent-account-test.shpasses, including a new assertion that the launched agent's PATH contains the mise shims dir.🤖 Generated with Claude Code