I built a small Bash helper called brain that turns natural language into shell commands directly in your prompt.
You type what you want to do, press a shortcut, and the command appears in-place (not executed). Think of it like !!, but for intent instead of history.
Example:
show git config username
→ press Ctrl+G →
git config user.name
You can edit it or hit Enter — nothing runs automatically.
Why I built it I often know what I want to do in the shell, but not the exact flags or syntax. I wanted something faster than searching docs, and safer than auto-executing AI output.
Design choices
Bash-only (no zsh magic)
Uses a standalone script + readline integration
Does NOT auto-execute commands
Python stdlib only (no dependencies)
Happy to hear feedback, edge cases, or suggestions.