CodeYoda

CodeYoda - Your own code assistant powered by Codellama (Ollama)

MIT License

Stars
1
Committers
2

CodeYoda

CodeYoda is an AI-powered code assistant designed to streamline your coding process. Leveraging the advanced capabilities of CodeLlama (Ollama), CodeYoda assists with code generation, debugging, and optimization across various programming languages and frameworks.

Features

  • Code Generation: Generate code snippets or complete functions based on your input.
  • Code Debugging: Identify and fix bugs in your code quickly with intelligent suggestions.
  • Code Optimization: Get recommendations to optimize your code for performance and readability.
  • Customization: Tailor CodeYoda's behavior to match your coding style and project requirements.

Getting Started

Prerequisites

  • Python 3.8+: Ensure you have Python installed on your system.
  • Ollama CLI: Install the Ollama CLI to interact with the CodeLlama model.
  • pip: Python's package installer.

Installation

  1. Clone the repository:

    git clone https://github.com/0xPriyanshuJha/CodeYoda.git
    cd CodeYoda
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Set up the CodeLlama model via Ollama:

    ollama pull codellama
    
  4. Start the CodeYoda assistant:

    python codeyoda.py
    

Usage

After launching CodeYoda, you can interact with it via a command-line interface or integrate it into your IDE of choice using available plugins.

Basic Commands

  • Generate Code: Describe the functionality you need, and CodeYoda will generate the code.
  • Debug Code: Paste your code snippet, and CodeYoda will highlight errors and suggest fixes.
  • Optimize Code: Submit a piece of code for optimization suggestions.

Example

License

This project is licensed under the MIT License.

Acknowledgements