Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
v0.60.398.0 chore(release): restamp onto master v0.60.397.0
garrytand120a92e3bfa
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 2837dd48da..922ae1e01e 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.397.0",+ "version": "0.60.398.0","description": "Personal knowledge brain for your coding agent — hybrid search, synthesis, graph traversal, and durable cross-session memory over Postgres/PGLite with pgvector, plus a curated brain-first skill set.","author": {"name": "Garry Tan",diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex d151636317..a6ed36f781 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.397.0",+ "version": "0.60.398.0","description": "Personal knowledge brain for your coding agent — hybrid search, synthesis, graph traversal, and durable cross-session memory over Postgres/PGLite with pgvector, plus a curated brain-first skill set.","author": {"name": "Garry Tan",diff --git a/BOOTSTRAP_FOR_AGENTS.md b/BOOTSTRAP_FOR_AGENTS.mdindex e9a7e59db0..f5eb435b2e 100644--- a/BOOTSTRAP_FOR_AGENTS.md+++ b/BOOTSTRAP_FOR_AGENTS.md@@ -1,4 +1,4 @@-<!-- gbrain-runbook-stamp: 0.60.397.0 -->+<!-- gbrain-runbook-stamp: 0.60.398.0 --><!-- This stamp must equal the VERSION file at every release; CI enforces it(scripts/check-bootstrap-tag.sh). `gbrain bootstrap status` compares it tothe installed binary and warns on skew. -->diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 01a11dac19..5583406d97 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,7 +10,7 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).-## [Unreleased]+## [0.60.398.0] - 2026-10-23**Hot memory is injected once per session in Claude Code: assistant-attributed and external facts no longer come back on every prompt, and the first prompt no longer repeats the session-start block.** The per-prompt block wrote its own fact line, which dropped the `(assistant said)` prefix, so an assistant suggestion read as your own claim and never matched the dedupe key built from the shared line; an external fact's `<external-data>` wrapper broke the match the same way. Separately, Claude Code records `gbrain hook session-start` output as a SessionStart `hook_success` entry, which the user-prompt hook did not read, so every fact the session-start block showed came back on the first prompt. And `gbrain facts relink` attached the assistant's own report about a page, which the SessionEnd corpus sweep saves as an assistant-attributed fact, to that page as an entity fact on every run, core pages included.diff --git a/VERSION b/VERSIONindex b844db90ef..2b9ed35297 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.60.397.0+0.60.398.0diff --git a/openclaw.plugin.json b/openclaw.plugin.jsonindex a4865f757d..8d4eae18fa 100644--- a/openclaw.plugin.json+++ b/openclaw.plugin.json@@ -1,7 +1,7 @@{"id": "gbrain-context-engine","name": "gbrain",- "version": "0.60.397.0",+ "version": "0.60.398.0","description": "Personal knowledge brain with Postgres + pgvector hybrid search","family": "bundle-plugin","kind": "context-engine",diff --git a/package.json b/package.jsonindex 5af8247f66..751c3e8966 100644--- a/package.json+++ b/package.json@@ -245,7 +245,7 @@"bun": ">=1.4.0"},"license": "MIT",- "version": "0.60.397.0",+ "version": "0.60.398.0","overrides": {"@ai-sdk/provider-utils": "4.0.56","@hono/node-server": "^2.0.5",diff --git a/plugin-variants/gbrain-coding/.claude-plugin/plugin.json b/plugin-variants/gbrain-coding/.claude-plugin/plugin.jsonindex ae3552ea2a..0b3ee476a6 100644--- a/plugin-variants/gbrain-coding/.claude-plugin/plugin.json+++ b/plugin-variants/gbrain-coding/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-coding",- "version": "0.60.397.0",+ "version": "0.60.398.0","description": "Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant. (persona variant of the gbrain plugin — 21 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-coding/.codex-plugin/plugin.json b/plugin-variants/gbrain-coding/.codex-plugin/plugin.jsonindex afb7069693..fe75e1f184 100644--- a/plugin-variants/gbrain-coding/.codex-plugin/plugin.json+++ b/plugin-variants/gbrain-coding/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-coding",- "version": "0.60.397.0",+ "version": "0.60.398.0","description": "Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant. (persona variant of the gbrain plugin — 21 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-coding/README.md b/plugin-variants/gbrain-coding/README.mdindex 935d5bcdf5..cd29ae53db 100644--- a/plugin-variants/gbrain-coding/README.md+++ b/plugin-variants/gbrain-coding/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.397.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.398.0 --># gbrain-coding (generated persona variant — do not hand-edit)Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant.diff --git a/plugin-variants/gbrain-daily/.claude-plugin/plugin.json b/plugin-variants/gbrain-daily/.claude-plugin/plugin.jsonindex 4a487b26bc..cb00981b76 100644--- a/plugin-variants/gbrain-daily/.claude-plugin/plugin.json+++ b/plugin-variants/gbrain-daily/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-daily",- "version": "0.60.397.0",+ "version": "0.60.398.0","description": "Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant. (persona variant of the gbrain plugin — 20 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-daily/.codex-plugin/plugin.json b/plugin-variants/gbrain-daily/.codex-plugin/plugin.jsonindex 9bb7c4c375..3aef3e7b90 100644--- a/plugin-variants/gbrain-daily/.codex-plugin/plugin.json+++ b/plugin-variants/gbrain-daily/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-daily",- "version": "0.60.397.0",+ "version": "0.60.398.0","description": "Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant. (persona variant of the gbrain plugin — 20 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-daily/README.md b/plugin-variants/gbrain-daily/README.mdindex 71a7dc5f48..fc0bb2388f 100644--- a/plugin-variants/gbrain-daily/README.md+++ b/plugin-variants/gbrain-daily/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.397.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.398.0 --># gbrain-daily (generated persona variant — do not hand-edit)Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant.diff --git a/plugin/README.md b/plugin/README.mdindex 5cc6b2037f..9983899ada 100644--- a/plugin/README.md+++ b/plugin/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.397.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.398.0 --># gbrain plugin skill tree (generated — do not hand-edit)This tree is the curated skill set for the gbrain Codex and Claude Codediff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.tsindex 6ce7c5b7dd..dea340b61e 100644--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@ -1080,10 +1080,10 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText;{ since: '0.60.347.0', text: 'After a model or dimension swap, `gbrain embed --stale`, the embed backfill and `gbrain migrate embeddings` now mark old-model chunks for re-embedding in windows of 1,000 pages (all committed together) instead of one statement over the whole brain, which a large brain cancelled at the statement timeout on every run. The drift check before the embedder probe is one page-first lookup instead of two counts over every chunk, so a count that timed out can no longer skip the swap silently; the "embedder probe failed" warning no longer names a chunk count.' },// #7211 (GBRA-145). `since` is restamped at the merge slot.// #7043, reported by @mikez93. `since` is stamped at the merge slot.- { since: 'TBD', text: 'Recall, the entity card and search `saved_facts` now return one row for each claim instead of one per stored copy (#7043, reported by @mikez93): active facts of one source and visibility with the same normalized text (the fingerprint `forget` and the capture lane use) collapse into the newest copy before `limit` is applied, so the limit counts distinct claims. Copies on different entities merge only when the claim names one of those entities, and copies attributed to different speakers stay apart, as in hot memory. The row adds `collapsed_count` (copies it stands for) and, when the merged copies sit on more than one entity, `entity_slugs`; every other field is unchanged, and remote callers collapse only rows they can already see. Expired facts, `include_expired` history and near duplicates are not merged, and nothing stored changes.' },- { since: 'TBD', text: 'Conversation fact extraction no longer stores a fact an active conversation fact of the same source already states (same normalized text and visibility, on the same entity or on an entity the claim names, and no other speaker), whatever page or session it came from (#7043, reported by @mikez93). Before, a standing prompt or instruction repeated in every session was saved again for each one. The run prints `skipped N fact(s) an active fact of the source already states (#7043)`; re-extracting a page still replaces its own facts. Copies stored before the upgrade stay until `gbrain repair duplicate-facts` retires them.' },- { since: 'TBD', text: 'New explicit repair `gbrain repair duplicate-facts` (#7043): it previews each group of active facts of one source, visibility and speaker that share a fingerprint and the oldest row it keeps, and after `--apply --expect <hash> --yes` marks every other copy superseded by that row (`expired_at` and `superseded_by`; never deleted or withdrawn). Groups spread over several entities are reported as `cross_entity` and retired only with `--include-cross-entity`. Fenced copies are struck in their page as `superseded by #N` through a revision-bound page write when the kept row shares the fence, and are reported as `fence_kept_elsewhere` otherwise; copies on a segmented page are kept and reported as `segmented_page`. Near duplicates are never touched, and nothing runs on upgrade.' },- { since: 'TBD', text: 'New config key `cycle.conversation_facts_backfill.exclude_sources` (#7043): a JSON array or comma list of source ids the conversation facts backfill phase skips, so one source can be left out without turning the phase off. Unset (the default) skips nothing; the phase result reports `sources_excluded`.' },+ { since: '0.60.398.0', text: 'Recall, the entity card and search `saved_facts` now return one row for each claim instead of one per stored copy (#7043, reported by @mikez93): active facts of one source and visibility with the same normalized text (the fingerprint `forget` and the capture lane use) collapse into the newest copy before `limit` is applied, so the limit counts distinct claims. Copies on different entities merge only when the claim names one of those entities, and copies attributed to different speakers stay apart, as in hot memory. The row adds `collapsed_count` (copies it stands for) and, when the merged copies sit on more than one entity, `entity_slugs`; every other field is unchanged, and remote callers collapse only rows they can already see. Expired facts, `include_expired` history and near duplicates are not merged, and nothing stored changes.' },+ { since: '0.60.398.0', text: 'Conversation fact extraction no longer stores a fact an active conversation fact of the same source already states (same normalized text and visibility, on the same entity or on an entity the claim names, and no other speaker), whatever page or session it came from (#7043, reported by @mikez93). Before, a standing prompt or instruction repeated in every session was saved again for each one. The run prints `skipped N fact(s) an active fact of the source already states (#7043)`; re-extracting a page still replaces its own facts. Copies stored before the upgrade stay until `gbrain repair duplicate-facts` retires them.' },+ { since: '0.60.398.0', text: 'New explicit repair `gbrain repair duplicate-facts` (#7043): it previews each group of active facts of one source, visibility and speaker that share a fingerprint and the oldest row it keeps, and after `--apply --expect <hash> --yes` marks every other copy superseded by that row (`expired_at` and `superseded_by`; never deleted or withdrawn). Groups spread over several entities are reported as `cross_entity` and retired only with `--include-cross-entity`. Fenced copies are struck in their page as `superseded by #N` through a revision-bound page write when the kept row shares the fence, and are reported as `fence_kept_elsewhere` otherwise; copies on a segmented page are kept and reported as `segmented_page`. Near duplicates are never touched, and nothing runs on upgrade.' },+ { since: '0.60.398.0', text: 'New config key `cycle.conversation_facts_backfill.exclude_sources` (#7043): a JSON array or comma list of source ids the conversation facts backfill phase skips, so one source can be left out without turning the phase off. Unset (the default) skips nothing; the phase result reports `sources_excluded`.' },{ since: '0.60.347.0', text: '`gbrain embed --facts` no longer fails a whole batch, and every later run, on one fact longer than the embedding input limit: that fact is skipped (never truncated), keeps its text and stays stale, and the result reports it (`refused_oversized`, `refused_samples` with fact ids, `refused_fix`) without counting it in `remaining` or against `--max-facts`. Doctor `fact_take_vectors` adds `facts.oversized`, and `gbrain embed --held` lists them. Shorten or split the fact, or withdraw it with `gbrain forget <fact-id>`, and the next run embeds it once it fits.' },// Minions usability PR 2 (#7242): the maintainer's Oct 20, 2026 ask to make minions more usable. `since` is stamped at the merge slot.{ since: '0.60.348.0', text: 'A `gbrain jobs work` worker running two or more jobs at once (the supervisor and autopilot default is 2) now keeps one slot free of long jobs: autopilot-cycle, autopilot-global-maintenance, embed-backfill, connector-sync, extract and doctor-refresh run in at most concurrency minus one slots, so short jobs such as facts-absorb no longer wait behind them. Long jobs can take longer to start when one is already running. `gbrain config set minions.short_job_reserved_slots 0` restores the old behavior; `minions.long_job_names` adds job names to the long set.' },@@ -1160,14 +1160,14 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText;// GBRA-133 (soak: an unread origin was reported as never committed). `since` is restamped at the merge slot.{ since: '0.60.397.0', text: 'A `file_drift` hold (side `deleted`, state `file_gone`) for a missing file whose Git history read did not finish now carries `meta.reason` `origin_unknown` and says Git could not show whether a commit held the file, instead of `never_committed` and "Git never committed it". The page is still kept, and the `--held` preview still reads the whole history and names the provenance.' },// GBRA-60 small-items wave (#7026 part 2, #7234). `since` is stamped at the merge slot.- { since: 'TBD', text: 'New opt-in `context.hot_memory.session_only`, off by default (#7026): with `gbrain config set context.hot_memory.session_only true`, the hot facts the turn hook and the session-start pack inject come from the current session only, so a session with no facts of its own gets none instead of the source\'s newest facts from the last 24 hours, which can belong to other sessions. MCP `_meta.brain_hot_memory` is unchanged.' },- { since: 'TBD', text: 'When the chronicle phase refuses a judge answer as `malformed_proposal`, it now prints one warning line naming the check that failed (a fixed code such as `when_unparseable`, the field, the JSON type found there and counts, never a value), and the direct extractor result carries the same fields under `malformed` (#7234). The refusal, its retry with backoff and the ledger row are unchanged.' },+ { since: '0.60.398.0', text: 'New opt-in `context.hot_memory.session_only`, off by default (#7026): with `gbrain config set context.hot_memory.session_only true`, the hot facts the turn hook and the session-start pack inject come from the current session only, so a session with no facts of its own gets none instead of the source\'s newest facts from the last 24 hours, which can belong to other sessions. MCP `_meta.brain_hot_memory` is unchanged.' },+ { since: '0.60.398.0', text: 'When the chronicle phase refuses a judge answer as `malformed_proposal`, it now prints one warning line naming the check that failed (a fixed code such as `when_unparseable`, the field, the JSON type found there and counts, never a value), and the direct extractor result carries the same fields under `malformed` (#7234). The refusal, its retry with backoff and the ledger row are unchanged.' },// #7023 (GBRA-60). `since` is restamped at the merge slot.- { since: 'TBD', text: 'The per-prompt context block now renders each hot-memory fact the same way the session-start pack does: a fact the assistant said keeps its `(assistant said)` prefix instead of reading as your own claim, and a fact injected once in a session is not injected again on later prompts, whatever its trust label or speaker. Before, assistant-attributed and external (`<external-data>`) facts came back on every prompt; a session already open when you upgrade sees each assistant fact once more (#7023, reported by @benswinney).' },+ { since: '0.60.398.0', text: 'The per-prompt context block now renders each hot-memory fact the same way the session-start pack does: a fact the assistant said keeps its `(assistant said)` prefix instead of reading as your own claim, and a fact injected once in a session is not injected again on later prompts, whatever its trust label or speaker. Before, assistant-attributed and external (`<external-data>`) facts came back on every prompt; a session already open when you upgrade sees each assistant fact once more (#7023, reported by @benswinney).' },// #7026 (GBRA-60). `since` is restamped at the merge slot.- { since: 'TBD', text: 'In Claude Code, the first prompt of a session no longer repeats the hot-memory facts the session-start block already showed: the user-prompt hook now reads the `gbrain hook session-start` output Claude Code records as a SessionStart `hook_success` entry, from the gbrain context envelope on, so core memory printed before it does not hide page pointers. SessionStart output from other tools is still ignored (#7026, reported by @benswinney).' },+ { since: '0.60.398.0', text: 'In Claude Code, the first prompt of a session no longer repeats the hot-memory facts the session-start block already showed: the user-prompt hook now reads the `gbrain hook session-start` output Claude Code records as a SessionStart `hook_success` entry, from the gbrain context envelope on, so core memory printed before it does not hide page pointers. SessionStart output from other tools is still ignored (#7026, reported by @benswinney).' },// #7270 (GBRA-60). `since` is restamped at the merge slot.- { since: 'TBD', text: '`gbrain facts relink` and `gbrain facts relink --conversation` no longer attach a fact the assistant or a named third party said (`attributed_to` assistant or other) to an entity page, core pages included: such a fact is left where it was saved, recall still finds it, and the run counts it as `not_user_attributed`. Before, the SessionEnd corpus sweep saved the assistant\'s own report about a page, and every relink pinned it onto that page. Doctor `unlinked_facts` no longer counts these facts. Rows linked before this release stay linked; `gbrain forget <fact-id>` removes one (#7270, reported by @andrew-agents-bot).' },+ { since: '0.60.398.0', text: '`gbrain facts relink` and `gbrain facts relink --conversation` no longer attach a fact the assistant or a named third party said (`attributed_to` assistant or other) to an entity page, core pages included: such a fact is left where it was saved, recall still finds it, and the run counts it as `not_user_attributed`. Before, the SessionEnd corpus sweep saved the assistant\'s own report about a page, and every relink pinned it onto that page. Doctor `unlinked_facts` no longer counts these facts. Rows linked before this release stay linked; `gbrain forget <fact-id>` removes one (#7270, reported by @andrew-agents-bot).' },];/** The newest disclosed change's release: the notice id moves only when a release adds rows. */diff --git a/templates/bootstrap/template-repo/README.md b/templates/bootstrap/template-repo/README.mdindex 01535d8d32..5c5669cf29 100644--- a/templates/bootstrap/template-repo/README.md+++ b/templates/bootstrap/template-repo/README.md@@ -1,6 +1,6 @@# gbrain agent workspace — template-<!-- gbrain-template-stamp: 0.60.397.0 -->+<!-- gbrain-template-stamp: 0.60.398.0 -->This repository is the **"Use this template"** distribution artifact for a[gbrain](https://github.com/garrytan/gbrain) personal-agent workspace — the same