Chinawaltstephen/CaPtain
CaPtain: A Pipeline for Post-Training Code-as-Policy Robot Agents — CaPtain-Harness, SFT and RL training code, benchmark adapters
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
🤖 CaPtain: A small model that codes its way to robot control
Code-as-policy, not a VLA.
CaPtain is an open, all-stage pipeline that post-trains a small vision-language model into a code-as-policy (CaP) robot agent. Instead of predicting actions directly, the agent writes Python against low-level perception and motion primitives in a sandboxed harness, reads the receipts of its own calls, and decides when to call finish() itself. The full release includes CaPtain-Harness, SFT and RL training code, benchmark adapters, data, and weights for CaPtain-4B.
✨ Highlights
- CaPtain-Harness: A persistent, sandboxed Python session with 22 low-level capabilities (perception, geometric measurement, IK-level motion) and
finish(). Every call returns a text receipt. It runs on LIBERO, LIBERO-PRO/Plus/MAX, RoboTwin 2.0, RoboDojo, SimplerEnv, CaP-Bench and real robots. - Code-as-policy control: The agent has no high-level skills and no VLA. It controls the robot purely by writing Python, interprets its own call receipts, and must call
finish()to end a task. - SFT then RL with a simulator critic: Training starts with SFT on synthetic agent trajectories collected in the harness, then moves to RL with a small simulator critic. The critic reads simulator physical state (object poses, grasp state, sub-goal progress) and turns the change in its predicted success across each model request into credit for that request. The policy never sees this state.
- CaPtain-4B: Qwen3.5-4B after SFT and RL. At test time it uses neither a frontier model nor a benchmark-trained VLA.
- Fully open stack: SFT data, model weights, the harness (included as a pinned git submodule), SFT and RL training code, streaming rollout servers, critic co-training, and a run supervisor.
- Strong results across benchmarks: Gains from SFT to RL on the LIBERO family, with zero-shot transfer to RoboTwin 2.0, SimplerEnv, CaP-Bench, and RoboDojo.
💡 Why it matters
CaPtain shows that a small, pure code-as-policy model can reach competitive performance without relying on high-level skills or a VLA. By keeping the policy blind to ground-truth simulator state and using a separate simulator critic to assign per-request credit, the RL signal comes from execution feedback while test-time conditions stay closer to what the agent can actually sense through the harness. With its open, all-stage pipeline, CaPtain makes reproducing and extending code-as-policy robot agents much more accessible.
#Robotics #CodeAsPolicy #VisionLanguageModel #EmbodiedAI #TiniX
Similar Projects
Discover other similar projects and AI models.
Manipulation Skill Framework, an open source GPU parallelized robotics simulator and benchmark
Unified framework for robot learning with multi-physics/renderer support
[CVPR 2024 🔥] Grounding Large Multimodal Model (GLaMM), the first-of-its-kind model capable of generating natural language responses that are seamlessly integrated with object segmentation masks.
DORA (Dataflow-Oriented Robotic Architecture) is middleware designed to streamline and simplify the creation of AI-based robotic applications. It offers low latency, composable, and distributed dataflow capabilities. Applications are modeled as directed graphs, also referred to as pipelines.
Open-HumanWAM An Open Recipe for Scaling Human and Robot Experience for Embodied Foundation Models Report · Code · Project page · Models · HF Paper · Citation Open-HumanWAM overview: scaling human and robot experience for embodied foundation models. Open-HumanWAM-50K 50,000 hours of egocentric human manipulation video, with hand-motion and natural-language annotations, for scaling robot learning. Status: Upload in progress · Upload details. Open-HumanWAM-50K… See the full description on the dataset page: https://huggingface.co/datasets/DAGroup-PKU/Open-HumanWAM-50K.
HubEgo-100K Release 3 (December 2026): +10,007 h added, 30,120 h in all. A 100,000-hour dataset of first-person video of skilled manual work, recorded by Hub contributors: building sites, workshops, salons, kitchens, shops, warehouses and homes, released in stages. Releases 1, 2 and 3 together have 30,120 hours of RGB + IMU from 24,333 contributors, in LeRobot and MCAP formats. Paper: HubEgo-100K: In-the-Wild Egocentric Video of Skilled Work for Robot Learning (arXiv:2611.21938… See the full description on the dataset page: https://huggingface.co/datasets/HubLabs/HubEgo-100K.
HubEgo-100K First release as of 12th Nov 2026: 10,124 hours of first-person video of skilled manual work, recorded where the work actually happens: building sites, workshops, salons, kitchens, shops, warehouses and homes. 72,754 episodes from 12,227 people, filmed with a head-worn phone (1080p, 30 fps) with its motion sensors recorded alongside, in LeRobot v3 format. HubEgo-100K grows toward 100,000 hours in later releases. Highlights Real work, in the wild. No… See the full description on the dataset page: https://huggingface.co/datasets/Hubdata/HubEgo-100K.