Model or dataset
microsoft/RD-Agent avatar
microsoft/RD-Agent

RD-Agent: Microsoft's LLM-Driven Loop for Automating Machine Learning R&D

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. We are committed to automating these high-value generic R&D processes through R&D-Agent, which lets AI drive data-driven AI. 🔗https://aka.ms/RD-Agent-Tech-Report

14,643 stars1,914 forksPythonMIT

At a glance

What is it?
RD-Agent is an open-source framework from Microsoft that uses LLM agents to automate data science and machine learning engineering tasks. It currently leads the MLE-bench leaderboard, but its complexity and scenario-specific setup demand careful evaluation.
Who is it for?
Adopt RD-Agent if you are a research team or an ML platform group that needs to automate end-to-end data science or LLM fine-tuning pipelines, and you have the engineering capacity to manage Docker-based isolation and LLM API costs. Do not adopt it if you expect a plug-and-play tool for a single Kaggle-style task, or if your environment cannot support Linux containers and multiple concurrent LLM calls.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

What RD-Agent Automates and Who It Serves

The framework is designed to be scenario-agnostic, with at least three concrete scenarios visible in the repository: a general data science agent, an LLM fine-tuning agent (FT-Agent), and an RL post-training benchmark (Agent² RL-Bench). This breadth means it is not a single tool but a platform for building automated R&D pipelines. The audience is therefore technical: you need to be comfortable with Python, Docker, and LLM API orchestration to get value from it. The project's own documentation and tech report (linked as https://aka.ms/RD-Agent-Tech-Report) are the primary sources for deeper understanding, but the README alone shows that this is an ambitious, research-oriented effort rather than a polished end-user product.

The Mechanism: A Closed Loop of Proposal, Implementation, and Feedback

Execution is not on the user's local machine alone. The repository's use of Docker, implied by the platform badge and the need for isolated execution, suggests that each agent run happens in a container to avoid polluting the host and to ensure reproducibility. The README does not give explicit Docker commands, but the presence of a `rdagent` CLI and the requirement for Linux as the platform point to a container-centric workflow. The loop is asynchronous by nature: an agent can run for hours, making multiple LLM calls and code executions. This is a fundamental difference from a typical script: you are not running a single function but supervising a long-running process that consumes tokens and compute.

Getting It Running: Installation and Configuration Keys

A concrete example of a scenario is the Kaggle agent, which is part of the data science scenario. The README links to a documentation page, but it does not show the exact command. Based on the pattern, you would likely run something like `rdagent run --scenario data_science --task '...'`, but this is an inference, not a fact from the material. The safest path is to follow the quick start in the documentation, which is linked but not reproduced here. The project has a release cycle, with v0.8.0 from November 2025, so the CLI interface may have changed since earlier versions. Always consult the release notes for breaking changes.

Where It Falls Short: Limitations and Wrong-Tool Cases

A more fundamental concern is that the framework's 'R&D' nature means it can generate code that is plausible but incorrect. The agent loop is designed to catch errors through execution, but if the metric is mis-specified or the data has subtle leakage, the agent may converge on a solution that looks good on the validation set but fails in production. The README does not claim any safeguards against such issues, so users must bring their own evaluation discipline.

A Real Alternative: AIDE and the Landscape of ML Agents

The key takeaway is that RD-Agent is not the only option, and the choice depends on whether you want a framework that is tightly integrated with a specific loop (RD-Agent) or one that is more exploratory (AIDE). The benchmark numbers are a starting point, but they are from a controlled environment; your own data may favor one approach over the other.

Maintenance, Upgrade Cost, and License

The dependency on LiteLLM is a double-edged sword: it simplifies provider integration, but you are also dependent on LiteLLM's maintenance and its support for the latest models. If LiteLLM lags behind a new model release, you may need to wait or work around it. The project uses pre-commit, mypy, and Ruff, which are good signs for code quality, but they do not affect your upgrade cost directly. Overall, the maintenance cost is moderate to high, typical for a research-grade framework that is still evolving.

What the MLE-Bench Results Really Tell You

The project also has a paper on quant trading (R&D-Agent-Quant) and a NeurIPS 2025 acceptance, which indicates academic validation. However, the README does not provide details on how to use the quant scenario, so that remains a research output rather than a ready-to-use feature. The same applies to the RL benchmark, which is for evaluating agents, not for solving your RL problems.

Editorial conclusion

Adopt RD-Agent if you are a research team or an ML platform group that needs to automate end-to-end data science or LLM fine-tuning pipelines, and you have the engineering capacity to manage Docker-based isolation and LLM API costs. Do not adopt it if you expect a plug-and-play tool for a single Kaggle-style task, or if your environment cannot support Linux containers and multiple concurrent LLM calls. Before committing, verify the specific scenario you need (data_science, finetune, or rl) has a maintained README and that your target LLM provider is supported via LiteLLM, since the framework's value is tightly coupled to the quality and cost of the underlying model. The MLE-bench results are promising, but they come from a controlled benchmark, not from your own data, so run a small pilot with your own dataset first.

Official sources

  1. License: MIT
  2. microsoft/RD-Agent on GitHub
  3. Project website
  4. README
  5. Releases
Community notes

Community notes