Skip to content

lucassilv2/ruby_llm_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby_llm_bot

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.


Requirements

  • Ruby 3.0+ (recommended: rbenv or rvm)
  • Bundler (gem install bundler)
  • Your LLM configuration in bot_config.rb

Installation

Clone this repository:

git clone https://github.com/your-username/ruby_llm_bot.git
cd ruby_llm_bot
bundle install

Usage

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):

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages