Skip to content

Give agents mise shims so they find tools installed after launch - #16593

Merged
dhh merged 1 commit into
quattrofrom
worktree-agent-exec-mise-shims
Oct 25, 2026
Merged

dhh merged 1 commit into
quattrofrom
worktree-agent-exec-mise-shims

Conversation

@dhh

@dhh dhh commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

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-exec already 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. muse installed 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.sh passes, including a new assertion that the launched agent's PATH contains the mise shims dir.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Restores mise shims to the agent’s PATH, so newly installed tools become visible without restarting the agent.

  • Agents launched through account switching can find newly installed mise tools.

Reviews (1) · Last reviewed commit: "Give agents mise shims so they find tool..." · Reviewed by Greptile

@dhh
dhh merged commit e59c675 into quattro Oct 25, 2026
2 checks passed
@dhh
dhh deleted the worktree-agent-exec-mise-shims branch October 25, 2026 10:05
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
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