Autonomous ML agent for running experiments using Claude.
// momentum
// why it's here
- Active: last commit today
- Health 98/100 with only 43 stars
// how to help
// readme
ml-ralph
An autonomous ML research loop that does not take the agentβs word for its results. ml-ralph runs the experiment loop in the background (planning, execution, analysis, learning extraction) and scores, reviews and gates every result itself.
You operate it from the CLI, from any MCP client (Claude Code, pi, an IDE) or in a small TUI. All three call the same operations, and the run is a background process: it keeps going when you disconnect.
Getting started
cd my-ml-project # a git repository with at least one commit
bunx @pentoai/ml-ralph init
bunx @pentoai/ml-ralph status
status prints a setup checklist and the one thing to do next. A project is ready when it has:
- a PRD in
.ml-ralph/prd.json(problem, goal, success criteria); - an eval contract:
.ml-ralph/eval/evaluate.pyand.ml-ralph/eval/contract.json(metric, seeds, thresholds, baseline score); - your approval:
ml-ralph approve; - optionally, a sealed holdout outside the project (
ml-ralph holdout set <path>) and budget caps. Without a holdout a run can promote candidates but never complete.
ml-ralph manual explains each step. Then: