Codex CLI Adds Tab Completion for Slash Command Arguments

CodexView original changelog

Codex CLI 0.172.0 lets users press Tab to complete arguments for supported slash commands. For example, /mcp lo completes to /mcp login.

Key Takeaways

  • Tab now completes slash command arguments, not just command names.
  • /mcp lo becomes /mcp login with one keypress.
  • Completion works on supported commands, where arguments are a known set.
  • It reduces typos and memorization for subcommands.
  • It fits a release focused on keyboard-first TUI navigation.
  • Available from Codex CLI 0.172.0.

Argument completion for slash commands

Codex CLI has long completed slash command names. Version 0.172.0 extends that to command arguments: pressing Tab in the composer now completes arguments for supported slash commands. The release notes give the example of typing /mcp lo and pressing Tab to get /mcp login.

What changes day to day

Commands with subcommands or fixed options are easier to drive from the keyboard, and users no longer need to remember the exact spelling of each subcommand. Completion applies to supported commands only, so it will appear first on commands whose arguments are a known set.

Part of a wider TUI polish pass

The release also adds task-group navigation in the agent command center and paging for long answer choices, all aimed at making the terminal UI faster to operate without a mouse.