Labsco
leeroo-ai logo

Leeroopedia

from leeroo-ai

The Brain that turns Generalist Agents into ML Experts.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Kapso

A Knowledge-grounded framework for Autonomous AI/ML Program Synthesis and Optimization

Learn more ยท Join Discord ยท Website

Discord

If you like this project, please support us by giving it a star โญ

Early Access: Sign up for the hosted version of Kapso.

Kapso Framework Architecture


News

  • Leeroopedia MCP Integration: Kapso now connects to Leeroopedia MCP โ€” your ML & Data Knowledge Wiki. Learnt by AI, built by AI, for AI. A centralized playbook of best practices and expert-level knowledge for Machine Learning and Data domains. Kapso agents use it during ideation and implementation to search knowledge, build plans, diagnose failures, and more.

  • Moltbook Agents ๐Ÿฆž: Build AI agents that optimize other agents and debate on Moltbook! Get started โ†’

  • Technical Report: Our technical report is now available! Read the paper

  • #1 on MLE-Bench: KAPSO achieved top ranking among open-source systems on Kaggle ML competitions (MLE Benchmark).

    MLE-Bench Results
  • #1 on ALE-Bench: KAPSO achieved top ranking on long-horizon algorithmic discovery problems (ALE Benchmark).

    ALE-Bench Results

What is KAPSO?

KAPSO combines iterative experimentation with a knowledge base of best practices and tricks to discover ML/AI code improvements.

It automates the cycle of designing, testing, and refining algorithms, eventually adapting the optimized solution for deployment on your chosen infrastructure.

The Four Pillars

PillarMethodDescription
Evolve.evolve()Run iterative experiments to build software for a goal. Uses tree search, coding agents, and KG context to generate and refine solutions.
Learn.learn()Ingest knowledge from repositories, past solutions, or research results. Extracts patterns and best practices into the Knowledge Graph.
Research.research()Run deep web research to gather ideas and implementation references. Returns structured findings you can feed into the knowledge base or use as context for evolving solutions.
Deploy.deploy()Turn a solution into running software. Supports local execution, Docker containers, or cloud platforms like Modal.

Examples

ExampleDescription
CUDA OptimizationOptimize CUDA kernels for GPU performance
PyTorch OptimizationOptimize PyTorch operations for speedup
ML Model DevelopmentImprove ML model accuracy on tabular data
Prompt EngineeringOptimize prompts for better LLM performance
Agentic ScaffoldOptimize agentic AI workflows

Supported Benchmarks

BenchmarkDescription
MLE-BenchKaggle ML competitions โ€” tabular, image, text, audio problems
ALE-BenchAtCoder algorithmic optimization โ€” C++ solution generation

๐Ÿ“š Documentation & Support

Citation

If you use Kapso in your research, please cite:

@misc{nadaf2026kapsoknowledgegroundedframeworkautonomous,
      title={KAPSO: A Knowledge-grounded framework for Autonomous Program Synthesis and Optimization}, 
      author={Alireza Nadafian and Alireza Mohammadshahi and Majid Yazdani},
      year={2026},
      eprint={2601.21526},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2601.21526}, 
}