# "Okay, this unleashed my agent"
<!--
ref: @content/youtube/ai-jason/okay-this-unleashed-my-agent
tags: [self-evolving agents, agent memory, skills, Hermes Agent, OpenClaw, Claude Code memory]
version: 2
updated_at: 2026-11-22T13:42:20.063Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=2zhchG0r6iI)**

# Okay, this unleashed my agent

*Synthesized from AI Jason, 2026-04-21.*

AI Jason presents solo, comparing how Claude Code, OpenClaw and Hermes Agent implement self-learning, and what a state-of-the-art design looks like.

## Core Thesis
AI Jason argues that "self-evolving agent" projects split into two different things: harness-optimization loops (auto agent, auto research), which produce a frozen improved harness, and in-context learning systems (memory, skills, history), which make an agent smarter with use. The second is more practical today, and its best form combines hot and warm memory, auto-maintained skills, and searchable raw history, all updated by asynchronous background processes.

## Key Insights
- **Group 1: harness optimization.** Auto agent (evolved from Andrej Karpathy's auto research; he credits it with first place on the spreadsheet and terminal benchmarks) runs a loop: a `program.md` states the vision, a coding agent (Claude Code or Codex) modifies the harness, an evaluation compares against the old version, and it keeps or discards, repeating. It needs a task database and programmatic verification, and is closer to fine-tuning because the output is frozen.
- **Group 2: in-context learning.** Three pillars: memory (facts, such as `user.md` or `claude.md`, split into hot memory always in the system prompt and warm memory loaded on demand), skills (domain procedures), and history (raw conversation logs).
- **Choosing architecture.** More agentic is not always better; a single LLM call, a workflow chain (Zapier or n8n style) and a fully agentic system trade token cost and speed against flexibility.
- **Claude Code.** Started with a single `claude.md`, which bloated, so people added index files (hot plus warm). It has an auto memory feature saving typed memory files (user, feedback, project, reference) per project with a `memory.md` index. It is prompt-based, so memories go stale; the leaked source showed a hidden consolidation feature (auto dream) that restarts a session after the main one ends to review memory against history and update the index. Gaps: conversation logs are not searchable and skills depend on humans.
- **OpenClaw.** Memory is first-class: defined memory files, a bootstrap file, daily logs, and a memory search tool across memory and raw history; it can search ClawHub for skills. But creation and search still need human prompting.
- **Hermes Agent.** Adds autonomous skill generation: after more than 10 agent steps without creating a skill, a non-blocking background sub-agent reviews the conversation for non-trivial, trial-and-error approaches and saves a skill via a skill manager (create, patch, delete, write files). The main agent is told to patch outdated skills immediately. A skill guard script scans for reject patterns and deletes failing skills with feedback.
- **Hermes memory tiers.** `user.md` (who the user is) and `memory.md` (environment facts) in the system prompt, with strict caps totaling under 4,000 characters; skills on demand; raw history in local SQLite with session search; optional semantic layers like Mem0. A memory reviewer sub-agent triggers about every 10 turns.
- **Add-on for OpenClaw.** A self-improving agent skill adds a learnings folder, a user-prompt hook, a post-tool-use hook that detects error patterns after bash commands, and a bootstrap reminder file. Migrating OpenClaw to Hermes is one command.

## Actionable Takeaways
1. Keep hot memory small with an index, and load warm memory on demand.
2. Capture procedures as skills, facts as memory, and keep a searchable raw log.
3. Run background reviewers (about every 10 turns or 10 steps) rather than relying on the agent to remember.
4. Scan agent-written skills with a guard before saving.

## Notable Quotes
> "Skills that aren't maintained become liabilities." — AI Jason

> "don't always go for fully agentic system because it costs more token and can be slower" — AI Jason

---

*Related: `@content/web/github/2026-11-25-claude-code-v2-1-332` · `@content/web/github/2026-11-24-builtin-ship-shadows-user-skill` · `@content/web/github/2026-11-17-open-artifact` · `@content/youtube/ai-jason/how-to-build-proactive-agents-self-improving-company-fully-explained` · `@content/youtube/yifan-bth/the-openclaw-security-settings-i-actually-change`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*