Evolve System
The Evolve System is Kapso’s core engine for building software solutions. It orchestrates an iterative experimentation loop that explores multiple approaches, learns from failures, and converges on high-quality solutions.How It Works
The system works by:- Receiving a goal : What you want to build
- Gathering context : From Knowledge Graph and Repo Memory
- Generating solutions : Via pluggable coding agents
- Evaluating results : With configurable evaluators
- Iterating : Until stop conditions are met
Key Components
Orchestrator
Central coordinator that manages the experimentation loop, budget tracking, and component lifecycle
Search Strategies
Algorithms for exploring the solution space: tree search or linear search
Coding Agents
Pluggable code generators: Aider, Gemini, Claude Code, OpenHands
Evaluators
Score solutions: regex patterns, JSON files, LLM judges
Stop Conditions
Control when to stop: threshold, plateau, cost/time limits
Repo Memory
Tracks code understanding with file-level evidence
Basic Usage
Configuration Modes
Kapso provides preset configurations for different use cases:| Mode | Search Strategy | Best For |
|---|---|---|
GENERIC | Tree search (default) | General problem solving |
MINIMAL | Linear search | Quick experiments, simple problems |
TREE_SEARCH | Tree search with debugging | Complex problems requiring exploration |
SCORED | Tree search with scoring | Problems with clear metrics |
The Experimentation Loop
Each iteration of the evolve loop:- Select — Choose which solution candidates to explore
- Expand — Generate new variations using the coding agent
- Execute — Run the generated code
- Evaluate — Score the results
- Prune — Remove unpromising branches (tree search only)
- Check — Evaluate stop conditions
Git Branch Model
Each experiment runs on its own Git branch:- Isolation — Experiments don’t interfere with each other
- History — Full Git history of all attempts
- Recovery — Easy to checkout and examine any experiment
Memory Systems
The Evolve System uses two memory systems:Repo Memory
Tracks understanding of the codebase:- Architecture — High-level structure and patterns
- Key Claims — Important facts about the code
- File Evidence — Which files support each claim
Cognitive Memory (Advanced)
Learns from past experiments:- Episodic Memory — What worked and what didn’t
- Pattern Recognition — Common failure modes
- Strategy Selection — Which approaches work best