Documentation

Install GradeX and run your first optimization loop.

GradeX discovers a measurable target, creates a baseline, runs parallel experiments in isolated git worktrees, and keeps only patches that improve your metric and pass your gates.

Quickstart

Run these commands in any Python project with git initialized.

pip install gradex gradex install cursor gradex discover "make the parser faster" --provider groq --api-key <key> gradex optimize --provider groq --api-key <key> gradex dashboard

CLI reference

CommandDescriptionCommon flags
gradex installInstall GradeX rules or skills into a coding host.cursor, claude-code
gradex doctorCheck whether your environment is ready.cursor, claude-code
gradex dashboardStart the live dashboard on localhost.--port, --no-browser
gradex upgradeCheck PyPI for a newer GradeX release.none
gradex discoverAnalyze the repo and capture a baseline score.--provider, --model, --api-key
gradex optimizeRun the parallel optimization loop.--subagents, --budget, --stall
gradex statsShow analytics for a run and export JSON or CSV.--json, --csv, --run-id
gradex historyList recent optimization runs.--limit

Provider setup

Use CLI flags for a quick start or store defaults in ~/.gradex/config.toml.

[llm] provider = "groq" model = "llama-3.3-70b-versatile" api_key = "gsk_..." # Other providers: anthropic, openai, ollama

Ollama

Fully local. Run ollama serve and pull a model before starting.

Anthropic

Use Claude models when you need deeper code reasoning.

OpenAI

Use GPT models through the OpenAI-compatible path.

Dashboard

The dashboard gives you trust while the optimizer runs: latest run, experiments, pass rate, score chart, and trace logs.

gradex dashboard # Open http://127.0.0.1:8080
  • Experiment table shows status, score, delta from baseline, and gate result.
  • Score chart plots only passed experiments.
  • Analytics cards show pass rate, improvement, best score, and duration.

Analytics

Use stats and history to inspect run quality, export data, and prove that changes improved real metrics.

gradex stats gradex stats --json run.json --csv run.csv gradex history --limit 20

Host plugins

GradeX works directly from the CLI, but it can also install guidance into coding hosts.

HostInstall commandWhat it adds
Cursorgradex install cursorProject rules in .cursor/rules/.
Claude Codegradex install claude-codeDiscover and optimize skill files.