albert-einstein-09/codedark
3
CodeDark: Data Analytics Environment for RL Agents
OpenEnv-compatible multi-turn environment for training AI agents on real business analytics tasks.
Overview
CodeDark is the first data analytics environment in the OpenEnv ecosystem. It challenges AI agents to analyze CSV datasets using Python/Pandas, testing their ability to be data scientists rather than just code executors.
Key Features
- Real Business Tasks: Bank marketing and road safety datasets with genuine analytical questions
- Multi-Turn Interaction: Agents explore data, save notes, ask clarifications, and submit answers
- Shaped Rewards: 80% correctness + 10% efficiency + 10% token cost
- Pre-Benchmarked: 25 curated L5-L6 difficulty tasks validated on 11+ models
Quick Start
Connect to the Environment
from openenv import EnvClient
# Connect to this Space
env = EnvClient.from_hub("openenv/codedark")
# Reset for a new task
obs = env.reset()
print(f"Task: {obs['question']}")
# Execute Python code
obs = env.step({"tool": "run_python", "args": "<code>result = df.shape</code>"})
print(f"Result: {obs['stdout']}")
# Submit answer
obs = env.step({"tool": "submit_answer", "args": "<answer>42.5</answer>"})
print(f"Reward: {obs['reward']}")Available Tools
Datasets
Bank Marketing (750K rows)
- Target: Term deposit subscription prediction
- Features: age, job, marital, education, balance, housing, loan, contact, day, month, duration, campaign
Road Safety (500K rows)
- Target: Accident risk assessment
- Features: roadtype, numlanes, curvature, speedlimit, lighting, weather, timeof_day
Task Difficulty
Reward Structure
API Endpoints
Benchmark Results
Pre-benchmarked on 11+ models with 1,844 completions:
Links
- GitHub: vj-09/codeblue-env
- Leaderboard: analytics-rl.com
- OpenEnv Spec: meta-pytorch/OpenEnv
License
MIT License
Author
Vijay Athithya
- GitHub: @vj-09
- LinkedIn: vijay-athithya
