gm-oc 2.0.1059 → 2.0.1061

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,38 +4,59 @@
4
4
 
5
5
  ### One-liner (recommended)
6
6
 
7
- Install directly from npm using bun x:
7
+ Install directly from npm:
8
8
 
9
9
  ```bash
10
10
  bun x gm-oc@latest
11
11
  ```
12
12
 
13
- This command will automatically install gm-oc to the correct location for your platform and restart OpenCode to activate.
13
+ This copies the plugin to `~/.config/opencode/` and registers it in your config. Restart OpenCode to activate.
14
14
 
15
- ### Manual installation
15
+ ### Via npm install
16
16
 
17
- **Windows and Unix:**
18
17
  ```bash
19
- git clone https://github.com/AnEntrypoint/gm-oc ~/.config/opencode/plugin && cd ~/.config/opencode/plugin && bun install
18
+ npm install -g gm-oc
19
+ gm-oc
20
20
  ```
21
21
 
22
- **Windows PowerShell:**
23
- ```powershell
24
- git clone https://github.com/AnEntrypoint/gm-oc "\$env:APPDATA\opencode\plugin" && cd "\$env:APPDATA\opencode\plugin" && bun install
25
- ```
22
+ ### Manual installation
26
23
 
27
- ### Project-level
24
+ Clone to the global plugin directory:
28
25
 
29
- **Windows and Unix:**
30
26
  ```bash
31
- git clone https://github.com/AnEntrypoint/gm-oc .opencode/plugins && cd .opencode/plugins && bun install
27
+ git clone https://github.com/AnEntrypoint/gm-oc ~/.config/opencode/plugin
32
28
  ```
33
29
 
34
30
  ## Features
35
31
 
36
- - MCP tools for code execution and search
37
- - State machine agent policy (gm)
38
- - Git enforcement on session idle
39
- - AST analysis via thorns at session start
32
+ - **State machine agent** PLAN→EXECUTE→EMIT→VERIFY→COMPLETE orchestration
33
+ - **Skill chain** gm, planning, gm-execute, gm-emit, gm-complete, update-docs
34
+ - **exec: dispatch** code execution via spool watcher (nodejs, python, bash, typescript, go, rust)
35
+ - **Code search** semantic codebase exploration via exec:codesearch
36
+ - **Git enforcement** — blocks session end with uncommitted changes or unpushed commits
37
+ - **Memory** — rs-learn integration for cross-session knowledge retention
38
+
39
+ ## How it works
40
+
41
+ The plugin installs:
42
+ - **Agent** (`agents/gm.md`) — primary orchestrator with skill-chain instructions
43
+ - **Skills** (`skills/`) — PLAN, EXECUTE, EMIT, VERIFY, UPDATE-DOCS skill definitions
44
+ - **Plugin** (`plugins/gm-oc.mjs`) — hooks for session lifecycle, tool gating, exec: dispatch
45
+ - **Lang runners** (`lang/`) — language-specific execution plugins
46
+
47
+ All exec: commands route through the spool watcher at `.gm/exec-spool/` for session-isolated task execution.
48
+
49
+ ## Troubleshooting
50
+
51
+ **Plugin not loading:**
52
+ - Verify `~/.config/opencode/plugins/gm-oc.mjs` exists
53
+ - Check `opencode.json` has the plugin path in the `plugin` array
54
+ - Restart OpenCode completely
55
+
56
+ **Skills not appearing:**
57
+ - Verify `~/.config/opencode/skills/` contains skill directories with SKILL.md files
58
+ - Skill names must be lowercase with hyphens (e.g., `gm`, `gm-execute`)
40
59
 
41
- The plugin activates automatically on session start.
60
+ **exec: commands failing:**
61
+ - Check `.gm/exec-spool/` directory exists in your project
62
+ - Verify plugkit binary is present at `~/.config/opencode/bin/`
package/agents/gm.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: gm
3
2
  description: Agent (not skill) - immutable programming state machine. Always invoke for all work coordination.
3
+ mode: primary
4
4
  ---
5
5
 
6
6
  # GM — Skill-First Orchestrator