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.
- 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
- 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
- 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
- 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
- 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)
- 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
-
Rust (latest stable version)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
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
-
Gemini API Key
export GEMINI_API_KEY="your_api_key_here"
# 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# 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.tomlWarp Clone uses a TOML configuration file located at:
- Linux/macOS:
~/.config/Warp Clone/config.toml - Windows:
%APPDATA%/Warp Clone/config.toml
[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# The terminal works like any standard terminal
ls -la
cd my-project
git status- 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"
# Built-in security scan command
scan-project
# Quick dependency scan
scan-project --type dependencies
# Full security audit
scan-project --type full- Browse files in the integrated sidebar
- Right-click to open terminal in file's directory
- Double-click to run files or open in editor
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
# Run in development mode
cargo run
# Run tests
cargo test
# Check code formatting
cargo fmt --check
# Run clippy lints
cargo clippy -- -D warnings- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
-
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
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by Warp Terminal for the modern terminal experience
- Built with egui for the user interface
- Powered by Google Gemini for AI capabilities
- Security tools: Bandit, Semgrep, OSV-Scanner
- Issues: [GitHub Issues](https://github.com/Warp Clone/Warp Clone/issues)
- Discussions: [GitHub Discussions](https://github.com/Warp Clone/Warp Clone/discussions)
- Documentation: docs/