Tutorial: Replicate Hermes & OpenClaw in Claude Code

Frameworks like Hermes and OpenClaw charge you for capabilities already inside Claude Code. This intermediate tutorial walks through a ten-step build covering a four-layer persistent memory architecture, self-improving skills with learning loops, and mobile agent access via Telegram, Discord, and iMessage. A verified second act benchmarks each step against the official Anthropic documentation so you know exactly where the field approach diverges.


0

Replicate Hermes and OpenClaw Natively Inside Claude Code

Frameworks like Hermes and OpenClaw sell a compelling loop: install a skill, schedule a job, collect the result on your phone. The setup friction, model restrictions, and opacity of those external systems are the actual cost. By layering persistent memory, self-improving skills, built-in channel access, and a command center UI directly inside Claude Code, you get the same five core capabilities on a Pro or Max subscription — with full visibility into what the agent is doing and why.

  1. Create a CLAUDE.md or agents.md file as the agent’s root operating instructions. Keep it under 200 lines: define identity, behavior rules, and constraints here, then point outward to reference files rather than embedding everything inline. Every session loads this file first, so context bloat here degrades output quality across every task.
Layer 1: CLAUDE.md or AGENTS.md holds operating instructions, identity, behavior rules, and constraints.
Layer 1: CLAUDE.md or AGENTS.md holds operating instructions, identity, behavior rules, and constraints.
  1. Build a brand_context folder at the repo root containing separate markdown files for brand voice, ICP, positioning, and client details. Every skill in the repository pulls from this shared folder, so whether the agent is drafting a LinkedIn post or scoping a landing page, it draws from the same business brain every time.
Inside brand_context: five markdown files covering assets, ICP, positioning, sample copy, and voice profile — each injected as context when the agent runs.
Inside brand_context: five markdown files covering assets, ICP, positioning, sample copy, and voice profile — each injected as context when the agent runs.
  1. Add an agent_context folder with at minimum a soul.md describing behavioral style and a user.md capturing your recurring patterns and preferences. This is the layer that makes the agent feel tuned to a specific person rather than a generic assistant.
The full 4-layer memory stack: CLAUDE.md → brand_context → agent_context (soul.md, user.md) → project memory. This is how you replicate Hermes-style persistent context natively.
The full 4-layer memory stack: CLAUDE.md → brand_context → agent_context (soul.md, user.md) → project memory. This is how you replicate Hermes-style persistent context natively.
  1. Attach a project memory file to each active project. Record what was built, what worked, what failed, and where to resume — structured so Claude can re-enter a content project from three weeks ago without a full re-briefing.

  2. Install the Anthropic Skill Creator skill inside Claude Code. Provide a task description, a GitHub repo URL, or a plain-language process walkthrough, and it generates the complete skill.md including the trigger description that controls when the skill is invoked.

  3. Edit the Skill Creator output down to under 200 lines by moving detailed reference material into separate files that load only when that context is actually required during execution. The default output includes more than the skill needs at call time.

Warning: this step may differ from current official documentation — see the verified version below.

  1. Bake a self-learning loop into every skill by adding a learnings.md file — or a dedicated rules block inside the skill.md — and closing the skill’s step sequence with an explicit feedback-collection prompt. Rules accumulate across runs; the skill improves each time it executes.
The Learnings Journal (learnings.md): auto-maintained by skills after every deliverable, structured into General and per-skill sections so the agent gets smarter with each run.
The Learnings Journal (learnings.md): auto-maintained by skills after every deliverable, structured into General and per-skill sections so the agent gets smarter with each run.
  1. Enable Claude Code Channels to connect Telegram, iMessage, or Discord. You can kick off tasks and pull outputs from your phone without writing any custom integration code.
Section 3: How You Interact With It — triggering the agent via command center, chat, or scheduled jobs.
Section 3: How You Interact With It — triggering the agent via command center, chat, or scheduled jobs.
  1. For managing parallel business goals, build or adopt a Kanban-style command center UI that wraps the Claude Code terminal, surfaces goals as cards, and lets you drill into individual agent conversations alongside a live-updating plan view.

Warning: this step may differ from current official documentation — see the verified version below.

Creating a scheduled task: select Opus, define a multi-step prompt to scan YouTube, repurpose transcripts into social posts, and ping on completion.
Creating a scheduled task: select Opus, define a multi-step prompt to scan YouTube, repurpose transcripts into social posts, and ping on completion.
  1. Use Channels for fast, on-the-go requests and the command center for goals spanning multiple days or complex multi-agent workflows. The two interfaces serve different scopes — defaulting to one for everything creates noise in both directions.

How does this compare to the official docs?

The memory architecture, skill-trimming approach, and command center pattern shown here are field-built and opinionated — and where they diverge from Anthropic’s documented behavior is precisely what Act 2 examines against the source.

Here’s What the Official Docs Show

The steps in Act 1 hold up well in the places Anthropic documents them — and where they don’t land in official documentation, the gaps are worth knowing before you build on top of them. What follows works through the same sequence, adding what the documentation confirms, clarifies, or corrects.

Steps 1–4: Layered memory (CLAUDE.md, brand context, agent context, project memory)

No official documentation was found for these steps —
proceed using the video’s approach and verify independently.

Step 5: Install the Skill Creator and define your skills

The video’s approach here matches the current docs exactly. Two additions from the official documentation: the correct path for personal, cross-project skills is ~/.claude/skills/[skill-name]/SKILL.md, and the description frontmatter field in SKILL.md enables Claude to auto-load the skill without an explicit /skill-name invocation — Claude reads descriptions at context time and reaches for the right skill before you type anything.

SKILL.md frontmatter showing 'name' and 'description' fields, full path ~/.claude/skills/explain-code/SKILL.md, and the 'Test the skill' section.
📄 SKILL.md frontmatter showing ‘name’ and ‘description’ fields, full path ~/.claude/skills/explain-code/SKILL.md, and the ‘Test the skill’ section.

Step 6: Trim Skill Creator output to under 200 lines

The video’s approach here matches the current docs exactly. The docs add one useful clarification: skill bodies load lazily — only when invoked — so long reference material in a SKILL.md body costs nothing at call time. Write lean skills as a discipline; know the lazy-loading mechanism is already managing token cost for you.

Official skills documentation showing SKILL.md structure and the explicit lazy-loading behavior note.
📄 Official skills documentation showing SKILL.md structure and the explicit lazy-loading behavior note.

Step 7: Self-learning loop with learnings.md

No official documentation was found for this step —
proceed using the video’s approach and verify independently.

Step 8: Enable Channels for Telegram, iMessage, or Discord

Telegram, Discord, and iMessage are the three documented integrations — the platforms match. As of April 18, 2026, however, the setup is not zero-config. Prerequisites the video omits:

  • Channels are in research preview and require Claude Code v2.1.80 or later
  • Authentication must use claude.ai login — Console and API key auth are explicitly not supported
  • Each channel plugin requires the Bun runtime
  • Telegram requires creating a bot via BotFather (/newbot), obtaining a token, running /telegram:configure <token> inside Claude Code, and restarting with the --channels plugin flag
  • Channels only receive events while a session is open — always-on access requires running Claude in a persistent background process
  • Team and Enterprise organizations must explicitly enable Channels — they are not on by default
Channels documentation showing research-preview notice, v2.1.80 minimum version, and claude.ai-only authentication requirement.
📄 Channels documentation showing research-preview notice, v2.1.80 minimum version, and claude.ai-only authentication requirement.
Supported channels section showing Telegram, Discord, and iMessage tabs alongside the Bun runtime requirement and BotFather bot-creation step.
📄 Supported channels section showing Telegram, Discord, and iMessage tabs alongside the Bun runtime requirement and BotFather bot-creation step.
Telegram setup steps 3–4: the /telegram:configure command and restarting Claude Code with the --channels plugin flag.
📄 Telegram setup steps 3–4: the /telegram:configure command and restarting Claude Code with the –channels plugin flag.

Steps 9–10: Command center UI and dual-interface workflow

No official documentation was found for these steps —
proceed using the video’s approach and verify independently.

One native alternative worth knowing: the Claude Code desktop app includes a built-in Pinned sessions panel and a Scheduled sidebar menu that address part of the multi-goal management need the tutorial solves with a custom Kanban wrapper.

Claude Code desktop sidebar showing Pinned sessions, Scheduled tasks, and the slash-command input field.
📄 Claude Code desktop sidebar showing Pinned sessions, Scheduled tasks, and the slash-command input field.
  1. Claude Code by Anthropic | AI Coding Agent, Terminal, IDE — Official Claude Code product page with the install command and a Routines feature announcement (schedule- and event-triggered automations) relevant to the scheduling use cases in step 10.
  2. Extend Claude with skills – Claude Code Docs — Full skills documentation covering SKILL.md structure, the personal skills folder path, lazy-loading behavior, auto-invocation via the description field, and bundled prompt-based skills.
  3. Push events into a running session with channels – Claude Code Docs — Official Channels documentation covering research-preview status, version requirements, supported platforms, Bun dependency, persistent-session requirement, and Telegram bot setup steps.
  4. Bots: An introduction for developers — Telegram’s official developer introduction for the BotFather bot-creation workflow required by Claude Code’s Telegram channel plugin.
  5. Telegram Messenger — Telegram homepage confirming cross-platform availability (Android, iPhone, iPad, PC/Linux, macOS) and open API access.
  6. Discord – Group Chat That’s All Fun & Games — Discord consumer homepage; bot credentials for the Claude Code Discord channel plugin are obtained from the Discord developer portal, not this surface.
  7. Obsidian – Sharpen your thinking — Local Markdown note editor with a folder hierarchy and linking features structurally similar to the tutorial’s layered memory approach; not referenced in any official Claude Code documentation.

Like it? Share with your friends!

0

What's Your Reaction?

hate hate
0
hate
confused confused
0
confused
fail fail
0
fail
fun fun
0
fun
geeky geeky
0
geeky
love love
0
love
lol lol
0
lol
omg omg
0
omg
win win
0
win

0 Comments

Your email address will not be published. Required fields are marked *