OpenCode V2 plugin for the Elephant & Goldfish Model (EGM).
EGM helps develop ideas with context and review documents with fresh eyes. It registers:
- One primary orchestrator agent:
egm - Eight read-only reviewer subagents (Goldfish reviewers)
- Seven slash commands:
/egm-bootstrap,/egm-brainstorm,/egm-draft,/egm-drift-report,/egm-resolve,/egm-review,/egm-review-loop - Seven skills with OpenCode-specific execution instructions
From npm:
opencode plugin add @sphinxcorp/opencode-egmOr add it to your opencode.jsonc:
Run any EGM slash command in an OpenCode session, for example:
/egm-review /path/to/design.md
The orchestrator dispatches specialized reviewers in fresh subagent sessions and writes reports to your working directory.
index.ts # Plugin entry point (TypeScript)
bundle/ # Agents, skills, and resources shipped with the plugin
scripts/ # Validation and maintenance helpers
AGENTS.md # Agent-driven upstream sync workflow
upstream.lock.json # Last synced upstream commit
npm install
npm run validate # Validate bundle contents
npm run build # Typecheck
npm test # Registration smoke testThis plugin ports content from https://github.com/google/elephant-goldfish-model.
See AGENTS.md for the agent-driven sync workflow that fetches upstream assets,
applies OpenCode rewrites, and validates before promotion.
OpenCode V2 plugin for the Elephant & Goldfish Model (EGM). Registers one primary orchestrator agent (egm), eight read-only reviewer subagents, seven slash commands, and seven skills from the bundle/ directory.
index.ts— plugin entry point;loadPersonas(),loadSkills(),splitFrontmatter(),headerValue(),reviewerPermissions(),orchestratorPermissions(),reviewerSystem(),orchestratorSystem(), defaultPlugin.defineexport.PACKAGE_ROOT/BUNDLE/GUIDEresolve relative to the compiled entry point.
- bundle - Agents, skills, and shared resources.
- scripts - Validation and maintenance helpers.
- tests - Plugin registration smoke test.
- tests/unit - Smoke harness.
bundle/is the source of truth for plugin content.npm run validatemust pass before/after changes.- VCS changes are deferred to the human user.
- Plugin setup transforms agents, commands, and skills in the OpenCode context.
- Run:
npm run build && npm run validate && npm test
Apache-2.0
{ "plugins": ["@sphinxcorp/opencode-egm"] }