A list of aliases and pre-written scripts to help you inject AI into your dev workflow.
#!/bin/sh
curl -sSf "https://raw.githubusercontent.com/alexsoyes/ai-driven-dev-community/main/scripts/aiddc/install.sh" | bashProvide an OpenAI API key in the .env file.
OPENAI_API_KEY=sk-<your-api-key>Or directly in your .bashrc file.
export OPENAI_API_KEY=sk-<your-api-key>If you want to use Ollama, you need to provide the following environment variables.
LOCAL_MODEL=codellama # deepseek-coder, qwen2 etc.Note: Responses might be way less effective than OpenAI's GPT calls.
Use aiddc-<command> to run our scripts.
There are two types of commands to help you.
- Operation: The ones which call the AI to help you with your code (e.g.
aiddc-commit-msg- ask AI to generate a beautiful commit message for you). - Asking AI: The ones which are doing easier operations (e.g.
aiddc-changes- copygit diffin your clipboard).
Note: On AI API call, the script will always ask you to confirm the action before proceeding to avoid extra cost.
aiddc-changes- Copy thegit diffoutput to your clipboard.aiddc-changes-from-main- Copy thegit diff mainoutput to your clipboard.aidd-commit-last- Copy the last 10 commit messages to your clipboard.
aiddc-commit-msg- Add an AI-generated commit message to your commit.
In the aiddc 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.
cd scripts/aiddc
bash install-local.sh && source ~/.bashrc && aiddc-commit-msg - Add more scripts.
- Do not overwrite the existing scripts.
- Create a
.projectfile at the root of the repository to store project info.- Inject this info in
systemprompt.
- Inject this info in