From 1d9979095dc3d643d32d159afe9af55f9669107d Mon Sep 17 00:00:00 2001 From: MoonCaves <144150401+MoonCaves@users.noreply.github.com> Date: Wed, 18 Nov 2026 15:05:01 +0800 Subject: [PATCH 1/3] docs(cli): include Hermes in source flag help Append the already registered Hermes adapter to the shared source help roster. Preserve the Goose discovery caveat and all flag behavior. Source: internal/source/hermes/hermes.go ID and Registration plus internal/sources/sources.go built-in registration at accepted base 2e391b6af9901fb2e260a7552f05b68621437719. --- CHANGELOG.md | 1 + internal/cli/cli_options.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd824cd6..fc505035 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ All notable changes to RawClaw are documented in this file. ### Fixed +- Include the existing Hermes adapter in the shared `--source` help roster. - Use exact ID equality in OpenCode's registered session lookup instead of prefix matching. - Preserve JSON escapes in Claude Code and Codex catalog working directories and transcript paths with a native serializer; session-ID/event extraction and Antigravity metadata retain their existing limitations. - Corrected consolidated-index warnings that incorrectly promised a per-project fallback during prewarm and cached tag-refresh checks. diff --git a/internal/cli/cli_options.go b/internal/cli/cli_options.go index eede7437..715816ea 100644 --- a/internal/cli/cli_options.go +++ b/internal/cli/cli_options.go @@ -171,7 +171,7 @@ func bindRootFlags(root *cobra.Command, opts *Options) { f.BoolVar(&opts.All, "all", false, "cover every project: the search default already, and the widener for bare browse and --stats") f.BoolVar(&opts.List, "list", false, "list all searchable projects (with session counts) and exit") f.StringVar(&opts.Role, "role", "", "only this author role (user|assistant)") - f.StringVar(&opts.Source, "source", "", "only this runtime (claude|codex|antigravity|goose|pi|opencode); default searches all (goose discovery is opt-in: pass --source goose or set RAWCLAW_GOOSE=1)") + f.StringVar(&opts.Source, "source", "", "only this runtime (claude|codex|antigravity|goose|pi|opencode|hermes); default searches all (goose discovery is opt-in: pass --source goose or set RAWCLAW_GOOSE=1)") f.StringVar(&opts.Sort, "sort", "", "result order (newest|oldest)") f.BoolVar(&opts.IncludeTools, "include-tools", false, "also match/show tool calls + tool-only hits") f.BoolVar(&opts.IncludeSubagents, "include-subagents", false, "also search delegated subagent threads") From 594efa09c9f32e432d2deb5efa233df5e13b1319 Mon Sep 17 00:00:00 2001 From: MoonCaves <144150401+MoonCaves@users.noreply.github.com> Date: Wed, 18 Nov 2026 15:12:19 +0800 Subject: [PATCH 2/3] docs: record factual sources for Hermes help roster Document the existing builtin registration order and actual source-discovery defaults as a factual help adaptation, not a verbatim full-string donor. Preserve original 1d99790 and its rejection. No Go/help modification or runtime change; gate/publication approval remains pending. Prior-Art: MoonCaves/rawclaw internal/sources/sources.go L26-L33 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/cli/cli_options.go Prior-Art: MoonCaves/rawclaw internal/source/source.go L80-L101 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/cli/cli_options.go Prior-Art: MoonCaves/rawclaw internal/source/hermes/hermes.go L23-L36 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/cli/cli_options.go Prior-Art: MoonCaves/rawclaw internal/source/hermes/hermes.go L50-L57 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/cli/cli_options.go Prior-Art: MoonCaves/rawclaw internal/scopes/scopes.go L40-L69 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/cli/cli_options.go Prior-Art: MoonCaves/rawclaw internal/source/goose/goose.go L58-L87 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/cli/cli_options.go Prior-Art: MoonCaves/rawclaw internal/cli/cli_options.go L174-L174 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/cli/cli_options.go --- docs/design/decision-references.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/design/decision-references.md b/docs/design/decision-references.md index 68a8cff3..fa94f253 100644 --- a/docs/design/decision-references.md +++ b/docs/design/decision-references.md @@ -2,6 +2,17 @@ Source: created here as a catalog of verified upstream material; the linked immutable files own the patterns. +## Hermes source help roster (2026-11-18) + +Source: created here as a factual documentation-adaptation record; linked immutable `MoonCaves/rawclaw@2e391b6af9901fb2e260a7552f05b68621437719` files own the facts ([MIT](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/LICENSE)). + +- Builtin roster/order: [sources.go26–33](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/sources/sources.go#L26-L33) registers Claude, Codex, Antigravity, Goose, Pi, OpenCode, Hermes; [source.go80–101](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/source/source.go#L80-L101) preserves insertion order. +- Hermes identity/default construction: [hermes.go23–36](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/source/hermes/hermes.go#L23-L36) and [hermes.go50–57](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/source/hermes/hermes.go#L50-L57) supply `hermes`, default roots and registration without an opt-in callback. +- Discovery/default eligibility: [scopes.go40–69](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/scopes/scopes.go#L40-L69) selects registered sources and checks nonnil opt-in callbacks; [goose.go58–87](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/source/goose/goose.go#L58-L87) supplies the Goose opt-in caveat. +- Existing surrounding help wording: [cli_options.go174](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/cli/cli_options.go#L174-L174) supplies the unchanged default-search statement and Goose caveat; the adaptation appends the already implemented Hermes ID in builtin order. + +This list adaptation documents existing behavior; it adds no discovery/default choice and has no literal full-help donor. Original `1d99790` REJECT is retained; source eligibility is not gate or publication approval, both remain pending. + ## OpenCode registered full-ID lookup equality (2026-11-18) Source: `MoonCaves/rawclaw` at immutable revision `e0420b85a30f2b4f562d72e531bcab64f23b6aa9`, [MIT](https://github.com/MoonCaves/rawclaw/blob/e0420b85a30f2b4f562d72e531bcab64f23b6aa9/LICENSE). From 15575bb0e1f9717ea11d3fe6ecff68cab93d0b0d Mon Sep 17 00:00:00 2001 From: MoonCaves <144150401+MoonCaves@users.noreply.github.com> Date: Wed, 18 Nov 2026 16:05:44 +0800 Subject: [PATCH 3/3] docs: record Hermes help gate approval --- docs/design/decision-references.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/design/decision-references.md b/docs/design/decision-references.md index fa94f253..0cd49d13 100644 --- a/docs/design/decision-references.md +++ b/docs/design/decision-references.md @@ -11,7 +11,7 @@ Source: created here as a factual documentation-adaptation record; linked immuta - Discovery/default eligibility: [scopes.go40–69](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/scopes/scopes.go#L40-L69) selects registered sources and checks nonnil opt-in callbacks; [goose.go58–87](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/source/goose/goose.go#L58-L87) supplies the Goose opt-in caveat. - Existing surrounding help wording: [cli_options.go174](https://github.com/MoonCaves/rawclaw/blob/2e391b6af9901fb2e260a7552f05b68621437719/internal/cli/cli_options.go#L174-L174) supplies the unchanged default-search statement and Goose caveat; the adaptation appends the already implemented Hermes ID in builtin order. -This list adaptation documents existing behavior; it adds no discovery/default choice and has no literal full-help donor. Original `1d99790` REJECT is retained; source eligibility is not gate or publication approval, both remain pending. +This list adaptation documents existing behavior; it adds no discovery/default choice and has no literal full-help donor. Original `1d99790` REJECT remains preserved. Revised commit `594efa09c9f32e432d2deb5efa233df5e13b1319` received normal pre-push gate APPROVE for the exact range `2e391b6af9901fb2e260a7552f05b68621437719..594efa09c9f32e432d2deb5efa233df5e13b1319` (diff `ad04fba1da8a`) and was published as draft PR #171. That receipt covers only the exact range above; every subsequent diff, including this note correction, requires its own normal gate evaluation before push and publication. ## OpenCode registered full-ID lookup equality (2026-11-18)