Overide is a lightweight yet powerful CLI tool designed to simplify AI-powered code generation directly within your development workflow. With Overide, 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.
- 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
Install globally using npm or pnpm:
npm install -g overide
# or
pnpm install -g overide
For more installation options, see our installation guide.
Configure your AI platform credentials:
overide config --global
Select an active platform if you've configured multiple:
overide config --select-active
Configure Overide in your project directory:
overide init
Begin monitoring files for code generation:
overide start
Insert prompts in your code:
//> Generate a function that logs 'Hello, World!' <//
Overide will generate and insert code:
//- 'Hello, World!' Function
function helloWorld() {
console.log("Hello, World!");
}
//> Accept the changes (y/n): -//
Configure Overide using oi-config.json
:
{
"name": "project name",
"ignore": ["node_modules", "*.test.js"]
}
-
Clone the repository (if you haven't already)
-
Create feature branches from
dev
-
Make changes and test thoroughly
-
Create PR to merge into
dev
-
If approved, create PR to merge
dev
intostaging
-
If staging tests pass, create PR to merge
staging
intomain
-
When merged to
main
:- Changes trigger the CI/CD pipeline
- If changesets are present, a new version is published
- Changes are automatically synced back to the
staging
anddev
branches
We use changesets for version management.
Before submitting a PR from your feature branch, do the following:
- Create a changeset:
pnpm changeset
-
Follow the prompts to:
- Select change type (patch/minor/major)
- Describe your changes
- Commit both your changes and the generated changeset file
When changes with changesets are merged to main
:
- Package is automatically published to npm
- Changes are synced to
staging
branch - Changelog is automatically updated
patch
: Bug fixes and minor updates (0.0.X)minor
: New features (0.X.0)major
: Breaking changes (X.0.0)
- Start the development watcher:
npm run dev
# or
pnpm dev
- In a separate terminal, run the CLI commands as you normally would, with
npm run
orpnpm
prefixed:
npm run overide [init | config | start]
# or
pnpm overide [init | config | start]
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.
- 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:
# In test project
npm unlink -g overide
# In Overide project
npm unlink
- 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
- Test CLI as if installed globally
- Verify changes before publishing
- Validate package.json bin configuration
- Ensure proper dependency inclusion
The project uses GitHub Actions for continuous integration and deployment:
-
CI/CD Pipeline (
pipeline.yml
)- Runs on PRs to any branch and pushes to
main
- Installs dependencies with pnpm
- Runs linting checks
- Builds the project
- Creates release pull requests when on
main
- Runs on PRs to any branch and pushes to
-
Publish Workflow (
publish.yml
)-
Triggers on pushes to
main
when changes are detected in:.changeset/**
package.json
-
Uses changesets for version management
-
Publishes to npm when changes are detected
-
Syncs changes back to
staging
branch
-
- Project Context Management: Local parsers for more efficient 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.
Overide is licensed under the GNU GPL-2.0 License. See the LICENSE file for details.