Python client for RIDER — autonomous prompt optimization engine. 17 WIN / 0 LOSE across 6 benchmarks.
Project description
RIDER — Autonomous Prompt Optimization
Python client for RIDER (Reflective Iterative Diversity-Enhanced Reasoning) — a metaheuristic prompt optimization engine that evolves prompts through evolutionary algorithms, multi-armed bandits, and error-directed refinement.
17 WIN / 0 LOSE across 6 benchmarks (GSM8K, AG_News, SQuAD 2.0, CommonGen, XSum, CodeSearchNet) on 3 LLM models (Claude Haiku 4.5, GPT-4.1, DeepSeek V3.2). Published at FSE 2026 (CORE A*) and FRUCT 39 (IEEE).
Installation
pip install riderprompt
Quick Start
Get your API key at riderprompt.com, then:
from rider import Rider
client = Rider(api_key="rider_sk_...")
result = client.optimize(
prompt="Write a summary of this article",
mode="standard",
)
print(result.optimized_prompt)
print(f"Improvement: {result.improvement:.1f}%")
Optimization Modes
| Mode | Time | API Calls | Best For |
|---|---|---|---|
light |
~15 sec | 5 | Quick rewrite, 2 strategies compete |
blitz |
~30 sec | 11 | 4 strategies + merge + error refinement |
standard |
~1 min | 19 | Full 3-phase PHASE REACTOR (default) |
ultra |
~2 min | 25 | 4 phases + adversarial review |
Features
- 🧬 Evolutionary algorithms — 9 operators (EDA mutation, differential evolution, genetic crossover, semantic paraphrase, etc.)
- 🎰 Adaptive operator selection — Windowed Thompson Sampling with Bayesian elimination
- 🎯 Error-directed evolution — feeds misclassified examples back into generation
- ⚡ Evaluate-first (μ+λ) retention — diversity tiebreaking
- 🔄 8 exclusive protocols — PRISM, NEXUS, PHASE REACTOR, OPERATOR FORGE, ECHO, CHIMERA, VORTEX, MARS CONFIG
Examples
Optimize a prompt with custom validation data
result = client.optimize(
prompt="Classify this text as positive or negative",
mode="ultra",
validation_examples=[
{"input": "I love this!", "expected": "positive"},
{"input": "This is terrible", "expected": "negative"},
],
)
Async usage with multiple prompts
import asyncio
from rider import AsyncRider
async def optimize_many(prompts):
client = AsyncRider(api_key="rider_sk_...")
tasks = [client.optimize(p, mode="light") for p in prompts]
results = await asyncio.gather(*tasks)
return results
Pricing
- Free — 3 optimizations/day (Light + Blitz modes)
- Pro ($9.99/mo) — 50/day, all 4 modes, REST API
- Ultra ($29.99/mo) — Unlimited, priority queue
Citation
If you use RIDER in your research, please cite:
@inproceedings{dragomirov2026rider,
title={{RIDER}: Evolutionary Prompt Optimization with Adaptive Operator Selection for Software Engineering},
author={Dragomirov, Daglar and Kulin, Nikita and Muravyov, Sergey and Makarov, Ilya and Sukhorukov, Daniil and Mozikov, Mikhail},
booktitle={Companion Proceedings of the 34th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (FSE Companion '26)},
year={2026},
doi={10.1145/3803437.3807393},
}
Links
- Website: riderprompt.com
- API Documentation: riderprompt.com/api-docs
- Developer Portal: riderprompt.com/developer
- Paper: FSE 2026 Companion Proceedings
License
MIT License — see LICENSE file.
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 riderprompt-0.1.1.tar.gz.
File metadata
- Download URL: riderprompt-0.1.1.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6c30f967d19509974d908d0d3c6e00efbbd442b4a073d0a154380b30ef514ab
|
|
| MD5 |
f7aa2e7e366e4416a386b51ad5ba2266
|
|
| BLAKE2b-256 |
1c3285981880a5674e46a0f913d6c9461fffe152c1e2a6182756c9cf86dd7ee0
|
File details
Details for the file riderprompt-0.1.1-py3-none-any.whl.
File metadata
- Download URL: riderprompt-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee1137cc8ffb33b68f2ba08d5daaee6713be61df731987a48c4fb4ff9eb1bb1e
|
|
| MD5 |
409b09bb4fef0b375e0284237f95dc4b
|
|
| BLAKE2b-256 |
83b40ea86a929bce253c1b4a6c067d014e2adb98bb21a1c1bc2f5d73933cb64a
|