You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-18Lines changed: 33 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ Unlike single-turn RL pipelines that treat interaction as one growing prompt-res
16
16
17
17
## News
18
18
19
+
-[2026.05.29]**Agent-R1 integrates [StepPO](https://arxiv.org/abs/2604.18401), expands recipe coverage, and releases processed data.** The framework now includes StepPO-style training support together with recipe integrations for HotpotQA, ALFWorld, WebShop, and academic paper search. Processed datasets are available on [ModelScope](https://www.modelscope.cn/datasets/Melmaphother/Agent-R1-data).
19
20
-[2026.03.23]**Agent-R1 v0.1.0 is the first official release of the refactored architecture.** It introduces the **Step-level MDP** foundation and new **Layered Abstractions**. The previous implementation is archived on the `legacy` branch.
20
21
-[2026.03.04]**[Claw-R1](https://agentr1.github.io/Claw-R1/) is released.** It extends Agentic RL to general agents such as OpenClaw through a middleware-style design. See [AgentR1/Claw-R1](https://github.com/AgentR1/Claw-R1).
21
22
@@ -25,7 +26,7 @@ Unlike single-turn RL pipelines that treat interaction as one growing prompt-res
25
26
-[2026.01.10]**PaperScout** is released: an autonomous academic paper search agent trained with Agent-R1 and Proximal Sequence Policy Optimization. Read the paper [here](https://arxiv.org/abs/2601.10029).
26
27
-[2025.11.18] The Agent-R1 technical report is released on [arXiv](https://arxiv.org/abs/2511.14460).
27
28
-[2025.05.06] Tool environments are redesigned to support more flexible agent-tool interaction patterns.
28
-
-[2025.05.06] GRPO and REINFORCE++ training crashes caused by NaN values are fixed. See [issue #30](https://github.com/0russwest0/Agent-R1/issues/30).
29
+
-[2025.05.06] GRPO and REINFORCE training crashes caused by NaN values are fixed. See [issue #30](https://github.com/0russwest0/Agent-R1/issues/30).
29
30
-[2025.04.01] Basic inference scripts and an interactive chat interface are added.
30
31
-[2025.03.18] Multi-modal support is added for vision-language model agents.
31
32
-[2025.03.18]`verl` is moved to a git submodule and Agent-R1 extensions are separated from upstream code.
@@ -57,10 +58,10 @@ Agent-R1 uses layered abstractions so new tasks can reuse the same trainer witho
57
58
58
59
| Layer | Responsibility | When to Use |
59
60
|---|---|---|
60
-
|`AgentFlowBase`| Full control over prompt construction, model calls, and step assembly. |Custom workflows or experimental agent logic. |
61
-
|`AgentEnvLoop`|The main multi-step loop connecting model generation with environment `reset()` / `step()`. |Most agentic RL tasks. |
62
-
|`AgentEnv`| Task environment interface returning observations, rewards, termination, and metadata. |When your task has state transitions. |
63
-
|`ToolEnv`| Built-in environment for parsing tool calls, executing tools, and feeding observations back. | Tool-augmented tasks such as GSM8K-tool. |
61
+
|`AgentFlowBase`| Full control over prompt construction, model calls, branching, context management, and step assembly. |Complex custom agents that do not fit a standard environment loop. |
62
+
|`AgentEnvLoop`|Generic loop connecting model generation with an environment's`reset()` / `step()` interface. |Agent tasks that can be modeled as environment interaction, including traditional RL-style environments. |
63
+
|`AgentEnv`| Task environment interface returning observations, rewards, termination, and metadata. |Implementing the full environment logic for `AgentEnvLoop`. |
64
+
|`ToolEnv`| Built-in environment for standard multi-turn tool calling. | Tool-augmented tasks where you only need to define tools. |
64
65
|`BaseTool`| Standard interface for registering executable tools. | Adding calculators, search tools, APIs, or task-specific checkers. |
65
66
66
67
The main loop is:
@@ -79,30 +80,44 @@ Agent-R1 uses the same environment setup as [verl](https://verl.readthedocs.io/e
79
80
The recommended path is:
80
81
81
82
1. Read the [Getting Started](https://agentr1.github.io/Agent-R1/getting-started/) page for the minimal setup flow.
82
-
2. Use [`examples/data_preprocess/gsm8k.py`](examples/data_preprocess/gsm8k.py) and [`examples/run_qwen2.5-3b.sh`](examples/run_qwen2.5-3b.sh) as a sanity check that the environment is wired correctly.
83
-
3. Move to the [Agent Task Tutorial](https://agentr1.github.io/Agent-R1/tutorials/agent-task/) for the main Agent-R1 workflow based on multi-step interaction and tool use.
83
+
2. Download the processed data release from [ModelScope](https://www.modelscope.cn/datasets/Melmaphother/Agent-R1-data), then place or symlink each task's files to the paths expected by the corresponding recipe.
84
+
3. Use [`examples/gsm8k/run_steppo.sh`](examples/gsm8k/run_steppo.sh) as a sanity check that the environment is wired correctly.
85
+
4. Move to the [Agent Task Tutorial](https://agentr1.github.io/Agent-R1/tutorials/agent-task/) for the minimal GSM8K + Tool example based on `ToolEnv + BaseTool`.
86
+
5. Read [Recipes and Algorithms](https://agentr1.github.io/Agent-R1/tutorials/recipes-and-algorithms/) for the current task integrations and launch-script layout.
87
+
88
+
Download the processed data with either the ModelScope CLI or git:
This stage is only a **setup check**. It helps confirm that your environment, model path, dataset path, and training stack are wired correctly.
95
110
96
-
### Stage 2: Run the Main Agent-R1 Workflow
111
+
### Stage 2: Try the Minimal Tool-Calling Example
97
112
98
-
Prepare the tool-augmented dataset and launch the multi-step agent training script:
113
+
GSM8K + Tool is the simplest `ToolEnv + BaseTool` example. Use the processed GSM8K tool files from the data release, or regenerate the tool-augmented dataset locally, then launch the multi-step tool-calling script:
This is the main Agent-R1 path, where `AgentEnvLoop`drives multi-step rollout and `ToolEnv` handles tool calls and environment feedback.
120
+
This path uses the generic `AgentEnvLoop`with the built-in `ToolEnv` and recipe-local `calc_gsm8k_reward`tool. The plain GSM8K script remains a single-turn environment sanity check.
106
121
107
122
Core concepts:
108
123
@@ -118,17 +133,17 @@ The Agent-R1 report evaluates Qwen3-4B across representative agent scenarios. Th
0 commit comments