๐จ ForgeRL โ Multi-Agent Software Engineering RL Environment
An OpenEnv-compatible reinforcement learning environment where an LLM meta-agent learns to orchestrate 9 specialized sub-agents to autonomously build working software from natural-language specifications.
Meta PyTorch ร HuggingFace OpenEnv Hackathon 2026
Reset the environment, then step through the SDLC workflow one action at a time.
1 ยท Reset
Difficulty Tier (1=simple CRUD โ 5=distributed systems)
2 ยท Take Action
Orchestration Action
Episode History
Action | Reward | Phase |
|---|---|
Full Episode โ Heuristic Policy
Runs a complete SDLC episode using the optimal heuristic workflow:
Intake โ Architect โ Planner โ [QA โ Coder ร N] โ Oversight โ Security โ Finalize
No LLM key required โ runs in simulated mode so sub-agents return deterministic outputs instantly.
Difficulty Tier
ForgeRL Architecture
Stack
| Layer | Component | Role |
|---|---|---|
| Environment | ForgeEnvironment |
OpenEnv reset() / step() / state |
| Sub-Agents | 9 specialists | Intake ยท Architect ยท Planner ยท QA ยท Coder ยท Recovery ยท Security ยท Oversight ยท Reviewer |
| Rewards | 11 components | Dense shaping + sparse terminal |
| Curriculum | 5 tiers | Auto-promotes at 70% success, demotes at 25% |
Episode FSM
IDLE
โโ intake โ specification โ architecture โ planning
โโ execution
โโ task_qa โ task_code โ task_recovery
โโ security_audit โ done
Reward Components
| Component | Type | Value |
|---|---|---|
| Phase transition | Dense | +0.5 |
| Task completion | Dense | +2.0 |
| Recovery success | Dense | +1.0 |
| Oversight bonus | Dense | +0.5 |
| Valid delegation | Dense | +0.1 |
| Step cost | Dense | โ0.01 |
| Invalid action | Dense | โ1.0 |
| Test pass rate | Terminal | ร10.0 |
| Code quality | Terminal | ร5.0 |
| Full success | Terminal | +20.0 |
| Token scaling | Dense | ร0.1 / 1K tokens |
Training Pipeline (GRPO + Unsloth)
Qwen2.5-Coder-3B โ Unsloth 4-bit QLoRA load
โ GRPO rollouts (G=8 per prompt)
โ ForgeRL reward (environment execution)
โ TRL GRPOTrainer update
โ Trained meta-agent
Results (300 GRPO steps on free Colab T4)
| Metric | Baseline | Trained |
|---|---|---|
| Mean reward | 0.14 | 0.82 |
| Task success | 8% | 81% |
| Recovery rate | 0% | 73% |
Links
- ๐ Colab:
training/ForgeRL_Training.ipynb - ๐ฅ Train locally:
python training/train_forgerl.py --steps 500 - ๐ฌ Demo:
python demo/run_demo.py --tier 1 - ๐ฆ Install:
pip install -e .[deploy]
Adaptive curriculum statistics โ tracks episode success rate per tier and auto-promotes / demotes.