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 Claude Code, so you can run and discuss commands interactively.
People often paste commands with a leading $
, and the shell errors because no $
command exists.
Now, just like jQuery made $
the universal shortcut in JavaScript, you can make $
your shortcut to an AI agent in the terminal.
It’s a tiny joke-like program (just a few lines of Bash), but surprisingly practical for everyday use.