microsoft/RD-Agent

★ 15,567⑂ 0

Research and development (R&D) is crucial for the enhancement of industrial productivity, especially in the AI era, where the core aspects of R&D are mainly focused on data and models.

About microsoft/RD-Agent

microsoft/RD-Agent is an open-source project on GitHub, mainly written in Python. Research and development (R&D) is crucial for the enhancement of industrial productivity, especially in the AI era It currently holds 15,567 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

Git Homed tracks it on the Automation Agent Trending board and on the AI Automation Agent Trending list.

GitHub Repository Details

Repository microsoft/RD-Agent · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

https://github.com/microsoft/RD-Agent/blob/HEAD/RA-Agent logo 🖥️ Live Demo | 🎥 Demo Video ▶️YouTube | 📖 Documentation | 📄 Tech Report | 📃 Papers

CI CodeQL Dependabot Updates Lint PR Title Release.yml Platform PyPI PyPI - Python Version Release GitHub pre-commit Checked with mypy Ruff Chat Documentation Status Readthedocs Preview arXiv

📰 News

| 🗞️ News | 📝 Description | | -- | ------ | | Agent² RL-Bench Preprint | A benchmark for evaluating LLM agents on end-to-end post-training engineering. See the project page and code. | | ICML 2026 Acceptance | We are thrilled to announce that our paper FT-Dojo: Towards Autonomous LLM Fine-Tuning with Language Agents has been accepted to ICML 2026. The FT-Agent implementation is available in the LLM fine-tuning guide. | | ACL 2026 Findings Acceptance | We are thrilled to announce that our paper Reasoning as Gradient has been accepted to ACL 2026 Findings. Execution traces are available at Gome GPT-5 Traces | | Web UI Release | We release a new frontend that can be built and served by rdagent server_ui for real-time interaction and trace viewing, currently excluding the data_science scenario. | | NeurIPS 2025 Acceptance | We are thrilled to announce that our paper R&D-Agent-Quant has been accepted to NeurIPS 2025 | | Technical Report Release | Overall framework description and results on MLE-bench | | R&D-Agent-Quant Release | Apply R&D-Agent to quant trading | | MLE-Bench Results Released | R&D-Agent currently leads as the top-performing machine learning engineering agent on MLE-bench | | Support LiteLLM Backend | We now fully support LiteLLM as our default backend for integration with multiple LLM providers. | | General Data Science Agent | Data Science Agent | | Kaggle Scenario release | We release Kaggle Agent, try the new features! | | Official WeChat group release | We created a WeChat group, welcome to join! (🗪QR Code) | | Official Discord release | We launch our first chatting channel in Discord (🗪Chat) | | First release | R&D-Agent is released on GitHub |

🧪 Agent² RL-Bench

Project Page · Paper · Code & Quick Start · Microsoft Research

Agent² RL-Bench evaluates whether LLM agents can autonomously engineer end-to-end post-training pipelines, spanning static optimization and stateful online RL.

🏆 The Best Machine Learning Engineering Agent!

MLE-bench is a comprehensive benchmark evaluating the performance of AI agents on machine learning engineering tasks. Utilizing datasets from 75 Kaggle competitions, MLE-bench provides robust assessments of AI systems' capabilities in real-world ML engineering scenarios.

R&D-Agent currently leads as the top-performing machine learning engineering agent on MLE-bench:

| Agent | Low == Lite (%) | Medium (%) | High (%) | All (%) | |---------|--------|-----------|---------|----------| | R&D-Agent o3(R)+GPT-4.1(D) | 51.52 ± 6.9 | 19.3 ± 5.5 | 26.67 ± 0 | 30.22 ± 1.5 | | R&D-Agent o1-preview | 48.18 ± 2.49 | 8.95 ± 2.36 | 18.67 ± 2.98 | 22.4 ± 1.1 | | AIDE o1-preview | 34.3 ± 2.4 | 8.8 ± 1.1 | 10.0 ± 1.9 | 16.9 ± 1.1 |

Notes:

You can inspect the detailed runs of the above results online. For running R&D-Agent on MLE-bench, refer to MLE-bench Guide: Running ML Engineering via MLE-bench

🥇 The First Data-Centric Quant Multi-Agent Framework!

R&D-Agent for Quantitative Finance, in short RD-Agent(Q), is the first data-centric, multi-agent framework designed to automate the full-stack research and development of quantitative strategies via coordinated factor-model co-optimization.

image

Extensive experiments in real stock markets show that, at a cost under $10, RD-Agent(Q) achieves approximately 2× higher ARR than benchmark factor libraries while using over 70% fewer factors. It also surpasses state-of-the-art deep time-series models under smaller resource budgets. Its alternating factor–model optimization further delivers excellent trade-off between predictive accuracy and strategy robustness.

You can learn more details about RD-Agent(Q) through the paper and reproduce it through the documentation.

Data Science Agent Preview

Check out our demo video showcasing the current progress of our Data Science Agent under development:

https://github.com/user-attachments/assets/3eccbecb-34a4-4c81-bce4-d3f8862f7305

🌟 Introduction

https://github.com/microsoft/RD-Agent/blob/HEAD/Our focused scenario

R&D-Agent aims to automate the most critical and valuable aspects of the industrial R&D process, and we begin with focusing on the data-driven scenarios to streamline the development of models and data. Methodologically, we have identified a framework with two key components: 'R' for proposing new ideas and 'D' for implementing them. We believe that the automatic evolution of R&D will lead to solutions of significant industrial value.

R&D is a very general scenario. The advent of R&D-Agent can be your

You can click the links above to view the demo. We're continuously adding more methods and scenarios to the project to enhance your R&D processes and boost productivity.

Additionally, you can take a closer look at the examples in our 🖥️ Live Demo.

https://github.com/microsoft/RD-Agent/blob/HEAD/Watch the demo

⚡ Quick start

RD-Agent currently only supports Linux.

You can try above demos by running the following command:

🐳 Docker installation.

Users must ensure Docker is installed before attempting most scenarios. Please refer to the official 🐳Docker page for installation instructions. Ensure the current user can run Docker commands without using sudo. You can verify this by executing docker run hello-world.

🐍 Create a Conda Environment

  conda create -n rdagent python=3.10
  
  conda activate rdagent
  

🛠️ Install the R&D-Agent

For Users

  pip install rdagent
  

For Developers

  git clone https://github.com/microsoft/RD-Agent
  cd RD-Agent
  make dev
  

More details can be found in the development setup.

💊 Health check

  rdagent health_check --no-check-env
  

⚙️ Configuration

You can set your Chat Model and Embedding Model in the following ways:

> 🔥 Attention: We now provide experimental support for DeepSeek models! You can use DeepSeek's official API for cost-effective and high-performance inference. See the configuration example below for DeepSeek setup.

Option 1: Unified API base for both models

Configuration Example: OpenAI Setup :

  cat << EOF  > .env
  # Set to any model supported by LiteLLM.
  CHAT_MODEL=gpt-4o 
  EMBEDDING_MODEL=text-embedding-3-small
  # Configure unified API base
  OPENAI_API_BASE=<your_unified_api_base>
  OPENAI_API_KEY=<replace_with_your_openai_api_key>
  

Configuration Example: Azure OpenAI Setup :

> Before using this configuration, please confirm in advance that your Azure OpenAI API key supports embedded models.

  cat << EOF  > .env
  EMBEDDING_MODEL=azure/
  CHAT_MODEL=azure/
  AZURE_API_KEY=<replace_with_your_openai_api_key>
  AZURE_API_BASE=<your_unified_api_base>
  AZURE_API_VERSION=
  

Option 2: Separate API bases for Chat and Embedding models

  cat << EOF  > .env
  # Set to any model supported by LiteLLM.
  # Configure separate API bases for chat and embedding
  
  # CHAT MODEL:
  CHAT_MODEL=gpt-4o 
  OPENAI_API_BASE=<your_chat_api_base>
  OPENAI_API_KEY=<replace_with_your_openai_api_key>

# EMBEDDING MODEL: # TAKE siliconflow as an example, you can use other providers. # Note: embedding requires litellm_proxy prefix EMBEDDING_MODEL=litellm_proxy/BAAI/bge-large-en-v1.5 LITELLM_PROXY_API_KEY=<replace_with_your_siliconflow_api_key> LITELLM_PROXY_API_BASE=https://api.siliconflow.cn/v1

Configuration Example: DeepSeek Setup :

>Since many users encounter configuration errors when setting up DeepSeek. Here's a complete working example for DeepSeek Setup:

  cat << EOF  > .env
  # CHAT MODEL: Using DeepSeek Official API
  CHAT_MODEL=deepseek/deepseek-chat 
  DEEPSEEK_API_KEY=<replace_with_your_deepseek_api_key>

# EMBEDDING MODEL: Using SiliconFlow for embedding since deepseek has no embedding model. # Note: embedding requires litellm_proxy prefix EMBEDDING_MODEL=litellm_proxy/BAAI/bge-m3 LITELLM_PROXY_API_KEY=<replace_with_your_siliconflow_api_key> LITELLM_PROXY_API_BASE=https://api.siliconflow.cn/v1

Notice: If you are using reasoning models that include thought processes in their responses (such as \ tags), you need to set the following environment variable:

  REASONING_THINK_RM=True
  

You can also use a deprecated backend if you only use OpenAI API or Azure OpenAI directly. For this deprecated setting and more configuration information, please refer to the documentation.

  rdagent health_check
  

🚀 Run the Application

The 🖥️ Live Demo is implemented by the following commands(each item represents one demo, you can select the one you prefer):

  rdagent fin_quant
  
  rdagent fin_factor
  
  rdagent fin_model
  
  # 1. Generally, you can run this scenario using the following command:
  rdagent fin_factor_report --report-folder=

# 2. Specifically, you need to prepare some financial reports first. You can follow this concrete example: wget https://github.com/SunsetWolf/rdagent_resource/releases/download/reports/all_reports.zip unzip all_reports.zip -d git_ignore_folder/reports rdagent fin_factor_report --report-folder=git_ignore_folder/reports

  # 1. Generally, you can run your own papers/reports with the following command:
  rdagent general_model

# 2. Specifically, you can do it like this. For more details and additional paper examples, use rdagent general_model -h: rdagent general_model "https://arxiv.org/pdf/2210.09789"

  # Generally, you can run the data science program with the following command:
  rdagent data_science --competition

# Specifically, you need to create a folder for storing competition files (e.g., competition description file, competition datasets, etc.), and configure the path to the folder in your environment. In addition, you need to use chromedriver when you download the competition descriptors, which you can follow for this specific example:

# 1. Download the dataset, extract it to the target folder. wget https://github.com/SunsetWolf/rdagent_resource/releases/download/ds_data/arf-12-hours-prediction-task.zip unzip arf-12-hours-prediction-task.zip -d ./git_ignore_folder/ds_data/

# 2. Configure environment variables in the .env file dotenv set DS_LOCAL_DATA_PATH "$(pwd)/git_ignore_folder/ds_data" dotenv set DS_CODER_ON_WHOLE_PIPELINE True dotenv set DS_IF_USING_MLE_DATA False dotenv set DS_SAMPLE_DATA_BY_LLM False dotenv set DS_SCEN rdagent.scenarios.data_science.scen.DataScienceScen

# 3. run the application rdagent data_science --competition arf-12-hours-prediction-task

NOTE: For more information about the dataset, please refer to the documentation.

> Using tabular-playground-series-dec-2021 as an example.
> 1. Register and login on the Kaggle website.
> 2. Configuring the Kaggle API.
> (1) Click on the avatar (usually in the top right corner of the page) -> Settings -> Create New Token, A file called kaggle.json will be downloaded.
> (2) Move kaggle.json to ~/.config/kaggle/
> (3) Modify the permissions of the kaggle.json file. Reference command: chmod 600 ~/.config/kaggle/kaggle.json
> 3. Join the competition: Click Join the competition -> I Understand and Accept at the bottom of the competition details page.
  # Generally, you can run the Kaggle competition program with the following command:
  rdagent data_science --competition

# 1. Configure environment variables in the .env file mkdir -p ./git_ignore_folder/ds_data dotenv set DS_LOCAL_DATA_PATH "$(pwd)/git_ignore_folder/ds_data" dotenv set DS_CODER_ON_WHOLE_PIPELINE True dotenv set DS_IF_USING_MLE_DATA True dotenv set DS_SAMPLE_DATA_BY_LLM True dotenv set DS_SCEN rdagent.scenarios.data_science.scen.KaggleScen

# 2. run the application rdagent data_science --competition tabular-playground-series-dec-2021

  # See the full setup, benchmark descriptions, dataset notes, and examples:
  # rdagent/app/finetune/llm/README.md
  # Configure FT_TARGET_BENCHMARK and FT_BENCHMARK_DESCRIPTION before running.
  rdagent llm_finetune --base-model Qwen/Qwen2.5-7B-Instruct
  

🖥️ Monitor the Application Results

Streamlit UI

Use the Streamlit UI to view run logs, especially for the data_science scenario.

rdagent ui --port 19899 --log-dir  --data-science

About the data_science parameter: If you want to see the logs of the data science scenario, set the data_science parameter to True; otherwise set it to False.

Web UI

We also provide a separate web frontend in web/ for the Flask backend started by server_ui.

NOTE: This web UI is different from rdagent ui. The current web UI does not support the data_science scenario yet. For the data_science scenario, please continue to use rdagent ui --data-science.

cd web
npm install

To build the frontend for the Flask backend, generate the static assets into the default directory used by server_ui:

cd web
npm run build:flask

By default, server_ui serves static files from ./git_ignore_folder/static. If you need a different location, set the UI_STATIC_PATH environment variable before starting the backend.

Start the Flask backend and serve the built frontend together with the real-time APIs:

export UI_SERVER_AUTH_TOKEN=''
rdagent server_ui --port 19899

After that, open http://127.0.0.1:19899/?token= once in your browser.

Web UI security and remote access

The Flask backend listens on 127.0.0.1 by default. All API access requires authentication, including localhost: a malicious website can send requests to a browser's local services. Configure a long, random UI_SERVER_AUTH_TOKEN before starting the server (for example, generate one with `python -c 'import secrets; print(secrets.token_urlsaf

GitHub Stars & Activity

15,567Stars
0Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars15,567
Forks0
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

langgenius / dify

Python★ 162,246⑂ 0
→
2

harry0703 / MoneyPrinterTurbo

Python★ 147,111⑂ 0
→
3

Panniantong / Agent-Reach

Python★ 116,468⑂ 0
→
4

D4Vinci / Scrapling

Python★ 107,481⑂ 0
→
5

mvanhorn / last30days-skill

Python★ 78,936⑂ 0
→
6

apache / airflow

Python★ 47,789⑂ 0
→
7

feder-cr / Jobs_Applier_AI_Agent

Python★ 32,712⑂ 0
→
8

FujiwaraChoki / MoneyPrinterV2

Python★ 32,647⑂ 0
→

More Trending Repositories