A command-line utility that just generates and auto-executes Python scripts.
You'll be surprised how useful it can be:
- "How many folders in my home directory are git repos?" ... "Plot them by disk size."
- "Give me the pd.describe() for all the csv's in this directory"
- "What ports are currently active?" ... "What are the Google ones?" ... "Cancel those please."
Please proceed with caution. This obviously has the potential to cause harm if so instructed.
-
Clone the repo:
git clone http://github.com/AbanteAI/rawdog cd rawdog
-
Setup a virtual environment and install dependencies
virtualenv venv source venv/bin/activate pip install -r requirements.txt
-
Choose a mode of interaction. You will be prompted to input your API key if not found:
Direct: Execute a single prompt and close
python3 -m rawdog Plot the size of all the files and directories in cwd
Conversation: Initiate back-and-forth until you close. Rawdog can see its scripts and output.
python3 -m rawdog >>> What can I do for you? (Ctrl-C to exit) >>> > |
Rawdog uses litellm
for completions with 'gpt-4' as the default. You can adjust the model or
point it to other providers by modifying ~/.rawdog/config.yaml
.