Skip to main content
A single-turn coding agent for competition-style programming problems. The model emits reasoning followed by a fenced ```python block; the evaluator extracts the last block and runs it against hidden test cases.

Pattern

Architecture

Long chain-of-thought reasoning happens inside the assistant message — there is no multi-turn revise/feedback loop. This matches the original deepcoder training setup.

Install

Dataset

This pulls agentica-org/DeepCoder-Preview-Dataset (primeintellect + taco + lcbv5 train; codeforces + lcbv5 test) and normalizes the test schemas (TACO’s nested dict → flat list).

Eval

Verified end-to-end: rllm eval deepcoder --max-examples 10 against gpt-5.4-mini reports 5/10 correct (50% accuracy) with per-item rewards split mixed 1.0 / 0.0.

Training

Key code

The flow is a single LLM call — all the reasoning lives inside the one assistant message:
The evaluator delegates to rllm.rewards.code_reward.RewardCodeFn, which runs the extracted code against the hidden tests in a sandboxed subprocess.

Files

On GitHub

cookbooks/deepcoder

Full source, README, and runnable launch scripts