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.2.tar.gz (55.0 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.2-py3-none-any.whl (54.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leetagent-1.0.2.tar.gz
  • Upload date:
  • Size: 55.0 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.2.tar.gz
Algorithm Hash digest
SHA256 ed0200270b3406f80c743714e00cdfe91cbd9903a08d37da0b879bf07e78333d
MD5 2f8b8eec1dd5212bb3ee585a57f4ee5d
BLAKE2b-256 2ef7423b3887a7bc85355c6637afefd29c48af4c4f801f0733abe5b39cad8d5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: leetagent-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 54.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa828dda0fb0e7478a5a2b82981c4056651e6235ce16fc685e9293b947f8f3b3
MD5 ea5d9529f4733f078ed7ce142d3f96df
BLAKE2b-256 07f1983abf742404f9e21fa0b12fefc705c1f3698a36f20b20ddb1bb3ffef8ba

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