Deleetify
Makes local LeetCode setup less painful.
A CLI tool that fetches any LeetCode problem and uses an AI agent to generate a ready-to-run boilerplate solution file — so you can jump straight into solving, not scaffolding.
Features
- Fetch any LeetCode problem by id
- AI-generated boilerplate via any ACP-compatible agent (e.g., opencode, claude-code)
- Supports Python and JavaScript starter code
- Configurable AI provider via TOML
Installation
Note: If any problem encountered, try installing with python 3.13
pip install deleetify
Or with uv:
uv tool install deleetify
Usage
# Basic usage — generates Python boilerplate
deleetify "208"
# Specify language
deleetify "1" --lang javascript
# Custom config path
deleetify "15" --config ./my-agent.toml
Configuration
Deleetify uses a deleetify.toml to configure the AI provider. By default it looks for the file in the current directory.
[provider.opencode]
command = "opencode"
args = ["acp"]
If you have multiple providers, set a default:
[default]
provider = "opencode"
[provider.opencode]
command = "opencode"
args = ["acp"]
[provider.gemini]
command = "gemini"
args = ["--acp"]
# envs = {SOME_ENV = "value"}
If you want to modify leetcode api (for development it is recommended):
[config]
leetcode_api = "https://alfa-leetcode-api.onrender.com/" # It is the default
[provider.opencode]
command = "opencode"
args = ["acp"]
How it works
- You pass a LeetCode problem id (e.g.,
208) - Deleetify parses the name and fetches the problem from the LeetCode API
- It scrapes the description, examples, and starter code from the HTML response
- It spawns an AI agent subprocess over the Agent Communication Protocol (ACP)
- The agent receives a prompt with the problem details and generates boilerplate code with built-in test cases
Supported languages
| CLI flag | Language |
|---|---|
python3 |
Python 3 |
javascript |
JavaScript |
Requirements
- Python 3.13+
- An ACP-compatible agent (e.g., opencode)
License
MIT
Metadata
Release files for deleetify 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deleetify-0.8.0.tar.gz | 20.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deleetify-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.9 kB
Release files / deleetify-0.8.0.tar.gz
| Download URL | deleetify-0.8.0.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adb27500ced79e4a5c8c0be487af5a5f9ade86e61632dddda88bb934b01c0573
|
|
BLAKE2b-256 checksum How to use checksums |
aa2a9e21f9cd599271c2fef7128e6df8c1e724491d830e411aa274edabd3ae32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / deleetify-0.8.0-py3-none-any.whl
| Download URL | deleetify-0.8.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
083f70dcc9aac3c758a268cc5db57ce60f9aa9ef69c803758f313781778ba7cc
|
|
BLAKE2b-256 checksum How to use checksums |
c864e6f02c0e347afa6613adb335684789a9ae338438f76431d2359a92032f89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|