Xpersona
H

Hermes Learning Loop

CLAWHUB · Unverified

Self-improving learning loop inspired by Hermes Agent. Automatically extracts successful workflows, creates skills, and persists knowledge across sessions. Skill: Hermes Learning Loop Owner: mystour Summary: Self-improving learning loop inspired by Hermes Agent. Automatically extracts successful workflows, creates skills, and persists knowledge across sessions. Tags: automation:1.0.0, hermes:1.0.0, latest:1.0.0, learning:1.0.0, self-improvement:1.0.0 Version history: v1.0.0 | 2026-04-03T15:53:07.012Z | user Initial release: Implements Hermes Agent's self-improving learn

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s175vh2pbd6c63hadkzvzxff11843nh5:hermes-learning-loop
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-mystour-hermes-learning-loop/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

18,504 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: hermes-learning-loop
description: Self-improving learning loop inspired by Hermes Agent. Automatically extracts successful workflows, creates skills, and persists knowledge across sessions.
tags: learning, self-improvement, memory, skill-creation, automation, hermes
version: 1.0.0
---

# Hermes Learning Loop for OpenClaw

**Inspired by**: [NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent) (Self-improving AI agent)

Implements Hermes Agent's core learning loop in OpenClaw — automatically extracts successful workflows, creates reusable skills, and persists curated knowledge across sessions.

## When to Use

- After completing complex multi-step tasks
- When you discover a workflow worth repeating
- Automatically via heartbeat (periodic nudge)
- When user says "remember this" or "save this workflow"

## Features

- **Periodic Nudge** — Auto-reflect every N tasks (default: 5)
- **Skill Extraction** — Convert successful workflows to reusable skills
- **4-Layer Memory** — Prompt memory + Session search + Skills + User modeling
- **Curated Memory** — Agent decides what's worth keeping (not logging everything)
- **Progressive Disclosure** — Only load skill summaries by default, full content on-demand
- **FTS5 Session Search** — SQLite-powered historical context retrieval

## Quick Start

### Install

```bash
clawhub install hermes-learning-loop
```

### Manual Trigger

```bash
# After completing a task
node learning-loop.js extract --session=<session_id>

# Create skill from workflow
node learning-loop.js create-skill --name="my-skill" --description="What it does"

# Periodic nudge (heartbeat)
node learning-loop.js nudge
```

### Auto-Trigger (Integration)

Add to HEARTBEAT.md:

```markdown
## Learning Loop - Periodic Nudge

**Frequency:** Every 5 tasks or 30 minutes

**Task:**
1. Run `node learning-loop.js nudge`
2. Review extracted memories
3. Approve/reject skill creations
```

## Architecture

### Learning Loop Cycle

```
┌─────────────────────────────────────────────────────────┐
│  1. Task Execution                                      │
│     - Agent completes task                              │
│     - Track tool calls, decisions, outcomes             │
└──────────────┬──────────────────────────────────────────┘
               │
               ▼
┌─────────────────────────────────────────────────────────┐
│  2. Periodic Nudge (every 5 tasks)                      │
│     - System prompt: "Reflect on recent activity"       │
│     - Agent evaluates: Is this worth persisting?        │
└──────────────┬──────────────────────────────────────────┘
               │
               ▼
┌─────────────────────────────────────────────────────────┐
│  3. Memory Extraction                                   │
│     - If valuable → Write to MEMORY.md / USER.md        │
│     - If workflow → Create skill file                   │
│     - If context → Index in session archive             │
└──────────────┬───────────────────────────────

README.md

# Hermes Learning Loop for OpenClaw

> **Inspired by**: [NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent)

**Self-improving learning loop that automatically extracts successful workflows, creates reusable skills, and persists curated knowledge across sessions.**

## 🎯 Overview

Most AI agents either:
- ❌ Log everything and retrieve nothing useful
- ❌ Log nothing and start fresh every session

**Hermes Learning Loop** solves this by giving the agent itself the responsibility to decide what's worth keeping.

### Core Innovation

**Periodic Nudge** — Every N tasks (default: 5), the agent receives an internal system prompt asking it to:
1. Look back at recent activity
2. Evaluate what's worth persisting
3. Extract skills from successful workflows
4. Write curated memories (not dumps)

## 📦 Installation

```bash
clawhub install hermes-learning-loop
```

## 🚀 Quick Start

### Manual Trigger

```bash
# After completing a complex task
node learning-loop.js extract --session=2026-04-03

# Periodic nudge (heartbeat)
node learning-loop.js nudge

# Review memories
node learning-loop.js curate --session=2026-04-03

# Check status
node learning-loop.js status
```

### Auto-Trigger (Heartbeat)

Add to `HEARTBEAT.md`:

```markdown
### Learning Loop - Periodic Nudge

**Frequency:** Every 5 tasks

**Steps:**
1. Run `node learning-loop.js nudge`
2. Review proposed skills/memories
3. Approve/reject
```

## 📊 Architecture

### Learning Loop Cycle

```
Task Execution → Periodic Nudge → Memory Extraction → Skill Creation
     ↑                                                        │
     └────────────────────────────────────────────────────────┘
```

### 4-Layer Memory System

| Layer | Purpose | Load Timing |
|-------|---------|-------------|
| **Prompt Memory** | Always-on context (`MEMORY.md`, `USER.md`) | Every session |
| **Skills** | Procedural memory (how-to) | On-demand |
| **Session Archive** | Episodic memory (what happened) | Deliberate retrieval |
| **User Model** | Behavioral patterns | Continuous (optional) |

## 🔥 Features

- ✅ **Periodic Nudge** — Auto-reflect every N tasks
- ✅ **Skill Extraction** — Convert workflows to reusable skills
- ✅ **Curated Memory** — Agent decides what's worth keeping
- ✅ **Progressive Disclosure** — Summary by default, full content on-demand
- ✅ **FTS5 Session Search** — SQLite-powered retrieval
- ✅ **agentskills.io Compatible** — Portable skill format

## 📋 Skill Triggers

Automatically create skill when:
- ✅ 5+ tool calls in sequence
- ✅ Recovered from error successfully
- ✅ User corrected → fixed approach
- ✅ Non-obvious workflow that worked
- ✅ Repeated pattern detected (3+ times)

## 🎯 Usage Examples

### Example 1: Post-Task Extraction

```bash
export SESSION_ID="2026-04-03-deploy"
node learning-loop.js extract $SESSION_ID
```

**Output:**
```
📊 Learning Loop Analysis

✅ Task completed successfully
📈 Tool calls: 15
⚠️  Error recovery: 2 instances

🎯 Skill-worthy detected: YES

Propose

_meta.json

{
  "ownerId": "kn7c8n8kb1ja02fn5gyk618mj5834ed7",
  "slug": "hermes-learning-loop",
  "version": "1.0.0",
  "publishedAt": 1775231587012
}

skill-card.md

## Description:

Self-improving learning loop inspired by Hermes Agent that automatically extracts successful workflows, creates skills, and persists knowledge across sessions.

This skill is ready for commercial/non-commercial use.

## Publisher:

[mystour](https://clawhub.ai/user/mystour)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent operators use this skill to periodically review completed work, extract reusable workflows into agent skills, and keep curated memory across OpenClaw sessions.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill creates persistent agent memories and skills from session content with weak review and sanitization controls.

Mitigation: Keep automatic creation disabled, run the workflow manually, and review generated SKILL.md and memory files before reuse.

Risk: Session JSON or extracted workflow content may be untrusted or inappropriate for long-term agent memory.

Mitigation: Avoid untrusted session JSON and point memory and skills directories at isolated locations that can be inspected and deleted.

## Reference(s):

- [Hermes Agent](https://github.com/NousResearch/hermes-agent)
- [Hermes Docs](https://hermes-agent.nousresearch.com/)
- [agentskills.io specification](https://agentskills.io/specification)
- [SQLite FTS5 Docs](https://www.sqlite.org/fts5.html)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown files, generated SKILL.md content, CLI status text, and shell command snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May write persistent memory and skill files under configured OpenClaw directories.]

## Skill Version(s):

1.0.0 (source: server release metadata and SKILL.md frontmatter)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Hermes Learning Loop and adjacent AI workflows.