Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
feat(harness): register the documented Hermes stdio adapter (#5418)
time-attackab3c64dbe510
diff --git a/docs/guides/ambient-writeback.md b/docs/guides/ambient-writeback.mdindex c53ab899ce..c8151b549f 100644--- a/docs/guides/ambient-writeback.md+++ b/docs/guides/ambient-writeback.md@@ -255,6 +255,7 @@ and reads `memory_writeback`).|---|---|---|| Claude Code | MCP instructions + managed user CLAUDE.md block | Stop-hook lane (above) || Codex | MCP instructions + managed `$CODEX_HOME/AGENTS.md` block | **No per-turn hook exists** (SessionEnd only, 3s hard-kill). The existing SessionEnd capture → corpus → maintenance-sweep extraction lane is the delayed backstop — whole-session, next-sweep latency, governed by `facts.extraction_enabled` (it predates this feature). |+| Hermes | MCP instructions when connected | None wired. || opencode / OpenClaw / others | MCP instructions when connected | None wired — follow-ups filed. |The workspace-bootstrap "same-turn write-back" contractdiff --git a/docs/guides/harness-adapters.md b/docs/guides/harness-adapters.mdindex 92d69689f5..ad0561709f 100644--- a/docs/guides/harness-adapters.md+++ b/docs/guides/harness-adapters.md@@ -15,6 +15,7 @@ A supported transport is distinct from a tested vendor session. The new Grok Bot| grok-bot | local-cli, thin-cli | thin-cli | 1 hour | [Guide](../../docs/guides/grok-bot.md) || muse | local-cli, thin-cli | thin-cli | 1 hour | [Guide](../../docs/guides/muse.md) || muse-code | stdio, http | Follow client settings | 1 hour | [Guide](../../docs/guides/muse.md#muse-code-is-a-different-product) |+| hermes | stdio | Follow client settings | 1 hour | [Guide](../../docs/mcp/HERMES.md) || cursor | http | Follow client settings | 1 hour | [Guide](../../docs/guides/hosted-harness-access.md) || perplexity | http | Follow client settings | 1 hour | [Guide](../../docs/guides/hosted-harness-access.md) || chatgpt | http | Follow client settings | 1 hour | [Guide](../../docs/guides/hosted-harness-access.md) |diff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsvindex 9a74b0272f..a13c2e2c50 100644--- a/scripts/structural-suites.tsv+++ b/scripts/structural-suites.tsv@@ -177,7 +177,7 @@ test/frontmatter-install-hook.test.ts frontmatter install-hook (B13) 25 readFiletest/gbrain-owned-page-types.test.ts #5881 gbrain-owned page types are declared by gbrain-base-v2 3 readFileSynctest/get-page-federated-scope.test.ts #2555 get_chunks federated scope 5 source-surface-helpertest/get-page-federated-scope.test.ts #4275 alias hop scope: archived sources, include_deleted, fuzzy precedence, grant precedence 5 source-surface-helper-test/harness-onboarding.test.ts harness identity and private handoff 5 readFileSync+test/harness-onboarding.test.ts harness identity and private handoff 6 readFileSynctest/hook-command.serial.test.ts user-prompt 16 source-surface-helpertest/hook-push-spawn-env.test.ts spawnDetachedPush env handoff 2 readFileSynctest/hook-push-spawn-env.test.ts tryExecAsync env handoff 1 readFileSyncdiff --git a/src/core/harness/registry.ts b/src/core/harness/registry.tsindex a2f18f4ce4..7575567276 100644--- a/src/core/harness/registry.ts+++ b/src/core/harness/registry.ts@@ -46,6 +46,9 @@ export const HARNESS_ADAPTERS: readonly HarnessAdapter[] = [{ id: 'muse-code', label: 'Muse Code', aliases: [], modes: ['stdio', 'http'], connection: 'manual', renewable: true,guide: 'docs/guides/muse.md#muse-code-is-a-different-product', reload: 'Reload Muse Code’s MCP connection.', nativeInstructions: 'manual',evidence: dated(['https://dev.meta.ai/docs/muse-code/extending']) },+ { id: 'hermes', label: 'Hermes', aliases: [], modes: ['stdio'], connection: 'manual', renewable: true,+ guide: 'docs/mcp/HERMES.md', reload: 'Run `hermes mcp test gbrain` and confirm it lists the gbrain tools.', nativeInstructions: 'manual',+ evidence: dated([`${repo}docs/mcp/HERMES.md`]) },...(['cursor', 'perplexity', 'chatgpt', 'generic'] as const).map(id => ({id, label: id === 'generic' ? 'your agent' : id === 'perplexity' ? 'Perplexity Computer' : id, aliases: [], modes: ['http'] as HarnessMode[],connection: 'manual' as const, renewable: true, guide: 'docs/guides/hosted-harness-access.md',diff --git a/test/harness-onboarding.test.ts b/test/harness-onboarding.test.tsindex 7471a57b8e..57e1627e58 100644--- a/test/harness-onboarding.test.ts+++ b/test/harness-onboarding.test.ts@@ -2,7 +2,7 @@ import { afterEach, describe, expect, test } from 'bun:test';import { mkdtempSync, readFileSync, rmSync, statSync, writeFileSync, chmodSync, mkdirSync } from 'node:fs';import { tmpdir } from 'node:os';import { join } from 'node:path';-import { harnessAdapter, HARNESS_ADAPTERS, renderHarnessReference } from '../src/core/harness/registry.ts';+import { harnessAdapter, HARNESS_ADAPTERS, publicHarnessMetadata, renderHarnessReference } from '../src/core/harness/registry.ts';import { readCredentials, writeCredentials, credentialReceipt, validateCredentials, type HarnessCredentials } from '../src/core/harness/credentials.ts';import { installHarnessConnection } from '../src/core/harness/install.ts';import { verifyHarnessConnection, type VerificationPeer } from '../src/core/harness/verify.ts';@@ -18,6 +18,15 @@ describe('harness identity and private handoff', () => {expect(readFileSync(new URL('../docs/guides/harness-adapters.md', import.meta.url), 'utf8')).toBe(renderHarnessReference());for (const adapter of HARNESS_ADAPTERS) expect(() => statSync(new URL(`../${adapter.guide.split('#')[0]}`, import.meta.url))).not.toThrow();});+ test('the documented Hermes stdio transport is a manual adapter with no runtime-tested claim (#5292)', async () => {+ const hermes = harnessAdapter('hermes');+ expect(hermes).toMatchObject({ id: 'hermes', modes: ['stdio'], connection: 'manual', guide: 'docs/mcp/HERMES.md', nativeInstructions: 'manual' });+ expect(hermes.evidence.runtimeTestedAt).toBeNull();+ expect(publicHarnessMetadata().find(a => a.id === 'hermes')?.modes).toEqual(['stdio']);+ const installed = await installHarnessConnection(creds(), { harness: 'hermes', configPath: join(temp(), 'unused.json') });+ expect(installed).toMatchObject({ status: 'pending', reason: 'manual_configuration_required', documentation: 'docs/mcp/HERMES.md' });+ expect(readFileSync(new URL('../docs/guides/ambient-writeback.md', import.meta.url), 'utf8')).toContain('| Hermes |');+ });test('old grok alias remains Build and personal agents have no asserted native MCP integration', () => {expect(harnessAdapter('grok').id).toBe('grok-build');for (const id of ['grok-bot', 'muse']) {