R-Code AI-Powered Interactive Code Assistant - Advanced CLI tool with intelligent coding assistance
Project description
R-Code CLI
The Most Advanced AI Coding Assistant
Context-Aware โข Never Break Code Again โข Professional Grade
๐ Quick Start โข ๐ Documentation โข ๐ค Contributing โข ๐ฌ Community
๐ฏ What Makes R-Code CLI Different
R-Code CLI is not just another AI coding assistant. It's a context-aware, project-intelligent system that understands your entire codebase and prevents the common mistakes that plague other AI tools.
๐ง Revolutionary Context System
- Complete Project Understanding: AST parsing, dependency mapping, architecture analysis
- Never Create Duplicates: Context validation prevents file conflicts
- Never Break Code: Dependency analysis prevents breaking changes
- Smart Suggestions: Follows your project's naming conventions and patterns
โฐ Time Travel System
- Checkpoint Management: Automatic and manual save points
- Surgical Undo: Revert specific changes without losing other work
- Change Visualization: See exactly what changed and when
- Safe Experimentation: Try anything knowing you can always go back
๐ก๏ธ Human-in-the-Loop Security
- Smart Approval: Only dangerous operations require confirmation
- Risk Analysis: Automatic command safety assessment
- Configurable Security: Customize approval policies for your needs
- Persistent Learning: System learns from your approval patterns
โจ Core Features
๐ค AI-Powered Development
๐๏ธ Project Intelligence
|
โก Developer Experience
๐ Enterprise-Grade Security
|
๐ Quick Start
Prerequisites
- Python 3.8+
- AI Provider API Key (OpenAI, Anthropic, or others)
Installation
๐ฏ PyPI Installation (Recommended)
# Install from PyPI
pip install rcode-cli
# Set your API key
export ANTHROPIC_API_KEY="your-api-key-here"
# or
export OPENAI_API_KEY="your-api-key-here"
# Start R-Code
rcode
๐ง Development Installation
# Clone the repository
git clone https://github.com/RaheesAhmed/R-Code-CLI.git
cd R-Code-CLI
# Install dependencies
pip install -r requirements.txt
# Set your API key
export ANTHROPIC_API_KEY="your-api-key-here"
# or
export OPENAI_API_KEY="your-api-key-here"
# Start R-Code
python cli.py
First Run
$ python cli.py
๐ Welcome to R-Code CLI v1.0.0
๐ง Analyzing project structure...
๐ Found 42 files to analyze
โ
Project analysis complete
โโ R-Code Assistant
โ Hello! I'm your AI coding assistant with complete project understanding.
โ I can help you write, debug, and improve code while preventing conflicts.
โ
โ Try asking me to:
โ โข "Create a new user authentication module"
โ โข "Fix the bug in user_service.py"
โ โข "Add error handling to the API endpoints"
โ
โ Type /help for commands or just start chatting!
โโ
โบ
๐ก Usage Examples
Context-Aware Development
โบ Create a new user service that follows our project patterns
๐ Using get_project_context_summary...
๐ Analyzing project structure and conventions...
I can see you're using:
โข Flask with SQLAlchemy ORM
โข Snake_case naming convention
โข Service-Repository pattern
โข JWT authentication
I'll create a user service that follows these patterns...
๐ Creating: src/services/user_service.py
๐ Creating: src/repositories/user_repository.py
๐ Creating: tests/test_user_service.py
Smart Validation
โบ Add a login function to auth.py
๐ Using validate_file_operation...
โ ๏ธ Analysis found:
โข File auth.py already has login() function at line 23
โข Suggested: enhance existing function or create login_with_email()
๐ก Should I enhance the existing login function or create a new variant?
Safe Experimentation
โบ /save "Before refactoring auth system"
โ
Checkpoint saved: cp_20250208_142301
โบ Refactor the authentication system to use JWT tokens
๐ Working on authentication refactor...
๐ Modified: src/auth/auth_service.py
๐ Modified: src/models/user.py
๐ Created: src/utils/jwt_helper.py
โบ /undo
โ
Reverted to checkpoint: cp_20250208_142301
๐๏ธ Architecture Overview
graph TB
A[User Input] --> B[Command Parser]
B --> C[Context Engine]
C --> D[Project Analysis]
C --> E[Validation System]
C --> F[AI Orchestrator]
F --> G[Multi-Provider AI]
F --> H[Tool Execution]
H --> I[Checkpoint System]
I --> J[Human Approval]
J --> K[File Operations]
K --> L[Result Display]
Key Components
- ๐ง Context Engine: Complete project understanding and analysis
- ๐ค AI Orchestrator: Multi-provider AI integration with streaming
- โฐ Checkpoint System: Time travel functionality with surgical undo
- ๐ก๏ธ Validation System: Prevents duplicates and breaking changes
- ๐ Human Approval: Security-first approach to dangerous operations
- โ๏ธ Tool Ecosystem: Extensible tool framework for file and terminal operations
๐ Documentation
๐ Complete Documentation Suite
๐ Getting Started
๐ User Guides
|
๐๏ธ Advanced Topics
|
โก Quick Reference
| Command | Description | Example |
|---|---|---|
/help |
Show available commands | /help |
/undo |
Undo last AI operation | /undo |
/save <desc> |
Create checkpoint | /save "Before refactor" |
/checkpoints |
List save points | /checkpoints |
/revert <id> |
Revert to checkpoint | /revert cp_123456 |
/status |
Show session info | /status |
๐ Complete Command Reference โ
๐ฏ Popular Documentation
๐ Most Helpful
- Getting Started - New to R-Code? Start here!
- User Guide - Complete feature walkthrough
- FAQ - 50+ common questions answered
- Examples - Real projects and use cases
๐ฅ For Developers
- Flask API Example - Backend development
- React TypeScript - Frontend development
- Configuration Guide - Customize for your workflow
- Contributing Guide - Join the community
๐ Need Help?
- ๐ Browse All Documentation - Complete documentation hub
- ๐ฌ Community Discussions - Get community help
- ๐ Report Issues - Bug reports and features
- ๐ง Email Support - Direct support
๐ง Development
Project Structure
R-Code-CLI/
โโโ ๐ src/
โ โโโ ๐ค agents/ # AI agent implementations
โ โโโ โฐ checkpoint/ # Time travel system
โ โโโ ๐ฌ commands/ # Slash command handlers
โ โโโ โ๏ธ config/ # Configuration management
โ โโโ ๐ง context/ # Project context engine
โ โโโ ๐ ๏ธ tools/ # File & terminal operations
โ โโโ ๐ types/ # Type definitions
โโโ ๐ tests/ # Comprehensive test suite
โโโ ๐ docs/ # Documentation
โโโ ๐ง static/ # Assets and examples
โโโ ๐ Legal Framework # Complete legal protection
Development Setup
# Clone and setup development environment
git clone https://github.com/RaheesAhmed/R-Code-CLI.git
cd R-Code-CLI
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # Windows
# Install development dependencies
pip install -r requirements.txt
pip install -r requirements-dev.txt
# Run tests
python -m pytest tests/
# Run with development settings
python cli.py --dev
๐ค Contributing
We welcome contributions from the community! R-Code CLI is built with high standards and professional practices.
How to Contribute
- Read our Contributing Guide for detailed guidelines
- Check our Code of Conduct for community standards
- Review our Security Policy for security practices
- Understand our Legal Framework for IP requirements
Development Workflow
# 1. Fork and clone
git clone https://github.com/YOUR_USERNAME/R-Code-CLI.git
# 2. Create feature branch
git checkout -b feature/amazing-new-feature
# 3. Make changes with tests
# ... develop amazing features ...
# 4. Run quality checks
python -m pytest tests/
python -m black src/
python -m flake8 src/
# 5. Submit pull request
git push origin feature/amazing-new-feature
Contribution Types
- ๐ Bug Fixes: Help us maintain code quality
- โจ Features: Add new capabilities and tools
- ๐ Documentation: Improve guides and examples
- ๐งช Tests: Increase test coverage
- ๐ Security: Report and fix vulnerabilities
- ๐ Accessibility: Make R-Code more inclusive
๐ก๏ธ Legal Framework
R-Code CLI is protected by a comprehensive legal framework that ensures both open source collaboration and intellectual property protection:
๐ Legal Documents
- GNU AGPL v3.0 License - Open source license with copyleft protection
- Terms of Service - User agreement and acceptable use policy
- Privacy Policy - Data protection and user privacy rights
- Code of Conduct - Community standards and enforcement
- Security Policy - Vulnerability reporting
- Trademark Policy - Brand protection and usage guidelines
- Contributing Guide - Contribution standards and IP assignment
๐ท๏ธ Intellectual Property
- Trademark: "R-Code" and related marks are protected trademarks
- Copyright: All contributions are owned by the R-Code project
- Patents: Contributors grant patent licenses to the project
- Attribution: All derivatives must credit the original R-Code project
๐๏ธ Recognition
Hall of Fame
We recognize our amazing contributors:
- ๐ Core Contributors: Major features and architectural improvements
- โญ Regular Contributors: Multiple merged PRs and ongoing involvement
- โจ Community Champions: Outstanding community support and mentorship
[Be the first to contribute and get listed here!]
๐ Project Stats
๐ฌ Community
Get Help
- ๐ฌ GitHub Discussions - General questions and ideas
- ๐ GitHub Issues - Bug reports and feature requests
- ๐ง Email: rahesahmed37@gmail.com
- ๐ Security: rahesahmed37@gmail.com
Stay Updated
- โญ Star this repository for updates
- ๐ Watch releases for new versions
- ๐ฆ Follow us on social media (coming soon)
- ๐ง Subscribe to our newsletter (coming soon)
Enterprise Support
For organizations requiring professional support:
- ๐ข Enterprise Licensing: rahesahmed37@gmail.com
- ๐ค Partnerships: rahesahmed37@gmail.com
- ๐ ๏ธ Custom Development: rahesahmed37@gmail.com
๐ฏ Roadmap
๐ Current Focus
- ๐งช Beta Testing: Community feedback and improvements
- ๐ Plugin System: Extensible architecture for third-party tools
- ๐ Web Interface: Optional web-based interface
- ๐ฑ Mobile Support: iOS and Android companion apps
๐ฎ Future Vision
- ๐ค Team Collaboration: Multi-developer project support
- โ๏ธ Cloud Sync: Optional cloud synchronization
- ๐จ Visual Editor: GUI interface for complex operations
- ๐ค Custom Models: Train models on your codebase
๐ Changelog
v1.0.0 (2025-02-08)
- ๐ Initial Release: Core AI assistant functionality
- ๐ง Context System: Complete project understanding
- โฐ Time Travel: Checkpoint and undo system
- ๐ก๏ธ Security: Human approval system
- ๐ Documentation: Comprehensive guides and docs
โ๏ธ License
R-Code CLI is licensed under the GNU Affero General Public License v3.0 with additional terms for trademark protection and commercial use.
What this means:
- โ Use: Free to use for personal and commercial projects
- โ Modify: Create and distribute modified versions
- โ Distribute: Share with others freely
- ๐ Requirements: Derivatives must be open source (AGPL v3.0)
- ๐ท๏ธ Trademarks: "R-Code" trademarks require permission for commercial use
For full details, see our License and Terms of Service.
๐ Acknowledgments
R-Code CLI is built on the shoulders of giants:
- OpenAI & Anthropic: For providing world-class AI models
- LangChain & LangGraph: For AI orchestration framework
- Python Community: For the incredible ecosystem
- Open Source Community: For inspiration and collaboration
โญ Star this repository โข ๐ค Contribute โข ๐ Docs โข ๐ฌ Community
Built with โค๏ธ by Rahees Ahmed and the R-Code community
"The Most Advanced AI Coding Assistant - Context-Aware, Never Break Code Again"
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 rcode_cli-1.0.1.tar.gz.
File metadata
- Download URL: rcode_cli-1.0.1.tar.gz
- Upload date:
- Size: 192.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66ca949bc8b688b3d448366b1101ce613d3c52e6ca00c8742ea2b906910f3832
|
|
| MD5 |
318a5e7d27add3581cba6fe42cb30cd7
|
|
| BLAKE2b-256 |
5e324e727ecaa879d4a6ef02bd789e4db5746894098ea4b4b522e886b7de84a5
|
File details
Details for the file rcode_cli-1.0.1-py3-none-any.whl.
File metadata
- Download URL: rcode_cli-1.0.1-py3-none-any.whl
- Upload date:
- Size: 110.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
781846214bd628280f09a1f4ec02233409a7fad85c0b277983d8ede463b28f02
|
|
| MD5 |
0bcea45fe60737fe179efabf3bc940f7
|
|
| BLAKE2b-256 |
2d1e5e12858211faf7522bf0104c6a98d4bd3afe79c048c41353ee74715b7625
|