Complete reference for all CodeGenie features and capabilities.
- Planning Agent
- File Operations
- Command Execution
- Project Scaffolding
- Diff Engine
- Approval System
- Context Analysis
- Multi-File Editing
- Error Recovery
- Template System
- Dependency Management
- Documentation Generation
- Multi-Agent System
- Autonomous Mode
- Natural Language Programming
The Planning Agent creates detailed execution plans before taking actions.
- Task Decomposition: Breaks complex tasks into manageable steps
- Dependency Analysis: Identifies dependencies between steps
- Risk Assessment: Evaluates risk level of each operation
- Progress Tracking: Monitors execution progress in real-time
- Complexity Estimation: Estimates time and effort required
You: Create a complete REST API with authentication
CodeGenie: Let me create a plan...
📋 Execution Plan (12 steps):
1. Set up project structure
2. Configure database
3. Create User model
4. Implement authentication
5. Create API endpoints
6. Add validation
7. Implement error handling
8. Create tests
9. Add documentation
10. Security hardening
11. Performance optimization
12. Final validation
⏱️ Estimated time: 20 minutes
🎯 Risk level: Medium
Proceed? (y/n):
# ~/.config/codegenie/config.yaml
planning:
enabled: true
show_estimates: true
require_approval: true
max_steps: 50Automatic file creation, modification, and deletion with safety features.
You: Create a User model with email and password
CodeGenie: Creating User model...
✅ Created: src/models/user.py
✅ Created: tests/test_user.py
Files created with:
- Type hints
- Docstrings
- Input validation
- Unit tests
You: Add a 'role' field to the User model
CodeGenie: Modifying User model...
📝 Changes to src/models/user.py:
+ Added role field (Enum: admin, user, guest)
+ Updated __init__ method
+ Added role validation
+ Updated tests
Preview diff? (y/n):
You: Delete the old migration files
CodeGenie: ⚠️ This will delete 3 files:
- migrations/0001_old.py
- migrations/0002_old.py
- migrations/0003_old.py
Backups will be created.
Proceed? (y/n):
- Backup Creation: Automatic backups before modifications
- Diff Preview: See changes before applying
- Undo Support: Rollback recent changes
- Conflict Detection: Warns about conflicting changes
Safe execution of system commands with approval workflows.
Commands are classified by risk level:
Safe Commands (auto-approved):
ls,cat,grep,findgit status,git log,git diffpython --version,pip list
Risky Commands (require approval):
pip install,npm installgit commit,git pushpython script.py
Dangerous Commands (require explicit confirmation):
rm -rf,sudo,formatgit reset --hard- System-level operations
You: Install pytest and run tests
CodeGenie: I'll install pytest and run tests.
Command 1: pip install pytest
Risk: Risky (installs package)
Approve? (y/n): y
✅ pytest installed
Command 2: pytest tests/
Risk: Safe (read-only)
Executing...
✅ 15 tests passed
You: Run the development server
CodeGenie: Starting server...
🚀 Server output:
INFO: Started server process [12345]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000
Press Ctrl+C to stop
You: Run tests
CodeGenie: Running tests...
❌ Command failed with exit code 1
Error: ModuleNotFoundError: No module named 'pytest'
💡 Suggested fix:
Install pytest: pip install pytest
Shall I install pytest and retry? (y/n):
Quickly create new projects with proper structure and configuration.
- Python: FastAPI, Django, Flask, CLI tools
- JavaScript/TypeScript: React, Next.js, Express, Vue
- Go: Web services, CLI tools, gRPC
- Rust: CLI tools, web services, libraries
You: Create a new FastAPI project
CodeGenie: Creating FastAPI project...
Project type: Web API
Framework: FastAPI
Database: PostgreSQL
Testing: pytest
✅ Project structure created
✅ Dependencies configured
✅ Database setup
✅ Git initialized
✅ Tests created
Project ready at: ./my-api/
- Smart Detection: Detects project type from description
- Best Practices: Follows framework conventions
- Complete Setup: Includes tests, docs, and configuration
- Version Control: Initializes git with .gitignore
- Dependency Installation: Installs required packages
You: Create a project using my custom template
CodeGenie: Loading custom template...
Template: my-company-api-template
Variables needed:
- project_name: my-new-api
- database: postgresql
- auth_method: jwt
Creating project...
✅ Project created from custom template