@divergeai/cli 0.1.24 → 0.1.25

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 (3) hide show
  1. package/README.md +31 -15
  2. package/dist/diverge.mjs +1497 -908
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -140,27 +140,43 @@ claude mcp add --scope user divergent -- diverge tools bridge --tools search_onl
140
140
  ## Skills
141
141
 
142
142
  A skill is a procedure over the tools it names, in the Agent Skills format
143
- every harness reads (`<name>/SKILL.md`). The organization authors its skills
144
- on the platform; you get the ones whose every named tool you can run, plus
145
- the CLI's own `diverge` skill, which tells an agent how to reach the platform's
146
- tools from a shell.
143
+ every harness reads (`<folder>/SKILL.md`). Each organization authors its
144
+ skills on the platform; the login gets, in every organization it can act
145
+ in, the ones whose every named tool the person can run, plus the CLI's own
146
+ `diverge` skill, which tells an agent how to reach the platform's tools from
147
+ a shell.
147
148
 
148
149
  ```bash
149
- diverge skills list # what the platform serves you
150
+ diverge skills list # what the platform serves you, per organization
150
151
  diverge skills install # into ~/.claude/skills, ~/.codex/skills and $DSH_HOME/skills
152
+ diverge skills refresh # the same, best effort and quiet: what sign-in and a session start run
151
153
  diverge skills status # what each folder holds against the platform
152
154
  ```
153
155
 
154
- Each SKILL.md is rendered from the skill's record on the platform on every
155
- install, so what lands in the folder is the skill as it stands now.
156
-
157
- `agents setup claude|codex|dsh` and `agents run dsh` install them as well, so
158
- a harness the CLI set up has the skills from its first session. A refresh
159
- replaces the CLI's own folders, retires the ones the organization retired, and
160
- never touches a skill you authored beside them. The skills are the tool
161
- surface: an agent reaches every platform tool from its shell with `diverge
162
- tools`, which costs nothing until a tool is called, and the `diverge` skill
163
- shows it how, arguments piped through stdin and batches included.
156
+ The set is derived from the login, never chosen on the machine: who is
157
+ signed in, where they may act, and what they can run there. A skill's
158
+ identity is its organization and its name, so every organization's skills
159
+ sit side by side in one folder, each under the organization's prefix — its
160
+ short code, lowercased, or a slug of its name: `dvx-consultar-inventario`,
161
+ `red-team-triage-cloud-run`. Each SKILL.md is rendered from the skill's
162
+ record on every install, named after its folder, and opens with the
163
+ organization its tools run in, so an agent passes `--organization-id` on
164
+ every call instead of depending on the machine's default organization.
165
+
166
+ Nobody runs the install by hand after the first time: `diverge login`
167
+ installs, and a session start refreshes — `agents setup claude` writes a
168
+ SessionStart hook into Claude Code's user settings, a Divergent checkout
169
+ refreshes from its worktree setup for every harness, and `agents run dsh`
170
+ refreshes before dsh starts. A refresh is per organization: it
171
+ replaces that organization's folders, retires the ones it stopped serving,
172
+ and never touches another organization's or a skill you authored beside
173
+ them. A whole-login refresh also retires an organization the login no longer
174
+ lists; `--organization-id` refreshes one and leaves the rest. A session on a
175
+ token file (`DIVERGENT_TOKEN_FILE`) holds that token's one organization. The
176
+ skills are the tool surface: an agent reaches every platform tool from its
177
+ shell with `diverge tools`, which costs nothing until a tool is called, and
178
+ the `diverge` skill shows it how, arguments piped through stdin and batches
179
+ included.
164
180
 
165
181
  dsh also gets the browser. The overlay mounts Chrome DevTools MCP, attached
166
182
  to a Chrome the person starts in debug mode (`--remote-debugging-port=9222`,