What is Kapso?
Kapso combines iterative experimentation with a knowledge base of best practices, domain knowledge, and implementation patterns to discover and validate code improvements. It automates the cycle of designing, running, evaluating, and refining solutions, eventually adapting the optimized solution for deployment on your chosen infrastructure.
Core Workflow
The Four Pillars
Evolve
.evolve() : Run iterative evaluation grounded experiments to build the optimum solution for a goal. Uses tree search, coding agents, and KG context to generate ideas and refine solutions.Learn
.learn() : Ingest knowledge from repositories, past solutions, or written knowledge. Extracts patterns and best practices into the Knowledge Graph.Research
.research() : Run deep web research to gather ideas, implementation references and releveant repositories. Returns structured findings you can pass to learning or use as context for evolving solutions.Deploy
.deploy() : Turn a solution into running app. Supports local execution, Docker containers, or cloud platforms like Modal.Core Components
| Component | Description |
|---|---|
| Kapso | Main API class — orchestrates research, learn, evolve, and deploy |
| OrchestratorAgent | Runs the experimentation loop with budget tracking and stopping conditions |
| Search Strategy | Explores solutions via tree search or linear search |
| Coding Agents | Pluggable code generators: Aider, Gemini, Claude Code, OpenHands |
| Knowledge Pipeline | Two-stage learning: Ingestors extract WikiPages → Merger integrates into KG |
| Knowledge Search | Hybrid retrieval using Weaviate (semantic) + Neo4j (graph structure) |
| Evaluators | Score solutions: regex patterns, JSON files, LLM judges |
| Stop Conditions | Control when to stop: threshold, plateau, cost/time limits |
| Deployment | Turn solutions into running software: Local, Docker, Modal, BentoML |
Supported Benchmarks
MLE-Bench
Solve Kaggle ML competitions with automated experimentation. Supports tabular, image, text, and audio problems.
ALE-Bench
Tackle AtCoder algorithmic optimization problems. Generates C++ solutions using optimization algorithms.
Quick Links
Quickstart
Get running in 5 minutes
Architecture
System design overview
Configuration
YAML config reference
Why Kapso?
- Knowledge-Grounded: Solutions are informed by domain knowledge, not just LLM priors
- Iterative Refinement: Tree search explores multiple approaches, learns from failures
- Pluggable Components: Swap coding agents, evaluators, and search strategies
- Full Lifecycle: From research to deployment in a single framework