Skip to main content

Measurable code improvement — autonomous optimization loop

Project description

Gradex — autonomous code optimization. Measurable improvement, every run.

PyPI version Python 3.11+ License: MIT

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 |
+-----------+     +-----------+     +----------------------+     +----------------+
  1. discover analyzes your repo and creates a measurable benchmark target.
  2. Gradex records a baseline score.
  3. optimize runs parallel experiment rounds (patch -> benchmark -> gate checks).
  4. Best validated patch and run analytics are surfaced in dashboard and CLI.

Dashboard

Dashboard screenshot: gradex

License

MIT

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

gradex-0.1.1.tar.gz (4.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gradex-0.1.1-py3-none-any.whl (65.4 kB view details)

Uploaded Python 3

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

Hashes for gradex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f2d498a36c6cb8afee3b64ffe1b15355885cbe4fa906f9695b7f09fd3c9f274b
MD5 48603cd25a2768ae22c74534e2a5afed
BLAKE2b-256 86938f8c58da2b2f9482fc8862d9053ba3f738a945d45ab84cf1c1723d925ea9

See more details on using hashes here.

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

Hashes for gradex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b6892aff4d55444377364448352c7a0574fd683eb47286f106a5cc485511468
MD5 ebfd0e43e7d74ae3aa7ef2d8cc3ad1f7
BLAKE2b-256 b24a78aac0b85b6cbe218af53ea969de7a36469298039a64d1f3b28c47c253dd

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