Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
feat(mcp): hidden-tool hint on the owner's stdio pipe; plugin skills name CLI equivalents for off-surface tools (F6)
garrytan0a7a28a2a5c3
diff --git a/plugin-variants/gbrain-coding/skills/brain-ops/SKILL.md b/plugin-variants/gbrain-coding/skills/brain-ops/SKILL.mdindex 2f1db55404..5297287dcf 100644--- a/plugin-variants/gbrain-coding/skills/brain-ops/SKILL.md+++ b/plugin-variants/gbrain-coding/skills/brain-ops/SKILL.md@@ -266,3 +266,13 @@ the citation is `[gstack:plans/foo]`. That's the whole rule.- `add_timeline_entry` — record events- `get_backlinks` — check who references an entity- `sync_brain` — sync changes to the index++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `sync_brain` → `gbrain sync`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-coding/skills/enrich/SKILL.md b/plugin-variants/gbrain-coding/skills/enrich/SKILL.mdindex 33ae1c0ae3..7b3e501cb1 100644--- a/plugin-variants/gbrain-coding/skills/enrich/SKILL.md+++ b/plugin-variants/gbrain-coding/skills/enrich/SKILL.md@@ -350,3 +350,12 @@ Both page types have bidirectional back-links to every entity they mention.- Retrieve raw data from gbrain (get_raw_data)- Link entities in gbrain (add_link)- Check backlinks in gbrain (get_backlinks)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-coding/skills/idea-ingest/SKILL.md b/plugin-variants/gbrain-coding/skills/idea-ingest/SKILL.mdindex ca3d544a50..f30c6047bf 100644--- a/plugin-variants/gbrain-coding/skills/idea-ingest/SKILL.md+++ b/plugin-variants/gbrain-coding/skills/idea-ingest/SKILL.md@@ -132,3 +132,13 @@ Format: `- **YYYY-MM-DD** | Referenced in [page title](path) — brief context`- Hallucinating connections to brain knowledge — only cite connections you verified via search/query- Creating generic slugs like `concepts/strategy` — be specific: `concepts/flywheel-effects`- Assuming the fetch succeeded without verifying content was actually retrieved++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `file_upload` → `gbrain call file_upload <params_json>`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-coding/skills/idea-lineage/SKILL.md b/plugin-variants/gbrain-coding/skills/idea-lineage/SKILL.mdindex a8f2a9d2d3..fac654204f 100644--- a/plugin-variants/gbrain-coding/skills/idea-lineage/SKILL.md+++ b/plugin-variants/gbrain-coding/skills/idea-lineage/SKILL.md@@ -220,3 +220,14 @@ cite the source for each non-gap claim.- `takes_search` - holder-attributed beliefs, bets, hunches, and facts.- `find_contradictions` - cached contradiction findings when relevant.- `find_trajectory` - optional structured entity trajectory side-channel.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `find_contradictions` → `gbrain find-contradictions`+- `find_trajectory` → `gbrain find-trajectory`+- `takes_search` → `gbrain takes-search`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-coding/skills/ingest/SKILL.md b/plugin-variants/gbrain-coding/skills/ingest/SKILL.mdindex f172bcea31..f12400df97 100644--- a/plugin-variants/gbrain-coding/skills/ingest/SKILL.md+++ b/plugin-variants/gbrain-coding/skills/ingest/SKILL.md@@ -313,3 +313,13 @@ Raw source: [preserved at path / uploaded to cloud]- Tag a page in gbrain (add_tag)- Store raw data in gbrain (put_raw_data)- Check backlinks in gbrain (get_backlinks)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `sync_brain` → `gbrain sync`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-coding/skills/maintain/SKILL.md b/plugin-variants/gbrain-coding/skills/maintain/SKILL.mdindex c2ec71d8fa..6bf3c7cf99 100644--- a/plugin-variants/gbrain-coding/skills/maintain/SKILL.md+++ b/plugin-variants/gbrain-coding/skills/maintain/SKILL.md@@ -541,3 +541,13 @@ The maintenance report follows this structure:- Tag a page in gbrain (add_tag)- Remove a tag in gbrain (remove_tag)- View timeline in gbrain (get_timeline)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `get_health` → `gbrain doctor --json`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-coding/skills/query/SKILL.md b/plugin-variants/gbrain-coding/skills/query/SKILL.mdindex a3b5422175..f23a2e4700 100644--- a/plugin-variants/gbrain-coding/skills/query/SKILL.md+++ b/plugin-variants/gbrain-coding/skills/query/SKILL.md@@ -214,3 +214,12 @@ If search results seem off (wrong results, missing known pages, irrelevant hits)- Check backlinks in gbrain (get_backlinks)- Traverse the link graph in gbrain (traverse_graph)- View timeline entries in gbrain (get_timeline)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_timeline` → `gbrain timeline`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-coding/skills/signal-detector/SKILL.md b/plugin-variants/gbrain-coding/skills/signal-detector/SKILL.mdindex 873800402d..12df3daeb5 100644--- a/plugin-variants/gbrain-coding/skills/signal-detector/SKILL.md+++ b/plugin-variants/gbrain-coding/skills/signal-detector/SKILL.md@@ -160,3 +160,12 @@ interrupt every response or ask for enablement repeatedly.- `put_page` — create/update brain pages- `add_link` — cross-reference entities- `add_timeline_entry` — record events on entity timelines++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-daily/skills/briefing/SKILL.md b/plugin-variants/gbrain-daily/skills/briefing/SKILL.mdindex 3f3006ee09..01f807c521 100644--- a/plugin-variants/gbrain-daily/skills/briefing/SKILL.md+++ b/plugin-variants/gbrain-daily/skills/briefing/SKILL.md@@ -206,3 +206,12 @@ When presenting facts from brain pages, include inline citations:- List pages in gbrain by type (list_pages)- Check gbrain health (get_health)- View timeline entries in gbrain (get_timeline)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_timeline` → `gbrain timeline`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-daily/skills/daily-task-prep/SKILL.md b/plugin-variants/gbrain-daily/skills/daily-task-prep/SKILL.mdindex e3bc0b38a7..2e18b8e328 100644--- a/plugin-variants/gbrain-daily/skills/daily-task-prep/SKILL.md+++ b/plugin-variants/gbrain-daily/skills/daily-task-prep/SKILL.md@@ -59,3 +59,12 @@ Prep: {what to know before this meeting}- Listing meetings without loading attendee context from brain- Ignoring yesterday's unresolved threads- Presenting tasks without priority ordering++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_timeline` → `gbrain timeline`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-daily/skills/data-research/SKILL.md b/plugin-variants/gbrain-daily/skills/data-research/SKILL.mdindex b04fbedd41..45018e950d 100644--- a/plugin-variants/gbrain-daily/skills/data-research/SKILL.md+++ b/plugin-variants/gbrain-daily/skills/data-research/SKILL.md@@ -140,3 +140,14 @@ Each entry links to its raw source. Running totals at the bottom of each section## ConventionsReferences `skills/conventions/quality.md` for citation and back-linking rules.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `file_upload` → `gbrain call file_upload <params_json>`+- `put_raw_data` → `gbrain call put_raw_data <params_json>`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-daily/skills/gbrain-advisor/SKILL.md b/plugin-variants/gbrain-daily/skills/gbrain-advisor/SKILL.mdindex 204bbc7bb5..79852a1af4 100644--- a/plugin-variants/gbrain-daily/skills/gbrain-advisor/SKILL.md+++ b/plugin-variants/gbrain-daily/skills/gbrain-advisor/SKILL.md@@ -117,3 +117,12 @@ WARN gbrain 0.44 is available (you're on 0.43).- **Calling the MCP `advisor` op for workspace install state.** Over MCP theadvisor returns brain-state signals only; uninstalled-skill findings are alocal-CLI concern.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `advisor` → `gbrain advisor`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-daily/skills/ingest/SKILL.md b/plugin-variants/gbrain-daily/skills/ingest/SKILL.mdindex f172bcea31..f12400df97 100644--- a/plugin-variants/gbrain-daily/skills/ingest/SKILL.md+++ b/plugin-variants/gbrain-daily/skills/ingest/SKILL.md@@ -313,3 +313,13 @@ Raw source: [preserved at path / uploaded to cloud]- Tag a page in gbrain (add_tag)- Store raw data in gbrain (put_raw_data)- Check backlinks in gbrain (get_backlinks)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `sync_brain` → `gbrain sync`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-daily/skills/media-ingest/SKILL.md b/plugin-variants/gbrain-daily/skills/media-ingest/SKILL.mdindex 4757eb5ba8..2ffa61d106 100644--- a/plugin-variants/gbrain-daily/skills/media-ingest/SKILL.md+++ b/plugin-variants/gbrain-daily/skills/media-ingest/SKILL.md@@ -144,3 +144,13 @@ Brain page created with summary, highlights, and entity cross-links. Report to u- Filing **raw ingest** by format (all videos in `media/videos/`) instead of by subject. Note: format-prefixed paths under `media/<format>/<slug>` ARE sanctioned for **synthesized one-of-one output** like book-mirror's `media/books/<slug>-personalized.md`. The anti-pattern is for raw ingest, not for sui generis synthesis. See `skills/_brain-filing-rules.md` "Sanctioned exception: synthesis output is sui generis."- Not preserving raw source files- Creating stub pages without meaningful content++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `file_upload` → `gbrain call file_upload <params_json>`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-daily/skills/meeting-ingestion/SKILL.md b/plugin-variants/gbrain-daily/skills/meeting-ingestion/SKILL.mdindex 6475263678..2ba635f25e 100644--- a/plugin-variants/gbrain-daily/skills/meeting-ingestion/SKILL.md+++ b/plugin-variants/gbrain-daily/skills/meeting-ingestion/SKILL.md@@ -530,3 +530,14 @@ name the failing item.transit between them- Re-checking substance in the sequence pass (or order in V1–V5) — the axesare orthogonal by design++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `chronicle_day` → `gbrain day`+- `get_timeline` → `gbrain timeline`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin-variants/gbrain-daily/skills/query/SKILL.md b/plugin-variants/gbrain-daily/skills/query/SKILL.mdindex a3b5422175..f23a2e4700 100644--- a/plugin-variants/gbrain-daily/skills/query/SKILL.md+++ b/plugin-variants/gbrain-daily/skills/query/SKILL.md@@ -214,3 +214,12 @@ If search results seem off (wrong results, missing known pages, irrelevant hits)- Check backlinks in gbrain (get_backlinks)- Traverse the link graph in gbrain (traverse_graph)- View timeline entries in gbrain (get_timeline)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_timeline` → `gbrain timeline`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/brain-ops/SKILL.md b/plugin/skills/brain-ops/SKILL.mdindex 2f1db55404..5297287dcf 100644--- a/plugin/skills/brain-ops/SKILL.md+++ b/plugin/skills/brain-ops/SKILL.md@@ -266,3 +266,13 @@ the citation is `[gstack:plans/foo]`. That's the whole rule.- `add_timeline_entry` — record events- `get_backlinks` — check who references an entity- `sync_brain` — sync changes to the index++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `sync_brain` → `gbrain sync`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/briefing/SKILL.md b/plugin/skills/briefing/SKILL.mdindex 3f3006ee09..01f807c521 100644--- a/plugin/skills/briefing/SKILL.md+++ b/plugin/skills/briefing/SKILL.md@@ -206,3 +206,12 @@ When presenting facts from brain pages, include inline citations:- List pages in gbrain by type (list_pages)- Check gbrain health (get_health)- View timeline entries in gbrain (get_timeline)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_timeline` → `gbrain timeline`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/cold-start/SKILL.md b/plugin/skills/cold-start/SKILL.mdindex 57278c6516..7759328ae8 100644--- a/plugin/skills/cold-start/SKILL.md+++ b/plugin/skills/cold-start/SKILL.md@@ -555,3 +555,13 @@ Next: Phase N+1 — [description]. Ready to proceed?- `add_link` — cross-reference entities- `add_timeline_entry` — record events on entity timelines- `sync_brain` — sync changes to the index after each phase++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `sync_brain` → `gbrain sync`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/daily-task-prep/SKILL.md b/plugin/skills/daily-task-prep/SKILL.mdindex e3bc0b38a7..2e18b8e328 100644--- a/plugin/skills/daily-task-prep/SKILL.md+++ b/plugin/skills/daily-task-prep/SKILL.md@@ -59,3 +59,12 @@ Prep: {what to know before this meeting}- Listing meetings without loading attendee context from brain- Ignoring yesterday's unresolved threads- Presenting tasks without priority ordering++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_timeline` → `gbrain timeline`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/data-research/SKILL.md b/plugin/skills/data-research/SKILL.mdindex b04fbedd41..45018e950d 100644--- a/plugin/skills/data-research/SKILL.md+++ b/plugin/skills/data-research/SKILL.md@@ -140,3 +140,14 @@ Each entry links to its raw source. Running totals at the bottom of each section## ConventionsReferences `skills/conventions/quality.md` for citation and back-linking rules.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `file_upload` → `gbrain call file_upload <params_json>`+- `put_raw_data` → `gbrain call put_raw_data <params_json>`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/eiirp/SKILL.md b/plugin/skills/eiirp/SKILL.mdindex 4746d10350..a20eae16c0 100644--- a/plugin/skills/eiirp/SKILL.md+++ b/plugin/skills/eiirp/SKILL.md@@ -530,3 +530,12 @@ reads it; doctor cross-references the pack version).plus undeclared types, the same classification as `schema lint--with-db`); over MCP, `run_doctor`'s schema_pack_consistency checkcarries the same verdict.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/enrich/SKILL.md b/plugin/skills/enrich/SKILL.mdindex 33ae1c0ae3..7b3e501cb1 100644--- a/plugin/skills/enrich/SKILL.md+++ b/plugin/skills/enrich/SKILL.md@@ -350,3 +350,12 @@ Both page types have bidirectional back-links to every entity they mention.- Retrieve raw data from gbrain (get_raw_data)- Link entities in gbrain (add_link)- Check backlinks in gbrain (get_backlinks)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/gbrain-advisor/SKILL.md b/plugin/skills/gbrain-advisor/SKILL.mdindex 204bbc7bb5..79852a1af4 100644--- a/plugin/skills/gbrain-advisor/SKILL.md+++ b/plugin/skills/gbrain-advisor/SKILL.md@@ -117,3 +117,12 @@ WARN gbrain 0.44 is available (you're on 0.43).- **Calling the MCP `advisor` op for workspace install state.** Over MCP theadvisor returns brain-state signals only; uninstalled-skill findings are alocal-CLI concern.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `advisor` → `gbrain advisor`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/google-loops/SKILL.md b/plugin/skills/google-loops/SKILL.mdindex 412229bf86..bbb962aa80 100644--- a/plugin/skills/google-loops/SKILL.md+++ b/plugin/skills/google-loops/SKILL.md@@ -185,3 +185,14 @@ failures; never dump raw JSON envelopes at the user.- **Marking loops done for the user.** Close (`gbrain loops done <id>`) onlyafter the user says it's handled; thread loops self-close on the next syncwhen the reply is visible in Gmail.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `loops_close` → `gbrain loops done`+- `loops_mute` → `gbrain loops mute`+- `open_loops` → `gbrain loops list`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/idea-ingest/SKILL.md b/plugin/skills/idea-ingest/SKILL.mdindex ca3d544a50..f30c6047bf 100644--- a/plugin/skills/idea-ingest/SKILL.md+++ b/plugin/skills/idea-ingest/SKILL.md@@ -132,3 +132,13 @@ Format: `- **YYYY-MM-DD** | Referenced in [page title](path) — brief context`- Hallucinating connections to brain knowledge — only cite connections you verified via search/query- Creating generic slugs like `concepts/strategy` — be specific: `concepts/flywheel-effects`- Assuming the fetch succeeded without verifying content was actually retrieved++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `file_upload` → `gbrain call file_upload <params_json>`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/idea-lineage/SKILL.md b/plugin/skills/idea-lineage/SKILL.mdindex a8f2a9d2d3..fac654204f 100644--- a/plugin/skills/idea-lineage/SKILL.md+++ b/plugin/skills/idea-lineage/SKILL.md@@ -220,3 +220,14 @@ cite the source for each non-gap claim.- `takes_search` - holder-attributed beliefs, bets, hunches, and facts.- `find_contradictions` - cached contradiction findings when relevant.- `find_trajectory` - optional structured entity trajectory side-channel.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `find_contradictions` → `gbrain find-contradictions`+- `find_trajectory` → `gbrain find-trajectory`+- `takes_search` → `gbrain takes-search`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/ingest/SKILL.md b/plugin/skills/ingest/SKILL.mdindex f172bcea31..f12400df97 100644--- a/plugin/skills/ingest/SKILL.md+++ b/plugin/skills/ingest/SKILL.md@@ -313,3 +313,13 @@ Raw source: [preserved at path / uploaded to cloud]- Tag a page in gbrain (add_tag)- Store raw data in gbrain (put_raw_data)- Check backlinks in gbrain (get_backlinks)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `sync_brain` → `gbrain sync`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/maintain/SKILL.md b/plugin/skills/maintain/SKILL.mdindex c2ec71d8fa..6bf3c7cf99 100644--- a/plugin/skills/maintain/SKILL.md+++ b/plugin/skills/maintain/SKILL.md@@ -541,3 +541,13 @@ The maintenance report follows this structure:- Tag a page in gbrain (add_tag)- Remove a tag in gbrain (remove_tag)- View timeline in gbrain (get_timeline)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `get_health` → `gbrain doctor --json`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/media-ingest/SKILL.md b/plugin/skills/media-ingest/SKILL.mdindex 4757eb5ba8..2ffa61d106 100644--- a/plugin/skills/media-ingest/SKILL.md+++ b/plugin/skills/media-ingest/SKILL.md@@ -144,3 +144,13 @@ Brain page created with summary, highlights, and entity cross-links. Report to u- Filing **raw ingest** by format (all videos in `media/videos/`) instead of by subject. Note: format-prefixed paths under `media/<format>/<slug>` ARE sanctioned for **synthesized one-of-one output** like book-mirror's `media/books/<slug>-personalized.md`. The anti-pattern is for raw ingest, not for sui generis synthesis. See `skills/_brain-filing-rules.md` "Sanctioned exception: synthesis output is sui generis."- Not preserving raw source files- Creating stub pages without meaningful content++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `file_upload` → `gbrain call file_upload <params_json>`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/meeting-ingestion/SKILL.md b/plugin/skills/meeting-ingestion/SKILL.mdindex 6475263678..2ba635f25e 100644--- a/plugin/skills/meeting-ingestion/SKILL.md+++ b/plugin/skills/meeting-ingestion/SKILL.md@@ -530,3 +530,14 @@ name the failing item.transit between them- Re-checking substance in the sequence pass (or order in V1–V5) — the axesare orthogonal by design++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `chronicle_day` → `gbrain day`+- `get_timeline` → `gbrain timeline`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/migrate/SKILL.md b/plugin/skills/migrate/SKILL.mdindex e06ce8facf..6e950a3007 100644--- a/plugin/skills/migrate/SKILL.md+++ b/plugin/skills/migrate/SKILL.md@@ -175,3 +175,14 @@ Verification:- Get gbrain statistics (get_stats)- Check gbrain health (get_health)- Search gbrain (query)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`+- `add_tag` → `gbrain tag`+- `sync_brain` → `gbrain sync`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/minion-orchestrator/SKILL.md b/plugin/skills/minion-orchestrator/SKILL.mdindex 9db10818a6..dbf3f2ca56 100644--- a/plugin/skills/minion-orchestrator/SKILL.md+++ b/plugin/skills/minion-orchestrator/SKILL.md@@ -530,3 +530,19 @@ Total tokens so far: 4.3k- Get structured progress — `get_job_progress` (MCP)- Queue stats — `get_job_stats` (MCP; admin scope over HTTP, same as the otherjobs ops here — includes the wedged-queue silent-halt signal) or `gbrain jobs stats` (CLI)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_job` → `gbrain jobs get`+- `get_job_progress` → `gbrain call get_job_progress <params_json>`+- `list_jobs` → `gbrain jobs list`+- `pause_job` → `gbrain call pause_job <params_json>`+- `replay_job` → `gbrain call replay_job <params_json>`+- `resume_job` → `gbrain call resume_job <params_json>`+- `send_job_message` → `gbrain call send_job_message <params_json>`+- `submit_job` → `gbrain jobs submit`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/query/SKILL.md b/plugin/skills/query/SKILL.mdindex a3b5422175..f23a2e4700 100644--- a/plugin/skills/query/SKILL.md+++ b/plugin/skills/query/SKILL.md@@ -214,3 +214,12 @@ If search results seem off (wrong results, missing known pages, irrelevant hits)- Check backlinks in gbrain (get_backlinks)- Traverse the link graph in gbrain (traverse_graph)- View timeline entries in gbrain (get_timeline)++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_timeline` → `gbrain timeline`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/schema-author/SKILL.md b/plugin/skills/schema-author/SKILL.mdindex 9276d28975..b55e956f0d 100644--- a/plugin/skills/schema-author/SKILL.md+++ b/plugin/skills/schema-author/SKILL.md@@ -303,3 +303,20 @@ On failure, the error envelope follows the standard `StructuredAgentError` shapepass `--force` if you know the holder is wedged.- `permission_denied` (MCP only) → your OAuth client doesn't have `admin`scope. Re-register with `gbrain auth register-client --scopes admin`.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_active_schema_pack` → `gbrain schema active`+- `list_schema_packs` → `gbrain schema list`+- `reload_schema_pack` → `gbrain call reload_schema_pack <params_json>`+- `schema_apply_mutations` → `gbrain call schema_apply_mutations <params_json>`+- `schema_explain_type` → `gbrain schema explain`+- `schema_graph` → `gbrain schema graph`+- `schema_lint` → `gbrain schema lint`+- `schema_review_orphans` → `gbrain schema review-orphans`+- `schema_stats` → `gbrain schema stats`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/schema-unify/SKILL.md b/plugin/skills/schema-unify/SKILL.mdindex b61bd4019b..1b21de761b 100644--- a/plugin/skills/schema-unify/SKILL.md+++ b/plugin/skills/schema-unify/SKILL.md@@ -268,3 +268,12 @@ For structured JSON, `gbrain call get_job '{"id": <id>}'` returns the job row; i- Architecture: https://github.com/garrytan/gbrain/blob/master/docs/architecture/type-taxonomy.md- Pack-upgrade mechanism: https://github.com/garrytan/gbrain/blob/master/docs/architecture/pack-upgrade-mechanism.md- Issue: https://github.com/garrytan/gbrain/issues/1479++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `run_onboard` → `gbrain call run_onboard <params_json>`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/setup/SKILL.md b/plugin/skills/setup/SKILL.mdindex f00e5223ff..e44c595e49 100644--- a/plugin/skills/setup/SKILL.md+++ b/plugin/skills/setup/SKILL.md@@ -212,3 +212,14 @@ cleanup. Name pending steps and the exact repair action. Redact credentials.Only declare observed stages complete. A CLI test, schedule file, fluentanswer, HTTP response, or job ID cannot certify the full native experience.++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `get_health` → `gbrain doctor --json`+- `get_stats` → `gbrain stats`+- `sync_brain` → `gbrain sync`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/plugin/skills/signal-detector/SKILL.md b/plugin/skills/signal-detector/SKILL.mdindex 873800402d..12df3daeb5 100644--- a/plugin/skills/signal-detector/SKILL.md+++ b/plugin/skills/signal-detector/SKILL.md@@ -160,3 +160,12 @@ interrupt every response or ask for enablement repeatedly.- `put_page` — create/update brain pages- `add_link` — cross-reference entities- `add_timeline_entry` — record events on entity timelines++## Tools outside your MCP surface++This plugin serves the starter tool surface. When a step above names one of these tools and your tool list+does not have it, run its gbrain CLI equivalent instead:++- `add_link` → `gbrain link`++Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).diff --git a/scripts/generate-plugin-tree.ts b/scripts/generate-plugin-tree.tsindex afd6a09844..ff77a61d2b 100644--- a/scripts/generate-plugin-tree.ts+++ b/scripts/generate-plugin-tree.ts@@ -39,6 +39,8 @@import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'fs';import { join, resolve } from 'path';import { STARTER_OPS } from '../src/mcp/surface.ts';+import { operations } from '../src/core/operations.ts';+import { cliEquivalent } from '../src/core/ops/cli-equivalent.ts';import { parseSkillFrontmatter } from '../src/core/skill-frontmatter.ts';// Personas: the SINGLE validation implementation (the harness-bridge CLI// imports the same module), so CLI errors and CI errors match by construction.@@ -141,17 +143,52 @@ function frontmatterTools(slug: string): string[] {return parseSkillFrontmatter(text)?.tools ?? [];}-const computedGaps: Record<string, string[]> = {};-for (const slug of laneSet) {+/** The beyond-starter MCP ops a bundled skill declares (sorted). */+function starterGaps(slug: string): string[] {const mcpOps = frontmatterTools(slug).map(t => (t.startsWith('mcp:') ? t.slice(4) : t))// Multi-word entries ("gbrain schema add-type …") are CLI command// strings, not MCP op names — same class as the bare `gbrain` marker..filter(t => !HARNESS_TOOLS.has(t) && !t.startsWith('gbrain '));- const gaps = [...new Set(mcpOps.filter(t => !STARTER_OPS.has(t)))].sort();+ return [...new Set(mcpOps.filter(t => !STARTER_OPS.has(t)))].sort();+}++const computedGaps: Record<string, string[]> = {};+for (const slug of laneSet) {+ const gaps = starterGaps(slug);if (gaps.length > 0) computedGaps[slug] = gaps;}+/**+ * Agent contract v1 (F6): the generated copy of a skill whose steps name+ * tools outside the plugin's starter surface ends with a note mapping each+ * one to its gbrain CLI equivalent. Source skills are never edited.+ */+const OPS_BY_NAME = new Map(operations.map(op => [op.name, op]));+function surfaceNote(gaps: readonly string[]): string {+ const rows = gaps.map(name => {+ const op = OPS_BY_NAME.get(name);+ return `- \`${name}\` → \`${op ? cliEquivalent(op).join(' ') : `gbrain call ${name} '<params_json>'`}\``;+ });+ return [+ '', '## Tools outside your MCP surface', '',+ 'This plugin serves the starter tool surface. When a step above names one of these tools and your tool list',+ 'does not have it, run its gbrain CLI equivalent instead:', '',+ ...rows, '',+ "Or widen this machine's plugin surface with GBRAIN_SURFACE=full (new sessions pick it up).", '',+ ].join('\n');+}++/** Copy one bundled skill; append the surface note to its SKILL.md when it has gaps. */+function copySkill(slug: string, destSkillsDir: string): void {+ // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal+ cpSync(join(ROOT, 'skills', slug), join(destSkillsDir, slug), { recursive: true });+ const gaps = starterGaps(slug);+ if (gaps.length === 0) return;+ const skillMd = join(destSkillsDir, slug, 'SKILL.md');+ writeFileSync(skillMd, readFileSync(skillMd, 'utf8').replace(/\n*$/, '\n') + surfaceNote(gaps));+}+if (writeGaps) {const next: PluginLanes = { ...lanes, starter_gaps: computedGaps };writeFileSync(lanesPath, JSON.stringify(next, null, 2) + '\n');@@ -197,7 +234,7 @@ function copySharedDeps(destSkillsDir: string): void {}for (const slug of laneSet) {- cpSync(join(ROOT, 'skills', slug), join(outDir, 'skills', slug), { recursive: true });+ copySkill(slug, join(outDir, 'skills'));}copySharedDeps(join(outDir, 'skills'));@@ -246,10 +283,7 @@ function emitVariant(variantsDir: string, personaName: string, def: PersonaDef,mkdirSync(join(root, 'skills'), { recursive: true });const slugs = Object.keys(def.skills).sort();- for (const slug of slugs) {- // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal- cpSync(join(ROOT, 'skills', slug), join(root, 'skills', slug), { recursive: true });- }+ for (const slug of slugs) copySkill(slug, join(root, 'skills'));// nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversalcopySharedDeps(join(root, 'skills'));diff --git a/src/core/ops/cli-equivalent.ts b/src/core/ops/cli-equivalent.tsnew file mode 100644index 0000000000..c51709f2bc--- /dev/null+++ b/src/core/ops/cli-equivalent.ts@@ -0,0 +1,34 @@+/**+ * The `gbrain` CLI command that does what an MCP tool does (agent operator+ * contract v1, F6): named when a tool is outside the caller's surface (the+ * owner's stdio hint) and in the plugin tree's per-skill surface notes.+ * Derived from the op's `cliHints.name` (generated or CLI-only command of that+ * name); a few ops have a better command; anything else is `gbrain call`.+ */+import type { Operation } from './contract.ts';++const OVERRIDES: Readonly<Record<string, readonly string[]>> = {+ get_health: ['gbrain', 'doctor', '--json'],+ sync_brain: ['gbrain', 'sync'],+ submit_job: ['gbrain', 'jobs', 'submit'],+ get_job: ['gbrain', 'jobs', 'get'],+ list_jobs: ['gbrain', 'jobs', 'list'],+ open_loops: ['gbrain', 'loops', 'list'],+ loops_close: ['gbrain', 'loops', 'done'],+ loops_mute: ['gbrain', 'loops', 'mute'],+ get_active_schema_pack: ['gbrain', 'schema', 'active'],+ list_schema_packs: ['gbrain', 'schema', 'list'],+ schema_stats: ['gbrain', 'schema', 'stats'],+ schema_lint: ['gbrain', 'schema', 'lint'],+ schema_graph: ['gbrain', 'schema', 'graph'],+ schema_explain_type: ['gbrain', 'schema', 'explain'],+ schema_review_orphans: ['gbrain', 'schema', 'review-orphans'],+};++export function cliEquivalent(op: Pick<Operation, 'name' | 'cliHints' | 'cliOnly'>): string[] {+ if (op.cliOnly) return [...op.cliOnly.argv];+ const override = OVERRIDES[op.name];+ if (override) return [...override];+ if (op.cliHints?.name) return ['gbrain', op.cliHints.name];+ return ['gbrain', 'call', op.name, '<params_json>'];+}diff --git a/src/mcp/dispatch.ts b/src/mcp/dispatch.tsindex 2d02f4e696..deb9d1db57 100644--- a/src/mcp/dispatch.ts+++ b/src/mcp/dispatch.ts@@ -18,6 +18,7 @@ import { cliOnlyRefusal, isCallable } from '../core/ops/callable.ts';import { mutedNoticeCodes, processNoticeLedger, __resetProcessNoticeLedgerForTests, type NoticeLedger } from '../core/notice-ledger.ts';import { logVerbUsage } from '../core/verbs/usage-log.ts';import { recallInteropNotices } from '../core/interop-notices.ts';+import { hiddenToolHint } from './hidden-tool-hint.ts';import { sourceGuardBlocksWrite } from '../core/source-resolver.ts';import { suggestNearest } from '../core/levenshtein.ts';import {@@ -454,11 +455,12 @@ export function unknownToolEnvelope(name: string, opts: DispatchOpts, legacyErro.filter(op => !op.localOnly && !op.publishGateKey && (allowedOps ? allowedOps.has(op.name) : true)).map(op => op.name);const nearest = suggestNearest(name, candidates);- const suggestion = nearest+ const hint = hiddenToolHint(name, opts); // F6: owner's stdio pipe only+ const suggestion = hint?.suggestion ?? (nearest? `Did you mean "${nearest}"?`- : 'List the tools this connection can call (tools/list) and use one of those names.';+ : 'List the tools this connection can call (tools/list) and use one of those names.');return errorResult(opError('unknown_tool', legacyError ? `Unknown: ${name}` : `Unknown tool: ${name}`, suggestion,- legacyError ? { legacy_error: legacyError } : {}), opts);+ { ...(legacyError ? { legacy_error: legacyError } : {}), ...(hint ? { fix: hint.fix } : {}) }), opts);}/**diff --git a/src/mcp/hidden-tool-hint.ts b/src/mcp/hidden-tool-hint.tsnew file mode 100644index 0000000000..5d392e415d--- /dev/null+++ b/src/mcp/hidden-tool-hint.ts@@ -0,0 +1,27 @@+/**+ * F6: the hidden-tool hint on the owner's stdio pipe. A stdio caller that+ * names a real tool outside this server's surface (or its read-only access)+ * learns that the tool exists, its CLI equivalent, and how to widen the+ * surface. The stdio pipe is the brain owner's own process, so this is not+ * an existence oracle; HTTP keeps the opaque unknown_tool envelope.+ */+import type { Action } from '../core/agent-output.ts';+import { operations } from '../core/operations.ts';+import { cliEquivalent } from '../core/ops/cli-equivalent.ts';++export function hiddenToolHint(name: string, opts: { transport?: string; remote?: boolean; surface?: string; allowedOps?: ReadonlySet<string> }):+ { suggestion: string; fix: Action } | null {+ if (opts.transport !== 'stdio' || opts.remote === false || !opts.allowedOps || opts.allowedOps.has(name)) return null;+ const op = operations.find(o => o.name === name);+ if (!op || op.localOnly) return null;+ const argv = cliEquivalent(op);+ const surface = opts.surface ?? 'full';+ const why = surface === 'full'+ ? `${name} exists, but this server is read-only (access read-only), so it is not listed.`+ : `${name} exists, but this server runs the ${surface} tool surface, which does not include it. Its CLI equivalent does the same on the brain host; to call it here, set GBRAIN_SURFACE=full for this machine's gbrain server and start a new session.`;+ return {+ suggestion: `${why} CLI equivalent: \`${argv.join(' ')}\`.`,+ fix: { argv, consent: [], actor: 'agent', requires_exclusive: false, why,+ ...(argv.includes('<params_json>') ? { inputs: [{ name: 'params_json', how: `The arguments you passed to ${name}, as one JSON object.` }] } : {}) },+ };+}diff --git a/test/codex-plugin-manifest.test.ts b/test/codex-plugin-manifest.test.tsindex b83dc1ec1d..f194661f0f 100644--- a/test/codex-plugin-manifest.test.ts+++ b/test/codex-plugin-manifest.test.ts@@ -391,6 +391,21 @@ describe('curated tree membership + scanner guard', () => {}});+ test('F6: a starter-gap skill ends with its CLI-equivalent surface note; a gap-free skill is byte-identical', () => {+ const gaps = lanes.starter_gaps as Record<string, string[]>;+ expect(Object.keys(gaps).length).toBeGreaterThan(0);+ for (const [slug, ops] of Object.entries(gaps)) {+ const generated = read(`plugin/skills/${slug}/SKILL.md`);+ expect(generated.startsWith(read(`skills/${slug}/SKILL.md`).replace(/\n*$/, '\n'))).toBe(true);+ expect(generated).toContain('## Tools outside your MCP surface');+ for (const op of ops) expect(generated).toMatch(new RegExp(`- \`${op}\` → \`gbrain [^\`]+\``));+ expect(generated).toContain('GBRAIN_SURFACE=full');+ }+ expect(read('plugin/skills/maintain/SKILL.md')).toContain('- `get_health` → `gbrain doctor --json`');+ const gapFree = [...laneSet].find(slug => !(slug in gaps))!;+ expect(read(`plugin/skills/${gapFree}/SKILL.md`)).toBe(read(`skills/${gapFree}/SKILL.md`));+ });+test('non-skill dirs carry no SKILL.md (the scanner never grows a surprise skill)', () => {expect(existsSync(join(ROOT, 'plugin/skills/conventions/SKILL.md'))).toBe(false);expect(existsSync(join(ROOT, 'skills/conventions/SKILL.md'))).toBe(false);diff --git a/test/mcp-notice-channels.test.ts b/test/mcp-notice-channels.test.tsindex 09b663f912..2ce7cc5c8e 100644--- a/test/mcp-notice-channels.test.ts+++ b/test/mcp-notice-channels.test.ts@@ -180,3 +180,23 @@ describe('keyless answers ask before spending (F8/F9)', () => {expect(thinkNotSavedNotice().why).toContain('saved_slug: null');});});++describe('F6 hidden-tool hint (owner stdio only)', () => {+ test('a tool outside the stdio surface names itself, its CLI equivalent and GBRAIN_SURFACE=full', async () => {+ const { STARTER_OPS } = await import('../src/mcp/surface.ts');+ const allowedOps = new Set(STARTER_OPS);+ const stdio = await dispatchToolCall(engine as any, 'get_health', {}, { remote: true, transport: 'stdio', sourceId: 'default', allowedOps, surface: 'starter' });+ const env = JSON.parse(stdio.content[0].text);+ expect(env.code).toBe('unknown_tool');+ expect(env.suggestion).toContain('get_health exists, but this server runs the starter tool surface');+ expect(env.suggestion).toContain('GBRAIN_SURFACE=full');+ expect(env.fix.command).toBe('gbrain doctor --json');+ expect(env.fix.next).toBe('tell_user_to_run');+ // HTTP keeps the opaque envelope (no existence oracle).+ const http = await dispatchToolCall(engine as any, 'get_health', {}, { remote: true, transport: 'http', sourceId: 'default', allowedOps, surface: 'starter' });+ const opaque = JSON.parse(http.content[0].text);+ expect(opaque.code).toBe('unknown_tool');+ expect(opaque.suggestion).not.toContain('exists');+ expect(opaque.fix?.command).not.toBe('gbrain doctor --json');+ });+});