Skip to content

Commit 62db377

Browse files
groksrcclaude
andauthored
docs: add Hermes plugin integration page (#18)
* docs: add Hermes plugin integration page Documents the hermes-basic-memory plugin: install + config.yaml activation, the ~/.hermes/basic-memory.json config keys, the 10 bm_* agent tools, 8 /bm-* slash commands, cross-project/workspace routing, auto-capture behavior, and the bundled skill. Modeled on the existing OpenClaw integration page (the sibling plugin). Slots in as 11.hermes.md after 10.openclaw.md; nav is auto-generated from the numbered prefix so no .navigation.yml change is needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * docs: warn about slash-command monkeypatch on Hermes page Prominent ::warning after the intro: bm_* agent tools and auto-capture work out of the box, but /bm-* slash commands need a Hermes Agent-side patch (MONKEYPATCH.md) on releases through v0.14.0 / v2026.5.16 — the exclusive memory-provider loader doesn't register commands during gateway slash-command discovery, and the plugin's built-in reach-in isn't sufficient for that startup path. Also adds a short ::note in the Slash Commands section pointing back to the warning, for readers who jump straight there. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * docs: add Hermes plugin announcement to What's New Adds content/2.whats-new/1.hermes-plugin.md as a short announcement (modeled on the OpenClaw What's New entry) positioned just below v0.20.0. The full integration guide stays at /integrations/hermes; the announcement teases capabilities and links to it — matching how OpenClaw is structured (announcement + guide). Renumbered the existing What's New entries down by one to open the slot below v0.20.0. Numeric prefixes only drive nav order, not URLs, so no links break. Updated the one CLAUDE.md reference that cited the changelog by its old numeric path (2.→3.changelog.md). The announcement carries a brief note about the slash-command Hermes-side patch and points to the full guide's warning for detail. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * docs: prominent full-guide link on plugin announcements Both the Hermes and OpenClaw What's New announcements only linked to their full integration guides via a Next Steps card at the bottom. Add a ::tip callout right after the intro so the path to the full guide is visible immediately, not just after scrolling past all the capabilities. Bottom card-group link stays for end-of-page context. Used ::tip (proven on these pages) rather than :::u-button, which is only used in index.md's hero slots and unverified in regular content bodies. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 886aa01 commit 62db377

8 files changed

Lines changed: 276 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ When updating docs for a new Basic Memory release, update all of the following:
176176

177177
1. **Homepage version badge**`content/index.md`: update the version text (e.g., `v0.20 →`) and the `to:` link to point to the new release notes page
178178
2. **Release notes page**`content/2.whats-new/0.v<VERSION>.md`: rename and update with new release content (the `0.` prefix keeps it first in the nav)
179-
3. **Changelog**`content/2.whats-new/2.changelog.md` auto-fetches from GitHub releases API, no manual update needed
179+
3. **Changelog**`content/2.whats-new/3.changelog.md` auto-fetches from GitHub releases API, no manual update needed
180180
4. **Deploy** — push to main auto-deploys to development; production requires manual workflow dispatch via GitHub Actions
181181

182182
## Documentation Status & Priorities
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: Hermes Plugin
3+
description: Give Hermes Agent persistent Basic Memory — search-before-answer recall, auto-capture, and 10 agent tools.
4+
---
5+
6+
The [hermes-basic-memory](https://github.com/basicmachines-co/hermes-basic-memory) plugin gives [Hermes Agent](https://github.com/NousResearch/hermes-agent) a persistent knowledge graph across sessions.
7+
8+
[Basic Memory](/start-here/what-is-basic-memory) is a knowledge base that you and your AI share. Hermes ships with no external memory provider by default — this plugin replaces that with a real graph your agent reads from and writes to as plain Markdown.
9+
10+
::tip
11+
**[Read the full Hermes Plugin guide →](/integrations/hermes)** — installation, configuration, the complete tool reference, slash commands, and the slash-command patch.
12+
::
13+
14+
## Key Capabilities
15+
16+
- **Search before answering** — The agent recalls prior decisions and context before responding, instead of starting cold
17+
- **Automatic capture** — Every exchange is logged to a session transcript; an end-of-session summary is written and linked back
18+
- **10 agent tools** — search, read, write, edit, context, delete, move, recent, projects, workspaces
19+
- **8 slash commands**`/bm-search`, `/bm-read`, `/bm-context`, `/bm-recent`, `/bm-status`, `/bm-remember`, `/bm-project`, `/bm-workspace`
20+
- **Cross-project & workspace routing** — Read or write any project per call via `project` / `project_id`, with transparent local/cloud routing
21+
- **Bundled skill** — A `basic-memory` skill teaching the note format, routing, and a worked discovery → write → verify recipe
22+
23+
## Quick Install
24+
25+
```bash
26+
hermes plugins install basicmachines-co/hermes-basic-memory
27+
```
28+
29+
Activate it in `~/.hermes/config.yaml`:
30+
31+
```yaml
32+
memory:
33+
provider: basic-memory
34+
```
35+
36+
Restart the gateway (`hermes gateway restart`) and verify with `hermes memory status`.
37+
38+
::note
39+
The agent tools and auto-capture work out of the box. The native `/bm-*` slash commands need a Hermes Agent-side patch on releases through `v0.14.0` / `v2026.5.16` — see the warning in the full guide.
40+
::
41+
42+
## Next Steps
43+
44+
:::card-group
45+
::card
46+
---
47+
title: Hermes Plugin Guide
48+
icon: i-lucide-puzzle
49+
to: /integrations/hermes
50+
---
51+
Full guide with configuration, tool reference, slash commands, and the slash-command patch.
52+
::
53+
54+
::card
55+
---
56+
title: GitHub Repository
57+
icon: i-lucide-github
58+
to: https://github.com/basicmachines-co/hermes-basic-memory
59+
---
60+
Source code, issues, and contributing guide.
61+
::
62+
:::
File renamed without changes.
File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ The [openclaw-basic-memory](https://github.com/basicmachines-co/openclaw-basic-m
77

88
[Basic Memory](/start-here/what-is-basic-memory) is a knowledge base that you and your AI share. This plugin connects it to OpenClaw so your agent remembers past conversations, decisions, and context.
99

10+
::tip
11+
**[Read the full OpenClaw Plugin guide →](/integrations/openclaw)** — configuration options, the complete tool reference, slash commands, and bundled skills.
12+
::
13+
1014
## Key Capabilities
1115

1216
- **Search across everything** — Searches your notes, knowledge graph, and active tasks at once
Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
---
2+
title: "Hermes Plugin"
3+
description: "Give Hermes Agent persistent Basic Memory: search-before-answer recall, per-turn capture, end-of-session summaries, 10 agent tools, slash commands, and a bundled skill."
4+
---
5+
6+
The [hermes-basic-memory](https://github.com/basicmachines-co/hermes-basic-memory) plugin connects Basic Memory to [Hermes Agent](https://github.com/NousResearch/hermes-agent), giving agents a persistent knowledge graph stored as plain Markdown. Hermes ships with no external memory provider by default; this plugin replaces that with a real graph — search-before-answer recall, automatic conversation capture, end-of-session summaries, and a curated set of `bm_*` tools the agent can call directly.
7+
The plugin is open source — browse the source on [GitHub](https://github.com/basicmachines-co/hermes-basic-memory).
8+
9+
::warning
10+
**Slash commands need a Hermes Agent-side patch on current releases.** The plugin's agent tools (`bm_*`) and auto-capture work as documented once installed. The native `/bm-*` **slash commands**, however, do not appear in gateway sessions on Hermes Agent releases through `v0.14.0` / `v2026.5.16` (verified 2026-05-16). This is a Hermes Agent plugin-loading gap — exclusive memory-provider plugins aren't loaded during gateway slash-command discovery — not a plugin bug. The plugin ships a best-effort workaround, but it isn't sufficient for gateway startup discovery in affected builds. Until the upstream Hermes fix lands, apply the Hermes Agent-side patch documented in [MONKEYPATCH.md](https://github.com/basicmachines-co/hermes-basic-memory/blob/main/MONKEYPATCH.md). This affects only the slash-command surface; nothing else in this page depends on it.
11+
::
12+
13+
::tip
14+
Requires [Hermes Agent](https://github.com/NousResearch/hermes-agent) and [`uv`](https://docs.astral.sh/uv/) on your PATH. The plugin auto-installs the `bm` CLI on first init via `uv tool install basic-memory` (a one-time ~10s pause if it isn't already present).
15+
::
16+
17+
---
18+
19+
## Installation
20+
21+
Install the plugin:
22+
23+
```bash
24+
hermes plugins install basicmachines-co/hermes-basic-memory
25+
```
26+
27+
Then activate it in `~/.hermes/config.yaml`:
28+
29+
```yaml
30+
memory:
31+
provider: basic-memory
32+
```
33+
34+
If you run the gateway, restart it:
35+
36+
```bash
37+
hermes gateway restart
38+
```
39+
40+
Verify the plugin is live:
41+
42+
```bash
43+
hermes memory status
44+
```
45+
46+
```text
47+
Provider: basic-memory
48+
Plugin: installed ✓
49+
Status: available ✓
50+
```
51+
52+
::note
53+
The plugin needs the `mcp` Python package in the Hermes venv. `hermes plugins install` usually installs it from the plugin's `pip_dependencies`. If it doesn't, run `uv pip install --python ~/.hermes/hermes-agent/venv/bin/python mcp`.
54+
::
55+
56+
---
57+
58+
## Configuration
59+
60+
Defaults are reasonable for local use — no configuration required. To override, write `~/.hermes/basic-memory.json` or run `hermes memory setup basic-memory`:
61+
62+
| Key | Default | Description |
63+
|--------|---------|-------------|
64+
| `mode` | `local` | `local` (in-process) or `cloud` (route through Basic Memory Cloud) |
65+
| `project` | `hermes-memory` | Basic Memory project name |
66+
| `project_path` | `~/hermes-memory/` | Local mode only — where the project's files live |
67+
| `capture_per_turn` | `true` | Append every user/assistant exchange to a session transcript note |
68+
| `capture_session_end` | `true` | Write a summary note when the session ends |
69+
| `capture_folder` | `hermes-sessions` | Folder for auto-captured session notes |
70+
| `remember_folder` | `bm-remember` | Folder for `/bm-remember` quick captures (kept separate from session transcripts) |
71+
72+
```json
73+
{
74+
"mode": "local",
75+
"project": "hermes-memory",
76+
"project_path": "~/hermes-memory/",
77+
"capture_per_turn": true,
78+
"capture_session_end": true,
79+
"capture_folder": "hermes-sessions",
80+
"remember_folder": "bm-remember"
81+
}
82+
```
83+
84+
---
85+
86+
## How It Works
87+
88+
### Search-Before-Answer Recall
89+
90+
Before the agent answers a question about prior work, it searches the knowledge graph so it can build on what's already documented instead of starting cold. Recall is injected into context automatically each turn.
91+
92+
### Auto-Capture
93+
94+
Every user/assistant exchange is appended to a running session-transcript note. When the session ends, a separate summary note is written and linked back to the transcript via a `summary_of` relation — so a session is both fully logged and quickly skimmable.
95+
96+
### Persistent Connection
97+
98+
The plugin holds a long-lived `bm mcp` process open over stdio for the agent's lifetime (~0.1s per tool call). Shelling out to the `bm` CLI would spawn a fresh Python process per call (1–2s cold start) and bypass automatic capture — so the agent is steered to use the `bm_*` tools directly.
99+
100+
### Cross-Project & Workspace Routing
101+
102+
Every read/write tool accepts an optional `project` (name, optionally workspace-qualified like `"personal/main"`) or `project_id` (UUID from `bm_projects`). The agent can read or write against any project in your knowledge base without reconfiguring the plugin — and disambiguate same-named projects across cloud workspaces. See [local/cloud routing](/cloud/routing) for how project modes work.
103+
104+
In practice the Hermes agent gets:
105+
106+
- **Its own long-term memory** — auto-captured conversations and summaries that persist across sessions
107+
- **Access to external projects** — search and write notes in any project, routed per call
108+
- **Local/cloud hybrid** — keep the agent's memory local while routing shared projects through Basic Memory Cloud; the tools behave identically either way
109+
110+
---
111+
112+
## Agent Tools
113+
114+
The plugin exposes 10 tools (a curated subset of Basic Memory's MCP surface):
115+
116+
| Tool | Description |
117+
|------|-------------|
118+
| `bm_search` | Semantic + full-text search; the agent calls this before answering |
119+
| `bm_read` | Read a note by title, permalink, or `memory://` URL |
120+
| `bm_write` | Create a note (decisions, meeting notes, insights) |
121+
| `bm_edit` | Incremental edits — append, prepend, find/replace, replace-section |
122+
| `bm_context` | Navigate the graph via `memory://` URLs to find related notes |
123+
| `bm_delete` | Delete a note |
124+
| `bm_move` | Move a note to a different folder |
125+
| `bm_recent` | List notes updated within a timeframe (default `7d`) |
126+
| `bm_projects` | List available projects with their UUIDs for routing |
127+
| `bm_workspaces` | List Basic Memory Cloud workspaces |
128+
129+
::note
130+
Every read/write tool also accepts `project` / `project_id` for per-call routing. `bm_projects` and `bm_workspaces` are discovery tools — they list across everything and take no routing arguments.
131+
::
132+
133+
---
134+
135+
## Slash Commands
136+
137+
::note
138+
On Hermes Agent releases through `v0.14.0` / `v2026.5.16`, these commands require the Hermes Agent-side patch in [MONKEYPATCH.md](https://github.com/basicmachines-co/hermes-basic-memory/blob/main/MONKEYPATCH.md) — see the warning at the top of this page. The agent tools above are unaffected.
139+
::
140+
141+
For direct, in-session use without going through the agent:
142+
143+
| Command | Description |
144+
|---------|-------------|
145+
| `/bm-search <query>` | Search the knowledge graph |
146+
| `/bm-read <identifier>` | Read a note by title, permalink, or `memory://` URL |
147+
| `/bm-context <identifier>` | Show the context graph for a note |
148+
| `/bm-recent [timeframe]` | Recently updated notes (default `7d`) |
149+
| `/bm-status` | Plugin/provider status — mode, project, capture flags |
150+
| `/bm-remember <text>` | Quick-capture a note (title from the first line) |
151+
| `/bm-project` | List available projects; the active one is marked |
152+
| `/bm-workspace` | List Basic Memory Cloud workspaces (cloud mode) |
153+
154+
---
155+
156+
## Bundled Skill
157+
158+
The plugin ships a `basic-memory` skill that gives the agent a longer reference doc on top of the always-on guidance: the note format, cross-project routing, permalink shapes, and a worked discovery → route → write → verify recipe. It's opt-in via `skill:view basic-memory:basic-memory`.
159+
160+
---
161+
162+
## Next Steps
163+
164+
:::card-group
165+
::card
166+
---
167+
title: MCP Tools Reference
168+
icon: i-lucide-wrench
169+
to: /reference/mcp-tools-reference
170+
---
171+
Full reference for all Basic Memory MCP tools.
172+
::
173+
174+
::card
175+
---
176+
title: Local & Cloud Routing
177+
icon: i-lucide-cloud
178+
to: /cloud/routing
179+
---
180+
Run some projects locally and others in the cloud.
181+
::
182+
183+
::card
184+
---
185+
title: Memory URLs
186+
icon: i-lucide-link
187+
to: /concepts/memory-urls
188+
---
189+
How `memory://` addressing and permalinks work.
190+
::
191+
192+
::card
193+
---
194+
title: OpenClaw Plugin
195+
icon: i-lucide-plug
196+
to: /integrations/openclaw
197+
---
198+
The sibling plugin for OpenClaw agents.
199+
::
200+
201+
::card
202+
---
203+
title: GitHub Repository
204+
icon: i-lucide-github
205+
to: https://github.com/basicmachines-co/hermes-basic-memory
206+
---
207+
Source code, issues, and contributing guide.
208+
::
209+
:::

0 commit comments

Comments
 (0)