Skip to main content

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 solve handles 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

📖 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

leetagent-1.0.6.tar.gz (60.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leetagent-1.0.6-py3-none-any.whl (58.7 kB view details)

Uploaded Python 3

File details

Details for the file leetagent-1.0.6.tar.gz.

File metadata

  • Download URL: leetagent-1.0.6.tar.gz
  • Upload date:
  • Size: 60.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for leetagent-1.0.6.tar.gz
Algorithm Hash digest
SHA256 26b799991c1b978fc35f1a72d3550b9c71d5313303bf18bf199ecdcbdc5f6eee
MD5 da05248246d94f59b7437c7a154eb1a0
BLAKE2b-256 5567a862887788c7a8a0731d9f64561def7eda36eac855217f9d9a8216fa6cbb

See more details on using hashes here.

File details

Details for the file leetagent-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: leetagent-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 58.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for leetagent-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b3de1ea91c78ea12dfbf450a3c4e50efa601a50a4bde7ff4c06ea681ac6f203a
MD5 f890444dc12e0b3fc1da2392a36dbb71
BLAKE2b-256 8df6375908d67caa8b1a51cf7d9a608553e59b5a4c425ce9ea3575f97bd76d6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page