Are you a better Software Engineer than ChatGPT?
Kosuke is an asynchronous code assistant that can perform code reviews, analyze entire codebases, and generate descriptive changelogs for marketing purposes. It's designed to help developers improve their code quality and productivity.
- Create a
.env
file including the following environment variables
# OpenAI
# ------------------------------------------------------------------------------
OPENAI_API_KEY=
# Pinecone
# ------------------------------------------------------------------------------
PINECONE_API_KEY=
PINECONE_INDEX_NAME=
# GitLab
# ------------------------------------------------------------------------------
GITLAB_ACCESS_TOKEN=
GITLAB_BRANCH_NAME=
GITLAB_RELEASE_BRANCH_NAME=
GITLAB_PROJECT_NAME=
# Github
# ------------------------------------------------------------------------------
GITHUB_ACCESS_TOKEN=
GITHUB_PROJECT_NAME=
GITHUB_BRANCH_NAME=
GITHUB_RELEASE_BRANCH_NAME=
# General
# ------------------------------------------------------------------------------
BOT_NAME=
- Run the app with
docker-compose
docker-compose up --build -d
- Stop the app
docker-compose down
Kosuke provides several one-shot commands that you can use to perform different tasks. Here's a list of available commands:
analyze
: analyzes the codebase and provides feedback on potential issueschange_log
: generates a descriptive changelog for marketing purposescode_review
: reviews the code and provides suggestions for improvementindex_code_base
: indexes the codebase for talk to your code use caseinit_pinecone
: initializes Pinecone for use with Kosukechat
: generates a response to a user question based on your indexed codebase
Each command can be run with the following optional parameters:
--framework
: specifies the framework used in the codebase (currently only django is supported)--since_date
: specifies the date from which to start the analysis (in the format %Y-%m-%d)
Kosuke currently supports the django
framework, which is a popular web framework for Python.
python main.py --task analyze --framework django
python main.py --task index_code_base
python main.py --task init_pinecone
python main.py --task chat --question "How can I optimize my database queries?"
python main.py --task code_review
This project is licensed under the MIT License.