|
7 | 7 |
|
8 | 8 | --- |
9 | 9 |
|
| 10 | +## What's Different in this Fork (with-Claudex) |
| 11 | +
|
| 12 | +This fork replaces RD-Agent's OpenAI API dependency with **Claude Code + Codex CLI**, achieving a **control inversion** where Claude Code orchestrates Python/Qlib as tools. |
| 13 | +
|
| 14 | +### Key Changes |
| 15 | +
|
| 16 | +| Component | Original (OpenAI) | This Fork (Claude) | |
| 17 | +|-----------|-------------------|---------------------| |
| 18 | +| LLM Backend | OpenAI API (GPT-4) | LiteLLM + Claude (default) | |
| 19 | +| Hypothesis Generation | Python → OpenAI API | Claude Code Planner subagent | |
| 20 | +| Code Generation | Python → OpenAI API | Codex CLI (`codex exec --full-auto`) or Claude subagent | |
| 21 | +| Evaluation | Python → OpenAI API | Claude Code Evaluator subagent | |
| 22 | +| Orchestration | Python RDLoop | Claude Code orchestrates via Bash + Agent tool | |
| 23 | +
|
| 24 | +### Architecture |
| 25 | +
|
| 26 | +``` |
| 27 | +Claude Code (Orchestrator) |
| 28 | + ├── Planner → Hypothesis + experiment spec (Agent tool) |
| 29 | + ├── Coder → factor.py generation (Codex CLI or Agent tool) |
| 30 | + ├── Backtest → python factor.py (Bash, RD-Agent venv) |
| 31 | + ├── IC Calc → scripts/calc_ic.py (Bash) |
| 32 | + └── Evaluator → Metrics evaluation (Agent tool) |
| 33 | +``` |
| 34 | +
|
| 35 | +### Added Files |
| 36 | +
|
| 37 | +- `rdagent/adapters/` — 5-slot Adapter layer bridging Claude output to RD-Agent data structures |
| 38 | +- `test/adapters/` — 38 unit tests for the adapter layer |
| 39 | +
|
| 40 | +### Quick Start |
| 41 | +
|
| 42 | +```bash |
| 43 | +cd RD-Agent-with-Claudex |
| 44 | +source .venv/bin/activate |
| 45 | +pytest test/adapters/ -v # Run adapter tests (38 pass) |
| 46 | +``` |
| 47 | +
|
| 48 | +For the full R&D loop setup, see the [parent repository README](https://github.com/rozwer/Qlib-with-Claudex). |
| 49 | +
|
| 50 | +--- |
| 51 | +
|
| 52 | +*Below is the original Microsoft RD-Agent README for reference.* |
| 53 | +
|
| 54 | +--- |
| 55 | +
|
10 | 56 | <h4 align="center"> |
11 | 57 | <img src="docs/_static/logo.png" alt="RA-Agent logo" style="width:70%; "> |
12 | 58 | |
|
0 commit comments