8000 GitHub - mixelpixx/oi: Oi is an open-source cli tool that works on top of codellama and generates code in any editor without extensions.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ oi Public
forked from oi-overide/oi

Oi is an open-source cli tool that works on top of codellama and generates code in any editor without extensions.

License

Notifications You must be signed in to change notification settings

mixelpixx/oi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oi-Override

Oi-Override is a lightweight yet powerful CLI tool designed to simplify AI-powered code generation directly within your development workflow. With Oi, you can quickly generate, update, and integrate code using predefined prompts, allowing you to focus on the creative aspects of coding while letting AI handle the heavy lifting.

Key Features

  • AI-Powered Code Generation: Automatically generate code based on embedded prompts in your files, using services like OpenAI’s Codex or other AI models.
  • Live File Monitoring: Continuously monitor your project files for updates and code generation prompts.
  • Simple Prompting Syntax: Use intuitive patterns like //> <// to guide AI in generating or completing code snippets in specific locations.
  • Project Context Management: Oi-Override tracks the project’s structure and dependencies using a lightweight .oi-dependency.json file, keeping project-wide context in sync.
  • Customizable AI Backends: Easily switch between AI services such as OpenAI or self-hosted models (e.g., Code Llama), giving you flexibility over how code is generated.
  • Unlimited Generations: Generate code as often as needed, with no hard limits on usage (service dependent).

Installation

Using Homebrew

Install Oi-Override via Homebrew:

brew install oi

Manual Installation

Alternatively, you can clone the repository and install it manually:

git clone https://github.com/your-username/oi-override.git
cd oi-override
npm install

Usage

Initialize a Project

To initialize Oi-Override in your project, run the following command in your project directory:

oi init

This will create a configuration file and set up Oi to work with your project.

Start Monitoring

Once Oi is initialized, you can start monitoring the project files for code generation prompts:

oi start

Oi will continuously watch the project directory and respond to any prompts it detects.

Insert Prompts for Code Generation

Place prompts in your code files to indicate where Oi should generate code. For example:

//> Generate a function to add two numbers <//

Oi will then generate the required code and insert it directly into the file at the prompt location.

Generate Dependency Graph

You can generate or update the project dependency graph by running:

oi depend

This will create a `.oi-dependency.json` file that tracks the structure of your project and its dependencies.

Configuration

Oi-Override uses an `oi-config.json` file for customization. You can define the AI service, ignore certain files or directories, and configure other options.

Example configuration:

{
  "service": "http://localhost:8000",
  "ignore": ["node_modules", "*.test.js"],
  "verbose": true
}

Key Options

  • service: The AI backend service to use (e.g., OpenAI Codex, local LLM).
  • ignore: Files or directories to exclude from monitoring.
  • verbose: Enable verbose logging to track detailed operations.

Contributing

We welcome contributions from the community! Here’s how you can help:

  1. Fork the repository.
  2. Create a new branch for your feature or fix.
  3. Submit a pull request and describe your changes.

Feel free to open issues for bugs, feature requests, or general feedback!

License

Oi-Override is licensed under the MIT License. See the LICENSE file for more details.


Join the Community!

We’re excited to build Oi-Override into a powerful, flexible tool that enhances developer workflows with the help of AI. Follow the repository, contribute, and help us improve Oi for everyone!

About

Oi is an open-source cli tool that works on top of codellama and generates code in any editor without extensions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
0