An AI command-line assistant
Project description
Rawdog
An CLI assistant that responds by generating and auto-executing a Python script.
https://github.com/AbanteAI/rawdog/assets/50287275/1417a927-58c1-424f-90a8-e8e63875dcda
You'll be surprised how useful this 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."
Rawdog (Recursive Augmentation With Deterministic Output Generations) is a novel alternative to RAG (Retreival Augmented Generation). Rawdog can self-select context by running scripts to print things, adding the output to the conversation, and then calling itself again.
This works for tasks like:
- "Setup the repo per the instructions in the README"
- "Look at all these csv's and tell me if they can be merged or not, and why."
- "Try that again."
Please proceed with caution. This obviously has the potential to cause harm if so instructed.
Quickstart
-
Install rawdog with pip:
pip install rawdog-ai
-
Choose a mode of interaction. You will be prompted to input an API key if not found:
Direct: Execute a single prompt and close
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.
rawdog >>> What can I do for you? (Ctrl-C to exit) >>> > |
Optional Arguments
--dry-run
: Print and manually approve each script before executing.
Model selection
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
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rawdog_ai-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cacae104630d91b582fd75fbe6c4ad29d32fccd9ae6f2d73a3c15ffc63d2426 |
|
MD5 | 677184c5cbd647a9c1f311055b3709a6 |
|
BLAKE2b-256 | 1b4eb23db428299d0a60bcc8c98fc57e864f6c12c5ba258146b2598c1e149135 |