A list of aliases and pre-written scripts to help you inject AI into your dev workflow.
To install the aliases:
curl -sSf "https://raw.githubusercontent.com/ai-driven-dev/aliases/main/install.sh" | bash
Expected output:
# Create TMP folder if not exist.
# Removing existing TMP folder.
# /tmp/aidd
# Download and extract source.
# Create DEST folder if not exist.
# Copy files from /tmp/aidd to /Users/alexsoyes/.ai-driven-dev.
# AI-Driven-Dev successfully installed: use 'aidd-help' to get started.
Then you need to connect to a LLM API for certain commands.
Provide an OpenAI API key in ~/.ai-driven-dev/.env
.
OPENAI_API_KEY=sk-<your-api-key>
Or directly in your .bashrc
file.
export OPENAI_API_KEY=sk-<your-api-key>
Alternatively, you can use Ollama.
Provide a local model name in the .env
file in ~/.aidd
directory.
LOCAL_MODEL=codellama # deepseek-coder, qwen2 etc.
Note: Responses might be way less effective than OpenAI's GPT calls.
In the cloned directory, you can run the following command to install the scripts locally and add the aliases to your .bashrc
file.
When you do want to test your new scripts without pushing those to the repository.
bash install-local.sh && source ~/.bashrc && aidd-help
_ ___ ____ _ ____
/ \ |_ _| | _ \ _ __(_)_ _____ _ __ | _ \ _____ __
/ _ \ | |_____| | | | '__| \ \ / / _ \ '_ \ | | | |/ _ \ \ / /
/ ___ \ | |_____| |_| | | | |\ V / __/ | | | | |_| | __/\ V /
/_/ \_\___| |____/|_| |_| \_/ \___|_| |_| |____/ \___| \_/
Usage: `aidd-help`
Provides help and usage information for aidd scripts.
Available Aliases:
-------------------
- `aidd-changes-from-main` Copies the changes from the main branch to the clipboard.
- `aidd-changes` Copies the current git changes to the clipboard.
- `aidd-commit-date` <[required] Date in the format 'YYYY-MM-DD HH:MM:SS', Commit ID.> Changes the commit date of the specified commit using a specified date.
- `aidd-commit-last` Copies the last 10 commit messages to the clipboard.
- `aidd-commit-msg` Prepares a commit message based on current changes.
- `aidd-commits-diff-main` Copies the commit differences between the current branch and main.
- `aidd-help` Provides help and usage information for aidd scripts.
- `aidd-pull-request` <Template file path.> Prepares a pull request using a pre-filled template.
- `aidd-review` <'changed', 'staged', 'diff-from-main'> Reviews changes based on the specified parameter.
- `aidd-tree` <Exclude directories pattern.> Generates a directory tree excluding specified directories.
- `aidd-ts-doc` Generates TypeScript documentation using typedoc and combines markdown files
-------------------
Usage Example:
`aidd-help`