@tryglen/cli 0.52.51 → 0.52.53

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.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/dist/clients/agents/agents-table.js +2 -2
  3. package/dist/clients/agents/agents-table.js.map +1 -1
  4. package/dist/clients/agents/plugin-status.js +8 -3
  5. package/dist/clients/agents/plugin-status.js.map +1 -1
  6. package/dist/clients/cursor/cursor-local-plugin.js +128 -0
  7. package/dist/clients/cursor/cursor-local-plugin.js.map +1 -0
  8. package/dist/commands/_utils/doctor-findings.js +8 -6
  9. package/dist/commands/_utils/doctor-findings.js.map +1 -1
  10. package/dist/commands/doctor/index.js +4 -0
  11. package/dist/commands/doctor/index.js.map +1 -1
  12. package/dist/commands/install/index.js +56 -18
  13. package/dist/commands/install/index.js.map +1 -1
  14. package/dist/commands/invite/invite.options.js +1 -1
  15. package/dist/commands/invite/invite.options.js.map +1 -1
  16. package/dist/commands/uninstall/index.js +6 -4
  17. package/dist/commands/uninstall/index.js.map +1 -1
  18. package/dist/commands/update/index.js +25 -7
  19. package/dist/commands/update/index.js.map +1 -1
  20. package/dist/core/system/env.js +2 -0
  21. package/dist/core/system/env.js.map +1 -1
  22. package/dist/cursor/.cursor-plugin/plugin.json +15 -0
  23. package/dist/cursor/LICENSE +21 -0
  24. package/dist/cursor/hooks/hooks.json +9 -0
  25. package/dist/cursor/rules/glen.md +19 -0
  26. package/dist/cursor/skills/cloud-setup/SKILL.md +24 -0
  27. package/dist/cursor/skills/code-search/SKILL.md +62 -0
  28. package/dist/cursor/skills/controls/SKILL.md +66 -0
  29. package/dist/cursor/skills/create-artifact/SKILL.md +46 -0
  30. package/dist/cursor/skills/create-skill/SKILL.md +77 -0
  31. package/dist/cursor/skills/feedback/SKILL.md +81 -0
  32. package/dist/cursor/skills/forget/SKILL.md +70 -0
  33. package/dist/cursor/skills/import-transcripts/SKILL.md +50 -0
  34. package/dist/cursor/skills/invite/SKILL.md +45 -0
  35. package/dist/cursor/skills/onboard/SKILL.md +53 -0
  36. package/dist/cursor/skills/search/SKILL.md +70 -0
  37. package/dist/cursor/skills/session-takeover/SKILL.md +83 -0
  38. package/dist/cursor/skills/setup/SKILL.md +47 -0
  39. package/dist/cursor/skills/use-artifact/SKILL.md +42 -0
  40. package/dist/cursor/skills/use-skill/SKILL.md +42 -0
  41. package/dist/jcode/plugin.json +1 -1
  42. package/dist/jcode/skills/invite/SKILL.md +9 -7
  43. package/package.json +4 -3
@@ -9,6 +9,7 @@ import { indicatorApp } from "../../clients/indicator/indicator-app.js";
9
9
  import { installReceipt } from "../../core/state/install-receipt.js";
10
10
  import { grokRules } from "../../clients/grok/grok-rules-setup.js";
11
11
  import { jcodeSetup } from "../../clients/jcode/jcode-setup.js";
12
+ import { cursorLocalPlugin } from "../../clients/cursor/cursor-local-plugin.js";
12
13
  import { out } from "../../core/terminal/out.js";
13
14
  import { err, ok } from "../../core/errors/result.js";
14
15
  import { runProgram } from "../../core/system/run-program.js";
@@ -78,7 +79,7 @@ const uninstall = async (context = {}) => {
78
79
  npm: agentBin.resolve("npm"),
79
80
  glen: agentBin.resolve("glen"),
80
81
  };
81
- const cursorDetected = agentBin.isInstalled("cursor");
82
+ const cursorMarketplaceCopy = cursorLocalPlugin.marketplaceCopy();
82
83
  const claudeSettingsPath = receipt?.claudeSettings?.path ??
83
84
  e.GLEN_CLAUDE_SETTINGS_PATH ??
84
85
  join(home, ".claude", "settings.json");
@@ -106,6 +107,7 @@ const uninstall = async (context = {}) => {
106
107
  })),
107
108
  ...residue(await codexHooks.uninstall(receipt?.codexFiles ?? undefined)),
108
109
  ...residue(await jcodeSetup.uninstall(receipt?.jcodeFiles)),
110
+ ...residue(await cursorLocalPlugin.uninstall(home)),
109
111
  ...residue(await grokRules.uninstall()),
110
112
  ...residue(await purgeClaudeStatusline({
111
113
  path: claudeSettingsPath,
@@ -119,12 +121,12 @@ const uninstall = async (context = {}) => {
119
121
  overrideFiles,
120
122
  npxRoot: join(home, ".npm", "_npx"),
121
123
  })),
122
- ...(cursorDetected
124
+ ...(cursorMarketplaceCopy !== null
123
125
  ? [
124
126
  cliErr("Usage", {
125
127
  code: "uninstall.cursor_manual",
126
- what: "Cursor may still contain the glen plugin",
127
- remedy: "open Cursor plugin settings (or /add-plugin) and remove glen by hand",
128
+ what: `Cursor still has glen from its marketplace (${cursorMarketplaceCopy})`,
129
+ remedy: "open Cursor's Customize → Plugins and uninstall glen if it's listed",
128
130
  }),
129
131
  ]
130
132
  : []),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/uninstall/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAiB,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACjD,OAAO,EAAe,GAAG,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,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;QACxC,GAAG,OAAO,CACR,MAAM,eAAe,CAAC;YACpB,YAAY,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC;YACjC,aAAa;YACb,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC;SACpC,CAAC,CACH;QACD,GAAG,CAAC,qBAAqB,KAAK,IAAI;YAChC,CAAC,CAAC;gBACE,MAAM,CAAC,OAAO,EAAE;oBACd,IAAI,EAAE,yBAAyB;oBAC/B,IAAI,EAAE,+CAA+C,qBAAqB,GAAG;oBAC7E,MAAM,EACJ,qEAAqE;iBACxE,CAAC;aACH;YACH,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC;KACxC,CAAC;IAEF,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzB,KAAK,MAAM,CAAC,IAAI,SAAS;YAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,OAAO,GAAG,CACR,MAAM,CAAC,IAAI,EAAE;YACX,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,uBAAuB,SAAS,CAAC,MAAM,SAAS,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,SAAS;YAChG,MAAM,EACJ,2FAA2F;SAC9F,CAAC,CACH,CAAC;IACJ,CAAC;IAED,GAAG,CAAC,OAAO,CAAC,qDAAqD,CAAC,CAAC;IACnE,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC;AACvB,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -4,6 +4,7 @@ import { cliErr } from "../../core/errors/cli-error.js";
4
4
  import { codexHooks } from "../../clients/codex/codex-hooks-setup.js";
5
5
  import { agentBin } from "../../clients/agents/agent-bin.js";
6
6
  import { jcodeSetup } from "../../clients/jcode/jcode-setup.js";
7
+ import { cursorLocalPlugin } from "../../clients/cursor/cursor-local-plugin.js";
7
8
  import { grokRules } from "../../clients/grok/grok-rules-setup.js";
8
9
  import { out } from "../../core/terminal/out.js";
9
10
  import { glenPluginStatus } from "../../clients/agents/plugin-status.js";
@@ -27,22 +28,22 @@ const updateCli = async () => {
27
28
  remedy: "check your connection and run `glen update` again",
28
29
  });
29
30
  out.warn(unreachable);
30
- return ok({ warnings: [unreachable], updated: false });
31
+ return ok({ warnings: [unreachable], version: cliVersion });
31
32
  }
32
33
  out.info(`Latest version: ${latest}`);
33
34
  if (!semverNewer(latest, cliVersion)) {
34
35
  out.success("Already up to date.");
35
- return ok({ warnings: [], updated: false });
36
+ return ok({ warnings: [], version: cliVersion });
36
37
  }
37
38
  if (!selfUpdate.isNpmGlobalInstall()) {
38
39
  out.hint(`Update available: v${latest}. Install with your package manager (e.g. npm i -g @tryglen/cli@latest).`);
39
- return ok({ warnings: [], updated: false });
40
+ return ok({ warnings: [], version: cliVersion });
40
41
  }
41
42
  out.step(`Updating to v${latest}...`);
42
43
  const updated = selfUpdate.run();
43
44
  if (updated.ok) {
44
45
  out.success(`Updated to v${latest}.`);
45
- return ok({ warnings: [], updated: true });
46
+ return ok({ warnings: [], version: latest });
46
47
  }
47
48
  if (updated.reason === "locked")
48
49
  return err(cliErr("Fs", {
@@ -86,6 +87,18 @@ const resyncJcode = async () => {
86
87
  out.success("jcode plugin: re-synced");
87
88
  return [];
88
89
  };
90
+ const resyncCursor = async (version) => {
91
+ if (!cursorLocalPlugin.isInstalled())
92
+ return [];
93
+ const r = await cursorLocalPlugin.install(version);
94
+ if (!r.ok) {
95
+ out.warn(r.error);
96
+ return [r.error];
97
+ }
98
+ if (r.value === "written")
99
+ out.success("Cursor plugin: re-synced (reload Cursor to load it)");
100
+ return [];
101
+ };
89
102
  const resyncGrokRules = async () => {
90
103
  if (agentBin.resolve("grok") === null)
91
104
  return [];
@@ -109,7 +122,7 @@ const updateAgentPlugin = async (agent) => {
109
122
  out.info(`Updating ${agent.name} plugin:`);
110
123
  return runAgentSteps(agent.bin, resolvedBin, agent.plugin.updateSteps);
111
124
  };
112
- const updatePlugins = async () => {
125
+ const updatePlugins = async (version) => {
113
126
  const steps = [];
114
127
  for (const agent of agentsTable.cliPluginAgents)
115
128
  steps.push(...(await updateAgentPlugin(agent)));
@@ -117,6 +130,7 @@ const updatePlugins = async () => {
117
130
  ...steps,
118
131
  ...(await reverifyCodexHooks()),
119
132
  ...(await resyncJcode()),
133
+ ...(await resyncCursor(version)),
120
134
  ...(await resyncGrokRules()),
121
135
  ];
122
136
  };
@@ -162,9 +176,13 @@ const update = async () => {
162
176
  const self = await updateCli();
163
177
  if (!self.ok)
164
178
  return self;
165
- const reviewer = await updateReviewer(self.value.updated);
179
+ const reviewer = await updateReviewer(self.value.version !== cliVersion);
166
180
  out.blank();
167
- attentionSummary([...self.value.warnings, ...reviewer, ...(await updatePlugins())], "Everything up to date.");
181
+ attentionSummary([
182
+ ...self.value.warnings,
183
+ ...reviewer,
184
+ ...(await updatePlugins(self.value.version)),
185
+ ], "Everything up to date.");
168
186
  return ok(undefined);
169
187
  };
170
188
  export { update };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/update/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAiB,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACjD,OAAO,EAAE,gBAAg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
40
40
  "GLEN_INDICATOR_HEALTH_PATH",
41
41
  "GLEN_INDICATOR_RETRY_MS",
42
42
  "GLEN_JCODE_BUNDLE_DIR",
43
+ "GLEN_CURSOR_BUNDLE_DIR",
44
+ "GLEN_CURSOR_PLUGINS_DIR",
43
45
  "GLEN_CLAUDE_HOME",
44
46
  "GLEN_CLAUDE_SETTINGS_PATH",
45
47
  "GLEN_CLAUDE_BIN",
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../../src/core/system/env.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;IACd,MAAM;IACN,SAAS;IACT,SAAS;IACT,OAAO;IACP,SAAS;IACT,SAAS;IACT,cAAc;IACd,IAAI;IACJ,UAAU;IACV,aAAa;IACb,MAAM;IACN,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,qBAAqB;IACrB,6BAA6B;IAC7B,aAAa;IACb,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,UAAU;IACV,eAAe;IACf,cAAc;IACd,aAAa;IACb,+BAA+B;IAC/B,qBAAqB;IACrB,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,uBAAuB;IACvB,2BAA2B;IAC3B,iBAAiB;IACjB,kBAAkB;IAClB,oBAAoB;IACpB,wBAAwB;IACxB,oBAAoB;IACpB,4BAA4B;IAC5B,4BAA4B;IAC5B,yBAAyB;IACzB,uBAAuB;IACvB,kBAAkB;IAClB,2BAA2B;IAC3B,iBAAiB;IACjB,yBAAyB;IACzB,gBAAgB;IAChB,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,eAAe;IACf,mBAAmB;IACnB,iCAAiC;IACjC,uBAAuB;IACvB,uBAAuB;IACvB,0BAA0B;IAC1B,cAAc;IACd,aAAa;IACb,uBAAuB;IACvB,wBAAwB;IACxB,4BAA4B;IAC5B,kBAAkB;IAClB,qBAAqB;IACrB,4BAA4B;IAC5B,oBAAoB;IACpB,uBAAuB;IACvB,kBAAkB;IAClB,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,gCAAgC;IAChC,iBAAiB;CACT,CAAC;AAEX,MAAM,KAAK,GAAG;IACZ,cAAc;IACd,YAAY;IACZ,iBAAiB;IACjB,qBAAqB;IACrB,aAAa;IACb,yBAAyB;IACzB,sBAAsB;IACtB,yBAAyB;CACjB,CAAC;AAKX,MAAM,GAAG,GAAG,GAAQ,EAAE,CACpB,MAAM,CAAC,WAAW,CAAC;IACjB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC;IACvD,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAClB,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,MAAM;KACpD,CAAC;CACH,CAAQ,CAAC;AAEZ,OAAO,EAAE,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../../../src/core/system/env.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;IACd,MAAM;IACN,SAAS;IACT,SAAS;IACT,OAAO;IACP,SAAS;IACT,SAAS;IACT,cAAc;IACd,IAAI;IACJ,UAAU;IACV,aAAa;IACb,MAAM;IACN,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,qBAAqB;IACrB,6BAA6B;IAC7B,aAAa;IACb,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,UAAU;IACV,eAAe;IACf,cAAc;IACd,aAAa;IACb,+BAA+B;IAC/B,qBAAqB;IACrB,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,uBAAuB;IACvB,2BAA2B;IAC3B,iBAAiB;IACjB,kBAAkB;IAClB,oBAAoB;IACpB,w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",
5
+ "description": "Shared team memory for coding agents: automatic capture on every turn and team-memory recall via the glen CLI.",
6
+ "author": { "name": "Glen" },
7
+ "homepage": "https://tryglen.com",
8
+ "repository": "https://github.com/Glen-Web-App/glen-cursor-plugin",
9
+ "license": "MIT",
10
+ "category": "developer-tools",
11
+ "tags": ["memory", "team", "context"],
12
+ "rules": "./rules/",
13
+ "skills": "./skills/",
14
+ "hooks": "./hooks/hooks.json"
15
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Glen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 1,
3
+ "hooks": {
4
+ "sessionStart": [{ "command": "glen session-start --agent cursor" }],
5
+ "beforeSubmitPrompt": [{ "command": "glen ingest --agent cursor" }],
6
+ "afterAgentResponse": [{ "command": "glen ingest --agent cursor" }],
7
+ "afterShellExecution": [{ "command": "glen pr-link --agent cursor" }]
8
+ }
9
+ }
@@ -0,0 +1,19 @@
1
+ # Glen: shared team memory
2
+
3
+ This machine records coding-agent conversations to the team's shared Glen memory
4
+ and recalls from it.
5
+
6
+ If a Glen session-start block is present in context, it already covers when to run
7
+ `glen search` and `glen code-search`; follow it. Otherwise, when the user references
8
+ past team work (a decision, a prior discussion, an earlier fix, "what did we decide
9
+ about X"), run `glen search "<topic>"` in the shell and treat its answer, plus the
10
+ "Sources:" list beneath it, as team memory. Cite sources when relevant.
11
+
12
+ - If `glen search` prints "No active organization", tell the user to run
13
+ `glen org switch`. If glen is not set up, offer the glen setup skill.
14
+ - Only when the user asks to review a pull request in Glen's local reviewer, run
15
+ `glen review <number> --detach` from a clone of its repo and share the URL it
16
+ prints. If it says the PR changes its packages, ask the user before rerunning
17
+ with `--install-deps`. For a repo with no clone here, ask the user "Clone
18
+ <owner>/<repo> to review this PR?" first, and pass `--clone` to
19
+ `glen review <url>` only after they say yes.
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: cloud-setup
3
+ description: Set up glen to record Cursor or Grok cloud agents (Cursor's Cloud Agents, Grok's dashboard Cloud Agents) that work on this repo. Use when the user asks to "set up glen for cloud agents", "record my Cursor cloud agents", "make glen work in Grok's cloud", or says cloud agent sessions don't show up in glen.
4
+ ---
5
+
6
+ Cloud agents run only the hooks committed to the repo, never plugin hooks, so
7
+ glen's hooks have to live in the repo itself.
8
+
9
+ 1. From the repo's root, run `glen install --agent cursor --cloud` via Bash.
10
+ It writes `.cursor/hooks.json` (keeping any hooks already there) and
11
+ `.cursor/glen-hook.sh`, and prints the remaining steps.
12
+ 2. Show the user the diff. Commit and push the two files only if they say so.
13
+ 3. Tell the user the one step only they can do: open Connect an agent in the
14
+ glen dashboard, pick "Cursor & Grok cloud agents", and add the
15
+ `GLEN_ORG_ID`, `GLEN_BASE_URL` and `GLEN_API_KEY` it shows as Secrets on
16
+ the repo's environment at grok.com/dashboard/cloud-agents.
17
+ Never ask them to paste the key into this chat.
18
+ 4. Tell them what to expect: hooks apply to cloud agents started after the
19
+ push; the first hook run installs glen on the VM, so it takes about a
20
+ second; and a session's first turn starts before the hooks run, so glen
21
+ records from the second turn on.
22
+
23
+ Teammates who open the repo in Cursor locally are unaffected: without
24
+ `GLEN_API_KEY` the hook script exits without doing anything.
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: code-search
3
+ description: Trace a specific piece of code to the agent conversations that produced it. Use it whenever the user asks about the prior semantics of code, such as "why is this code like this", "why was this done this way", "what's the history of this block", "who decided this". NOT for org-wide memory questions (that's glen search).
4
+ ---
5
+
6
+ ## Purpose
7
+
8
+ Answer "why is this code like this" from the conversations behind the commits that
9
+ last touched those lines, found through git blame. Glen owns code-provenance
10
+ questions, so do not guess from the current code alone. For org-wide questions,
11
+ use the search skill instead.
12
+
13
+ ## Prerequisites
14
+
15
+ Code search needs a local checkout of the repo with its git history and an origin
16
+ remote, and a shell to run git. Without them, as in a cloud chat or an MCP-only
17
+ session with no repo, tell the user code search needs a local session in the
18
+ repo, and offer the search skill with a question that names the repo, file and
19
+ behavior instead.
20
+
21
+ **Transport.** Prefer the `glen` CLI: it is faster. First look at your tool
22
+ list. With no shell tool, use the glen MCP tools and run no shell command.
23
+ With a shell, run `glen status`. When it shows glen connected with an org,
24
+ use the CLI for every glen call in this task, even if a glen MCP server is
25
+ also connected. If `glen` is not installed or not logged in, use the MCP
26
+ tools. If neither works, stop and tell the user what is missing: a terminal
27
+ with `glen login`, or the glen MCP connection. If glen refuses a call (not
28
+ signed in, wrong role, no plan), report the refusal as written; never retry
29
+ it over the other transport.
30
+
31
+ The CLI command is `glen code-search`. The MCP tool is `glen_code_search`, and
32
+ the glen MCP connection in Codex and ChatGPT does not offer it; treat that as no
33
+ MCP.
34
+
35
+ For "No active organization", tell the user to run `glen org switch` (CLI) or
36
+ reconnect the MCP server and pick an org.
37
+
38
+ ## Supported actions
39
+
40
+ Resolve the file and line range the user is asking about, then:
41
+
42
+ - CLI: `glen code-search <path:start-end> "<the user's question>"`, for example
43
+ `glen code-search src/api/rate-limit.ts:40-85 "why is this rate-limited?"`.
44
+ - MCP: follow the `glen_code_search` tool description. Run
45
+ `git blame -w -M -C --porcelain -L <start>,<end> -- <path>`, pass the distinct
46
+ commit SHAs as `shas` (drop the all-zero SHA), any `Glen-Conversation:` trailer
47
+ values from those commits' messages as `trailerConversationIds`, the origin
48
+ remote as `repoUrl` in the form `https://<host>/<owner>/<repo>` (lowercase host,
49
+ no `.git`, SSH remotes converted), and the question as `query`.
50
+
51
+ The result (CLI output, or MCP `markdown`) lists the conversations most relevant
52
+ to the question, then their transcripts. Answer from those transcripts and cite
53
+ them: name the conversation, author and date behind each claim.
54
+
55
+ ## Limits
56
+
57
+ - "no Glen trace found" (CLI) or `state: "no_anchor"` (MCP) means no recorded
58
+ conversation produced those lines. The code predates glen or was committed
59
+ without recording. Say so plainly and do not invent a history.
60
+ - Uncommitted lines have no history yet.
61
+ - It only sees commits in the local checkout. Pull first if the user asks about
62
+ code you do not have.
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: controls
3
+ description: Control glen memory - turn glen on/off, go off the record (incognito, account-wide), go silent (keep recording, surface nothing), toggle glen's skill suggestions or PR review offers, or switch which organization's memory is active. Use ONLY when the user explicitly asks (e.g. "turn glen off", "go off the record", "stop recording", "stop suggesting skills", "stop offering PR reviews", "just record, don't inject anything", "switch to my personal org").
4
+ ---
5
+
6
+ ## Purpose
7
+
8
+ Change how glen records and recalls for this user, only when they explicitly
9
+ ask. Every mode and suggestion setting is account-wide and server-enforced: it
10
+ applies on every machine, agent, and connected client. The mode and skill
11
+ suggestion switches also live in the dashboard under Settings > Memory.
12
+
13
+ ## Prerequisites
14
+
15
+ **Transport.** Prefer the `glen` CLI: it is faster. First look at your tool
16
+ list. With no shell tool, use the glen MCP tools and run no shell command.
17
+ With a shell, run `glen status`. When it shows glen connected with an org,
18
+ use the CLI for every glen call in this task, even if a glen MCP server is
19
+ also connected. If `glen` is not installed or not logged in, use the MCP
20
+ tools. If neither works, stop and tell the user what is missing: a terminal
21
+ with `glen login`, or the glen MCP connection. If glen refuses a call (not
22
+ signed in, wrong role, no plan), report the refusal as written; never retry
23
+ it over the other transport.
24
+
25
+ ## Supported actions
26
+
27
+ | Intent | MCP tool | CLI |
28
+ | --- | --- | --- |
29
+ | Show current settings | `glen_status` (mode and suggestion settings) | `glen status` (org and mode; it does not show suggestion settings) |
30
+ | On: recall and record (the default) | `glen_set_recording` `{mode: "on"}` | `glen on` |
31
+ | Off: recall nothing, record nothing | `glen_set_recording` `{mode: "off"}` | `glen off` |
32
+ | Incognito: keep recalling, record nothing ("go off the record", "stop recording") | `glen_set_recording` `{mode: "incognito"}` | `glen incognito` |
33
+ | Silent: keep recording, surface nothing ("just record, stay out of my way") | `glen_set_recording` `{mode: "silent"}` | `glen silent` |
34
+ | Skill suggestions on or off | `glen_set_suggestions` `{skillCreation}` and/or `{skillUse}` | `glen suggestions skill-create on\|off`, `glen suggestions skill-use on\|off` |
35
+ | PR review offers on or off (glen offering to open a PR the agent just created in the local reviewer; off by default) | `glen_set_suggestions` `{review}` | `glen suggestions review on\|off` |
36
+ | See or switch the active org | `glen_list_orgs` (read only) | `glen org list`, `glen org switch <slug>` |
37
+
38
+ **Before turning capture on** (on, or silent, from off or incognito), tell the
39
+ user in a few lines:
40
+
41
+ - **Recording vs silent vs incognito.** On records and recalls. Silent records
42
+ everything but surfaces nothing: no recall, no suggestions, and search
43
+ returns nothing. Incognito recalls but adds nothing to team memory.
44
+ - **Which org receives it.** The active org: the `org:` line of `glen status`,
45
+ or the `active: true` entry of `glen_list_orgs`. Everyone in that org can
46
+ search what is recorded.
47
+ - **What leaves the machine.** Where the glen plugin's hooks run, each turn is
48
+ sent to the glen server: the user's prompts, the agent's replies, its
49
+ thinking where the agent exposes it, tool calls and tool results, plus the
50
+ agent name, model, working directory, repo, branch, commit, and git remote.
51
+ Secrets are redacted on the server before anything is stored. A session with only the MCP connection
52
+ and no hooks is not captured; glen receives only what the agent passes to a
53
+ glen tool.
54
+
55
+ Then make the change and confirm the new state to the user.
56
+
57
+ Switch orgs only when the user explicitly asks: it changes which org receives
58
+ their data. An MCP connection cannot switch orgs; the user reconnects and picks
59
+ another org (or runs `glen org switch` on a machine with the CLI).
60
+
61
+ ## Limits
62
+
63
+ - Every change must reach the glen server. If the tool or command fails, the
64
+ setting did NOT change; tell the user.
65
+ - Owners and admins can see each member's current mode and suggestion
66
+ settings in the dashboard under Admin > Controls.
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: create-artifact
3
+ description: Save a document you produced (a report, runbook, spec, dashboard, HTML page) to your Glen artifact library, private to you by default, sharable with teammates or the whole org. Use when the user says "save this as an artifact", or asks to share or delete an artifact they saved. When you've generated a substantial standalone document, offer to save it; don't save it unasked.
4
+ ---
5
+
6
+ ## Purpose
7
+
8
+ Save a durable, standalone document to the user's Glen artifact library: Markdown prose, or a self-contained HTML+CSS page with no JavaScript. It is private to the user by default and can be shared with teammates or the whole org. Skip ephemeral chat answers.
9
+
10
+ ## Prerequisites
11
+
12
+ **Transport.** Prefer the `glen` CLI: it is faster. First look at your tool
13
+ list. With no shell tool, use the glen MCP tools and run no shell command.
14
+ With a shell, run `glen status`. When it shows glen connected with an org,
15
+ use the CLI for every glen call in this task, even if a glen MCP server is
16
+ also connected. If `glen` is not installed or not logged in, use the MCP
17
+ tools. If neither works, stop and tell the user what is missing: a terminal
18
+ with `glen login`, or the glen MCP connection. If glen refuses a call (not
19
+ signed in, wrong role, no plan), report the refusal as written; never retry
20
+ it over the other transport.
21
+
22
+ The tools are `glen_artifact_*`; your client may prefix the names.
23
+
24
+ ## Supported actions
25
+
26
+ Save only when the user clearly asked for it. Sharing and deleting need their own clear request too.
27
+
28
+ | Action | MCP tool | CLI |
29
+ | --- | --- | --- |
30
+ | Save | `glen_artifact_create` with `title`, `format` (`markdown` or `html`), `content` | `glen artifact create --file <path> --title "<title>" --format auto` |
31
+ | Overwrite your own artifact | add `update: true` | add `--update` |
32
+ | Share with the whole org on save | add `shareWithOrg: true` | add `--org` |
33
+ | Share later | `glen_artifact_share` with `slug`, `emails` and/or `org: true` | `glen artifact share <slug> --with <email>[,<email>…]` and/or `--org` |
34
+ | Delete | `glen_artifact_delete` with `slug` | `glen artifact delete <slug>` |
35
+
36
+ 1. **Prepare the document.** To link another artifact or skill, write `[label](glen:artifact/<slug>)` or `[label](glen:skill/<slug>)`. Over MCP, pass the document as `content`. Over the CLI, write it to a local file (`.md` or `.html`) first, or pipe it with `--file -` (then `--title` is required).
37
+ 2. **Save it.** Over MCP, call `glen_artifact_create` with `title`, `format` and `content`. Over the CLI, run `glen artifact create --file <path> --title "<title>" --format auto`. The title goes only in `--title`, never as a bare word.
38
+ 3. **Check references.** If the result lists unresolved references (`unresolvedSlugs`), a linked slug does not exist yet. Tell the user, then fix the link or create the missing artifact or skill.
39
+ 4. **Confirm.** Tell the user the slug and its visibility: private by default (only they can see it, at `https://app.tryglen.com/artifacts/<slug>`), or shared with the whole org. To share with specific teammates or get a link, they can also click **Share** on the artifact's page.
40
+ 5. **Share or delete (author only, when asked).** Sharing is additive: existing access is kept, and removing access is done in the dashboard's Share dialog. Deleting is permanent: confirm the slug with the user first.
41
+
42
+ ## Limits
43
+
44
+ - Markdown or HTML+CSS only, no JavaScript, up to 200,000 characters. Over MCP, `format` must be `markdown` or `html`; only the CLI infers it (`auto`).
45
+ - The title becomes the slug, unique in the org. A taken name is a conflict: pick another title, or pass update for an artifact you authored.
46
+ - Only the author can update, share or delete an artifact. An update without the org flag keeps the current sharing.
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: create-skill
3
+ description: Turn what you just did (or a markdown prompt the user provides) into a reusable skill, either a local SKILL.md on this machine or a shared Glen skill saved to the org's library. Use when the user says "make this a skill", "save this as a skill", "save this as a Glen skill", or wants to capture a repeatable workflow. Also use when the user asks to share or delete a Glen skill they authored.
4
+ ---
5
+
6
+ ## Purpose
7
+
8
+ Author a reusable **skill**: a focused markdown prompt another agent will follow later, with no memory of this session. It is either a **local `SKILL.md`** on this machine (a Cursor skill, visible only to the user) or a **Glen skill** in the user's Glen library (private to them by default, sharable with teammates or the whole org).
9
+
10
+ ## Prerequisites
11
+
12
+ A local skill needs write access to this machine's files and nothing from glen.
13
+
14
+ A Glen skill needs a glen connection.
15
+
16
+ **Transport.** Prefer the `glen` CLI: it is faster. First look at your tool
17
+ list. With no shell tool, use the glen MCP tools and run no shell command.
18
+ With a shell, run `glen status`. When it shows glen connected with an org,
19
+ use the CLI for every glen call in this task, even if a glen MCP server is
20
+ also connected. If `glen` is not installed or not logged in, use the MCP
21
+ tools. If neither works, stop and tell the user what is missing: a terminal
22
+ with `glen login`, or the glen MCP connection. If glen refuses a call (not
23
+ signed in, wrong role, no plan), report the refusal as written; never retry
24
+ it over the other transport.
25
+
26
+ The tools are `glen_skill_*`; your client may prefix the names.
27
+
28
+ ## Supported actions
29
+
30
+ | Action | MCP tool | CLI |
31
+ | --- | --- | --- |
32
+ | Find related memory | `glen_search` | `glen search "<topic>"` |
33
+ | Find a dependency | `glen_dependency_search` | `glen dependency search "<tool>"` |
34
+ | Find a skill to reference | `glen_skill_search` | `glen skill search "<intent>"` |
35
+ | Save | `glen_skill_create` | `glen skill create` |
36
+ | Share | `glen_skill_share` with `slug`, `emails` and/or `org: true` | `glen skill share <slug> --with <email>[,<email>…]` and/or `--org` |
37
+ | Delete | `glen_skill_delete` with `slug` | `glen skill delete <slug>` |
38
+
39
+ 1. **Pick the destination first.** A request for a "glen skill", a "team skill", or a skill in their library or org is a Glen skill: save it to glen with step 5, and never write it as a local skill instead. A request for a local or personal skill file is a local skill. If the user hasn't said, ask which they want, and don't start writing until they answer. If you can't write local files (for example, a session with only the MCP tools), a Glen skill is the only destination; you can also give the user the finished `SKILL.md` text. Save a Glen skill only when the user clearly asked for it.
40
+ 2. **Gather the real workflow.** Read this conversation for the steps that actually worked. For anything done in an earlier session, search glen memory. Ask one or two clarifying questions only if the goal or trigger is genuinely ambiguous.
41
+ 3. **Name and describe it.** A short imperative name and a one-sentence description that says _exactly when to trigger it_ (this drives discovery).
42
+ 4. **Write a tight SKILL.md body.**
43
+ - Lead with _when to use it_ and the end goal.
44
+ - Give concrete, ordered steps (exact commands, file paths, gotchas), not vague advice.
45
+ - Keep it self-contained: assume zero prior context. Cut anything that isn't actionable.
46
+ - **Reference other skills** when a step is itself a saved skill: write a markdown link `[Display text](glen:<slug>)` (find the slug with skill search). The reader gets a runnable `glen skill use <slug>` command exactly there. Say _when_ to reach for it. Reserve this for genuinely **shared** skills that also get used on their own.
47
+ - **Bundle supporting material in one skill directory, not separate subskills.** Put long reference material in `references/*.md` and executable helpers in `scripts/` beside `SKILL.md`, and point to them from the body as `${GLEN_SKILL_DIR}/references/<name>.md` or `${GLEN_SKILL_DIR}/scripts/<name>`. When a reader fetches the skill through the CLI, `glen skill use` caches the directory locally and replaces `${GLEN_SKILL_DIR}` with its absolute path.
48
+ 5. **Finish based on the destination.**
49
+
50
+ **Local skill.** Nothing leaves the machine.
51
+ - Save it to `.cursor/skills/<name>/SKILL.md` in this project, or `~/.cursor/skills/<name>/SKILL.md` for a personal skill that follows you across every project.
52
+ - Start the file with YAML frontmatter (`name`, and the `description` from step 3), then the body.
53
+ - Confirm the saved path to the user.
54
+
55
+ **Glen skill.**
56
+ - **Declare its dependencies.** List the external tools, runtimes or MCP servers the skill needs. Search each one with dependency search. If a confident match exists, reuse it as `{ "dependencyId": "<id>" }`; otherwise find the canonical install page and add `{ "name", "description", "sourceUrl", "kind" }` (kind is `mcp`, `cli`, `runtime`, `library` or `service`).
57
+ - **Save it over MCP:** call `glen_skill_create` with `name`, `description`, `content` (the body), and `dependencies` if any. For bundled files, add `files`: each has a `path` under `scripts/`, `references/` or `assets/`, `contentType`, `content` (text) or `contentBase64` (binary), and `isExecutable: true` for scripts.
58
+ - **Save it over the CLI:** write the dependency list to a JSON file (for example `/tmp/glen-deps.json`). For a text-only skill, write the body to a file and run:
59
+
60
+ ```
61
+ glen skill create --name "<name>" --description "<one-line>" --file /tmp/glen-skill.md --deps /tmp/glen-deps.json
62
+ ```
63
+
64
+ For a skill from an existing folder, or with bundled files, pass the folder with `--dir` (it needs `SKILL.md` at its root; the CLI reads the body from there). To build one, make a directory with `SKILL.md` at its root plus whichever of `scripts/`, `references/`, `assets/` it needs, then run:
65
+
66
+ ```
67
+ glen skill create --name "<name>" --description "<one-line>" --dir /tmp/glen-skill-pkg --deps /tmp/glen-deps.json
68
+ ```
69
+
70
+ `--file` and `--dir` are mutually exclusive. Drop `--deps` when there are none.
71
+ - **Confirm and offer sharing.** The skill is private to the user by default. Ask whether to share it with the whole org (`org: true` / `--org` on save, or share later) or with specific teammates (share with their emails). Confirm the saved slug and its visibility.
72
+ 6. **Share or delete (author only, when asked).** Sharing is additive. Deleting is permanent and removes the skill for everyone it was shared with: confirm the slug with the user first.
73
+
74
+ ## Limits
75
+
76
+ - A name that is taken in the org is a conflict: pick another name, or pass update (`update: true` / `--update`) for a skill the user authored. Only the author can update, share or delete a skill.
77
+ - Bundled files: only `scripts/`, `references/` and `assets/`, at most 100 files. Keep them small; glen rejects an oversized bundle and names the file.