kapso
Kapso is an open-source Python framework launched by Leeroo for building long-running AI agent teams that automatically optimize AI and data systems. Users only need to provide a goal, and Kapso will launch a "campaign": designing candidate solutions, having coding agents implement them, measuring the gap between them and the goal, and continuously improving the closest solution until the goal is achieved, with the final result deployable to the user's own infrastructure. Kapso learns from every experience, saving effective and ineffective ideas along with evidence as "lessons learned," and continuously verifies their validity; it can also read external code repositories and papers, channeling findings into the same knowledge base, so that new campaigns start from existing knowledge. The project ranks first among open-source systems on benchmarks such as MLE-Bench, ALE-Bench, and RelBench, and won the Grand Master Trophy in the IOAI² autonomous AI track at IOAI 2026. Kapso is released on PyPI as leeroo-kapso, requires Node.js and a logged-in coding agent CLI (such as Claude Code, Codex), and optionally connects to the Leeroopedia knowledge base and knowledge graph backend.