Skip to content

Open-source skills for designing and reviewing software with AI agents

fix(docs): update Claude warning guidance against main

Oliver8870218da7fb
diff --cc distributions/claude/docs/claude.md
index 0000000,eb9284e..fa44515
mode 000000,100644..100644
--- a/distributions/claude/docs/claude.md
+++ b/distributions/claude/docs/claude.md
@@@ -1,0 -1,127 +1,151 @@@
+ <!--
+ Copyright 2026 Google LLC.
+ SPDX-License-Identifier: Apache-2.0
+ -->
+
+ # Claude Code integration
+
+ Use Claude Code 2.1.271 or later for `omitClaudeMd` support. Older versions
+ must not be treated as verified Goldfish isolation environments.
+
+ ## Invocation and resources
+
+ ```sh
+ claude plugin marketplace add google/elephant-goldfish-model
+ claude plugin install egm@egm
+ ```
+
+ Enable the installed plugin with `claude plugin enable egm@egm`.
+ Start messages with `/egm:egm-brainstorm`, `/egm:egm-draft`, or `/egm:egm-review`.
+ Skills retain `disable-model-invocation: true`: their absence from automatic
+ skill discovery is expected. The `Skill` tool refuses these skills, so to run
+ another EGM skill (for example `egm-review-loop` or `egm-resolve` during review
+ Stages 7 and 9), read its `SKILL.md` and follow it in the same thread. Do not
+ use the `Skill` tool for EGM skills. Keep drafting and orchestration in the
+ main context.
+ Claude Code has no artifact comments. To request draft revisions, edit
+ `design_draft.md` directly or add `<!-- -->` comments in it, or give the notes
+ in chat; the model reads the draft again before each revision.
+ Write briefs, drafts, and reports to the user's working directory. The
+ per-session scratchpad is not the artifact directory: it belongs to one
+ session, and the deliverables must outlive it.
+ If the user's prompt or agent instructions file (`CLAUDE.md` or `AGENTS.md`)
+ has a line `EGM artifact directory: <path>`, write them to that folder instead:
+ resolve a relative path against the working directory, and create the folder if
+ it does not exist.
+ In Claude Code, `egm:egm-synthesizer` may spawn reviewers (nesting is allowed
+ up to 3 levels by default), or the main context may dispatch reviewers directly.
+ In Claude Cowork, subagents cannot spawn further subagents, so dispatch
+ reviewers directly from the main context instead of launching a synthesizer
+ child. In both cases the main context collects findings and writes the report.
+ Keep review stages 5, 6, 7, 8, and 9 sequential. Parallelize only reviewers
+ within the current stage. Wait for every reviewer in that stage, write its
+ report, and complete required remediation before dispatching the next stage.
+ Uninterrupted mode skips human checkpoints, not these stage dependencies.
+
+ Claude substitutes `${CLAUDE_PLUGIN_ROOT}` in plugin skill and agent bodies. Use that
+ resolved absolute root for `agents/`, `resources/`, and `docs/`; use the invoked
+ skill's directory for its `references/`. This standalone guide is read as a file,
+ so placeholders here are explanatory: use the root already resolved in the
+ invoked skill. Never guess a cache version or search another installed copy.
+ Review targets and generated artifacts belong to the user's workspace, not the
+ plugin cache. Pass absolute resource and target paths to each reviewer.
+
+ Personas and standards live in the plugin cache, outside the project. EGM
+ does not install a permission-approval hook. Approve resource reads through
+ Claude Code's normal permission prompts; current versions can surface background
+ reviewer prompts in the parent session. For headless runs, the user must grant
+ read access to the resolved plugin's `agents/`, `docs/`, `resources/`, and
+ `skills/` folders using Claude Code's permission settings. Keep write access
+ limited to the project and intended output directory. Do not disable permission
+ checks or grant access to every installed plugin. A reviewer that cannot read
+ its persona or standard must report the limitation and stop; it has not reviewed.
+
+ For example, after resolving the actual installed plugin directory, add only
+ its resource folders to user-approved read rules in `/permissions`:
+
+ ```text
+ Read(//absolute/plugin/path/agents/**)
+ Read(//absolute/plugin/path/docs/**)
+ Read(//absolute/plugin/path/resources/**)
+ Read(//absolute/plugin/path/skills/**)
+ ```
+
+ Replace the example path; do not copy a guessed cache location. These read rules
+ also cover Grep and Glob on those files on a best-effort basis. Adding a directory
+ with `--add-dir` extends edit access too, so it is not a read-only substitute.
+
++## Claude Code Warning: Default agents/ folder is ignored
++
++In Claude Code (`/plugin` > Errors), you may see the following advisory warning:
++
++```text
++Default agents/ folder is ignored because the manifest sets "agents"
++```
++
++This specific advisory is expected with EGM's explicit adapter list. It does not
++mean the registered adapters failed to load; investigate other errors separately.
++
++EGM maintains two agent directories:
++1. `agents/`: Contains canonical, harness-agnostic reviewer persona markdown prompts loaded by Antigravity and other harnesses.
++2. `.claude-plugin/agents/`: Contains Claude Code adapters. Reviewer adapters use
++ `omitClaudeMd: true` and `tools: [Read, Grep, Glob]`; the synthesizer and bootstrap
++ orchestrator have their own tool lists, described below.
++
++Because `.claude-plugin/plugin.json` explicitly lists the adapters in `"agents"`,
++Claude Code skips auto-loading the root `agents/` folder. The shared personas do
++not declare Claude's read-only tool restrictions. Auto-loading them instead would
++lose the adapter-specific restrictions; available tools would still be subject to
++the host's permissions. Registering both copies would also duplicate reviewer
++names. Keep the explicit adapter list rather than removing it to silence this notice.
++
+ ## Reviewer isolation
+
+ Spawn a new native Agent of the plugin's registered reviewer type for each
+ independent review, for example `egm:egm-zoom-out`. Do not fork the conversation
+ or resume a previous reviewer. Provide only the task, target, persona/standard
+ paths, and explicitly supplied Goldfish context; do not copy parent deliberation.
+
+ Claude adapters in `.claude-plugin/agents/` declare `tools: [Read, Grep, Glob]`,
+ `model: inherit`, and `omitClaudeMd: true`. Each adapter reads its canonical
+ persona from `agents/` through `${CLAUDE_PLUGIN_ROOT}`. Keep Claude tool names
+ out of shared persona frontmatter: other hosts can interpret `tools` themselves.
+ Reviewers cannot edit files or run shell commands, and no persistent `memory`
+ is configured. The synthesizer adapter declares
+ `tools: [Agent, Read, Grep, Glob, Write]` so it can spawn reviewers and write
+ reports but cannot run shell commands or use the session's MCP connectors.
+ The bootstrap orchestrator adapter allows only `Agent`, `Bash`, `Read`, `Grep`,
+ `Glob`, `Write`, and `Edit` for local discovery and documentation. It routes
+ workers to the bootstrap `SKILL.md` so they return the JSON `subtree_index`
+ instead of prose. The parent handles fixes. Bash remains subject to normal
+ permission rules and is not a filesystem or network sandbox.
+ Reviewers cannot open URLs. Do not pass documentation URLs in
+ `GoldfishContext` to Claude reviewers: save the raw page as a file in the
+ workspace and pass that path instead.
+
+ Normal subagents exclude parent conversation history. `omitClaudeMd` additionally
+ excludes user/project/local instruction files, but managed policies still apply.
+ This is context and tool isolation, not filesystem isolation: reviewers can read
+ accessible files. Pass any required review constraints explicitly and keep
+ unrelated history, logs, and memory out of the review task.
+
+ For local testing, load a uniquely named copy with `claude --plugin-dir <copy>`
+ to avoid confusion with an already installed `egm` plugin. Validate it with
+ `claude plugin validate <copy>/.claude-plugin/plugin.json`.
+
+ ## Claude Cowork
+
+ Claude Cowork uses the same `.claude-plugin` package as Claude Code.
+ Install the plugin from claude.ai/plugins or the Cowork plugin panel via marketplace `google/elephant-goldfish-model`.
+ For a candidate package, Customize > Plugins > Add plugin > Upload plugin
+ accepts a ZIP containing the Claude manifest, adapters, and shared runtime files.
+ Install it and choose **Try in chat**. Record whether the resulting task runs
+ locally or in the cloud; the tested desktop surface used cloud tasks.
+ Verify resource resolution and reviewer tools in the actual Cowork session.
+ Installation alone does not establish that Claude Code's subagent settings or
+ `${CLAUDE_PLUGIN_ROOT}` substitution work on that surface.
+ Local testing with `claude --plugin-dir` is supported in Claude Code only.
+
+ References: [plugin paths](https://code.claude.com/docs/en/plugins-reference),
+ [skill invocation](https://code.claude.com/docs/en/skills), and
+ [subagent context and tools](https://code.claude.com/docs/en/sub-agents).
diff --cc distributions/claude/docs/harnesses.md
index 0000000,0f2ea3c..b59c1ce
mode 000000,100644..100644
--- a/distributions/claude/docs/harnesses.md
+++ b/distributions/claude/docs/harnesses.md
@@@ -1,0 -1,113 +1,114 @@@
+ # Harnesses
+
+ EGM is one set of skills and personas. This repository serves as the
+ plugin source for each supported harness. No harness gets a fork of the skill
+ text.
+
+ ## Install
+
+ | Harness | Install |
+ | --- | --- |
+ | Antigravity | `agy plugin install https://github.com/google/elephant-goldfish-model` (or `/plugin` in the IDE) |
+ | Claude Code | `claude plugin marketplace add google/elephant-goldfish-model && claude plugin install egm@egm` |
+ | Claude Cowork | Install from claude.ai/plugins or the Cowork plugin panel via marketplace `google/elephant-goldfish-model` |
+ | Codex | `codex plugin marketplace add google/elephant-goldfish-model && codex plugin add egm@egm` |
+ | ChatGPT | Personal testing: Plugins > Add > Upload plugin archive; see [packaging](codex.md#chatgpt). Workspace import: Admin > Plugins > Add > Import marketplace, repo URL `https://github.com/google/elephant-goldfish-model`, path `.agents/plugins` |
+
+ Install the whole plugin. Skill-only installers that copy `skills/` alone
+ break EGM, because the skills read `agents/` and
+ `resources/document_standards/` at run time.
+
+ ## Manifests
+
+ Root `plugin.json` is the canonical source for plugin identity, version,
+ description, and publisher metadata. It declares the portable Agent Plugins
+ 1.0.0 schema. Update shared values there first, then update the compatibility
+ manifests; unit tests reject metadata drift. Keep platform-specific fields in
+ their existing manifests until installation tests justify removing them.
+
+ Marketplace files are discovery catalogs pointing to this package, not copies
+ of its skills. In particular, `.agents/plugins/` contains the Codex catalog,
+ while `agents/` contains reviewer personas. All hosts share the same `skills/`,
+ `agents/`, and `resources/` content.
+
+ | Harness | Manifest | Skills | Subagents |
+ | --- | --- | --- | --- |
+ | Antigravity | `plugin.json` | `skills/` (default) | `agents/` (default) |
+ | Claude Code | `.claude-plugin/plugin.json`, `.claude-plugin/marketplace.json` | `skills/` (default) | Claude adapters and orchestrators listed in `plugin.json` `agents` |
+ | Claude Cowork | `.claude-plugin/plugin.json`, `.claude-plugin/marketplace.json` | `skills/` (default) | Subagents run inside Cowork; hooks n/a |
+ | Codex | `.codex-plugin/plugin.json`, `.agents/plugins/marketplace.json` | `skills` path | Not shipped; general-purpose subagent reads the persona file |
+ | ChatGPT | `plugin.json`, `.codex-plugin/plugin.json`; `.agents/plugins/marketplace.json` for workspace import | `skills` path | Detect native tools in the current session; general-purpose agent reads the persona |
+
+ Persona prompts live in `agents/`, the directory Antigravity
+ scans for subagents. Each persona has `name` and `description` frontmatter, so
+ harnesses that load `agents/*.md` register them as named subagents
+ (`egm-design`, `egm-zoom-out`, and so on).
+
+ When you add a reviewer persona, add a Claude adapter under
+ `.claude-plugin/agents/` and list it in `.claude-plugin/plugin.json`.
+ The adapter reads the shared persona and sets Claude's read-only tools and
+ context isolation. This avoids imposing Claude tool names on other hosts.
++In Claude Code, `/plugin` > Errors will report that the default `agents/` folder is ignored because the manifest sets `"agents"`; this warning is expected and harmless (see [Claude integration](claude.md#claude-code-warning-default-agents-folder-is-ignored)).
+
+ ## Delegation
+
+ Skills say "spawn a subagent" and name a persona. Each harness maps that
+ phrase to its own tool:
+
+ | Harness | Subagent tool | Named personas | Nesting |
+ | --- | --- | --- | --- |
+ | Antigravity | `invoke_subagent` | Yes | Yes |
+ | Claude Code | Agent (Task) tool | Yes | Up to 3 levels by default |
+ | Claude Cowork | Cowork subagents | Yes | Subagents run inside Cowork |
+ | Codex | Native spawn/wait tools; inspect the available schema | No | Detect at runtime; direct dispatch fallback |
+ | ChatGPT | Native spawn/wait tools when exposed by the current Work session | No | Detect at runtime; direct dispatch fallback |
+
+ Where a harness has no named persona, the skill spawns a general-purpose
+ subagent and tells it to read `agents/<file>.md` first. If a harness cannot
+ nest subagents, use direct dispatch instead of the synthesizer.
+
+ A Goldfish review needs a fresh context. If a harness has no subagent tool,
+ the review skills stop instead of running in the same context. Check actual
+ tool availability rather than inferring it from the product name. This applies
+ to ChatGPT modes that do not expose native fresh-context delegation.
+
+ ## Artifact Directory
+
+ Skills write briefs, drafts, and reports to the working directory, or to the
+ harness's artifact directory if it has one. In Claude Code, Claude Cowork,
+ Codex, and ChatGPT, you can name another folder. Add this line to your prompt,
+ or to an agent instructions file that your harness loads (`CLAUDE.md` or
+ `AGENTS.md`, in the project or at user level):
+
+ ```text
+ EGM artifact directory: .dev/docs
+ ```
+
+ A relative path is relative to the working directory. Design docs and other
+ project files do not move. Claude Code reads a project `AGENTS.md` only when
+ the project has no `CLAUDE.md`. To keep the files out of git, add the folder to
+ `.gitignore`.
+
+ ## Support Status & Contributing Other Harnesses
+
+ **Antigravity**, **Claude Code**, and **Codex** pass automated installation, reviewer isolation, and end-to-end workflow fixtures.
+
+ **Claude Cowork** ([#105](https://github.com/google/elephant-goldfish-model/issues/105)) and **ChatGPT Work** ([#106](https://github.com/google/elephant-goldfish-model/issues/106)) have working installation paths with open cloud trace verification gaps.
+
+ See the [harness test record](https://github.com/google/elephant-goldfish-model/blob/main/TESTING.md#harness-test-record) for tested surfaces and limits.
+
+ We welcome contributors who want to help verify and expand harness support.
+
+ ### Contributing Support for New Harnesses
+
+ A harness counts as supported after `/egm-brainstorm`, `/egm-draft`, and
+ `/egm-review` run end to end through its plugin install. When contributing
+ support for another harness:
+
+ 1. Add the appropriate manifest or configuration file to the repository root
+ (e.g., matching the harness's plugin/extension standard).
+ 2. Document install steps, manifest mapping, and delegation mechanics in this guide
+ (`docs/harnesses.md`).
+ 3. Verify that `/egm-brainstorm`, `/egm-draft`, and `/egm-review` run end to end,
+ and attach verification notes or execution transcripts in your Pull Request description
+ (as outlined in the [Pull Request Template](https://github.com/google/elephant-goldfish-model/blob/main/.github/PULL_REQUEST_TEMPLATE.md)).
diff --cc docs/claude.md
index 2748d5c,eb9284e..fa44515
--- a/docs/claude.md
+++ b/docs/claude.md
@@@ -47,32 -51,30 +51,54 @@@ invoked skill. Never guess a cache vers
Review targets and generated artifacts belong to the user's workspace, not the
plugin cache. Pass absolute resource and target paths to each reviewer.
- Personas and standards live in the plugin cache, outside the project. A
- `PreToolUse` hook in `.claude-plugin/plugin.json` approves `Read`, `Grep`, and
- `Glob` calls inside the plugin's `agents/`, `docs/`, `resources/`, and
- `skills/` folders only, so reviewers read them with no permission rules, also
- in headless runs and background subagents. Other paths get the normal
- permission rules, and deny and ask rules still apply to plugin paths. Where
- plugin hooks do not run (Claude Cowork, or `disableAllHooks`), approve the read
- prompts, or for headless runs pass `--allowedTools Read,Grep,Glob`. A reviewer
- that cannot read its persona or standard has not reviewed.
+ Personas and standards live in the plugin cache, outside the project. EGM
+ does not install a permission-approval hook. Approve resource reads through
+ Claude Code's normal permission prompts; current versions can surface background
+ reviewer prompts in the parent session. For headless runs, the user must grant
+ read access to the resolved plugin's `agents/`, `docs/`, `resources/`, and
+ `skills/` folders using Claude Code's permission settings. Keep write access
+ limited to the project and intended output directory. Do not disable permission
+ checks or grant access to every installed plugin. A reviewer that cannot read
+ its persona or standard must report the limitation and stop; it has not reviewed.
+
+ For example, after resolving the actual installed plugin directory, add only
+ its resource folders to user-approved read rules in `/permissions`:
+
+ ```text
+ Read(//absolute/plugin/path/agents/**)
+ Read(//absolute/plugin/path/docs/**)
+ Read(//absolute/plugin/path/resources/**)
+ Read(//absolute/plugin/path/skills/**)
+ ```
+
+ Replace the example path; do not copy a guessed cache location. These read rules
+ also cover Grep and Glob on those files on a best-effort basis. Adding a directory
+ with `--add-dir` extends edit access too, so it is not a read-only substitute.
+## Claude Code Warning: Default agents/ folder is ignored
+
+In Claude Code (`/plugin` > Errors), you may see the following advisory warning:
+
+```text
+Default agents/ folder is ignored because the manifest sets "agents"
+```
+
- **This warning is expected and completely harmless.**
++This specific advisory is expected with EGM's explicit adapter list. It does not
++mean the registered adapters failed to load; investigate other errors separately.
+
+EGM maintains two agent directories:
+1. `agents/`: Contains canonical, harness-agnostic reviewer persona markdown prompts loaded by Antigravity and other harnesses.
- 2. `.claude-plugin/agents/`: Contains specialized Claude Code adapters that enforce zero-context isolation (`omitClaudeMd: true`) and strict read-only tool limits (`tools: [Read, Grep, Glob]`).
++2. `.claude-plugin/agents/`: Contains Claude Code adapters. Reviewer adapters use
++ `omitClaudeMd: true` and `tools: [Read, Grep, Glob]`; the synthesizer and bootstrap
++ orchestrator have their own tool lists, described below.
+
- Because `.claude-plugin/plugin.json` explicitly declares the `.claude-plugin/agents/` adapters in its `"agents"` field, Claude Code skips auto-loading the root `agents/` folder. This is intentional: removing `"agents"` would auto-load `agents/` without read-only restrictions (granting reviewers file-modification and shell permissions), while listing both folders would create duplicate subagent registrations under the same names. Do not modify the manifest to silence this notice.
++Because `.claude-plugin/plugin.json` explicitly lists the adapters in `"agents"`,
++Claude Code skips auto-loading the root `agents/` folder. The shared personas do
++not declare Claude's read-only tool restrictions. Auto-loading them instead would
++lose the adapter-specific restrictions; available tools would still be subject to
++the host's permissions. Registering both copies would also duplicate reviewer
++names. Keep the explicit adapter list rather than removing it to silence this notice.
+
## Reviewer isolation
Spawn a new native Agent of the plugin's registered reviewer type for each