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

# Check installation and PATH setup
python -m leetagent-doctor

# Configure (interactive wizard)
leetagent config

# Solve today's daily challenge
leetagent solve

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

Note: If leetagent command doesn't work, run python -m leetagent or python -m leetagent-doctor for PATH setup instructions.

📦 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.3.tar.gz (56.1 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.3-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leetagent-1.0.3.tar.gz
  • Upload date:
  • Size: 56.1 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.3.tar.gz
Algorithm Hash digest
SHA256 96bbd1c591e32706015182620282857d113e44a037d57d690fdc52b92d3c77d8
MD5 ae580ffd04cbcab2894092181582c679
BLAKE2b-256 7423016743825d2c0d29fa54d664cd7ff3df384d625540fbc124cf2f68aadcf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: leetagent-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 56.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8cd2ee965d5e6b53bec49087658c24013fe6d42fa290a49cbf8bef2b803f73de
MD5 b8c709ae363822c2355861a266041c94
BLAKE2b-256 ca4f9d07160da26a501a050ade2ddd086b904880a1bb5fda725c10b2b066f2ad

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