Turn the forgotten $
prefix into something useful: run your shell commands with an AI agent.
Think of it like how jQuery claimed $
early on — now your terminal gets its own $
.
npm install -g dollar-agent
This installs a global $
command.
Regular shell:
npm test
With $
agent:
$ npm test
→ sends npm test
to Codex, so you can run and discuss commands interactively.
People often paste commands with a leading $
, and the shell errors because no $
command exists.
Even if you leave the $
prefix on a command by mistake, the AI agent gently walks you through what to run.
It’s a tiny joke-like program (just a few lines of Bash), but surprisingly practical for everyday use.