Coder Social home page Coder Social logo

kosuke's Introduction

Kosuke

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.

Run Locally

Run with docker-compose

  1. 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=
  1. Run the app with docker-compose
docker-compose up --build -d
  1. Stop the app
docker-compose down

One shot commands available

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 issues
  • change_log: generates a descriptive changelog for marketing purposes
  • code_review: reviews the code and provides suggestions for improvement
  • index_code_base: indexes the codebase for talk to your code use case
  • init_pinecone: initializes Pinecone for use with Kosuke
  • chat: 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)

Frameworks Currently Supported

Kosuke currently supports the django framework, which is a popular web framework for Python.

Example Usage

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

License

This project is licensed under the MIT License.

kosuke's People

Contributors

filopedraz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.