Add `$` Alias to Codex CLI
Overview
Codex CLI is currently invoked with the codex command. This proposal registers the commonly copied shell‑prompt symbol $ as an additional alias and wraps each invocation with an AI‑powered layer that confirms execution and explains the command in natural language.
Background & Motivation
Blog posts and tutorials often include commands like $ git …. Pasting them verbatim causes the leading $ to be interpreted as an unknown command, resulting in errors.

By mapping $ to Codex CLI, we can, before execution:
- Show a plain‑English explanation of the command.
- Require explicit confirmation before the command runs.

Expected Benefits
- Users understand what a command does as they run it.
- Prevents accidental execution when snippets are pasted.
Implementation
"bin": {
"codex": "bin/codex.js",
"$": "bin/codex.js"
}
Adding this line to package.json enables the alias. Registration has been verified on Ubuntu and macOS; Windows (via WSL 2) should behave identically.
2 Comments
This is likely to cause problems for a lot of users. I recommend adding
alias $=codexto your favorite dotfile if this feature is important to you.Thank you for reply! Actually, I already use alias for my own use.
.zshrc
"$"にAIエージェントを割り当てる