A CLI-based chatbot that fine-tunes itself in real time by learning from your local Git repo. Ask the chatbot about codebase details for faster development and bug fixes, and have it auto-update on each commit.
- Docker
- Node.js
Install dependencies using pnpm install
- Copy
.env.sample
to.env
1.1. SpecifyOPENAI_API_KEY
andDEFAULT_REPO_PATH
in the.env
- Start a new Postgres database locally using
pnpm db:up
which will also install thepgvector
extension. - Run
pnpm db:push
to sync the schema with your database - Run
pnpm dev
to start the CLI
Once started:
- Provide a repo path if different from
DEFAULT_REPO_PATH
- else leave empty - If the repo is new, it will embed the codebase into Postgres using OpenAI Embeddings
- Ask questions about your codebase in the chatbot
- A.I.Ware will check for new commits to delete old embeddings of changed files and re-embed them periodically so it always has the latest context.
This repo is licensed under the MIT License.