Skip to content

AshrafGalibShaik/Warp_clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Warp clone πŸš€

Next-Generation AI-Powered Terminal Application

Warp_clone is an intelligent, developer-friendly terminal application inspired by Warp, built with modern Rust technologies and integrated AI capabilities. It combines the power of a GPU-accelerated terminal with AI assistance, security scanning, and intelligent code completion.

✨ Features

πŸ–₯️ Modern Terminal Experience

  • GPU-accelerated rendering with WGPU for smooth performance
  • Block-based input/output preserving command context like Warp
  • Tab and split-pane support for multiple terminal sessions
  • Advanced PTY management with proper terminal emulation

πŸ€– AI Assistant Integration

  • Gemini 2.0 Flash integration for intelligent command assistance
  • Command explanation - Ask "What does this command do?"
  • Error fixing - Get AI-powered solutions for command errors
  • Code review - Automated code quality analysis
  • Command generation - Describe what you want, get the command

πŸ” Security & Vulnerability Detection

  • Multi-tool scanning with Bandit, Semgrep, and OSV-Scanner integration
  • Real-time vulnerability detection on written code
  • AI-powered security analysis with fix suggestions
  • Comprehensive security reports with risk scoring

πŸ“ Intelligent File Management

  • Integrated file explorer with project navigation
  • Git-aware file handling with .gitignore support
  • Real-time file watching with automatic updates
  • File type detection with appropriate icons and handling

⚑ Smart Developer Tools

  • Fuzzy autocomplete with command history integration
  • Syntax highlighting powered by Tree-sitter
  • Git integration with branch and status awareness
  • Multi-shell support (bash, zsh, fish, PowerShell)

πŸ› οΈ Technology Stack

  • Frontend: Rust + egui + WGPU for GPU acceleration
  • Terminal Core: tokio + portable-pty for async shell execution
  • AI Integration: Gemini Pro 2.0 API with custom agents
  • Security Tools: Bandit, Semgrep, OSV-Scanner integration
  • Parsing: Tree-sitter for syntax highlighting and analysis

πŸ“¦ Installation

Prerequisites

  1. Rust (latest stable version)

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Security Tools (optional but recommended)

    # Install Bandit for Python security scanning
    pip install bandit
    
    # Install Semgrep for multi-language security scanning
    pip install semgrep
    
    # Install OSV-Scanner for dependency vulnerability scanning
    go install github.com/google/osv-scanner/cmd/osv-scanner@v1
  3. Gemini API Key

    export GEMINI_API_KEY="your_api_key_here"

Build from Source

# Clone the repository
git clone https://github.com/Warp Clone/Warp Clone.git
cd Warp Clone

# Build the application
cargo build --release

# Run Warp Clone
./target/release/Warp Clone

Quick Start

# Start with debug logging
./target/release/Warp Clone --debug

# Start in a specific directory
./target/release/Warp Clone --directory /path/to/project

# Use custom configuration
./target/release/Warp Clone --config /path/to/config.toml

βš™οΈ Configuration

Warp Clone uses a TOML configuration file located at:

  • Linux/macOS: ~/.config/Warp Clone/config.toml
  • Windows: %APPDATA%/Warp Clone/config.toml

Sample Configuration

[ai]
api_key = "your_gemini_api_key"
model = "gemini-pro"
max_tokens = 2048
temperature = 0.7
system_prompt = "You are an AI assistant integrated into Warp Clone..."

[security]
enable_bandit = true
enable_semgrep = true
enable_osv = true
scan_timeout_seconds = 300
max_file_size_mb = 10
excluded_paths = ["node_modules", ".git", "target"]

[terminal]
shell = "bash"  # or "zsh", "fish", "pwsh"
font_size = 14.0
theme = "dark"
max_history = 1000
enable_vi_mode = false

🎯 Usage Examples

Basic Terminal Operations

# The terminal works like any standard terminal
ls -la
cd my-project
git status

AI Command Assistance

  • Type a command and ask: "What does this do?"
  • Get error explanations: "Fix this error: permission denied"
  • Generate commands: "Create a git branch called feature-x"

Security Scanning

# Built-in security scan command
scan-project

# Quick dependency scan
scan-project --type dependencies

# Full security audit
scan-project --type full

File Explorer Integration

  • Browse files in the integrated sidebar
  • Right-click to open terminal in file's directory
  • Double-click to run files or open in editor

πŸ”§ Development

Project Structure

Warp Clone/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.rs              # Application entry point
β”‚   β”œβ”€β”€ terminal/            # Terminal engine and PTY management
β”‚   β”œβ”€β”€ ai/                  # AI agent and Gemini integration
β”‚   β”œβ”€β”€ security/            # Security scanning modules
β”‚   β”œβ”€β”€ file_explorer/       # File system navigation
β”‚   β”œβ”€β”€ autocomplete/        # Command completion engine
β”‚   └── ui/                  # User interface components
β”œβ”€β”€ tests/                   # Test suites
β”œβ”€β”€ docs/                    # Documentation
└── assets/                  # Static assets

Building for Development

# Run in development mode
cargo run

# Run tests
cargo test

# Check code formatting
cargo fmt --check

# Run clippy lints
cargo clippy -- -D warnings

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

🚦 Roadmap

  • Advanced Terminal Features

    • Terminal multiplexer integration (tmux/screen)
    • Custom themes and color schemes
    • Terminal recording and playback
  • Enhanced AI Capabilities

    • GPT-4 integration option
    • Custom AI model support
    • Offline AI capabilities
  • Extended Security Features

    • Custom security rule definitions
    • Integration with more security tools
    • Continuous security monitoring
  • Platform Support

    • macOS native app bundle
    • Windows installer
    • Linux AppImage/Flatpak

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ“ž Support


About

Warp_clone is an intelligent, developer-friendly terminal application inspired by Warp, built with modern Rust technologies and integrated AI capabilities. It combines the power of a GPU-accelerated terminal with AI assistance, security scanning, and intelligent code completion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages