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

# Configure (interactive wizard)
leetagent config

# Solve today's daily challenge
leetagent solve

# Login to LeetCode (one-time setup)
leetagent login

📦 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.1.tar.gz (54.5 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.1-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leetagent-1.0.1.tar.gz
  • Upload date:
  • Size: 54.5 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.1.tar.gz
Algorithm Hash digest
SHA256 14094c1cf433e69b1d9baccb3346098d886d4ad621b0e9b2a219d2ffea154be8
MD5 cd95aa89f398b185ee70102d8cda2e4c
BLAKE2b-256 cead6a80d0e79e119901b5474a9d320df8d19cc3385bb58fac08a94a4223473c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: leetagent-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 53.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd4e53378eaaf3e420c69e2eb7ec4b4299586e0ba411c9734d8934f69c25598b
MD5 5a785438f1aae73f73f3aa916a847a48
BLAKE2b-256 09238c2c0085b55de722618135c51aa46b2866df3d73f8649eeddc634a5c8f0f

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