@tryglen/pi 0.6.5 → 0.6.6
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 +8 -8
- package/package.json +2 -2
- package/skills/code-search/SKILL.md +4 -4
- package/skills/controls/SKILL.md +8 -8
- package/skills/create-artifact/SKILL.md +5 -5
- package/skills/create-skill/SKILL.md +12 -12
- package/skills/feedback/SKILL.md +7 -7
- package/skills/forget/SKILL.md +3 -3
- package/skills/import-transcripts/SKILL.md +1 -1
- package/skills/invite/SKILL.md +1 -1
- package/skills/search/SKILL.md +6 -6
- package/skills/setup/SKILL.md +9 -9
- package/skills/use-artifact/SKILL.md +1 -1
- package/skills/use-skill/SKILL.md +4 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @tryglen/pi
|
|
1
|
+
# @tryglen/pi: glen for pi
|
|
2
2
|
|
|
3
3
|
Shared team memory for coding agents. Glen automatically recalls relevant context at
|
|
4
4
|
the start of every turn and captures what you build, so your whole team's agents share
|
|
@@ -7,18 +7,18 @@ the same institutional knowledge.
|
|
|
7
7
|
## What it does
|
|
8
8
|
|
|
9
9
|
This is a [pi](https://pi.dev) package: it ships the glen extension (`src/index.ts`)
|
|
10
|
-
plus the glen skills. Pi has no declarative hooks file
|
|
10
|
+
plus the glen skills. Pi has no declarative hooks file; the extension subscribes to
|
|
11
11
|
pi's lifecycle events and runs one frozen `glen` CLI command per event (the same
|
|
12
12
|
thin-hook model as glen's other agent plugins):
|
|
13
13
|
|
|
14
|
-
- **`session_start`** → `glen session-start --agent pi
|
|
14
|
+
- **`session_start`** → `glen session-start --agent pi`: surfaces org/mode status
|
|
15
15
|
and queues the review-link instruction.
|
|
16
|
-
- **`before_agent_start`** → `glen ingest --agent pi
|
|
16
|
+
- **`before_agent_start`** → `glen ingest --agent pi`: sends the prompt (plus the
|
|
17
17
|
prior assistant turn and workspace context: repo, branch, agent name) to your glen
|
|
18
18
|
org, retrieves matching memories, and injects them as context for the model.
|
|
19
|
-
- **`agent_settled`** → `glen ingest --agent pi
|
|
19
|
+
- **`agent_settled`** → `glen ingest --agent pi`: captures the completed turn
|
|
20
20
|
(your prompt + the final assistant answer) into team memory.
|
|
21
|
-
- **`tool_result` (bash)** → `glen pr-link --agent pi
|
|
21
|
+
- **`tool_result` (bash)** → `glen pr-link --agent pi`: after a `git commit`, links
|
|
22
22
|
the commit to the session in glen; when a shell command surfaced a GitHub PR URL,
|
|
23
23
|
appends the matching Glen review link so the agent can share it.
|
|
24
24
|
|
|
@@ -81,7 +81,7 @@ On every turn, glen sends to your glen org:
|
|
|
81
81
|
- Workspace metadata: repo name, branch, commit hash, remote URL
|
|
82
82
|
- Agent name (`pi`) and session details
|
|
83
83
|
|
|
84
|
-
**Nothing is recorded while incognito is on.** Recall still works
|
|
84
|
+
**Nothing is recorded while incognito is on.** Recall still works: glen fetches
|
|
85
85
|
relevant memories but writes nothing to team memory. Admin analytics still count your
|
|
86
86
|
prompts as numbers only. Toggle with `glen incognito` / `glen on`. `glen off` injects
|
|
87
87
|
and records nothing.
|
|
@@ -107,7 +107,7 @@ glen status
|
|
|
107
107
|
glen doctor
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
**Broken setup?** Ask the agent to "set up glen"
|
|
110
|
+
**Broken setup?** Ask the agent to "set up glen"; the bundled setup skill runs
|
|
111
111
|
`glen doctor` and fixes whatever it reports.
|
|
112
112
|
|
|
113
113
|
**Extension not loading:** run `/reload` inside pi, or restart pi. Verify the package
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryglen/pi",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "Shared team memory for coding agents
|
|
3
|
+
"version": "0.6.6",
|
|
4
|
+
"description": "Shared team memory for coding agents: automatic recall and capture on every turn via the glen CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
7
7
|
"pi",
|
|
@@ -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
|
|
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
|
|
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
|
|
18
|
+
without recording; say so honestly. If it prints "No active organization",
|
|
19
19
|
tell the user to run `glen org switch`.
|
package/skills/controls/SKILL.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
18
|
-
- **Silent:** `glen silent
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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)
|
|
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
|
|
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
|
|
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
|
|
9
|
-
- **Check incognito before anything else:** run `glen status` via Bash. If it reports `incognito: ON`, a Glen skill is off the table
|
|
8
|
+
1. **Pick the destination FIRST: local file or Glen skill.** A skill is either a **local `SKILL.md`** on this machine (a Pi 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 Pi 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
|
|
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
|
|
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
|
|
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)
|
|
22
|
-
- Save it to `.pi/skills/<name>/SKILL.md` in this project
|
|
21
|
+
**Local skill** (and always the incognito path); nothing leaves the machine:
|
|
22
|
+
- Save it to `.pi/skills/<name>/SKILL.md` in this project, or `~/.pi/agent/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
|
|
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
|
|
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
|
|
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.
|
package/skills/feedback/SKILL.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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**
|
|
36
|
-
decided it was worth reporting
|
|
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
|
|
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:
|
package/skills/forget/SKILL.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: forget
|
|
3
|
-
description: Correct glen's memory
|
|
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
|
|
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
|
|
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
|
|
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
|
|
package/skills/invite/SKILL.md
CHANGED
|
@@ -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
|
|
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.
|
package/skills/search/SKILL.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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)
|
|
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`.
|
package/skills/setup/SKILL.md
CHANGED
|
@@ -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
|
|
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.
|
|
@@ -35,25 +35,25 @@ then `hint:` lines for things that may not apply. It still exits 0.
|
|
|
35
35
|
|
|
36
36
|
`glen doctor` also prints one `status: ingest agent=<agent>
|
|
37
37
|
state=<ok|failing|never|fresh-install|idle> lastSuccess=<iso|never>` line per
|
|
38
|
-
detected agent
|
|
38
|
+
detected agent. This tracks whether hooks are actually firing, separate from
|
|
39
39
|
whether the plugin is installed:
|
|
40
|
-
- `ok` / `failing
|
|
40
|
+
- `ok` / `failing`: reflects the last recorded hook run. For `failing`,
|
|
41
41
|
doctor prints an `error:` line with a `fix:` under it (check `glen status`, then
|
|
42
42
|
`glen login` if disconnected).
|
|
43
|
-
- `fresh-install
|
|
43
|
+
- `fresh-install`: installed under an hour ago with no ingest yet; not a
|
|
44
44
|
fault, just still warming up.
|
|
45
|
-
- `idle
|
|
46
|
-
no completed turn.
|
|
47
|
-
- `never
|
|
45
|
+
- `idle`: hooks fire here; nothing recorded yet (logged out, glen off, or
|
|
46
|
+
no completed turn).
|
|
47
|
+
- `never`: hooks have never fired on THIS machine. Doctor prints it as a `warning:` line with a `fix:`
|
|
48
48
|
under it: untrusted hooks (trust them in-agent and start a new
|
|
49
49
|
session), a PATH gap, a failed hook-trust query, or a machine-topology
|
|
50
50
|
mismatch.
|
|
51
51
|
- A topology mismatch usually means the agent process runs on a different
|
|
52
52
|
machine than the one you're looking at: Codex `--remote` / Desktop-SSH and
|
|
53
|
-
Claude Code over SSH/devcontainer both run the agent
|
|
53
|
+
Claude Code over SSH/devcontainer both run the agent (and its hooks) on
|
|
54
54
|
the REMOTE host, not locally. Install glen there and run `glen doctor` on
|
|
55
55
|
that machine, as the user the agent connects as. Cloud sessions (Codex
|
|
56
|
-
Cloud tasks, claude.ai/code) can't run user-level hooks at all
|
|
56
|
+
Cloud tasks, claude.ai/code) can't run user-level hooks at all; only
|
|
57
57
|
repo-committed hooks apply there.
|
|
58
58
|
|
|
59
59
|
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)
|
|
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
|
|
8
|
-
3. **Check requirements.** If the output has a `## Requirements` section, make sure each listed tool is available
|
|
9
|
-
4. **Run it.** Run `glen skill use <slug>` via Bash. The output is markdown **instructions to execute now
|
|
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
|
|
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.
|