Introduction
September 2026 update: ClawTab now has a draft-preserving model-switch command and an optional Cheap Compact workflow. Use those guides for the current ClawTab integration. The original keystroke-only example below still requires an empty composer.
Choosing the right coding model is a small decision that can interrupt a fast workflow. A lightweight task may need a faster model; a difficult refactor may deserve a more capable one with more reasoning effort. Codex has a /model picker, but repeatedly opening and navigating it is slow when you keep a short list of trusted choices.
On macOS, Hammerspoon can turn that picker into one shortcut. The macro below opens /model, accepts the command, selects a model by its current menu position, then selects a matching effort level. It runs inside the active Codex session rather than starting a separate profile.
This is a practical bridge while native support catches up. Open Codex issue #31839 proposes configurable next/previous model keybindings for a user-defined shortlist. Until that lands, a local macro is fast, transparent, and easy to revise with AI.
Codex is the main example here, but the idea is not Codex-specific. Hammerspoon sends keystrokes to the focused terminal, so the same pattern works with Claude Code: use Claude's own command and menu positions, then keep a separate preset table rather than reusing Codex's numbers.
Use it from a blank Codex input. This macro types /model into the active terminal, so it is not intended to run in the middle of an unfinished prompt.


