Harness evolution and prompt evolution
Both loops start from your repo as it is today, and each example is one real trace: what your agent did, plus its outcome. The difference is what may be touched:- Prompt evolution changes only the scaffolding: system prompts, skills, instructions, memory files. Application logic is never edited.
- Harness evolution can change the whole repo: prompts, tools, and code together.
Two designs
Each loop picks a design, the method that proposes changes, in the setup wizard’s Choose your approach step or withbelvedir setup <project> --design loop1|loop2:
- Loop 2 (diagnose and repair), the default: groups failing traces into failure modes, diagnoses each against your repository, and writes targeted fixes.
- Loop 1 (GEPA): evolves candidates with GEPA’s evolutionary search.