Expand description
SkillLite Evolution: self-evolving prompts, skills, and memory.
EVO-1: Feedback collection + evaluation system + structured memory. EVO-2: Prompt externalization + seed data mechanism. EVO-3: Evolution engine core + evolution prompt design. EVO-5: Polish + transparency (audit, degradation, CLI, time trends).
Interacts with the agent through the EvolutionLlm trait for LLM completion.
Modules§
- external_
learner - EVO-6: External knowledge learning.
- feedback
- Evolution feedback collection and evaluation system (EVO-1).
- memory_
learner - 进化 Memory:从执行反馈中沉淀事实与经历,供检索与类比。
- prompt_
learner - Prompt learner: extract rules and examples from execution feedback (EVO-3).
- seed
- Seed data management for the self-evolving engine (EVO-2 + EVO-6).
- skill_
synth - Skill synthesis: auto-generate, refine, and retire skills (EVO-4).
Structs§
- Evolution
Message - Minimal message format for evolution LLM calls (no tool calling).
- Evolution
Scope - Evolution
Thresholds - 进化触发阈值,均由环境变量配置,未设置时使用下列默认值。
Enums§
- Evolution
Mode - Which dimensions of evolution are enabled.
- Evolution
Profile - 进化触发场景:不设或 default 时与原有默认行为完全一致。
- Evolution
RunResult - Result of attempting to run evolution. Distinguishes “skipped (busy)” from “no scope” from “ran (with or without changes)”.
- Skill
Action - Action type for skill evolution.
Traits§
- Evolution
Llm - LLM completion interface for evolution.
Functions§
- append_
changelog - atomic_
write - 原子写入:先写 .tmp 再 rename
- check_
auto_ rollback - create_
snapshot - finish_
evolution - format_
evolution_ changes - gatekeeper_
l1_ path - L1 path gatekeeper. When skills_root is Some, also allows target under skills_root/_evolved (project-level skill evolution).
- gatekeeper_
l1_ template_ integrity - gatekeeper_
l2_ size - gatekeeper_
l3_ content - log_
evolution_ event - mark_
decisions_ evolved - on_
shutdown - query_
changes_ by_ txn - restore_
snapshot - run_
evolution - Run a full evolution cycle.
- should_
evolve - should_
evolve_ with_ mode - strip_
think_ blocks - Strip reasoning/thinking blocks emitted by various models.
Handles
<think>,<thinking>,<reasoning>tags (DeepSeek, QwQ, open-source variants). Returns the content after the last closing tag, or the original string if none found. Should be called at the LLM layer so all downstream consumers get clean output. - try_
start_ evolution