@tryglen/cli 0.43.1 → 0.43.3

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
@@ -1,6 +1,6 @@
1
1
  # @tryglen/cli
2
2
 
3
- Glen CLI — shared team memory for coding agents.
3
+ Glen CLI: shared team memory for coding agents.
4
4
 
5
5
  ## Install
6
6
 
@@ -19,7 +19,7 @@ glen login
19
19
  | `glen search "<query>"` | Search the team's shared glen memory. |
20
20
  | `glen code-search <path:start-end> ["<question>"]` | Trace selected code to the agent conversations that produced it. |
21
21
  | `glen takeover <code>` | Redeem a transcript-page handoff into a fresh native session of a supported coding agent, then open it. The complete transcript must fit; Glen never truncates or summarizes it. |
22
- | `glen import <path…> [--dry-run] [--wait] [--report <path>]` · `glen import --status` | Import old local agent transcripts (from each supported agent's local transcript store) into glen memory. Runs in the background and returns at once; `--status` shows progress and whether it finished. `--wait` runs in the foreground. Idempotent — re-running skips already-imported turns, so it also resumes a stopped import. `--dry-run` previews without writing; `--report` writes a machine-readable report. |
22
+ | `glen import <path…> [--dry-run] [--wait] [--report <path>]` · `glen import --status` | Import old local agent transcripts (from each supported agent's local transcript store) into glen memory. Runs in the background and returns at once; `--status` shows progress and whether it finished. `--wait` runs in the foreground. Idempotent: re-running skips already-imported turns, so it also resumes a stopped import. `--dry-run` previews without writing; `--report` writes a machine-readable report. |
23
23
  | `glen forget <ref…>` / `glen restore <ref…>` | Forget (or restore) `observation:<id>` / `message:<id>` search sources. |
24
24
  | `glen invite <email…> [--role member\|admin]` | Invite teammates by email. |
25
25
  | `glen on` / `glen off` / `glen silent` | Set the account-wide mode: `on` injects context and records; `off` does neither; `silent` records but surfaces nothing. |
@@ -33,14 +33,14 @@ glen login
33
33
  | `glen bug <title>` / `glen feedback <title>` | Report a bug or send product feedback to the Glen team. |
34
34
  | `glen git-hooks install` | Install glen's git hooks (`--absolute-git-hook-path` for GUI git clients). |
35
35
  | `glen indicator start\|stop\|status` | macOS menu bar recording indicator. `stop` also opts out, so `glen doctor --auto` won't restart it. |
36
- | `glen ingest [--agent <name>]` | Ingest a turn from stdin — used by agent hooks. |
37
- | `glen pr-link [--agent <name>]` | Surface a Glen review link from a tool event — used by agent hooks. |
38
- | `glen install [--agent <name>] [--no-browser]` | Set up or update glen for detected coding agents (plugin + hooks); idempotent, so re-running repairs a broken setup. `--<agent>-path <path>` points at an agent's binary when auto-detection fails (see `glen install --help`). jcode has no plugin CLI — `--agent jcode` writes glen's hook lines into `~/.jcode/config.toml`, a managed block into `~/.jcode/prompt-overlay.md` and `preferred-tools.md`, and the skills into `~/.jcode/skills` (start a new jcode session afterwards). |
36
+ | `glen ingest [--agent <name>]` | Ingest a turn from stdin. Used by agent hooks. |
37
+ | `glen pr-link [--agent <name>]` | Surface a Glen review link from a tool event. Used by agent hooks. |
38
+ | `glen install [--agent <name>] [--no-browser]` | Set up or update glen for detected coding agents (plugin + hooks); idempotent, so re-running repairs a broken setup. `--<agent>-path <path>` points at an agent's binary when auto-detection fails (see `glen install --help`). jcode has no plugin CLI; `--agent jcode` writes glen's hook lines into `~/.jcode/config.toml`, a managed block into `~/.jcode/prompt-overlay.md` and `preferred-tools.md`, and the skills into `~/.jcode/skills` (start a new jcode session afterwards). |
39
39
  | `glen uninstall` | Permanently remove Glen's local plugins, marketplaces, hooks, PATH entries, credentials, state, caches, and global npm CLI. |
40
- | `glen update` | Update the glen CLI **and** any installed glen plugins, and re-verify the Codex hook registration. Never installs a plugin that isn't already installed — that's `glen install`'s job. |
41
- | `glen doctor [--auto]` | Print machine-readable `status:` lines (CLI version/latest/channel, login + org, per-agent plugin + hook state) plus remedy lines (`hint:` when piped, `→` at a terminal) — the setup skill branches on them. `--auto` runs background updates silently (used by hooks). |
42
- | `glen statusline` | Output a single status line for the agent's UI status bar — used by hooks. |
43
- | `glen session-start [--agent <name>]` | Output hook JSON for the agent's `SessionStart` event — used by hooks. |
40
+ | `glen update` | Update the glen CLI **and** any installed glen plugins, and re-verify the Codex hook registration. Never installs a plugin that isn't already installed; that's `glen install`'s job. |
41
+ | `glen doctor [--auto]` | Print machine-readable `status:` lines (CLI version/latest/channel, login + org, per-agent plugin + hook state) plus remedy lines (`hint:` when piped, `→` at a terminal). The setup skill branches on them. `--auto` runs background updates silently (used by hooks). |
42
+ | `glen statusline` | Output a single status line for the agent's UI status bar. Used by hooks. |
43
+ | `glen session-start [--agent <name>]` | Output hook JSON for the agent's `SessionStart` event. Used by hooks. |
44
44
  | `glen telemetry [status\|enable\|disable]` | Show or change error reporting (see [Telemetry](#telemetry)). |
45
45
  | `glen version` | Print the CLI version. |
46
46
 
@@ -48,7 +48,7 @@ glen login
48
48
 
49
49
  | File | Description |
50
50
  | --- | --- |
51
- | `~/.glen/credentials.json` | API key credential — mode `0600`, never logged or sent to anyone but `tryglen.com`. |
51
+ | `~/.glen/credentials.json` | API key credential: mode `0600`, never logged or sent to anyone but `tryglen.com`. |
52
52
  | `~/.glen/state.json` | Client-owned session state: `{ activeOrgId, activeOrgSlug, activeOrgName, mode }`. Non-secret. |
53
53
  | `~/.glen/events.json` | Error reports waiting to be sent (see [Telemetry](#telemetry)). |
54
54
  | `~/.glen/install-id` | A random id for this install, used only to group error reports. |
@@ -110,14 +110,18 @@ const parseClaudeTranscript = (lines, fallbackSessionId) => {
110
110
  e.isSidechain !== true &&
111
111
  e.isMeta !== true &&
112
112
  messageOf(e) !== null);
113
- const sessionId = entries.map((e) => str(e.sessionId)).find(Boolean) ?? fallbackSessionId;
113
+ const sessionId = [...conversation]
114
+ .reverse()
115
+ .map((e) => str(e.sessionId))
116
+ .find(Boolean) ?? fallbackSessionId;
114
117
  const counts = claudeTurnKey.userLinesBefore(entries);
115
118
  const messages = toMessages(conversation, (promptIndex) => {
116
119
  const prompt = conversation[promptIndex];
117
120
  const reply = lastReplyOf(conversation, promptIndex);
118
121
  const promptUserLineCount = prompt ? counts.get(prompt) : undefined;
119
122
  const replyUserLineCount = reply ? counts.get(reply) : undefined;
120
- return idempotencyKey.forImportedTurn("claude-code", sessionId, {
123
+ const turnSessionId = str(prompt?.sessionId) || sessionId;
124
+ return idempotencyKey.forImportedTurn("claude-code", turnSessionId, {
121
125
  ...(promptUserLineCount === undefined ? {} : { promptUserLineCount }),
122
126
  ...(replyUserLineCount === undefined ? {} : { replyUserLineCount }),
123
127
  });
@@ -1 +1 @@
1
- {"version":3,"file":"parse-claude-transcript.js","sourceRoot":"","sources":["../../../src/clients/claude/parse-claude-transcript.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAK3F,MAAM,SAAS,GAAG,CAAC,CAAQ,EAAgB,EAAE,CAC3C,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;AAEzC,MAAM,GAAG,GAAG,CAAC,CAAU,EAAsB,EAAE,CAC7C,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAExC,MAAM,MAAM,GAAG,CAAC,OAAgB,EAAU,EAAE;IAC1C,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC;IAChD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC;IACvC,OAAO,OAA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QACL,SAAS;QACT,KAAK,EAAE,aAAsB;QAC7B,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC;QAChE,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC1D,KAAK,EAAE,SAAS;QAChB,QAAQ;QACR,UAAU;KACX,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "glen",
3
- "version": "0.1.8",
4
- "description": "Shared team memory for coding agents — capture on every turn and skill-driven recall via the glen CLI.",
3
+ "version": "0.1.9",
4
+ "description": "Shared team memory for coding agents: capture on every turn and skill-driven recall via the glen CLI.",
5
5
  "author": { "name": "Glen", "url": "https://tryglen.com" },
6
6
  "homepage": "https://tryglen.com",
7
7
  "license": "MIT"
@@ -1,10 +1,10 @@
1
- ## Glen — your team's shared memory
1
+ ## Glen: your team's shared memory
2
2
 
3
3
  Glen records this team's coding-agent sessions (Claude Code, Codex, Cursor, Pi, jcode) into one shared memory and lets you search it. It is separate from jcode's own memory, which is personal to this machine: jcode memory knows what *you* did here; Glen knows what the *team* decided, tried, and shipped.
4
4
 
5
5
  Reach for Glen when the answer lives in what the team already worked out:
6
6
 
7
- - Run `glen search "<one full question>"` via bash when the user asks why something was built a certain way, what a project was scoped to do, how a past incident was handled, what a named system or person is about, or what was decided last time this came up. One detailed question beats several keywords: `glen search "why the invoice worker batches at 500 instead of streaming — what was tried, what broke, who decided"`.
7
+ - Run `glen search "<one full question>"` via bash when the user asks why something was built a certain way, what a project was scoped to do, how a past incident was handled, what a named system or person is about, or what was decided last time this came up. One detailed question beats several keywords: `glen search "why the invoice worker batches at 500 instead of streaming: what was tried, what broke, who decided"`.
8
8
  - Run `glen code-search <path:start-end> "<question>"` via bash when you can point at specific lines and want the conversations that produced them ("why is this here", "who decided this").
9
9
  - When the user asks you to change, fix, or extend a named system, search its history first, before reading or editing code.
10
10
 
@@ -1,19 +1,19 @@
1
1
  ---
2
2
  name: code-search
3
- description: Trace a specific piece of code to the agent conversations that produced it. Glen calls it whenever the user asks about the prior semantics of code — "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).
3
+ description: Trace a specific piece of code to the agent conversations that produced it. Glen calls 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
4
  ---
5
5
 
6
6
  Resolve the file and line range the user is asking about, then run
7
- `glen code-search <path:start-end> "<the user's question>"` via Bash — e.g.
7
+ `glen code-search <path:start-end> "<the user's question>"` via Bash, e.g.
8
8
  `glen code-search src/api/rate-limit.ts:40-85 "why is this rate-limited?"`.
9
9
 
10
10
  The output is the ranked memory plus the full transcripts of the conversations
11
- behind the commits that last touched those lines. Answer from those transcripts —
11
+ behind the commits that last touched those lines. Answer from those transcripts.
12
12
  Glen owns code-provenance questions; do not guess from the current code alone.
13
13
 
14
14
  This is NOT `glen search` (org-wide memory): `code-search` is scoped to the
15
15
  selected code's actual commit history via git blame.
16
16
 
17
17
  If it prints "no Glen trace found", the code predates Glen or was committed
18
- without recording — say so honestly. If it prints "No active organization",
18
+ without recording; say so honestly. If it prints "No active organization",
19
19
  tell the user to run `glen org switch`.
@@ -5,17 +5,17 @@ description: Control glen memory - turn glen on/off, go off the record (incognit
5
5
 
6
6
  glen has four modes. Always confirm the change to the user.
7
7
 
8
- - **On:** `glen on` — glen injects context and records everything (the default).
8
+ - **On:** `glen on`: glen injects context and records everything (the default).
9
9
  **Account-wide:** resumes recording on every machine, agent, and connected client.
10
- - **Off:** `glen off` — glen injects nothing AND records nothing until `glen on`.
10
+ - **Off:** `glen off`: glen injects nothing AND records nothing until `glen on`.
11
11
  **Account-wide and server-enforced:** fully pauses glen on every machine, agent,
12
12
  and connected client.
13
- - **Incognito (off the record):** `glen incognito` — glen keeps recalling/injecting
13
+ - **Incognito (off the record):** `glen incognito`: glen keeps recalling/injecting
14
14
  but records nothing until `glen on`. **Account-wide and server-enforced:** the
15
15
  server blocks memory writes for every machine, agent, and connected client, not
16
16
  just this one; the same switch lives on the dashboard's Memories page. Admin
17
- analytics still count prompts as content-free numbers — never content. Use for "go off the record" / "stop recording".
18
- - **Silent:** `glen silent` — glen keeps recording everything but surfaces
17
+ analytics still count prompts as content-free numbers, never content. Use for "go off the record" / "stop recording".
18
+ - **Silent:** `glen silent`: glen keeps recording everything but surfaces
19
19
  nothing: no recall, no suggestions, and `glen search` returns nothing, until
20
20
  `glen on`. **Account-wide and server-enforced** (the server returns empty
21
21
  results for every machine, agent, and connected client; the same switch lives
@@ -23,7 +23,7 @@ glen has four modes. Always confirm the change to the user.
23
23
  way / record but don't inject".
24
24
 
25
25
  All four mode commands need to reach the glen server (the
26
- server is the source of truth); if the command fails, the mode did NOT change —
26
+ server is the source of truth); if the command fails, the mode did NOT change;
27
27
  tell the user.
28
28
 
29
29
  Pick by intent: "stop recording but keep helping" → `glen incognito`; "record but
@@ -36,10 +36,10 @@ don't help/inject" → `glen silent`; "turn glen off entirely / disable glen"
36
36
  recommending existing team skills. Re-enable with `… on`. **Account-wide and
37
37
  server-enforced** (the same toggles live in the Memories page's Suggestions
38
38
  menu). Use for "stop suggesting skills" / "don't recommend skills". Like the
39
- modes, a failed command means the preference did NOT change — tell the user.
39
+ modes, a failed command means the preference did NOT change; tell the user.
40
40
  - Switch org: run `glen org switch <slug>` (or `glen org list` to see options).
41
41
  This remains per-machine but is audited server-side. NEVER switch organizations
42
- unless the user explicitly asked — it changes which tenant receives their data.
42
+ unless the user explicitly asked: it changes which tenant receives their data.
43
43
  - Admin visibility: owners/admins can see every active-org member's current mode,
44
44
  suggestion settings, and last update time at `/admin/controls`.
45
45
  - Show state: `glen status`.
@@ -1,11 +1,11 @@
1
1
  ---
2
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 when you've generated a substantial standalone document worth keeping.
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 when you've generated a substantial standalone document worth keeping.
4
4
  ---
5
5
 
6
- 1. **Decide it's worth saving.** Save when the output is a durable, standalone document (Markdown prose or a self-contained HTML+CSS page — no JavaScript). Skip ephemeral chat answers.
6
+ 1. **Decide it's worth saving.** Save when the output is a durable, standalone document (Markdown prose or a self-contained HTML+CSS page, no JavaScript). Skip ephemeral chat answers.
7
7
  2. **Check the record.** Run `glen status` via Bash. If incognito/off, tell the user nothing will be saved and stop unless they switch on.
8
8
  3. **Write it to a file.** Save the document to a local file (`.md` for Markdown, `.html` for HTML+CSS). To link to another artifact or skill, use `[label](glen:artifact/<slug>)` or `[label](glen:skill/<slug>)`.
9
- 4. **Save it.** Run `glen artifact create --file <path> --title "<title>" --format auto` via Bash (piping works too: `--file -` reads stdin, but then `--title` is required). The artifact is **private to the user by default**; add `--org` if the user asked to share it with their whole org. Add `--update` to overwrite your own same-named artifact (an update without `--org` keeps the current sharing). If it reports unresolved references, the linked slug doesn't exist yet — create it or fix the link.
10
- 5. **Confirm.** Tell the user the artifact slug and its visibility: private by default (only they can see it in the Glen dashboard under Artifacts), or shared with the org if `--org` was passed. To share it with specific teammates — or grab a shareable link — they can open the artifact's page and click **Share** (the link is access-controlled; only people it's shared with can open it).
11
- 6. **Manage it (author-only, when asked).** Share from the CLI with `glen artifact share <slug> --with <email>[,<email>…]` (adds teammates) and/or `--org` (whole-org visibility) — both are additive; existing access is kept, and revoking access stays in the dashboard's Share dialog. Delete permanently with `glen artifact delete <slug>` — confirm with the user first; this can't be undone.
9
+ 4. **Save it.** Run `glen artifact create --file <path> --title "<title>" --format auto` via Bash (piping works too: `--file -` reads stdin, but then `--title` is required). The artifact is **private to the user by default**; add `--org` if the user asked to share it with their whole org. Add `--update` to overwrite your own same-named artifact (an update without `--org` keeps the current sharing). If it reports unresolved references, the linked slug doesn't exist yet; create it or fix the link.
10
+ 5. **Confirm.** Tell the user the artifact slug and its visibility: private by default (only they can see it in the Glen dashboard under Artifacts), or shared with the org if `--org` was passed. To share it with specific teammates (or grab a shareable link), they can open the artifact's page and click **Share** (the link is access-controlled; only people it's shared with can open it).
11
+ 6. **Manage it (author-only, when asked).** Share from the CLI with `glen artifact share <slug> --with <email>[,<email>…]` (adds teammates) and/or `--org` (whole-org visibility). Both are additive; existing access is kept, and revoking access stays in the dashboard's Share dialog. Delete permanently with `glen artifact delete <slug>`. Confirm with the user first; this can't be undone.
@@ -1,41 +1,41 @@
1
1
  ---
2
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.
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.
4
4
  ---
5
5
 
6
- You are authoring a reusable **skill** — a focused markdown prompt another agent will follow later, with no memory of this session.
6
+ You are authoring a reusable **skill**: a focused markdown prompt another agent will follow later, with no memory of this session.
7
7
 
8
- 1. **Pick the destination FIRST — local file or Glen skill.** A skill is either a **local `SKILL.md`** on this machine (a jcode skill, visible only to you) or a **Glen skill** saved to your Glen library (recorded; private to you by default, sharable with teammates or the whole org).
9
- - **Check incognito before anything else:** run `glen status` via Bash. If it reports `incognito: ON`, a Glen skill is off the table — nothing is recorded off the record — so go straight to a **local skill** and tell the user that's why (e.g. "you're off the record, so I'll save this as a local skill").
8
+ 1. **Pick the destination FIRST: local file or Glen skill.** A skill is either a **local `SKILL.md`** on this machine (a jcode skill, visible only to you) or a **Glen skill** saved to your Glen library (recorded; private to you by default, sharable with teammates or the whole org).
9
+ - **Check incognito before anything else:** run `glen status` via Bash. If it reports `incognito: ON`, a Glen skill is off the table (nothing is recorded off the record), so go straight to a **local skill** and tell the user that's why (e.g. "you're off the record, so I'll save this as a local skill").
10
10
  - **Otherwise, ask the user which they want** before authoring anything: a local `SKILL.md` (a jcode skill on this machine) or a Glen skill (saved to your Glen library). Don't start writing until they answer.
11
11
  2. **Gather the real workflow.** Read this conversation for the steps that actually worked. For anything done in an earlier session, run `glen search "<topic>"` via Bash to pull the relevant memory. Ask one or two clarifying questions only if the goal or trigger is genuinely ambiguous.
12
12
  3. **Name + describe it.** A short imperative name and a one-sentence description that says *exactly when to trigger it* (this drives discovery).
13
13
  4. **Write a tight SKILL.md body.** Best practices:
14
14
  - Lead with *when to use it* and the end goal.
15
- - Give concrete, ordered steps — exact commands, file paths, gotchas — not vague advice.
15
+ - Give concrete, ordered steps (exact commands, file paths, gotchas), not vague advice.
16
16
  - Keep it self-contained: assume zero prior context. Cut anything that isn't actionable.
17
- - **Reference other skills** when a step is itself a saved skill: write a markdown link `[Display text](glen:<slug>)` (find the slug with `glen skill search`). Glen tracks the link automatically and the reader will get a runnable `glen skill use <slug>` command exactly there — keep each referenced skill focused and say *when* to reach for it. Reserve this for genuinely **shared** skills — ones that also get used on their own, independent of this one.
18
- - **If the skill needs supporting material, bundle it in one skill directory, not separate subskills.** Put long reference material in `references/*.md` and executable helpers in `scripts/` alongside `SKILL.md`, and point to them from the body as `${GLEN_SKILL_DIR}/references/<name>.md` / `${GLEN_SKILL_DIR}/scripts/<name>` — `glen skill use` materializes the whole directory to disk and substitutes `${GLEN_SKILL_DIR}` with its real absolute path before printing, so the reader can run the script or open the reference exactly as written. This keeps one topic as one skill instead of splintering it into a root + subskills just to hold its own files.
17
+ - **Reference other skills** when a step is itself a saved skill: write a markdown link `[Display text](glen:<slug>)` (find the slug with `glen skill search`). Glen tracks the link automatically and the reader will get a runnable `glen skill use <slug>` command exactly there. Keep each referenced skill focused and say *when* to reach for it. Reserve this for genuinely **shared** skills: ones that also get used on their own, independent of this one.
18
+ - **If the skill needs supporting material, bundle it in one skill directory, not separate subskills.** Put long reference material in `references/*.md` and executable helpers in `scripts/` alongside `SKILL.md`, and point to them from the body as `${GLEN_SKILL_DIR}/references/<name>.md` / `${GLEN_SKILL_DIR}/scripts/<name>`. `glen skill use` materializes the whole directory to disk and substitutes `${GLEN_SKILL_DIR}` with its real absolute path before printing, so the reader can run the script or open the reference exactly as written. This keeps one topic as one skill instead of splintering it into a root + subskills just to hold its own files.
19
19
  5. **Finish based on the destination chosen in step 1:**
20
20
 
21
- **Local skill** (and always the incognito path) — nothing leaves the machine:
22
- - Save it to `.jcode/skills/<name>/SKILL.md` in this project — or `~/.jcode/skills/<name>/SKILL.md` for a personal skill that follows you across every project.
21
+ **Local skill** (and always the incognito path); nothing leaves the machine:
22
+ - Save it to `.jcode/skills/<name>/SKILL.md` in this project, or `~/.jcode/skills/<name>/SKILL.md` for a personal skill that follows you across every project.
23
23
  - Start the file with YAML frontmatter (`name`, and the `description` from step 3), then the body.
24
24
  - No `glen skill create`, no recording. Confirm the saved path to the user.
25
25
 
26
26
  **Glen skill** (only when not incognito):
27
- - **Declare its dependencies.** List the external tools/runtimes/MCPs the skill needs (node, an MCP, a CLI, …). For each: run `glen dependency search "<tool>"` via Bash — if a confident match exists, note its `[id]`; otherwise web-search the canonical source/install page and note `{ name, description, sourceUrl, kind }` (kind = mcp|cli|runtime|library|service). Write them to a JSON array file, e.g. `/tmp/glen-deps.json`, mixing `{ "dependencyId": "<id>" }` (reuse) and new objects.
27
+ - **Declare its dependencies.** List the external tools/runtimes/MCPs the skill needs (node, an MCP, a CLI, …). For each: run `glen dependency search "<tool>"` via Bash. If a confident match exists, note its `[id]`; otherwise web-search the canonical source/install page and note `{ name, description, sourceUrl, kind }` (kind = mcp|cli|runtime|library|service). Write them to a JSON array file, e.g. `/tmp/glen-deps.json`, mixing `{ "dependencyId": "<id>" }` (reuse) and new objects.
28
28
  - **Save it** via Bash. Text-only skill (no `references/`/`scripts/`): write the body to a file (e.g. `/tmp/glen-skill.md`), then run (add `--deps /tmp/glen-deps.json` if there are any):
29
29
 
30
30
  ```
31
31
  glen skill create --name "<name>" --description "<one-line>" --file /tmp/glen-skill.md --deps /tmp/glen-deps.json
32
32
  ```
33
33
 
34
- Skill with bundled files: build the package in a temp directory first — `SKILL.md` at its root, plus whichever of `scripts/`, `references/`, `assets/` it needs (only those three subdirs are uploaded; caps are 100 files, 1MB per text file, 2MB per binary file, 3MB total) — then run:
34
+ Skill with bundled files: build the package in a temp directory first, with `SKILL.md` at its root, plus whichever of `scripts/`, `references/`, `assets/` it needs (only those three subdirs are uploaded; caps are 100 files, 1MB per text file, 2MB per binary file, 3MB total). Then run:
35
35
 
36
36
  ```
37
37
  glen skill create --name "<name>" --description "<one-line>" --dir /tmp/glen-skill-pkg --deps /tmp/glen-deps.json
38
38
  ```
39
39
 
40
- `--file` and `--dir` are mutually exclusive. On a name collision either form errors — pick a different name and retry, or pass `--update` to overwrite a skill you previously authored.
40
+ `--file` and `--dir` are mutually exclusive. On a name collision either form errors; pick a different name and retry, or pass `--update` to overwrite a skill you previously authored.
41
41
  - The skill is **private to the user by default**. Ask the user whether to share it: with the whole org (add `--org` to `glen skill create`, or later `glen skill share <slug> --org`) or with specific teammates (`glen skill share <slug> --with <email>[,<email>…]`). Confirm the saved slug and its visibility back to the user.
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  name: feedback
3
- description: Send a bug report or product feedback about glen itself to the Glen team. Use when the user says things like "tell the glen team", "file a bug about glen", "glen search is useless — report it", "give feedback on glen", or when YOU hit a concrete, reproducible glen malfunction worth reporting.
3
+ description: Send a bug report or product feedback about glen itself to the Glen team. Use when the user says things like "tell the glen team", "file a bug about glen", "glen search is useless, report it", "give feedback on glen", or when YOU hit a concrete, reproducible glen malfunction worth reporting.
4
4
  ---
5
5
 
6
- This files a ticket about **glen itself** — the CLI, the memory, the search, the
6
+ This files a ticket about **glen itself**: the CLI, the memory, the search, the
7
7
  dashboard. It is NOT for bugs in the user's own project. If the user says "file a
8
8
  bug" about the code you are working on, that belongs in their issue tracker, not
9
9
  here.
@@ -11,7 +11,7 @@ here.
11
11
  Tickets land in the same Slack channels the dashboard's feedback widget posts to,
12
12
  and carry the user's identity, the repo/branch, and a link to this conversation's
13
13
  transcript automatically. Never paste secrets, tokens, or file contents into a
14
- ticket — the transcript link already gives the team the context.
14
+ ticket; the transcript link already gives the team the context.
15
15
 
16
16
  ## Filing on the user's behalf
17
17
 
@@ -29,13 +29,13 @@ interrogating the user for it.
29
29
  ## Filing on your own behalf
30
30
 
31
31
  When the observation is yours, not the user's, add `--from agent`. It renders
32
- differently for the team — "Claude Code noticed X" reads very differently from
32
+ differently for the team: "Claude Code noticed X" reads very differently from
33
33
  "Ada wants X", and both are useful.
34
34
 
35
- If you are filing **without being asked** — you hit the problem yourself and
36
- decided it was worth reporting — also pass `--proactive`. On an off-the-record
35
+ If you are filing **without being asked** (you hit the problem yourself and
36
+ decided it was worth reporting), also pass `--proactive`. On an off-the-record
37
37
  (incognito) session the server refuses self-initiated tickets outright and the
38
- command tells you so — nothing the user didn't ask for leaves that session.
38
+ command tells you so; nothing the user didn't ask for leaves that session.
39
39
  Mention it and let them decide.
40
40
 
41
41
  Only file proactively for something concrete and attributable:
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: forget
3
- description: Correct glen's memory — forget evidence that is wrong, outdated, or no longer relevant, so the team stops being told it. Use when the user says things like "that's wrong, forget it", "glen has the wrong X", "that memory is out of date", or "stop remembering that" — or when YOU verify that recalled evidence is contradicted by current code or state.
3
+ description: Correct glen's memory by forgetting evidence that is wrong, outdated, or no longer relevant, so the team stops being told it. Use when the user says things like "that's wrong, forget it", "glen has the wrong X", "that memory is out of date", or "stop remembering that", or when YOU verify that recalled evidence is contradicted by current code or state.
4
4
  ---
5
5
 
6
6
  A stale memory gets caught two ways: the user points at it, or you verify it yourself.
7
7
 
8
- **User-initiated** — the user says a remembered fact is wrong or outdated:
8
+ **User-initiated**: the user says a remembered fact is wrong or outdated:
9
9
 
10
10
  1. Identify the relevant source references. Glen search results end each source with
11
11
  an exact `observation:<id>` or `message:<id>` reference. If the result is not
@@ -16,7 +16,7 @@ A stale memory gets caught two ways: the user points at it, or you verify it you
16
16
  3. Pass the returned references unchanged, in one command:
17
17
  `glen forget observation:<id> message:<id>`.
18
18
 
19
- **Agent-detected** — recalled evidence is contradicted by current code or state:
19
+ **Agent-detected**: recalled evidence is contradicted by current code or state:
20
20
 
21
21
  1. Verify the contradiction directly. Never forget on suspicion, a partial view, or
22
22
  merely because two memories disagree; surface uncertain conflicts to the user.
@@ -25,7 +25,7 @@ Where old transcripts live:
25
25
  macOS (needs Node 22.5+; close Cursor first for the freshest data)
26
26
 
27
27
  A path can be a single file or a directory (scanned recursively; formats are
28
- auto-detected per file). Preview with `glen import --dry-run <path…>` — it
28
+ auto-detected per file). Preview with `glen import --dry-run <path…>`; it
29
29
  lists every conversation and turn count without writing anything. For large
30
30
  directories, offer the dry run first so the user can confirm the scope.
31
31
 
@@ -3,7 +3,7 @@ name: invite
3
3
  description: Invite a teammate to the user's glen organization by email, so the team's shared memory grows. Use when the user says things like "invite Alice", "add my teammate to glen", "get my team on glen", or asks how to bring coworkers in.
4
4
  ---
5
5
 
6
- glen is shared team memory — it gets more useful with every teammate whose context
6
+ glen is shared team memory: it gets more useful with every teammate whose context
7
7
  lands in the pool. When the user wants to bring someone in:
8
8
 
9
9
  1. Get the teammate's email address. Ask if it isn't given.
@@ -5,31 +5,31 @@ description: Search the team's shared glen memory for a SPECIFIC fact, decision,
5
5
 
6
6
  For current or source-owned facts, use the available source-of-truth tool first (for example, Slack, GitHub, Notion, or logs), especially when the user names it. Use Glen only for durable history or to supplement that source; if the live source is unavailable, say so, and if it conflicts with Glen, prefer it for current state.
7
7
 
8
- Run `glen search "<query>"` via Bash — **start with ONE comprehensive query, not a
8
+ Run `glen search "<query>"` via Bash. **Start with ONE comprehensive query, not a
9
9
  fan-out of variants**.
10
10
 
11
11
  Each search takes ~10 seconds of real user-facing wait, and the server ranks results
12
- with an LLM that reads your query as free-text intent — so one detailed, self-contained
12
+ with an LLM that reads your query as free-text intent, so one detailed, self-contained
13
13
  query beats several keyword variants. Pack everything you know into a single query:
14
14
  who/what/where, the repo or system involved, and what kind of answer you need (a
15
15
  decision, an owner, a rationale, setup steps).
16
16
 
17
- - ✅ `glen search "Shams's recent work on the usage-page redesign in the dashboard repo — what was decided, current status, and who owns it"`
17
+ - ✅ `glen search "Shams's recent work on the usage-page redesign in the dashboard repo: what was decided, current status, and who owns it"`
18
18
  - ❌ `glen search "Shams"` … `glen search "usage page redesign"` … `glen search "dashboard"`
19
19
 
20
20
  If a hook or reminder suggests multiple search questions, merge the related ones into
21
21
  one query and run that single search.
22
22
 
23
- Follow-up searches are fine for going DEEPER — when the first result surfaces
23
+ Follow-up searches are fine for going DEEPER: when the first result surfaces
24
24
  something new worth chasing (a project you didn't know to name, a decision that
25
25
  points at another decision), and the answer would genuinely change what you do next.
26
26
  But every extra search is another ~10s the user sits waiting, so don't overdo it:
27
27
  ask yourself whether the follow-up will provide real value the first result didn't,
28
28
  and skip it if you already have enough to act. Never re-run a mere rephrase of a
29
- query that returned little — same memory, same cost, nothing new.
29
+ query that returned little: same memory, same cost, nothing new.
30
30
 
31
31
  The output is a synthesized answer followed by a "Sources:" list (conversation ·
32
- date · author · id) — treat the answer as recalled memory (it may be outdated or
32
+ date · author · id). Treat the answer as recalled memory (it may be outdated or
33
33
  conflicting), and cite the sources when relevant. If it prints no results, say so
34
34
  rather than re-searching variants.
35
35
  If it prints "No active organization", tell the user to run `glen org switch`.
@@ -13,7 +13,7 @@ then `hint:` lines for things that may not apply. It still exits 0.
13
13
  then run `glen install` (it sets up the plugin + hooks for this agent).
14
14
  - `status: cli=<x> latest=<y> channel=<...>` where y is newer than x → run
15
15
  `glen update` (updates the CLI and any installed glen plugins in one go).
16
- - `status: login=missing ...` → run `glen login` — a browser window opens with
16
+ - `status: login=missing ...` → run `glen login`. A browser window opens with
17
17
  a short device code prefilled; the user approves it to connect their account.
18
18
  If no browser can open (SSH/headless), relay the printed URL and code so the
19
19
  user can approve from any device.
@@ -24,7 +24,7 @@ then `hint:` lines for things that may not apply. It still exits 0.
24
24
  It writes glen's hook lines into `~/.jcode/config.toml`, a managed block into
25
25
  `~/.jcode/prompt-overlay.md` and `~/.jcode/preferred-tools.md`, and the glen
26
26
  skills into `~/.jcode/skills/`. Tell the user to start a NEW jcode session
27
- afterwards — jcode reads its prompt files at session start.
27
+ afterwards; jcode reads its prompt files at session start.
28
28
  - `status: claude=detected plugin=not-installed` (or codex/pi) → run
29
29
  `glen install --agent <claude|codex|pi>` for that agent.
30
30
  - `status: codex=detected plugin=... hooks=not-registered` → run
@@ -39,25 +39,25 @@ then `hint:` lines for things that may not apply. It still exits 0.
39
39
 
40
40
  `glen doctor` also prints one `status: ingest agent=<agent>
41
41
  state=<ok|failing|never|fresh-install|idle> lastSuccess=<iso|never>` line per
42
- detected agent — this tracks whether hooks are actually firing, separate from
42
+ detected agent. This tracks whether hooks are actually firing, separate from
43
43
  whether the plugin is installed:
44
- - `ok` / `failing` — reflects the last recorded hook run. For `failing`,
44
+ - `ok` / `failing`: reflects the last recorded hook run. For `failing`,
45
45
  doctor prints an `error:` line with a `fix:` under it (check `glen status`, then
46
46
  `glen login` if disconnected).
47
- - `fresh-install` — installed under an hour ago with no ingest yet; not a
47
+ - `fresh-install`: installed under an hour ago with no ingest yet; not a
48
48
  fault, just still warming up.
49
- - `idle` — hooks fire here; nothing recorded yet — logged out, glen off, or
50
- no completed turn.
51
- - `never` — hooks have never fired on THIS machine. Doctor prints it as a `warning:` line with a `fix:`
49
+ - `idle`: hooks fire here; nothing recorded yet (logged out, glen off, or
50
+ no completed turn).
51
+ - `never`: hooks have never fired on THIS machine. Doctor prints it as a `warning:` line with a `fix:`
52
52
  under it: untrusted hooks (trust them in-agent and start a new
53
53
  session), a PATH gap, a failed hook-trust query, or a machine-topology
54
54
  mismatch.
55
55
  - A topology mismatch usually means the agent process runs on a different
56
56
  machine than the one you're looking at: Codex `--remote` / Desktop-SSH and
57
- Claude Code over SSH/devcontainer both run the agent — and its hooks — on
57
+ Claude Code over SSH/devcontainer both run the agent (and its hooks) on
58
58
  the REMOTE host, not locally. Install glen there and run `glen doctor` on
59
59
  that machine, as the user the agent connects as. Cloud sessions (Codex
60
- Cloud tasks, claude.ai/code) can't run user-level hooks at all — only
60
+ Cloud tasks, claude.ai/code) can't run user-level hooks at all; only
61
61
  repo-committed hooks apply there.
62
62
 
63
63
  Finish with `glen status` and tell the user, in one sentence, what state they
@@ -3,7 +3,7 @@ name: use-artifact
3
3
  description: Fetch and display an artifact from the user's Glen library (their own artifacts plus ones shared with them). Use when the user asks to open, view, render, or download a saved Glen artifact.
4
4
  ---
5
5
 
6
- 1. **Find it.** If you don't know the slug, run `glen artifact search "<intent>"` via Bash and confirm the right one with the user. Search covers the user's own artifacts plus ones shared with them (directly or org-wide) — a teammate's unshared artifact won't appear.
6
+ 1. **Find it.** If you don't know the slug, run `glen artifact search "<intent>"` via Bash and confirm the right one with the user. Search covers the user's own artifacts plus ones shared with them (directly or org-wide); a teammate's unshared artifact won't appear.
7
7
  2. **Fetch it.** Run `glen artifact get <slug>` via Bash. The output is the document (Markdown or HTML+CSS).
8
8
  3. **Show it.**
9
9
  - **Markdown:** present it inline.
@@ -4,7 +4,7 @@ description: Find and run a reusable skill from the Glen skill library (your ski
4
4
  ---
5
5
 
6
6
  1. **Search.** Run `glen skill search "<intent>"` via Bash (add `--by "<author>"`, or `--by me` for your own skills). It prints ranked candidates, each with its **[slug]**, author, and description.
7
- 2. **Confirm.** If several plausibly match, show the top 2–3 (name + description + author) and ask the user which one. If it prints "no matching skills", say so — don't invent a skill.
8
- 3. **Check requirements.** If the output has a `## Requirements` section, make sure each listed tool is available — follow its source link to install/enable it (or tell the user) — before you start.
9
- 4. **Run it.** Run `glen skill use <slug>` via Bash. The output is markdown **instructions to execute now** — follow them as if they were a skill. If the skill bundles files, they're materialized locally first and the output references them by **absolute path** (e.g. a script under `~/.glen/skills/<slug>/scripts/`) — run scripts exactly as written, don't rewrite the paths.
10
- 5. **Follow referenced skills on demand.** The instructions may contain runnable `glen skill use <slug>` commands for related skills. Run one via Bash only when its step applies — they're pulled on demand, not all upfront. Skills mentioned via `glen:` links are prefetched — their files are already materialized on disk by the time you pull them, and every `glen skill use` verifies freshness with the server so files on disk are always current.
7
+ 2. **Confirm.** If several plausibly match, show the top 2–3 (name + description + author) and ask the user which one. If it prints "no matching skills", say so; don't invent a skill.
8
+ 3. **Check requirements.** If the output has a `## Requirements` section, make sure each listed tool is available (follow its source link to install/enable it, or tell the user) before you start.
9
+ 4. **Run it.** Run `glen skill use <slug>` via Bash. The output is markdown **instructions to execute now**. Follow them as if they were a skill. If the skill bundles files, they're materialized locally first and the output references them by **absolute path** (e.g. a script under `~/.glen/skills/<slug>/scripts/`). Run scripts exactly as written, don't rewrite the paths.
10
+ 5. **Follow referenced skills on demand.** The instructions may contain runnable `glen skill use <slug>` commands for related skills. Run one via Bash only when its step applies; they're pulled on demand, not all upfront. Skills mentioned via `glen:` links are prefetched: their files are already materialized on disk by the time you pull them, and every `glen skill use` verifies freshness with the server so files on disk are always current.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tryglen/cli",
3
- "version": "0.43.1",
4
- "description": "Glen CLI — memory for coding agents",
3
+ "version": "0.43.3",
4
+ "description": "Glen CLI: memory for coding agents",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "glen": "./dist/bin.js"
@@ -40,5 +40,5 @@
40
40
  "node": ">=20"
41
41
  },
42
42
  "license": "MIT",
43
- "gitHead": "e3d9f1691fa06a287b2ba426ff383e35dfcbcca2"
43
+ "gitHead": "bccf6c51435c1f48e3b9cf63a67eeb76c2cb9da6"
44
44
  }