Measurable code improvement — autonomous optimization loop
Project description
Gradex — autonomous code optimization. Measurable improvement, every run.
Gradex discovers performance targets, captures a baseline, runs autonomous optimization experiments, and ships the best verified patch.
Install
pip install gradex
60-Second Quickstart
pip install gradex
gradex install cursor # one-time provider + model setup
gradex discover "make this repo faster"
gradex optimize
gradex dashboard
After install, GradeX walks you through provider, model, and API key setup (or skip and use CLI flags). Re-run anytime with gradex configure. Use gradex install cursor --no-setup in CI.
Providers
| Provider | Best for | Notes |
|---|---|---|
| Groq | Free cloud runs | Default. Best for serious optimize runs |
| OpenRouter | Low-friction testing | Free-tier models; one API key, many models |
| Anthropic | High quality reasoning | Strong patch planning and code edits |
| OpenAI | General purpose | Broad model options |
| Ollama | Local/private | Runs fully on your machine |
CLI Reference
| Command | Description |
|---|---|
gradex install <host> |
Installs Gradex integration for a coding host (optional one-time model setup) |
gradex configure |
Set up or update LLM provider, model, and API key |
gradex models |
List recommended models for a provider |
gradex doctor <host> |
Checks host environment and setup health |
gradex dashboard |
Starts live optimization dashboard |
gradex upgrade |
Checks PyPI for newer Gradex versions |
gradex discover [hint] |
Discovers benchmark target and baseline |
gradex optimize |
Runs autonomous optimization loop |
gradex stats |
Shows run analytics and optional exports |
gradex report |
Exports a shareable HTML run report |
gradex history |
Lists recent optimization runs |
How It Works
+-----------+ +-----------+ +----------------------+ +----------------+
| discover | --> | baseline | --> | optimize loop (N) | --> | best patch out |
+-----------+ +-----------+ +----------------------+ +----------------+
discoveranalyzes your repo and creates a measurable benchmark target.- Gradex records a baseline score.
optimizeruns parallel experiment rounds (patch -> benchmark -> gate checks).- Best validated patch and run analytics are surfaced in dashboard and CLI.
Dashboard
Dashboard screenshot:
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gradex-0.1.1.tar.gz.
File metadata
- Download URL: gradex-0.1.1.tar.gz
- Upload date:
- Size: 4.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2d498a36c6cb8afee3b64ffe1b15355885cbe4fa906f9695b7f09fd3c9f274b
|
|
| MD5 |
48603cd25a2768ae22c74534e2a5afed
|
|
| BLAKE2b-256 |
86938f8c58da2b2f9482fc8862d9053ba3f738a945d45ab84cf1c1723d925ea9
|
File details
Details for the file gradex-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gradex-0.1.1-py3-none-any.whl
- Upload date:
- Size: 65.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b6892aff4d55444377364448352c7a0574fd683eb47286f106a5cc485511468
|
|
| MD5 |
ebfd0e43e7d74ae3aa7ef2d8cc3ad1f7
|
|
| BLAKE2b-256 |
b24a78aac0b85b6cbe218af53ea969de7a36469298039a64d1f3b28c47c253dd
|