Learning Loop (Phase H → L6)
Hermes-style **self-improving** layer — opt-in via soul evolution settings.
1 min read
This is a migrated reference document from the original Anvio source repo. Content is preserved as-is; canonical documentation lives in the sections above in the sidebar.
Original path: docs/43-learning-loop.md
Hermes-style self-improving layer — opt-in via soul evolution settings.
Components
| Component | Package | Description |
|---|---|---|
| Memory nudge | @anvio/learning | Extract preference facts from sessions (regex) |
| Session summary | @anvio/learning | LLM summary when model available; rule-based fallback |
| Skill evolution | @anvio/learning | LLM-analyzed drafts in workspace/skills/_drafts/ |
| Runtime tool learning | @anvio/learning | onToolUseCompleted after successful tool calls (L6) |
| Honcho sync | @anvio/memory | Filesystem delegate + optional Honcho API sync |
Enable
Soul must allow evolution (default: allowAutoUpdate: true):
spec:
evolution:
allowAutoUpdate: true
requireApproval: false # false = auto-promote runtime skills; true = manual promoteLearning runs on AGENT_RUN_COMPLETED (worker, detached, anvio chat, inline anvio run).
Runtime tool learning runs on each successful ToolGateway.call().
LLM summarizer
Requires a configured model provider (e.g. ANTHROPIC_API_KEY). Platform passes Anthropic or first non-mock provider to LearningEngine.
LLM returns JSON with shouldCreate: false to skip low-value skills.
CLI
anvio learning drafts
anvio learning promote <draft-slug>Flow
Related
Last updated on