Quick Question...
qq is a Ruby gem for asking quick questions of Claude 3.5 Sonnet at the command line.
Install
gem install quickquestion
Set ANTHROPIC_API_KEY env var to your API key.
Use:
$ qq how do I tell if I'm using an rbenv ruby or the system ruby
Run `which ruby` - if it shows a path containing `.rbenv` you're using rbenv.
System Ruby typically shows `/usr/bin/ruby`. (Cost: $0.0007)
$ cat question.txt | qq
...
$ echo "question" | qq
...
# or just qq alone for a prompt with readline:
$ qq
> rbenv command to install the lastest ruby and make it the global default
rbenv install $(rbenv install -l | grep -v - | tail -1) &&
rbenv global $(rbenv install -l | grep -v - | tail -1) (Cost: $0.0008)
It’s most useful for these small, low-stakes practical puzzles where you can quickly judge the results.
More: