LeetAgentAutoSat — The Smart LeetCode AI Automation Tool
Project description
🚀 LeetAgent - AI-Powered LeetCode Automation
Automate your LeetCode daily challenges with AI-generated solutions in one command.
LeetAgent is an intelligent automation tool that fetches, solves, and submits LeetCode problems using Google Gemini AI. Perfect for maintaining your coding streak, practicing different approaches, and learning from AI-generated solutions with detailed explanations.
Features: AI-powered solution generation • Browser automation with Selenium • Multi-language support (Python, C#, Java, JavaScript) • Telegram notifications • Interactive CLI with Rich UI • Robust retry logic • Session management
🎯 Quick Start
# Install
pip install leetagent
# Auto-configure PATH (adds Scripts to PATH)
python -m leetagent-setup
# Configure credentials
python -m leetagent config
# Solve today's daily challenge
python -m leetagent solve
# Login to LeetCode (one-time setup)
python -m leetagent login
After PATH setup, use directly: leetagent config, leetagent solve
📦 What You Get
- One-command automation -
leetagent solvehandles everything - AI-powered solutions - Google Gemini generates optimized code
- 5 submission strategies - Multiple fallback methods for reliability
- Smart notifications - Success/failure alerts via Telegram
- Beautiful CLI - Rich terminal UI with progress indicators
- Session persistence - Login once, use forever
🔑 Requirements
- Python 3.10+
- Google Chrome browser
- Gemini API key (free)
- Telegram bot token (optional, for notifications)
📖 Documentation
Full documentation: github.com/satyamyadav/leetagent
🎨 Usage Examples
# Solve specific problem
leetagent solve https://leetcode.com/problems/two-sum/
# Use different language
leetagent solve --language python
# Interactive mode with menu
leetagent --interactive
# View configuration
leetagent config-show
# Check status
leetagent status
🏗️ Architecture
Modular design with clean separation:
- Core modules: Scraper, AI generator, formatter, notifier
- Browser automation: Selenium with 5 submission strategies
- AI agents: Decision agent for approach analysis
- CLI: Interactive Typer-based interface
🤝 Contributing
Contributions welcome! Visit GitHub repository for:
- Source code
- Issue reporting
- Feature requests
- Development guide
📄 License
MIT License - see LICENSE for details.
🙏 Credits
Built with: Google Gemini AI • Selenium WebDriver • Rich UI • Typer CLI
⭐ Star on GitHub if you find this useful!
Project details
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 leetagent-1.0.4.tar.gz.
File metadata
- Download URL: leetagent-1.0.4.tar.gz
- Upload date:
- Size: 57.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b86bbee5518e5d776ae5e27e24fa580c1e32a5c6ca531283af6ce09dd228cca9
|
|
| MD5 |
2108b98486e37c9c06a2502effd7d752
|
|
| BLAKE2b-256 |
83d69be23ad5c437d8e8498e7a045e5f41e4035da0c9af918883b66f1a11592e
|
File details
Details for the file leetagent-1.0.4-py3-none-any.whl.
File metadata
- Download URL: leetagent-1.0.4-py3-none-any.whl
- Upload date:
- Size: 58.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b59c695102d8aabf906c5bb17eaa58a4d7be3ddd1189df48725d891bacded52e
|
|
| MD5 |
4cc479aaeaa0c1da4f67882d96bdf53c
|
|
| BLAKE2b-256 |
c01f52624b16aa63ba9c90edffc6b4af16324c02a8ff454eb306706092d1378d
|