Overide
Overide 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.
Table of Contents
Key Features
- IDE Agnostic: Works with any IDE or text editor
- AI-Powered Code Generation: Uses OpenAI, DeepSeek, or Groq APIs
- Live File Monitoring: Continuously monitors files for code generation prompts
- Simple Prompting Syntax: Uses intuitive
//> <//
patterns for code generation
Installation
Install globally using npm or pnpm:
npm install -g overide
pnpm install -g overide
For more installation options, see our installation guide.
Usage
Adding API Key
Configure your AI platform credentials:
overide config --global
Select an active platform if you've configured multiple:
overide config --select-active
Initialize a Project
Initialize Overide in your project directory:
overide init
Start Monitoring
Begin monitoring files for code generation:
overide start
Code Generation
Insert prompts in your code:
Overide will generate and insert code:
function helloWorld() {
console.log("Hello, World!");
}
Configuration
Configure Overide using oi-config.json
:
{
"name": "project name",
"ignore": ["node_modules", "*.test.js"]
}
Contributing
Development Workflow
- Fork and clone the repository
- Create feature branches from
dev
- Make changes and test thoroughly
- Submit PR to merge into
dev
- Once approved, changes merge to
dev
- Periodically,
dev
merges to staging
- When ready,
staging
merges to main
with version prefix:
patch:
for bug fixes (0.0.X)minor:
for new features (0.X.0)major:
for breaking changes (X.0.0)
Example PR titles:
- "patch: Bug fixes for v0.0.6"
- "minor: New features for v0.1.0"
- "major: Breaking changes for v2.0.0"
Development & Testing
Local Development (Hot Reloading)
- Start the development watcher:
npm run dev
pnpm dev
- In a separate terminal, run the CLI commands as you normally would, with
npm run
or pnpm
prefixed:
npm run overide init
pnpm overide init
The development watcher (npm run dev
) will automatically rebuild the project when you make changes to the source code, allowing you to test changes in real-time.
Local Production Testing
- Build and create global link:
npm run build
npm link
- Link in test project:
npm link -g overide
- Test the production version of the CLI:
overide --version
overide init
overide start
- Cleanup:
npm unlink -g overide
npm unlink
Why Development Testing?
- Hot Reload: Test changes instantly without manual rebuilds
- Real-time Feedback: See immediate results of code modifications
- Faster Development: Reduce time between changes and testing
- Debugging: Easier to identify and fix issues during development
Why Link Testing?
- Test CLI as if installed globally
- Verify changes before publishing
- Validate package.json bin configuration
- Ensure proper dependency inclusion
Future Plans (v2.0)
- Project Context Management: Local parsers for optimized prompts
- Code Format: Unified diff format for improved insertion
- Multiple File Edit: Support for multi-file operations
- Script Execution: Automated task execution capabilities
Join our Discord to collaborate, share ideas, and stay updated with Overide developments.
License
Overide is licensed under the GNU GPL-2.0 License. See the LICENSE file for details.