Package Exports
- gm-oc
- gm-oc/gm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gm-oc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gm for OpenCode
Installation
One-liner (recommended)
Install directly from npm:
bun x gm-oc@latestThis copies the plugin to ~/.config/opencode/ and registers it in your config. Restart OpenCode to activate.
Via npm install
npm install -g gm-oc
gm-ocManual installation
Clone to the global plugin directory:
git clone https://github.com/AnEntrypoint/gm-oc ~/.config/opencode/pluginFeatures
- State machine agent — PLAN→EXECUTE→EMIT→VERIFY→COMPLETE orchestration
- Skill chain — gm, planning, gm-execute, gm-emit, gm-complete, update-docs
- exec: dispatch — code execution via spool watcher (nodejs, python, bash, typescript, go, rust)
- Code search — semantic codebase exploration via exec:codesearch
- Git enforcement — blocks session end with uncommitted changes or unpushed commits
- Memory — rs-learn integration for cross-session knowledge retention
How it works
The plugin installs:
- Agent (
agents/gm.md) — primary orchestrator with skill-chain instructions - Skills (
skills/) — PLAN, EXECUTE, EMIT, VERIFY, UPDATE-DOCS skill definitions - Plugin (
plugins/gm-oc.mjs) — hooks for session lifecycle, tool gating, exec: dispatch - Lang runners (
lang/) — language-specific execution plugins
All exec: commands route through the spool watcher at .gm/exec-spool/ for session-isolated task execution.
Troubleshooting
Plugin not loading:
- Verify
~/.config/opencode/plugins/gm-oc.mjsexists - Check
opencode.jsonhas the plugin path in thepluginarray - Restart OpenCode completely
Skills not appearing:
- Verify
~/.config/opencode/skills/contains skill directories with SKILL.md files - Skill names must be lowercase with hyphens (e.g.,
gm,gm-execute)
exec: commands failing:
- Check
.gm/exec-spool/directory exists in your project - Verify plugkit binary is present at
~/.config/opencode/bin/