AAnvio
Reference ArchiveSource Docs

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

ComponentPackageDescription
Memory nudge@anvio/learningExtract preference facts from sessions (regex)
Session summary@anvio/learningLLM summary when model available; rule-based fallback
Skill evolution@anvio/learningLLM-analyzed drafts in workspace/skills/_drafts/
Runtime tool learning@anvio/learningonToolUseCompleted after successful tool calls (L6)
Honcho sync@anvio/memoryFilesystem 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 promote

Learning 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

Rendering diagram…
Edit on GitHub

Last updated on

On this page