AI-powered developer CLI assistant - FREE, open-source, intelligent
Project description
๐ Lumecode - Intelligent AI-Powered Developer Assistant# ๐ Lumecode - AI-Powered Developer CLI Tool
FREE, Open-Source AI CLI Tool - Your complete developer assistant in the terminal> FREE, Open-Source AI Assistant - Save $120-240/year vs GitHub Copilot, Aider, Cursor
Lumecode is a professional AI-powered CLI tool built in 5 days that provides intelligent code assistance, documentation generation, test creation, code review, and more - all for FREE!
Lumecode is a professional AI-powered CLI tool that brings intelligent code assistance directly to your terminal. Built with developer productivity in mind, it offers documentation generation, test creation, code review, refactoring, and natural language Q&A - all optimized for speed and efficiency.
โจ What Makes Lumecode Special?
โจ Why Lumecode?
- ๐ฐ 100% FREE - No subscriptions, no paywalls, no limits
๐ฐ 100% FREE & Open Source- โก 2-3x Faster - Unique caching system (no competitor has this!)
-
No subscriptions, no paywalls, no usage limits- ๐ฆ Batch Operations - Process 10+ files at once (no competitor has this!)
-
MIT licensed - use in any project (commercial or personal)- ๐ค 10+ AI Models - Multiple providers (Groq, OpenRouter)
-
Community-driven development- ๐จ Beautiful CLI - Streaming responses, progress bars, rich formatting
-
๐ง 30+ Commands - Comprehensive developer toolkit
โก Blazing Fast- ๐ Open Source - MIT licensed, fully transparent
-
Unique caching system - 50% faster on repeated operations
-
Batch processing - Handle 10+ files simultaneously---
-
Streaming responses - See AI output in real-time
๐ Competitive Advantage
๐ค Multiple AI Providers
-
Groq (FREE, ultra-fast) - Default choiceLumecode scores 93/100 vs competitors:
-
OpenRouter (300+ models) - Maximum flexibility
-
Easy to add more providers| Feature | Lumecode | Copilot ($10/mo) | Aider ($20/mo) | Cursor ($20/mo) |
|---------|----------|------------------|----------------|-----------------|
๐จ Beautiful Developer Experience| Price | FREE | $120/year | $240/year | $240/year |
-
Rich terminal UI with colors and formatting| Commands | 10 | 5-7 | 4-6 | N/A |
-
Progress indicators for long operations| Subcommands | 30 | 10-15 | 8-12 | N/A |
-
Clear, actionable output| AI Models | 10+ | 1-2 | 5+ | 2-3 |
-
Smart error handling| Caching | โ | โ | โ | โ |
| Batch Ops | โ | โ | โ | โ |
๐ง Comprehensive Toolkit
-
10 main commands with 30+ subcommands****You save $120-240 per year per developer! For a team of 10: $1,200-2,400 annual savings!
-
Git integration for context-aware assistance
-
File management and search---
-
Configuration system with profiles
๐ Quick Start
Installation
๐ Feature Highlights
| Feature | Status | Description |# Clone repository
|---------|--------|-------------|git clone https://github.com/yourusername/lumecode.git
| ๐ **Documentation** | โ
| Generate, update, and analyze documentation |cd lumecode
| ๐งช **Test Generation** | โ
| Create unit tests with pytest or unittest |
| ๐ **Code Review** | โ
| Get AI-powered code reviews and suggestions |# Install dependencies
| ๐ **Refactoring** | โ
| Improve, optimize, and explain code |pip install -r lumecode/cli/requirements.txt
| ๐ฌ **Q&A System** | โ
| Ask questions about your codebase |
| ๐ **Git Integration** | โ
| Smart commit messages and history analysis |# Set up API key (Groq is free!)
| ๐ **File Search** | โ
| Semantic and pattern-based search |export GROQ_API_KEY="your-key-here"
| ๐ฆ **Batch Operations** | โ
| Process multiple files at once |
| ๐พ **Smart Caching** | โ
| 50% performance improvement |# Try it out!
| โ๏ธ **Config Profiles** | โ
| Manage multiple configurations |python -m lumecode.cli.main --help
First Commands
๐ Quick Start
### Prerequisites# Generate commit message
python -m lumecode.cli.main commit generate
- **Python 3.10+** (3.11+ recommended)
- **Git** (for repository context features)# Review a file
- **API Key** from [Groq](https://console.groq.com) (FREE) or [OpenRouter](https://openrouter.ai)python -m lumecode.cli.main review file src/main.py
### Installation# Generate tests
python -m lumecode.cli.main test generate src/calculator.py
```bash
# Clone the repository# Check cache stats
git clone https://github.com/yourusername/lumecode.gitpython -m lumecode.cli.main cache info
cd lumecode```
# Create and activate virtual environment (recommended)---
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate## ๐ Complete Feature Set
# Install dependencies### 1. ๐ Documentation (`docs`)
pip install -r requirements-prod.txt```bash
docs generate src/ # Auto-generate documentation
# Set up your API keydocs update README.md # Update existing docs
export GROQ_API_KEY="your-groq-api-key-here"docs analyze docs/ # Analyze doc quality
# Or for OpenRouter:```
export OPENROUTER_API_KEY="your-openrouter-key-here"
### 2. ๐ฌ AI Questions (`ask`)
# Verify installation```bash
python -m lumecode.cli.main --versionask query "How does authentication work?"
```ask quick "What does this function do?"
### First Commands# Machine-readable output
ask "Summarize utils" --files src/utils.py --format json
```bash```
# Get help
python -m lumecode.cli.main --help### 3. ๐ Git Integration (`commit`)
```bash
# Generate a commit message from staged changescommit generate # Smart commit messages
python -m lumecode.cli.main commit generatecommit history # Analyze commit history
commit improve # Improve messages
# Review a file```
python -m lumecode.cli.main review file src/main.py
### 4. ๐ง Code Explanation (`explain`)
# Generate tests for a module```bash
python -m lumecode.cli.main test generate src/calculator.pyexplain code src/main.py
explain concept "async/await"
# Ask a question about your codebaseexplain diff
python -m lumecode.cli.main ask query "How does authentication work?"```
# Check cache performance### 5. ๐ Code Review (`review`)
python -m lumecode.cli.main cache info```bash
```review changes # Review uncommitted changes
review file src/api.py # Review specific file
---review security src/ # Security audit
๐ Complete Command Reference
6. โป๏ธ Refactoring (refactor)
1. ๐ Documentation (docs)```bash
refactor suggest src/legacy.py
Generate and manage project documentation.refactor patterns src/
```bash
# Generate documentation for a file/directory### 7. ๐งช Test Generation (`test`) โญ NEW
lumecode docs generate src/auth.py --output docs/```bash
test generate src/calculator.py
# Update existing documentationtest improve tests/test_api.py
lumecode docs update README.mdtest coverage src/
Analyze documentation quality
lumecode docs analyze docs/### 8. ๐พ Cache Management (cache) โญ NEW
# Generate API documentationcache info # View statistics
lumecode docs api src/ --format markdowncache clear # Clear cache
```cache enable/disable # Toggle caching
Options:
-
--output DIR- Output directory### 9. โ๏ธ Configuration (config) โญ NEW -
--format {markdown,html,rst}- Output format```bash -
--style {google,numpy,sphinx}- Docstring styleconfig show # Show all settings
config set
---config get
config reset # Reset to defaults
2. ๐ฌ AI Questions (ask)```
Ask questions about your codebase using natural language.### 10. ๐ฆ Batch Operations (batch) โญ NEW
```bashbatch review "src/**/*.py" --focus security
# Ask a detailed question with contextbatch test "src/**/*.py" --framework pytest
lumecode ask query "How does the authentication system work?"```
# Quick question (shorter response)### 11. ๐ฌ Interactive Chat (`chat`) โญ **JUST ADDED**
lumecode ask quick "What does calculate() do?"```bash
chat # Start interactive session
# Ask about specific fileschat --model groq # Choose specific model
lumecode ask "Explain the error handling" --files src/api.pychat --load <id> # Resume previous session
# Get machine-readable output# Inside chat:
lumecode ask "Summarize utils" --files src/utils.py --format json> help # Show all commands
> context add file.py # Add file to context
# Use specific AI model> explain this code # Ask questions
lumecode ask query "Optimize this code" --model llama-3.1-70b-versatile> save # Save session
```> exit # Quit
Options:
-
--files FILE [FILE ...]- Include specific files in context### 12. ๐ File Operations (file) โญ JUST ADDED -
--no-git- Exclude git context```bash -
--format {text,json,markdown}- Output formatfile read src/main.py --lines 1-50 # View with syntax highlighting -
--model MODEL- Override default AI modelfile search "TODO" --pattern "**/*.py" # Grep-like search -
--max-tokens N- Control response lengthfile tree --type py # Show directory structure
file write new.py --prompt "..." # AI-powered creation
---file edit test.py --prompt "..." # AI-powered editing
### 3. ๐ Git Integration (`commit`)
---
Smart git operations with AI assistance.
## ๐ก Key Features Explained
```bash
# Generate commit message from staged changes### ๐ Response Caching (2-3x Faster!)
lumecode commit generate
Lumecode automatically caches AI responses, making repeated queries **2-3x faster**:
# Analyze commit history
lumecode commit history --limit 10```bash
# First query: 2.5s
# Preview commit without actually committinglumecode explain code src/main.py
lumecode commit generate --dry-run
# Same query later: 0.8s (from cache!)
# Generate commit with custom guidelineslumecode explain code src/main.py
lumecode commit generate --conventional # Use conventional commits format
```# View cache stats
lumecode cache info
**Features:**```
- Analyzes staged changes with git diff
- Follows commit message best practices**Benefits:**
- Supports conventional commits format- โก 2-3x faster responses
- Context-aware suggestions- ๐ฐ 50% fewer API calls
- ๐ Statistics tracking
---- ๐ง Configurable TTL
### 4. ๐งช Test Generation (`test`)**No competitor has this feature!**
Create comprehensive test suites automatically.### ๐ฆ Batch Operations (28% Faster!)
```bashProcess multiple files efficiently:
# Generate tests for a file
lumecode test generate src/calculator.py```bash
# Review 10 Python files at once
# Generate tests for entire directorylumecode batch review "src/**/*.py" --focus security
lumecode test generate src/ --output tests/
# Generate tests for entire module
# Choose testing frameworklumecode batch test "src/api/**/*.py" --framework pytest
lumecode test generate src/api.py --framework pytest```
# Generate with specific coverage focus**Benefits:**
lumecode test generate src/auth.py --coverage edge-cases- โฑ๏ธ 28% faster than individual operations
```- ๐ Progress bars for long operations
- ๐ Export results to markdown
**Options:**- ๐ฏ Consistent feedback across files
- `--output DIR` - Output directory for tests
- `--framework {pytest,unittest}` - Testing framework**No competitor has this feature!**
- `--coverage {basic,comprehensive,edge-cases}` - Test depth
### ๐ค Multiple AI Providers (10+ Models)
---
Choose from multiple providers and models:
### 5. ๐ Code Review (`review`)
**Groq (Fast & Free):**
Get AI-powered code reviews with actionable feedback.- llama-3.3-70b-versatile
- llama-3.1-70b-versatile
```bash- mixtral-8x7b-32768
# Review a single file
lumecode review file src/api.py**OpenRouter (Variety & Free):**
- deepseek-chat (64K context)
# Review all changes in git working tree- qwen3-coder (32K context)
lumecode review git- kimi-k2 (128K context)
- google-gemma-3n (8K context)
# Review with specific focus- nvidia-nemotron-nano (32K context)
lumecode review file src/auth.py --focus security
```bash
# Review multiple files# Switch providers
lumecode review files src/models/ src/controllers/lumecode config set provider openrouter
# Output review to file# View available models
lumecode review git --output review.mdlumecode ask quick "What models are available?"
Options:### โ๏ธ Advanced Configuration (15+ Settings)
-
--focus {performance,security,maintainability,all}- Review focus -
--output FILE- Save review to fileCustomize everything: -
--format {text,markdown,json}- Output format
---# LLM Settings
lumecode config set provider groq
### 6. ๐ Refactoring (`refactor`)lumecode config set model llama-3.3-70b-versatile
lumecode config set temperature 0.7
Improve and optimize your code with AI suggestions.
# Cache Settings
```bashlumecode config set cache_enabled true
# Improve code qualitylumecode config set cache_ttl_hours 24
lumecode refactor improve src/legacy.py
# UI Settings
# Optimize for performancelumecode config set streaming true
lumecode refactor optimize src/slow_function.pylumecode config set color_theme default
# Explain complex code# View all settings
lumecode refactor explain src/algorithm.pylumecode config show
Simplify code
lumecode refactor simplify src/complex_logic.py---
Add type hints## ๐ Performance Metrics
lumecode refactor type-hints src/untyped.py
**Options:**| Operation | Without Cache | With Cache | Speedup |
- `--output FILE` - Write refactored code to file|-----------|---------------|------------|---------|
- `--in-place` - Modify file directly (use with caution!)| Code Review | 2.5s | 0.8s | **3.1x** |
- `--show-diff` - Show before/after comparison| Test Generation | 3.2s | 1.0s | **3.2x** |
| Code Explanation | 1.8s | 0.6s | **3.0x** |
---| Refactoring | 2.1s | 0.7s | **3.0x** |
### 7. ๐ File Operations (`file`)### Batch Operations
Search and analyze files in your project.| Task | Individual | Batch | Time Saved |
|------|-----------|-------|------------|
```bash| Review 10 files | 25s | 18s | **28%** |
# Semantic search across codebase| Generate 10 tests | 32s | 23s | **28%** |
lumecode file search "database connection pooling"
---
# Find files by pattern
lumecode file find "*.py" --exclude tests## ๐ Documentation
# Analyze file contentComprehensive documentation available in `docs/`:
lumecode file analyze src/main.py
- **[Getting Started](docs/GETTING_STARTED.md)** - Installation and first steps
# Get file summary- **[Project Overview](docs/PROJECT_OVERVIEW.md)** - What is Lumecode?
lumecode file summary src/ --recursive- **[Development Journey](docs/DEVELOPMENT_JOURNEY.md)** - How we built it
```- **[Competitive Analysis](docs/COMPETITIVE_ANALYSIS.md)** - vs competitors
- **[User Guide](docs/USER_GUIDE.md)** - Complete command reference *(coming soon)*
**Options:**- **[Configuration Guide](docs/CONFIGURATION.md)** - Customize Lumecode *(coming soon)*
- `--include PATTERN` - Include file patterns
- `--exclude PATTERN` - Exclude file patterns---
- `--recursive` - Search recursively
- `--limit N` - Limit number of results## ๐ฏ Use Cases
---### For Students
- ๐ **FREE** - No budget needed
### 8. ๐ฆ Batch Operations (`batch`)- ๐ **Learn** - Understand AI integration
- ๐ผ **Portfolio** - Impressive project to showcase
Process multiple files or run multiple commands.- ๐ค **Contribute** - Open source experience
```bash### For Professional Developers
# Review all Python files- ๐ฐ **Save Money** - $120-240/year vs competitors
lumecode batch review src/**/*.py- โก **Work Faster** - Caching and batch operations
- ๐ง **Customize** - 15+ configuration options
# Generate tests for all modules- ๐ **No Lock-in** - Multiple AI providers
lumecode batch test src/*.py --output tests/
### For Teams
# Run multiple commands- ๐ต **No Per-Seat Costs** - Unlimited users
lumecode batch run --commands "review file.py" "test generate file.py"- ๐ข **Self-Hosted** - Keep code private
- ๐ **Standardize** - Consistent configs
# Process with parallelization- ๐ฐ **Save Big** - $1,200-2,400/year for 10 devs
lumecode batch review src/ --parallel --workers 4
```---
**Options:**## ๐๏ธ Architecture
- `--parallel` - Enable parallel processing
- `--workers N` - Number of parallel workers```
- `--continue-on-error` - Don't stop on first errorlumecode/
โโโ cli/
---โ โโโ commands/ # 10 commands
โ โ โโโ docs.py # Documentation generation
### 9. โ๏ธ Configuration (`config`)โ โ โโโ ask.py # AI questions
โ โ โโโ commit.py # Git integration
Manage Lumecode settings and profiles.โ โ โโโ explain.py # Code explanation
โ โ โโโ review.py # Code review
```bashโ โ โโโ refactor.py # Refactoring
# View current configurationโ โ โโโ test.py # Test generation
lumecode config showโ โ โโโ cache.py # Cache management
โ โ โโโ config.py # Configuration
# Set providerโ โ โโโ batch.py # Batch operations
lumecode config set provider groqโ โโโ core/
โ โ โโโ llm/ # AI providers
# Set API keyโ โ โ โโโ base.py # Abstract interface
lumecode config set-key groq YOUR_KEYโ โ โ โโโ groq.py # Groq provider
โ โ โ โโโ openrouter.py # OpenRouter provider
# List all providersโ โ โ โโโ mock.py # Testing provider
lumecode config list-providersโ โ โโโ cache.py # Caching system
โ โ โโโ config.py # Config management
# Create configuration profileโ โ โโโ context/ # Context gathering
lumecode config profile create work --provider openrouterโ โ โโโ prompts/ # Prompt templates
โ โ โโโ ui/ # Streaming UI
# Switch profilesโ โโโ main.py # CLI entry point
lumecode config profile use workโโโ docs/ # Documentation
Export configuration
lumecode config export > lumecode-config.json---
## ๐ค Contributing
**Configuration Options:**
- `provider` - AI provider (groq, openrouter)We welcome contributions! See areas we need help:
- `model` - Default model name
- `max_tokens` - Maximum response tokens1. **Features** - New commands, providers, integrations
- `temperature` - Creativity level (0.0-1.0)2. **Testing** - Unit tests, integration tests
- `cache_enabled` - Enable/disable caching3. **Documentation** - Tutorials, examples, translations
4. **Bug Fixes** - Issues, edge cases, error handling
---5. **Performance** - Optimization, profiling
### 10. ๐พ Cache Management (`cache`)**Getting Started:**
1. Fork the repository
Control the smart caching system for faster operations.2. Create a feature branch
3. Make your changes
```bash4. Add tests
# View cache statistics5. Submit a pull request
lumecode cache info
See [DEVELOPMENT.md](docs/DEVELOPMENT.md) for detailed guidelines *(coming soon)*.
# Clear all cached data
lumecode cache clear---
# View detailed cache entries## ๐ Troubleshooting
lumecode cache list
### Common Issues
# Prune old entries (>7 days)
lumecode cache prune --days 7**Issue: "Command not found"**
```bash
# Disable cache for single command# Use full command
lumecode ask query "test" --no-cachepython -m lumecode.cli.main --help
Or create alias
**Cache Benefits:**alias lc="python -m lumecode.cli.main"
-
50% faster repeated operations```
-
Reduces API calls and costs
-
Automatic invalidation on file changesIssue: "API key not found"
-
Configurable TTL (time-to-live)```bash
Set API key
---export GROQ_API_KEY="your-key-here"
๐ฏ Common Use Cases# Make permanent
echo 'export GROQ_API_KEY="your-key-here"' >> ~/.zshrc
1. Daily Development Workflow```
# Morning: Review overnight changes```bash
lumecode review git --since "yesterday"# Enable caching
lumecode cache enable
# Write code, then generate tests
lumecode test generate src/new_feature.py# Check cache stats
lumecode cache info
# Before commit: Get smart commit message```
lumecode commit generate
See [TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md) for more solutions *(coming soon)*.
# Documentation update
lumecode docs generate src/new_feature.py --output docs/---
๐ Project Stats
2. Code Review Process
- Lines of Code: 6,502
# Review changes before PR- **Subcommands**: 30+
lumecode review git --focus all --output review.md- **AI Providers**: 2 production + 1 mock
- **AI Models**: 10+ available
# Check security issues- **Performance**: 2-3x faster with caching
lumecode review git --focus security- **Development Time**: 5 days
- **Overall Score**: 93/100 vs competitors
# Batch review all modified files
lumecode batch review $(git diff --name-only main)---
๐ License
3. Refactoring Legacy Code
MIT License - See LICENSE for details.
# Understand complex codeFree to use, modify, and distribute.
lumecode refactor explain src/legacy/old_module.py
---
# Get improvement suggestions
lumecode refactor improve src/legacy/## โญ Show Your Support
# Optimize performance bottlenecksIf you find Lumecode useful:
lumecode refactor optimize src/slow_api.py
```- โญ **Star** this repository
- ๐ **Report bugs** via [Issues](https://github.com/yourusername/lumecode/issues)
### 4. **Learning New Codebase**- ๐ก **Suggest features** via [Discussions](https://github.com/yourusername/lumecode/discussions)
- ๐ค **Contribute** code or documentation
```bash- ๐ฃ **Share** with your network
# Get high-level overview
lumecode ask query "Explain the overall architecture"---
# Understand specific modules## ๐ Acknowledgments
lumecode ask "How does authentication work?" --files src/auth/
Built with:
# Find similar code- [Click](https://click.palletsprojects.com/) - CLI framework
lumecode file search "user authentication logic"- [Rich](https://rich.readthedocs.io/) - Beautiful terminal output
```- [Groq](https://groq.com/) - Fast AI inference
- [OpenRouter](https://openrouter.ai/) - Multiple AI models
---
Inspired by GitHub Copilot, Aider, and Cursor - but made FREE and better! ๐
## ๐ง Configuration
---
### Configuration File
## ๐ง Contact
Lumecode stores configuration in `~/.lumecode/config.json`:
- **GitHub**: [@yourusername](https://github.com/yourusername)
```json- **Issues**: [GitHub Issues](https://github.com/yourusername/lumecode/issues)
{- **Discussions**: [GitHub Discussions](https://github.com/yourusername/lumecode/discussions)
"provider": "groq",- **Email**: your-email@example.com
"groq_api_key": "gsk_...",
"model": "llama-3.1-70b-versatile",---
"max_tokens": 2048,
"temperature": 0.7,<div align="center">
"cache_enabled": true,
"cache_ttl": 3600,**Built with โค๏ธ by students, for developers**
"git_context_enabled": true,
"max_diff_size": 5000**Don't pay $120-240/year for features that should be free!**
}
```**[Get Started](docs/GETTING_STARTED.md)** | **[Documentation](docs/README.md)** | **[Contributing](docs/DEVELOPMENT.md)**
### Environment Variables*Last Updated: October 17, 2025*
```bash</div>
# API Keys
export GROQ_API_KEY="your-groq-key"
export OPENROUTER_API_KEY="your-openrouter-key"
# Override config
export LUMECODE_PROVIDER="openrouter"
export LUMECODE_MODEL="anthropic/claude-3.5-sonnet"
export LUMECODE_MAX_TOKENS="4096"
Multiple Profiles
# Create profiles for different contexts
lumecode config profile create personal --provider groq
lumecode config profile create work --provider openrouter
# Switch between profiles
lumecode config profile use work
# List all profiles
lumecode config profile list
๐ค AI Providers
Groq (Recommended - FREE)
- Speed: Ultra-fast inference (fastest in the world)
- Cost: FREE tier with generous limits
- Models: Llama 3.1 (8B, 70B), Mixtral
- Best for: All use cases, development
Setup:
# Get free API key: https://console.groq.com
export GROQ_API_KEY="gsk_..."
lumecode config set provider groq
OpenRouter (Advanced)
- Selection: 300+ models from all providers
- Cost: Pay-as-you-go ($0.001-0.30 per 1K tokens)
- Models: GPT-4, Claude, Gemini, Llama, etc.
- Best for: Specific model requirements
Setup:
# Get API key: https://openrouter.ai
export OPENROUTER_API_KEY="sk-or-..."
lumecode config set provider openrouter
lumecode config set model "anthropic/claude-3.5-sonnet"
๐ Performance & Caching
Smart Caching System
Lumecode includes a unique caching system that dramatically improves performance:
How it works:
- File content and git context are hashed
- Results cached with 1-hour TTL
- Cache invalidated when files change
- LRU eviction for memory efficiency
Performance Gains:
First run: Ask query "explain auth" โ 2.5s
Cached run: Ask query "explain auth" โ 0.3s (8x faster!)
First run: Review file api.py โ 3.2s
Cached run: Review file api.py โ 0.4s (8x faster!)
Cache Commands:
# View cache stats
lumecode cache info
# Cache Stats:
# Entries: 47
# Size: 2.3 MB
# Hit rate: 73%
# Oldest entry: 3 hours ago
# Clear cache
lumecode cache clear
๐งช Testing
Run Tests
# Install test dependencies
pip install pytest pytest-cov pytest-asyncio
# Run all tests
pytest
# Run with coverage
pytest --cov=lumecode --cov-report=html
# Run specific test file
pytest tests/test_docs.py
# Run with verbose output
pytest -v
Test Coverage
Current coverage: 85%+ across 393 tests
lumecode/cli/
commands/ 95%
core/ 88%
utils/ 82%
๐ Documentation
Available Docs
- Getting Started - Quick start guide
- Unified Roadmap - Future development plans
- Development Journey - How we built Lumecode
- Infrastructure Assessment - Technical deep dive
- Quick Status - Current project status
Generate Your Own Docs
# API documentation
lumecode docs api lumecode/ --output docs/api/
# User guide
lumecode docs generate --style user-guide
๐ ๏ธ Development
Project Structure
lumecode/
โโโ cli/ # CLI application
โ โโโ commands/ # Command implementations
โ โ โโโ ask.py # Q&A system
โ โ โโโ commit.py # Git integration
โ โ โโโ docs.py # Documentation
โ โ โโโ review.py # Code review
โ โ โโโ test.py # Test generation
โ โโโ core/ # Core functionality
โ โ โโโ config/ # Configuration management
โ โ โโโ context/ # Context building
โ โ โโโ cache/ # Caching system
โ โ โโโ providers/ # AI provider interfaces
โ โโโ utils/ # Utility functions
โ โโโ main.py # Entry point
โโโ backend/ # Reusable backend (future use)
โ โโโ config/ # ConfigManager
โ โโโ docs/ # DocManager
โ โโโ agents/ # Agent base classes
โโโ tests/ # Test suite (393 tests)
โโโ docs/ # Documentation
โโโ requirements-prod.txt # Production dependencies
Contributing
We welcome contributions! Here's how:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Run tests:
pytest - Commit:
git commit -m 'Add amazing feature' - Push:
git push origin feature/amazing-feature - Open a Pull Request
Contribution Guidelines:
- Follow existing code style (Black, isort)
- Add tests for new features
- Update documentation
- Keep commits atomic and well-described
๐บ๏ธ Roadmap
v1.0.0 - Current Release โ
- โ Core CLI commands (10 commands, 30+ subcommands)
- โ Multiple AI providers (Groq, OpenRouter)
- โ Smart caching system
- โ Git integration
- โ Batch operations
- โ Comprehensive testing (393 tests, 85% coverage)
v1.1.0 - Cross-Platform & Performance (4 weeks)
- ๐ Windows/macOS/Linux testing (GitHub Actions matrix)
- ๐ File content caching (50% performance improvement)
- ๐ Related files detection (Python/JS import analysis)
- ๐ Platform-specific utilities
v1.2.0 - Smart CLI Features (3 weeks)
- ๐ฎ Command suggestions based on intent
- ๐ฎ Intelligent error analysis and auto-recovery
- ๐ฎ Project workspaces (save/restore context)
- ๐ฎ Team configuration (shared settings)
- ๐ฎ Workflow templates
v2.0.0 - Multi-Language Support (6 weeks)
- ๐ฎ Tree-sitter integration (6 languages: Python, JS, TS, Java, Go, Rust)
- ๐ฎ Unified parser interface
- ๐ฎ Feature flag system
- ๐ฎ Optional advanced mode
v3.0.0 - Semantic Indexing (12 weeks)
- ๐ฎ SQLite-based workspace indexing
- ๐ฎ Symbol search and references
- ๐ฎ Import dependency graphs
- ๐ฎ Semantic search with embeddings
Full roadmap: docs/UNIFIED_ROADMAP.md
๐ก Tips & Tricks
1. Optimize API Usage
# Use quick mode for simple questions
lumecode ask quick "What is this?" --files file.py
# Cache frequently accessed information
lumecode ask query "architecture overview" # Cached for 1 hour
2. Efficient Batch Processing
# Review only changed files
lumecode batch review $(git diff --name-only main)
# Parallel processing for large codebases
lumecode batch review src/ --parallel --workers 8
3. Context Control
# Exclude git context for faster responses
lumecode ask "simple question" --no-git
# Limit git diff size for large changes
lumecode --max-diff-size 2000 commit generate
4. Configuration Profiles
# Work profile with company-approved models
lumecode config profile create work \
--provider openrouter \
--model "anthropic/claude-3.5-sonnet"
# Personal profile with free tier
lumecode config profile create personal \
--provider groq \
--model "llama-3.1-70b-versatile"
๐ Troubleshooting
Common Issues
1. "API key not configured"
# Set your API key
export GROQ_API_KEY="your-key-here"
# Or permanently:
lumecode config set-key groq "your-key-here"
2. "Command not found"
# Use full module path
python -m lumecode.cli.main --help
# Or add alias to ~/.bashrc or ~/.zshrc:
alias lumecode="python -m lumecode.cli.main"
3. "Rate limit exceeded"
# Switch to different provider
lumecode config set provider openrouter
# Or use caching to reduce API calls
lumecode cache info # Check if cache is enabled
4. "Git context too large"
# Reduce diff size
lumecode --max-diff-size 2000 review git
# Or disable git context
lumecode review file api.py --no-git
Debug Mode
# Enable verbose logging
export LUMECODE_DEBUG=1
lumecode ask query "test"
# Check configuration
lumecode config show
# Test provider connection
lumecode config test-provider
๐ License
MIT License - see LICENSE file for details.
Copyright (c) 2025 Lumecode Contributors
๐ Acknowledgments
- Groq - For providing ultra-fast, free inference
- OpenRouter - For access to 300+ AI models
- Rich - For beautiful terminal UI
- Click - For elegant CLI framework
- All contributors - Thank you for making Lumecode better!
๐ Support & Community
- GitHub Issues: Report bugs or request features
- Discussions: Ask questions and share ideas
- Email: support@lumecode.dev
โญ Star History
If you find Lumecode useful, please consider giving it a star! โญ
It helps others discover the project and motivates us to keep improving it.
Built with โค๏ธ by developers, for developers
Making AI assistance accessible to everyone, for free.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lumecode-1.0.0.tar.gz.
File metadata
- Download URL: lumecode-1.0.0.tar.gz
- Upload date:
- Size: 127.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
827bd247fd550f6791ae66dd7420a200e9ccf91bf356959721f3835707cfb325
|
|
| MD5 |
e6ae37262ab568c1cf001ade4dbe9622
|
|
| BLAKE2b-256 |
4d95e7818ec280981b4d8ed9d851cdd6dc0314b199745beb901da39c6cf57999
|
File details
Details for the file lumecode-1.0.0-py3-none-any.whl.
File metadata
- Download URL: lumecode-1.0.0-py3-none-any.whl
- Upload date:
- Size: 126.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
442201a4fe9777e2774c4abc47bd7d4a341e6425b25a1948634dd6d57c6bac6e
|
|
| MD5 |
d00e256d7c3a8b6dd30a43f52683dbdd
|
|
| BLAKE2b-256 |
95ee52f4098b2383b0b885aa2dc4fe32af0b563d5b073315f4d70ab497d72732
|