egm

egm is a cursor rule for Cursor from google/elephant-goldfish-model. It costs 404 tokens per session, scanned A, original, Apache-2.0.

A set of Cursor rules for routing Elephant-and-Goldfish Model workflows. It explains how to find the installed workflow files, load their instructions, and delegate review tasks to separate agents.

In plain words
What is it for?
Use it when running EGM workflows in Cursor and when configuring paths, reviewer tasks, and the main session’s file-writing responsibilities.
Why use it?
It prevents the workflow from using the wrong package files or pretending that a same-context review is an independent review. This makes the runtime setup more predictable.

Cursor rule for Cursor ✓ vendor

Written for Cursor: a Cursor plugin manifest.

Good fit Use it when running EGM workflows in Cursor and when configuring paths, reviewer tasks, and the main session’s file-writing responsibilities.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/google/elephant-goldfish-model/egm
About the project

Elephant Goldfish Model is an open-source plugin for AI assistants that helps teams turn project context into software specifications and review those specifications with fresh analysis. Elephant drafts the design while Goldfish reviewers inspect it without the earlier conversation, leaving people to make the architectural decisions before implementation. The catalogue entries are the plugin’s agents, skills, plugins, instructions, and rules for carrying out these design and review workflows.

google/elephant-goldfish-model · 24,121 stars · on GitHub · egm.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/google/elephant-goldfish-model

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for egm

README.md
[![agentmods](https://agentmods.dev/badge/rules/google/elephant-goldfish-model/egm/github.svg)](https://agentmods.dev/rules/google/elephant-goldfish-model/egm)
Your own site
<a href="https://agentmods.dev/rules/google/elephant-goldfish-model/egm"><img src="https://agentmods.dev/badge/rules/google/elephant-goldfish-model/egm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for egm

Your own site · 80×15
<a href="https://agentmods.dev/rules/google/elephant-goldfish-model/egm"><img src="https://agentmods.dev/badge/rules/google/elephant-goldfish-model/egm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 404 This file is loaded in full into every session.
When invoked 404 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00404 $0.00404
Opus 5.5 $0.00162 $0.00162
Sonnet 5.5 $0.00081 $0.00081
Haiku 4.5 $0.00040 $0.00040

Measured 15d ago against content hash 3e8eac243486, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

egm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor-plugin/rules/egm.mdc · 36 lines

What it actually says

Apply these instructions only to an EGM workflow. Before execution, identify the absolute path of the selected EGM SKILL.md. For EGM_ROOT/skills//SKILL.md, ascend three directories to EGM_ROOT. Confirm that EGM_ROOT/.cursor-plugin/plugin.json, EGM_ROOT/agents/, EGM_ROOT/resources/, and EGM_ROOT/docs/cursor.md exist. If the skill path is unavailable, ask for the installed package's absolute path. Read EGM_ROOT/docs/cursor.md before following the canonical skill. Do not infer a cache location or use another installed EGM version.

Resolve agents/, resources/, and docs/ against EGM_ROOT. Resolve references/ against the invoked skill directory. Pass absolute file paths to each child. This path mapping does not depend on variable substitution in Markdown.

Keep drafting, synthesis, remediation, and report writes in the parent. Use direct Task dispatch to the registered EGM reviewer types. Start a new task for every independent reviewer. Never resume a reviewer. Supply EGM_ROOT, the target and scope, persona and standard paths, and only the explicit Goldfish context. Do not include parent history or deliberation. Do not pass earlier findings except where the canonical workflow requires them. Do not dispatch the canonical synthesizer or bootstrap orchestrator as a generic child. Their native adapters are not included in this experiment.

Wait for every reviewer completion before advancing the stage. Write each completed stage report before dispatching the next stage. For Step 8, pass the absolute path of the existing zoom_out_report.md to the reviewer. If the report is missing, stop the review. Keep the canonical stage order and human approval gates. If a reviewer cannot start, read required files, or finish, stop the stage. Report the incomplete review. Do not simulate a reviewer in the parent. Missing host evidence leaves isolation unverified, even if findings exist.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago First seen · 36 lines · 404 tokens per session scan A 3e8eac243486

Subscribe to this mod's changes

egm is a cursor rule published in the GitHub repository google/elephant-goldfish-model (24,121 stars, last pushed today), licensed Apache-2.0. It adds 404 tokens to every session, about $0.0016 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

egm compared with cursor rules from other repositories

egm next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
egmgoogle/elephant-goldfish-modelCursor rule24ktodayApache-2.0A404Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k4d agoMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
shared-plane-packagesprisma/ormCursor rule48ktodayApache-2.0A0Cursor