Release (v1.2.0)
- Enhanced Duplicate Code Detection: Improved metrics calculation and detailed refactoring suggestions
- Severity Assessment: Added severity levels (LOW, MODERATE, HIGH) for duplicate code issues
- Improved Algorithms: More accurate detection and enhanced reporting format
- Comprehensive Testing: Added test suite for duplicate code detection
- Bug Fixes: Fixed metrics calculation and report formatting issues
- Task Registry Improvements: Fixed task registration and retrieval for better project type handling
- Test Suite Enhancements: Comprehensive test coverage for core functionality
- Dependency Optimization: Removed unused dependencies for a leaner package
- Cross-Platform Support: Improved compatibility across Windows, Linux, and macOS
- Intelligent Code Optimization: Features for duplicate code detection, dead code elimination, code formatting, complexity analysis, and performance optimization
Clean. Optimize. Secure.
aiguardian.dev (Coming Soon)
Quick Start • Why AIGuardian? • Key Benefits • Supported Languages • Documentation
AIGuardian is the intelligent companion every developer needs. Whether you're a seasoned professional or just starting your coding journey, AIGuardian automatically detects your project type and applies tailored optimizations to keep your code clean, secure, and efficient.
# Install globally with npm
npm install -g aiguardian
# Run it on your project
aiguardian
# Or use the specialized code optimization tool
aiguardian-optimize
"AIGuardian saved me hours of cleanup work on my AI-generated code. It's now part of my standard workflow." — No Coder using AIGuardian with Cursor
- Zero Configuration: Just run it and let AIGuardian do the work
- AI-Powered Detection: Automatically identifies your project type
- Safe Operations: Creates backups before making any changes
- Lightweight: Minimal dependencies, maximum performance
- Universal Support: Works with JavaScript, TypeScript, Python, Java, and more
- Intelligent Optimization: Detects and fixes code quality issues automatically
- Clean up AI-generated code without understanding all the technical details
- Fix common issues automatically without deep programming knowledge
- Learn best practices by seeing what AIGuardian optimizes
- Improve code quality with intelligent optimization suggestions
- Standardize codebases across teams and projects
- Automate routine maintenance tasks
- Enforce best practices consistently
- Reduce technical debt with regular optimization
- Identify code duplication and complexity issues
- Improve security by removing unnecessary files and dependencies
- Enhance performance with optimized code and dependencies
- Maintain consistency across your entire project
- Reduce code complexity for better maintainability
AIGuardian provides specialized optimizations for:
- JavaScript/TypeScript: Dependency management, code conversion, formatting, and optimization
- Python: Package optimization, cache cleaning, code formatting, and complexity analysis
- Java: Build artifact management, dependency optimization, and code quality improvements
- More languages coming soon!
# Run interactively (recommended for first-time users)
aiguardian
# Run all optimizations without prompts
aiguardian --all --yes
# Preview changes without applying them
aiguardian --dry-run
# Run code optimization tasks
aiguardian-optimize
# Run specific optimization tasks
aiguardian-optimize -t detect-duplicate-code -t eliminate-dead-code
Comprehensive documentation is available in the docs
folder:
MIT License - Feel free to use AIGuardian in your projects!
Star ⭐ this repo if you found it useful!