microsoft/RD-Agent
A Research–Development agent framework for proposing, running, and refining ML experiments
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
RD-Agent is a Python framework for iterative ML experiments. Its Research role proposes changes and its Development role implements them; execution results inform the next round. The two roles can use different models, as in the o3 Research and GPT-4.1 Development benchmark configuration. Scenario selection provides a concrete integration point: the data-science setup uses DS_SCEN to select DataScienceScen or KaggleScen rather than hard-coding one workflow into the CLI.
The package registers rdagent.app.cli:app as its CLI entry point. Its runtime dependencies include pydantic-settings for configuration, NumPy, pandas, and scikit-learn for data and ML work, and the Python docker package. LiteLLM is the default model backend, with separate chat and embedding configuration. The web/ tree and rdagent server_ui provide a separate UI path for interaction and trace viewing; UI coverage does not extend to every scenario.
Key Capabilities & Differentiators
The framework covers whole-pipeline data-science experiments, Kaggle feature engineering and tuning, Qlib-based factor and model iteration, and implementation of models from research reports. It also provides benchmark-driven fine-tuning through rdagent llm_finetune, with Qwen/Qwen2.5-7B-Instruct as an example base model. The demo workflows require chat completion, JSON mode, and embedding queries. Configuration examples cover OpenAI, Azure OpenAI, and experimental DeepSeek chat paired with embeddings served through a LiteLLM proxy.
MLE-bench draws on 75 Kaggle competitions. The reported o3 Research / GPT-4.1 Development configuration averaged 30.22% overall with a standard deviation of 1.5 percentage points across six seeds. Its Lite, medium, and high scores averaged 51.52%, 19.3%, and 26.67%, respectively. Those are results for a specific model pairing and evaluation setup, not expected scores for arbitrary LiteLLM backends or internal datasets.
Trade-offs & Limitations
Compared with a fixed training pipeline, RD-Agent can explore proposed changes instead of merely rerunning predefined steps. The cost is a less predictable run: model calls and experiment executions accumulate across iterations, and generated code and evaluation outputs need review. Treat Docker as one layer of isolation, not as a complete security boundary; restrict mounts, credentials, and network access when running generated code.
The supplied MLE-bench comparison reports 22.4% overall for RD-Agent with o1-preview versus 16.9% for AIDE with o1-preview. The higher RD-Agent score of 30.22% uses the o3/GPT-4.1 pairing, so it does not isolate an architectural advantage. Before adopting either system, compare on representative tasks with equivalent budgets and log both model spend and experiment compute. Hosted endpoints move chat and embedding inference off the host; they do not remove the resource requirements of training or evaluation.
Hardware & Deployment Guide
Use a Linux host with Python 3.10 or later; Python 3.10 and 3.11 are the tested versions identified in the setup material. Install with pip install rdagent or use make dev for a source checkout. Most scenarios need Docker accessible to the runtime account. Configure CHAT_MODEL, EMBEDDING_MODEL, and the required provider credentials in .env, then run rdagent health_check. The runner can be self-hosted, but hosted model endpoints require network access. Offline readiness is not established merely by installing the package.
The v0.8.0 release added RAG MCP integration at the proposal stage. In v1.0.0, localhost UI deployments require UI_SERVER_AUTH_TOKEN, and the General Model upload flow requires a report file instead of a URL or server-side path. Check both changes before migrating local deployments or upload automations. The server_ui interface currently excludes the data_science scenario.
DS_SCEN selects the data-science or Kaggle scenario; DS_LOCAL_DATA_PATH points to local data.rdagent server_ui provides trace viewing but excludes data_science; v1.0.0 requires UI_SERVER_AUTH_TOKEN for localhost deployments.ML teams that want to compare candidate pipelines or reproduce paper models through repeated, measurable experiments on Linux, with room to review generated code and control budgets.
Your workflow is already deterministic, you need verified offline operation or full data-science UI coverage, or you cannot safely run generated code.
Quick Start & Installation
pip install rdagentComparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| RD-Agent ★ | 15.6k | +88 | Python | MIT | A Research–Development agent framework for proposing, running, and refining ML e |
| browser-use | 122.7k | +477 | Python | MIT | Python REPL and CDP for adaptive browser automation |
| langgraph | 45.8k | +293 | Python | MIT | Python graph orchestration for stateful, resumable agents and workflows |
| langchain | 150.4k | +290 | Python | MIT | Modular Python framework for building agents across model providers |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/microsoft/RD-Agent.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about RD-Agent
How should I integrate RD-Agent into an existing ML workflow?
rdagent.app.cli:app as the rdagent command. Check the scenario-specific settings before integrating: the data-science examples use DS_SCEN and DS_LOCAL_DATA_PATH to select a scenario and its data. LiteLLM handles model-provider calls, but that does not establish a stable public API for submitting and managing jobs. For an initial integration, wrap a pinned CLI release and validate its inputs and outputs.Do I need a GPU, and how should I size the host?
Can I self-host RD-Agent for commercial use?
When should I choose RD-Agent over AIDE or a conventional pipeline runner?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy