A simple CLI tool built with Ruby and Thor.
It sends questions to a configured LLM, shows a plan and explanation, and optionally executes shell commands with confirmation.
- Ruby 3.0+ (recommended: rbenv or rvm)
- Bundler (
gem install bundler
) - Your LLM configuration in
bot_config.rb
Clone this repository:
git clone https://github.com/your-username/ruby_llm_bot.git
cd ruby_llm_bot
bundle install
Run directly:
./bot.rb ask "Write a command to print a message in the terminal"
Output:
Plan: Use the echo command
Explanation: The echo command is used to print text to the terminal.
About to run the command: echo "Hello from bot"
Do you want to execute this command? (y/n):