Stop gh, claude and other mise wrappers printing 'mise ... tools:' before their output
Problem and cause confirmed. /usr/bin/omarchy-mise-install on 4.0.4-1 writes mise use -g --quiet, 13 wrappers in ~/.local/bin on this workstation still carry the unquiet mise use -g "<pkg>" || exit 1 form, and migration 1787573629.sh exists on quattro (fetched) but is absent from /usr/share/omarchy/migrations, matching #13994's comment that the backport had not shipped. Latest release is still v4.0.4. Defect in the fix, reproduced in a scratch HOME: the loop matches any file with an unquiet mise use -g line, so a wrapper the user hardened per the sibling record mise-wrapper-infinite-loop-cpu (exec mise x "codex" -- "$bin_path" "$@") had $bin_path captured as the binary name and was rewritten to exec mise x "codex" -- \$bin_path "$@", a broken wrapper. The corrected loop only rewrites files byte-identical to the stale template (the same rule upstream's migration uses), and was re-run in the scratch HOME: stock wrappers regenerated with --quiet, the hand-edited one left alone, second run a no-op. Also found that omarchy-refresh-applications runs install/user/mise.sh and rewrites every default wrapper from the current template, added as an alternative with its side effects. Verify corrected: in an interactive terminal mise activate puts tool install dirs ahead of ~/.local/bin, so gh --version may bypass the wrapper and pass while the wrapper is still stale. The check must run the wrapper by path. Cause trimmed of the workstation-specific '13 wrappers' sentence, which is not a fact about the reader's machine.
Symptom
Every run of gh, claude, codex, opencode and similar tools prints an extra first line:
$ gh --version 2>/dev/null
mise ~/.config/mise/config.toml tools: gh@2.102.0
gh version 2.102.0 (2026-09-30)
Scripts that capture output break: gh ... --json no longer parses, $(claude --version) holds two lines, and one user published the status line into a pull request description through gh pr edit --body-file.
Cause
Omarchy installs these tools as lazy wrappers in ~/.local/bin, written by omarchy-mise-install. Wrappers written before the template gained --quiet (installs from about 4.0.1 and earlier, and any wrapper no later migration happened to rewrite) run mise use -g "<pkg>" || exit 1 on every invocation, and mise prints its tools: status line to stdout. The current template writes mise use -g --quiet, but an existing wrapper is only rewritten when something calls omarchy-mise-install for it again. The migration that rewrites stale wrappers (1787573629.sh) exists on the quattro branch but is not in the 4.0.4 package, so omarchy update on stable 4.0.4 does not fix it.
The line only appears when the wrapper itself runs. An interactive shell with mise activate may find the tool's install directory first and look fine, while scripts, git credential helpers, Hyprland keybindings and GUI apps hit the wrapper.
Fix
Regenerate only wrappers that are exactly the stale stock form, keeping each wrapper's package and binary. A wrapper you edited by hand is skipped, because regenerating it would drop your edit:
for w in ~/.local/bin/*; do
[[ -f $w && -x $w && ! -L $w ]] || continue
(( $(stat -c%s "$w") <= 1024 )) || continue
pkg=$(sed -n 's/^mise use -g "\(.*\)" || exit 1$/\1/p' "$w")
bin=$(sed -n 's/^exec mise x ".*" -- "\([^"$]*\)" "\$@"$/\1/p' "$w")
[[ -n $pkg && -n $bin ]] || continue
expected=$(printf '#!/bin/bash\nexport MISE_MINIMUM_RELEASE_AGE=0\nmise use -g "%s" || exit 1\nexec mise x "%s" -- "%s" "$@"' "$pkg" "$pkg" "$bin")
[[ $(<"$w") == "$expected" ]] || continue
echo "regenerating ${w##*/} ($pkg)"
omarchy-mise-install "$pkg" "${w##*/}" "$bin"
done
The size check skips real binaries in ~/.local/bin, and wrappers already using --quiet match nothing, so re-running it changes nothing. A wrapper you edited yourself (for example the absolute-path hardening for the mise exec loop) is left as is: add --quiet to its mise use -g line by hand.
Alternative: omarchy-refresh-applications, run from a desktop terminal, rewrites every default wrapper from the current template. It also overwrites wrappers you edited, recreates default wrappers you deleted on purpose, runs the Hermes CLI installer, and copies Omarchy's .desktop files over any same-named ones in ~/.local/share/applications.
Verify
Run a wrapper by its path, so an activated mise install directory cannot answer instead: ~/.local/bin/gh --version 2>/dev/null | head -1 starts with gh version. grep -L -- '--quiet' $(grep -l '^mise use -g' ~/.local/bin/*) prints nothing, or only wrappers you edited by hand.