omni-dev
An intelligent Git commit message toolkit with AI-powered contextual intelligence. Transform messy commit histories into professional, conventional commit formats with project-aware suggestions.
✨ Key Features
- 🤖 AI-Powered Intelligence: Claude AI analyzes your code changes to suggest meaningful commit messages
- 🧠 Contextual Awareness: Understands your project structure, conventions, and work patterns
- 🔍 Comprehensive Analysis: Deep analysis of commits, branches, and file changes
- ✏️ Smart Amendments: Safely improve single or multiple commit messages
- 📦 Automatic Batching: Handles large commit ranges intelligently
- 🎯 Conventional Commits: Automatic detection and formatting
- 🛡️ Safety First: Working directory validation and error recovery
- ⚡ Fast & Reliable: Built with Rust for memory safety and performance
🚀 Quick Start
Installation
# Install from crates.io
# Set up Claude API key (required for AI features)
30-Second Demo
Transform your commit messages with AI intelligence:
# Analyze and improve commit messages in your current branch
# Before: "fix stuff", "wip", "update files"
# After: "feat(auth): implement OAuth2 authentication system"
# "docs(api): add comprehensive endpoint documentation"
# "fix(ui): resolve mobile responsive layout issues"
📋 Core Commands
🤖 AI-Powered Commit Improvement (twiddle)
The star feature - intelligently improve your commit messages with real-time model information display:
# Improve commits with contextual intelligence
# Process large commit ranges with automatic batching
# Save suggestions to file for review
# Auto-apply improvements without confirmation
🔍 Analysis Commands
# Analyze commits in detail (YAML output)
# Analyze current branch vs main
# Get comprehensive help
✏️ Manual Amendment
# Apply specific amendments from YAML file
⚙️ Configuration Commands
# Show supported AI models and their specifications
# View model information with token limits and capabilities
|
🧠 Contextual Intelligence
omni-dev understands your project context to provide better suggestions:
Project Configuration
Create .omni-dev/ directory in your repo root:
Scope Definitions (.omni-dev/scopes.yaml)
scopes:
- name: "auth"
description: "Authentication and authorization systems"
examples:
file_patterns:
- name: "api"
description: "REST API endpoints and handlers"
examples:
file_patterns:
Commit Guidelines (.omni-dev/commit-guidelines.md)
- --
- --
🎯 Advanced Features
Intelligent Context Detection
omni-dev automatically detects:
- Project Conventions: From
.omni-dev/,CONTRIBUTING.md - Work Patterns: Feature development, bug fixes, documentation, refactoring
- Branch Context: Extracts work type from branch names
(
feature/auth-system) - File Architecture: Understands UI, API, core logic, configuration changes
- Change Significance: Adjusts detail level based on impact
Automatic Batching
Large commit ranges are automatically split into manageable batches:
# Processes 50 commits in batches of 4 (default)
# Custom batch size for very large ranges
Command Options
| Option | Description | Example |
|---|---|---|
--use-context |
Enable contextual intelligence | --use-context |
--batch-size N |
Set batch size for large ranges | --batch-size 3 |
--context-dir PATH |
Custom context directory | --context-dir ./config |
--auto-apply |
Apply without confirmation | --auto-apply |
--save-only FILE |
Save to file without applying | --save-only fixes.yaml |
--edit |
Edit amendments in external editor | --edit |
📖 Real-World Examples
Before & After
Before: Messy commit history
e4b2c1a fix stuff
a8d9f3e wip
c7e1b4f update files
9f2a6d8 more changes
After: Professional commit messages
e4b2c1a feat(auth): implement JWT token validation system
a8d9f3e docs(api): add comprehensive OpenAPI documentation
c7e1b4f fix(ui): resolve mobile responsive layout issues
9f2a6d8 refactor(core): optimize database query performance
Workflow Integration
# 1. Work on your feature branch
# 2. Make commits (don't worry about perfect messages)
# 3. Before merging, improve all commit messages
# 4. Review and apply the suggestions
# ✅ Creates professional, contextual commit messages automatically
Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Setup
-
Clone the repository:
-
Install Rust (if you haven't already):
| -
Build the project:
-
Run the build script (includes tests, linting, and formatting):
Or run individual steps:
📚 Documentation
- User Guide - Comprehensive usage guide with examples
- Configuration Guide - Set up contextual intelligence
- API Documentation - Rust API reference
- Troubleshooting - Common issues and solutions
- Examples - Real-world usage examples
- Release Process - For contributors
🔧 Requirements
- Rust: 1.70+ (for installation from source)
- Claude API Key: Required for AI-powered features
- Get your key from Anthropic Console
- Set:
export CLAUDE_API_KEY="your-key"
- AI Model Selection: Optional configuration for specific Claude models
- View available models:
omni-dev config models show - Configure via
~/.omni-dev/settings.jsonorANTHROPIC_MODELenvironment variable - Supports standard identifiers and Bedrock-style formats
- View available models:
- Git: Any modern version
🐛 Debugging
For troubleshooting and detailed logging, use the RUST_LOG environment variable:
# Enable debug logging for omni-dev components
RUST_LOG=omni_dev=debug
# Debug specific modules (e.g., context discovery)
RUST_LOG=omni_dev::claude::context::discovery=debug
# Show only errors and warnings
RUST_LOG=warn
See Troubleshooting Guide for detailed debugging information.
Changelog
See CHANGELOG.md for a list of changes in each version.
License
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.
Support
- 📋 Issues
- 💬 Discussions
Acknowledgments
- Thanks to all contributors who help make this project better!
- Built with ❤️ using Rust