hermes-learning-loop
Self-improving learning loop inspired by Hermes Agent.
Skill by Arry8
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/arry8-hermes-learning-loop
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/hermes-learning-loop
What's inside
- Skill name
hermes-learning-loop- Description
- Self-improving learning loop inspired by Hermes Agent. Automatically extracts successful workflows, creates skills, and persists knowledge across sessions.
- License
- MIT
- Instructions
- 380 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- README.md
- SKILL.md
- learning-loop.js · scripts/
SKILL.md (first lines)
# 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 │
└──────────────┬──────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ 4. Skill Creation │
│ - Extract steps, tool calls, file references │
│ - Write to ~/.openclaw/skills/<category>/<name>/ │
│ - Follow agentskills.io specification │
└─────────────────────────────────────────────────────────┘
```
### 4-Layer Memory System
| Layer | Purpose | Location | Load Timing |
|-------|---------|----------|-------------|
| **Prompt Memory** | Always-on context | `MEMORY.md`, `USER.md` | Every session start |
| **Skills** | Procedural memory (how-to) | `~/.openclaw/skills/` | On-demand (summary → full) |
| **Session Archive** | Episodic memory (what happened) | SQLite + FTS5 | Deliberate retrieval |
| **User Model** | Behavioral patterns | Optional (Honcho-like) | Continuous passive |
### 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 Skill Extraction
```bash
# After completing complex deployment
export SESSION_ID="2026-04-03-deploy"
export TASK_OUTCOME="success"From Arry8/openclaw-edge, MIT.
More from Arry8/openclaw-edge
- 0.448score
portfolio-intel
Arry8
Portfolio intelligence copilot.
SkillDFreshness: D★ 2Claude Code +9 - 0.445score
task-pua
Arry8
Task persistence enhancer with 13 corporate flavors.
SkillDFreshness: D★ 2Claude Code +9 - 0.445score
claude-memory-optimizer
Arry8
Structured memory system with 4-type classification, frontmatter metadata, automated migration, and PUA-style maintenance checklist.
SkillDFreshness: D★ 2Claude Code +9 - 0.444score
kernel-cp-activator
Arry8
Deploy KERNEL_INTUITION_Cp on any AI architecture with calibrated thresholds.
SkillDFreshness: D★ 2Claude Code +9 - 0.442score
feishu-bot-refresh
Arry8
Refresh Feishu bot identity information.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
security-triage
Arry8
Triage GitHub security advisories for OpenClaw with high-confidence close/keep decisions, exact tag and commit verification, trust-model checks, optional…
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
vpn-deployment
Arry8
End-to-end WireGuard VPN deployment guide — VPS server setup, router client configuration, and traffic routing via apfree-wifidog tools.
SkillDFreshness: D★ 2Claude Code +9 - 0.436score
apfree-wifidog
Arry8
Guide tool usage for managing ApFree WiFiDog routers, gateways, and captive portal devices.
SkillDFreshness: D★ 2Claude Code +9 - 0.417score
acp-router
Arry8
Route plain-language requests for Pi, Claude Code, Codex, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Qwen, Kiro, Kimi, iFlow, Factory Droid…
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 10
- Last commit (this folder)
- Apr 3, 2026 (6 months ago)
- Last release
- Apr 10, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Arry8/openclaw-edge
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Arry8
- 0.448score
portfolio-intel
Arry8
Portfolio intelligence copilot.
SkillDFreshness: D★ 2Claude Code +9 - 0.445score
task-pua
Arry8
Task persistence enhancer with 13 corporate flavors.
SkillDFreshness: D★ 2Claude Code +9 - 0.445score
claude-memory-optimizer
Arry8
Structured memory system with 4-type classification, frontmatter metadata, automated migration, and PUA-style maintenance checklist.
SkillDFreshness: D★ 2Claude Code +9 - 0.444score
kernel-cp-activator
Arry8
Deploy KERNEL_INTUITION_Cp on any AI architecture with calibrated thresholds.
SkillDFreshness: D★ 2Claude Code +9 - 0.442score
feishu-bot-refresh
Arry8
Refresh Feishu bot identity information.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
security-triage
Arry8
Triage GitHub security advisories for OpenClaw with high-confidence close/keep decisions, exact tag and commit verification, trust-model checks, optional…
SkillDFreshness: D★ 2Claude Code +9
Cite this page
hermes-learning-loop skill. Agent Mart. https://agentmart.dev/skills/arry8-hermes-learning-loop (last updated 2026-10-24)