List all homebrew packages explicitly installed by the user (without deps)
Seems that you can use brew bundle:
brew bundle dump --file /tmp/x
brew bundle list --file /tmp/x --formula

the temporary file can be avoided using pipes
brew bundle dump --file - | brew bundle list --file - --formula