Kapso is an open-source Python framework developed by Leeroo, positioned as a set of long-running agents for optimizing AI and data systems and learning from every experience.
Purpose Users only need to state a goal, and Kapso will run a "campaign": designing candidate solutions, having coding agents implement them, measuring the distance of each solution from the goal, and continuously improving the closest solution until the goal is achieved. The final result is delivered to the user's own infrastructure.
Main capabilities
- Experiential learning: After a campaign ends, Kapso studies its own work—which ideas brought it closer to the goal, which did not, and under what conditions they held. Each finding is saved as a "lesson learned" along with its evidence, and remains credible only as long as it continues to hold.
- External knowledge absorption: Kapso reads code repositories and papers outside the user's environment and channels the findings into the same knowledge hub. Each new campaign starts from that knowledge hub, so it begins with knowledge about the problem and system already established by prior work.
- Benchmark performance: Official materials state that Kapso ranks first among open-source systems on MLE-Bench (Kaggle ML competitions) and ALE-Bench (long-horizon algorithm discovery problems); it ranks first on all three official RelBench leaderboards, including classification (81.2 AUROC across 12 tasks), regression (0.2476 NMAE across 9 tasks), and recommendation (18.4 MAP across 10 tasks).
- IOAI 2026: In the IOAI² autonomous AI track, Kapso, as one of 14 founding AI participants, scored 536.07 overall, surpassing all 471 human contestants, and won the Grand Master Trophy (top three among all participating AI systems).
- Leeroopedia MCP integration: Kapso can connect to Leeroopedia MCP (an ML and data knowledge wiki) to search knowledge, formulate plans, diagnose failures, etc., during the ideation and implementation stages.
- Moltbook Agents: It can build AI agents that optimize other agents and debate on Moltbook.
How to use Kapso performs reasoning through a coding agent CLI (there is no direct API fallback), so it requires Node.js and prior login to the relevant agent CLI. The installation package is leeroo-kapso (Python 3.10+). Note that the package named kapso on PyPI is an unrelated WhatsApp tool that will shadow this package, so you need to run pip uninstall kapso first. After installation, you can use kapso doctor to verify the configuration; it will report what the configuration actually requires and give fixes for missing items. The core loop only needs its prerequisites met to run; you can optionally enable the knowledge graph backend (local Weaviate + Neo4j) to import external knowledge and serve campaigns. You can limit the number of iterations, elapsed time, and model cost via max_iterations, time_budget_minutes, and cost_budget. All models are named in a single configuration file; you can copy the default configuration, modify it, and load it via Kapso(config_path=...) or kapso evolve --config ....
Use cases Suitable for long-horizon tasks that require automatic optimization of AI and data systems, such as Kaggle-style ML competitions, algorithm discovery, predictive modeling and recommendation on relational data, and complex enterprise tasks that require continuously accumulating system and data knowledge.
Limitations
- An coding agent CLI is required, with no direct API fallback; Node.js is required and the CLI must be logged in.
- Model access depends on the subscription; some models may be restricted by plan.
- The knowledge graph and semantic search are optional features and require additional backends (Weaviate, Neo4j) and an OpenAI key for embeddings.
- The time required for learning and knowledge import depends on the amount of extractable content, not on the depth flag.
- The official materials do not provide specific billing and pricing information (a new Leeroopedia account comes with $20 in free credit).