cyberfleet 0.6.0 → 0.7.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberfleet",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Harness-agnostic, MCP-free inter-agent sessions and messaging over the filesystem",
5
5
  "keywords": [
6
6
  "agent",
@@ -38,7 +38,7 @@
38
38
  "devDependencies": {
39
39
  "@types/node": "^24.10.1",
40
40
  "commander": "^15.0.0",
41
- "cyberlegion": "^1.0.0",
41
+ "cyberlegion": "^1.7.0",
42
42
  "tsdown": "^0.23.0",
43
43
  "tsx": "^4.22.3",
44
44
  "typescript": "^7.0.0",
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "cyberfleet",
4
- "version": "0.6.0",
4
+ "version": "0.7.0",
5
5
  "description": "Fleet & crew personas over cyberlegion — Pod (ship's bridge), Operator (command center), Crimp (crew recruitment), and Mechanic (automaton building).",
6
6
  "author": {
7
7
  "name": "unional"
@@ -0,0 +1,32 @@
1
+ # close-sessions
2
+
3
+ A mechanical sweep that closes every agent session whose work has landed, and keeps every session
4
+ that might still have work. It has no persona and no judgment step, so it runs on a low-tier model.
5
+
6
+ ## When to use
7
+
8
+ - The Council asks to close finished agent sessions, panes, or pods, clean up idle sessions, or tidy the fleet.
9
+
10
+ Not for marking dead records only: that is `cyberlegion unit prune`, which this skill runs first. Not
11
+ for retiring a pod's record: that belongs to the pod's Captain (`cyberfleet pod retire`).
12
+
13
+ ## What it does
14
+
15
+ - Reads every unit with `cyberlegion unit who --all --format json`.
16
+ - Classifies each unit by its worktree and its branch's pull requests. A unit is closable only when
17
+ every pull request from its branch is merged or closed and its `HEAD` is contained in a pull
18
+ request's head commit. A unit whose worktree was deleted is closed only once its session has exited.
19
+ - Lists a landed unit with leftover uncommitted files separately, with the files, and closes it
20
+ (discarding them) only when the Council names it.
21
+ - Reads each close candidate's Claude Code transcript. A unit active in the last hour is kept. A unit
22
+ the Council typed into is listed with its last exchange and closed only when the Council names it,
23
+ so a conversation still in progress is never cut off.
24
+ - Keeps this session, standing owners, units with no worktree, and every session in a main
25
+ checkout (Captain, Coordinator, Operator, the Council's desk).
26
+ - Shows the Council the close, ask, and keep groups, and asks about the close and ask groups
27
+ separately before closing anything.
28
+ - Closes each confirmed unit with `cyberlegion unit close <id>`, adding `--force` only for a confirmed
29
+ unit with leftover files.
30
+
31
+ This is the interim home for the sweep. The planned design moves the close into the Coordinator, at the
32
+ moment a unit's last pull request lands, and leaves this sweep for the leftovers.
@@ -0,0 +1,166 @@
1
+ ---
2
+ name: close-sessions
3
+ description: "Use this skill when the Council asks to close finished agent sessions, panes, or pods, clean up idle sessions, or tidy the fleet — it closes each unit whose worktree branch has landed and keeps everything else. Not for sweeping dead records only (`cyberlegion unit prune`), and not for retiring a Captain's pod record."
4
+ model: haiku
5
+ ---
6
+
7
+ # Close sessions
8
+
9
+ Close every agent session whose work has landed, and keep every session that might still have work.
10
+ This is a mechanical sweep: each step below is a command and a rule, with no judgment call in it.
11
+
12
+ A unit is closable only when **all** of its work is visible on the host as finished: every pull
13
+ request from its branch is merged or closed, and none of its commits are missing from those pull
14
+ requests. A unit whose work landed but whose worktree still has uncommitted files is shown to the
15
+ Council with those files, and closed only if the Council says so. So is a unit the Council was talking
16
+ with, since that conversation may not be finished. When a check cannot be run or reads
17
+ unclear, keep the unit. Closing destroys the session, its inbox,
18
+ and its worktree, and cannot be undone. Keeping a finished unit only costs a pane.
19
+
20
+ ## 1. Resolve `cyberlegion`
21
+
22
+ Take the first rung that resolves and whose `cyberlegion --version` is `1.6.0` or later:
23
+
24
+ 1. `cyberlegion` on `PATH`.
25
+ 2. The installed cyberlegion plugin: read `~/.claude/plugins/installed_plugins.json`, take the
26
+ `installPath` of its `cyberlegion@<marketplace>` entry, and run `node <installPath>/bin/cyberlegion.mjs`.
27
+ 3. `npx -y cyberlegion@1.6.0`.
28
+
29
+ When no rung resolves, stop and tell the Council to install the `cyberlegion` plugin.
30
+
31
+ ## 2. Read the fleet
32
+
33
+ 1. `cyberlegion unit prune` marks units whose pane is gone as exited.
34
+ 2. `cyberlegion unit whoami` gives this session's own id.
35
+ 3. `cyberlegion unit who --all --format json` lists every unit. Each record has `id`, `handle`,
36
+ `harness`, `status`, `pane`, `cwd`, `conversation`, and `worktree` (`root` and `branch`).
37
+
38
+ ## 3. Classify each unit
39
+
40
+ Apply these rules in order to each unit. The first rule that matches decides it.
41
+
42
+ | # | Check | Result |
43
+ | - | ----- | ------ |
44
+ | 1 | `id` is this session's own id | keep: this session |
45
+ | 2 | It is a standing owner (no `pane`, and no `harness` field or `harness` is `-`) | keep: standing owner |
46
+ | 3 | It has no `worktree` | keep: no worktree |
47
+ | 4 | `worktree.root` does not exist on disk, and `status` is not `exited` | keep: worktree gone, session live |
48
+ | 5 | `worktree.root` does not exist on disk, and `status` is `exited` | close: worktree gone, session ended |
49
+ | 6 | Either `git -C <root> rev-parse --git-dir` or `git -C <root> rev-parse --git-common-dir` fails | keep: cannot read worktree |
50
+ | 7 | Those two commands print the same path | keep: primary checkout |
51
+ | 8 | `gh pr list --head <branch> --state all --json number,state,headRefOid` fails, run inside `<root>` | keep: cannot read pull requests |
52
+ | 9 | That list is empty | keep: no pull request yet |
53
+ | 10 | Any pull request in it has state `OPEN` | keep: pull request open |
54
+ | 11 | `git -C <root> merge-base --is-ancestor HEAD <headRefOid>` exits non-zero for every pull request in the list | keep: commits after the last pull request |
55
+ | 12 | `git -C <root> status --porcelain --untracked-files=all` prints any line other than `?? .agents/cyberlegion/config.json` | ask: work landed, leftover files |
56
+ | 13 | Anything else (every pull request is `MERGED` or `CLOSED`, `HEAD` is inside one of them, and the worktree is clean) | close: pull requests merged or closed |
57
+
58
+ Rules 4 and 5 handle a worktree that was deleted from disk. Nothing is left on disk to check, so
59
+ the session's own state decides: a live session may still be in use, and an exited one has nothing
60
+ left to lose.
61
+
62
+ Rule 7 keeps every session in a project's main checkout: a Captain, a Coordinator, the Operator, or
63
+ the Council's own desk. Those are standing seats, not spawned units, so this skill never closes one.
64
+
65
+ Rule 12 catches a unit whose work landed but left files behind: build output, scratch files, an edit it
66
+ never committed. Those are often safe to drop, but only the Council can say, so the unit is listed
67
+ with its files and closed only on the Council's word. The one line it skips is the marker cyberlegion
68
+ stamps into every worktree it spawns; `cyberlegion unit close` sets that file aside too, so it never
69
+ counts as leftover work.
70
+
71
+ Rule 11 is the unpushed-work check. It compares the local `HEAD` with each pull request's head commit
72
+ rather than with the remote branch, because the host usually deletes a branch once its pull request
73
+ merges. One pull request containing `HEAD` is enough. A head commit missing locally makes that
74
+ command exit non-zero; it counts like any other non-zero exit.
75
+
76
+ Do not retry a failed command. A failure keeps the unit, and the next sweep checks it again.
77
+
78
+ A held merge always keeps its unit, because a held pull request is still open (rule 10).
79
+
80
+ ## 4. Check the conversation
81
+
82
+ A unit's pull requests can land while the Council is still talking with it: a question the unit asked
83
+ is unanswered, or a decision lives only in its conversation. Closing ends that conversation. Run these
84
+ checks on every unit that step 3 put in close or ask. The first rule that matches decides it.
85
+
86
+ | # | Check | Result |
87
+ | - | ----- | ------ |
88
+ | C1 | `harness` is not `claude` | ask: conversation not checked |
89
+ | C2 | No transcript is found (below), and `status` is `exited` | no change |
90
+ | C3 | No transcript is found, and `status` is not `exited` | ask: conversation not found |
91
+ | C4 | The transcript was modified in the last 60 minutes | keep: conversation active |
92
+ | C5 | The Council-turns command (below) prints anything | ask: the Council talked to it |
93
+ | C6 | Anything else | no change |
94
+
95
+ **Find the transcript.** It is `~/.claude/projects/*/<conversation>.jsonl`, where `<conversation>` is
96
+ the unit's `conversation` field. When the unit has no `conversation`, or that matches no file, no
97
+ transcript is found. Do not substitute another file from the same folder: a worktree is reused by
98
+ many units, so the newest transcript there often belongs to a different one.
99
+
100
+ `stopped` is not `exited`. A stopped unit was kept on purpose so it can be restarted.
101
+
102
+ **Council turns** are the turns a person typed into the session, apart from the spawn brief and the
103
+ mail doorbell. A slash command the Council ran counts. Print them with:
104
+
105
+ ```sh
106
+ jq -rR 'fromjson? | select(.type=="user" and .origin.kind=="human" and (.isMeta|not))
107
+ | .message.content
108
+ | if type=="string" then . else ([.[]? | select(.type=="text") | .text] | join(" ")) end
109
+ | select(length>0)
110
+ | select(startswith("Read your brief at")|not)
111
+ | select(startswith("You have unread mail")|not)
112
+ | .[0:200]' <transcript>
113
+ ```
114
+
115
+ Print the unit's last reply with:
116
+
117
+ ```sh
118
+ jq -rR 'fromjson? | select(.type=="assistant")
119
+ | [.message.content[]? | select(.type=="text") | .text] | join(" ")
120
+ | select(length>0)' <transcript> | tail -n 3
121
+ ```
122
+
123
+ C2 lets an exited unit with no transcript keep its step-3 result: its session ended and no
124
+ conversation is left on disk, so closing it loses nothing more. C4 keeps a unit that is working or
125
+ being talked to right now. C5 sends every unit the Council spoke to back to the Council, because only
126
+ the Council knows whether that conversation finished.
127
+
128
+ ## 5. Confirm with the Council
129
+
130
+ Show the units in three groups: **close**, **ask**, then **keep**. Each row gives the unit id, the
131
+ handle, the branch, the result, and the pull request numbers. Handles are not unique, so the id is what
132
+ identifies a unit. Under each ask row, show what the Council needs to decide:
133
+
134
+ - for leftover files (rule 12): the lines rule 12 counted, the first 10, then how many more;
135
+ - for the Council talked to it (C5): its last 3 Council turns and the last 3 lines of its last reply.
136
+
137
+ A unit can have both. Then ask two questions, in this order:
138
+
139
+ 1. "Close these N units?" for the close group.
140
+ 2. "These M units need your look before closing: their leftover files or their last exchange with
141
+ you are listed above. Closing one ends its conversation and deletes its worktree, with any
142
+ leftover files. Which should I close?"
143
+
144
+ The Council may drop units from either list. A yes to the first question never covers the ask group.
145
+ Close only the units the Council's answer names or covers. If an answer names a handle that more than
146
+ one candidate shares, ask which id it means. If an answer is not a yes, close nothing from that group.
147
+
148
+ ## 6. Close
149
+
150
+ For each confirmed unit, run `cyberlegion unit close <id>`. Add `--force` only for a unit that rule 12
151
+ put in ask, which discards its leftover files.
152
+
153
+ - Pass `--force` only for a rule-12 unit the Council confirmed in answer to the second question.
154
+ Never pass `--keep-worktree`.
155
+ - If a close refuses (for example, a close-group worktree that became dirty since step 3), report the
156
+ refusal and move on. Do not retry it, add `--force`, or reach around it.
157
+ - Never run `cyberfleet pod retire`. A pod's record belongs to its Captain, who retires it.
158
+ - Never nudge, mail, or read the screen of a unit to decide whether it is finished.
159
+
160
+ ## 7. Report
161
+
162
+ Lead with the count closed and the count kept (an ask-group unit the Council did not confirm counts as
163
+ kept). List the closed handles, each with its transcript path when step 4 found one: closing does not
164
+ delete the transcript, so the conversation can still be read. Then list the kept units
165
+ grouped by result, so the Council can see which ones are waiting on a pull request and which ones are
166
+ waiting on them.
@@ -50,7 +50,7 @@ and never re-implements the fleet registry — it only invokes them.
50
50
  Every `cyberlegion …` command in this skill runs whichever CLI resolves below, resolved afresh in each
51
51
  session and again after any plugin reload. Never hardcode a versioned
52
52
  `~/.claude/plugins/cache/…/<version>/` path: a reload installs a new version beside the old one, and a
53
- remembered path keeps running the old CLI. The pin is `1.1.0`. Take the first rung that
53
+ remembered path keeps running the old CLI. The pin is `1.7.0`. Take the first rung that
54
54
  resolves and whose `cyberlegion --version` is at or above it; skip a rung that reports an older
55
55
  version:
56
56
 
@@ -58,11 +58,11 @@ version:
58
58
  2. The installed cyberlegion plugin: read `~/.claude/plugins/installed_plugins.json` now, take the
59
59
  `installPath` of its `cyberlegion@<marketplace>` entry, and run `node
60
60
  <installPath>/bin/cyberlegion.mjs`.
61
- 3. `npx -y cyberlegion@1.1.0`.
61
+ 3. `npx -y cyberlegion@1.7.0`.
62
62
 
63
63
  When no rung resolves, stop and report it to the Council with the
64
64
  install hint: install the `cyberlegion` plugin beside this one, or `npm install -g
65
- cyberlegion@1.1.0`.
65
+ cyberlegion@1.7.0`.
66
66
 
67
67
  ## Output
68
68
 
@@ -0,0 +1,144 @@
1
+ ---
2
+ name: jump
3
+ description: "Use this skill when the Council runs /jump, or asks to go to, switch to, or show the pane working on a repo, a branch, a pod, an issue or pull request (`#123`, `color-map#123`), or a task described in words — and to go back to the pane the last jump came from (`/jump back`). Not for opening a new pane or spawning a pod, and not for messaging a unit."
4
+ argument-hint: "[repo|branch|pod|task|back|<prose>]"
5
+ ---
6
+
7
+ # Jump
8
+
9
+ Move the attached view to the one pane working on what the argument names, or back along the last
10
+ jump. Every jump goes through the `cyberlegion` CLI, so cyber-mux records where the view came from
11
+ and `back` can return there.
12
+
13
+ The one rule above all others: **more than one match lists the candidates and stops.** Never pick
14
+ one, not even the newest or the most likely. A jump to the wrong pane interrupts the Council's
15
+ attention in the wrong place, and the Council can always narrow the argument.
16
+
17
+ ## Resolving `cyberlegion`
18
+
19
+ Every `cyberlegion …` command below runs whichever CLI resolves here, resolved afresh in each
20
+ session and again after any plugin reload. Never hardcode a versioned
21
+ `~/.claude/plugins/cache/…/<version>/` path: a reload installs a new version beside the old one, and a
22
+ remembered path keeps running the old CLI. The pin is `1.7.0`, the first release with
23
+ `unit focus --repo` and `--branch`. Take the first rung that resolves and whose
24
+ `cyberlegion --version` is at or above it; skip a rung that reports an older version:
25
+
26
+ 1. `cyberlegion` on `PATH`.
27
+ 2. The installed cyberlegion plugin: read `~/.claude/plugins/installed_plugins.json` now, take the
28
+ `installPath` of its `cyberlegion@<marketplace>` entry, and run `node
29
+ <installPath>/bin/cyberlegion.mjs`.
30
+ 3. `npx -y cyberlegion@1.7.0`.
31
+
32
+ When no rung resolves, stop and report it to the Council with the install hint: install the
33
+ `cyberlegion` plugin beside this one, or `npm install -g cyberlegion@1.7.0`.
34
+
35
+ ## Resolving `cyber-mux`
36
+
37
+ Only `back` needs `cyber-mux` directly; every other form reaches it through `cyberlegion`. Resolve it
38
+ the same way, afresh each time. The pin is `0.11.0`, the first release with `focus --back`. Take the
39
+ first rung that resolves and whose `cyber-mux --version` is at or above it:
40
+
41
+ 1. `cyber-mux` on `PATH`.
42
+ 2. The installed cyber-mux plugin: read `~/.claude/plugins/installed_plugins.json` now, take the
43
+ `installPath` of its `cyber-mux@<marketplace>` entry, and run `node <installPath>/bin/cyber-mux.mjs`.
44
+ 3. `npx -y cyber-mux@0.11.0`.
45
+
46
+ When no rung resolves, stop and report it with the install hint: install the `cyber-mux` plugin, or
47
+ `npm install -g cyber-mux@0.11.0`.
48
+
49
+ ## 1. Read the argument
50
+
51
+ Claude Code appends it as `ARGUMENTS: <value>`; other runtimes pass the text after the skill name.
52
+ With no argument, ask the Council where to jump and stop.
53
+
54
+ The argument may start with a form word that forces the form: `repo <name>`, `branch <name>`,
55
+ `pod <handle>`, or `task <ref>`. Use one when a bare argument was ambiguous across forms. Without
56
+ one, decide the form in this order:
57
+
58
+ | # | Argument | Form |
59
+ | - | -------- | ---- |
60
+ | 1 | exactly `back` | Back |
61
+ | 2 | `#123`, `123`, or `<repo>#123` | Task |
62
+ | 3 | one word that exactly equals a live unit's id, handle, branch, or repo name | Repo, branch, or pod |
63
+ | 4 | anything else | Prose |
64
+
65
+ ## 2. Read the fleet
66
+
67
+ Every form except Back starts from the same list:
68
+
69
+ - `cyberlegion unit who --format json` lists the live units. Each record has `id`, `handle`,
70
+ `status`, `pane`, `cwd`, `brief` (a path to the unit's brief file, when it was spawned with one),
71
+ and `worktree` (`root`, `branch`, and `primaryRoot`).
72
+ - A unit's **repo name** is the folder name of `worktree.primaryRoot`, or of `cwd` when it has no
73
+ `primaryRoot`. This is the rule `unit focus --repo` uses, so the skill and the CLI agree.
74
+ - `cyberlegion unit whoami` gives this session's own id, when it has one. Leave this session out of
75
+ every candidate list the skill builds itself: a jump to the pane you are in does nothing.
76
+
77
+ ## 3. Jump
78
+
79
+ ### Back
80
+
81
+ Run `cyber-mux focus --back` from this session's shell. It follows cyber-mux's record of the pane the
82
+ last jump into this pane came from. Report its result. If it fails (for example, `no jump into <pane>`),
83
+ quote the error and its next-step hint verbatim and stop; never jump somewhere else instead.
84
+
85
+ `/jump back` waits for this session's turn, so in a busy agent's pane it is slow. The tmux key that
86
+ cyber-mux's `setup-tmux` binds to `focus --back` is the fast path; mention it when the Council uses
87
+ `back` often.
88
+
89
+ ### Repo, branch, or pod
90
+
91
+ Collect the live units the word matches exactly, and note which field each matched:
92
+
93
+ - repo name → `cyberlegion unit focus --repo <name>`
94
+ - branch → `cyberlegion unit focus --branch <name>`
95
+ - id or handle → the pod form: `cyberlegion unit focus <id>`, using the matched unit's id. Handles
96
+ are not unique, so never pass the handle itself.
97
+
98
+ If every match is in one field, run that field's command. `unit focus --repo` and `--branch` fail on
99
+ their own when more than one unit matches, listing each candidate. If the word matches in more than
100
+ one field, or names more than one unit by handle, list the candidates and stop.
101
+
102
+ ### Task
103
+
104
+ A task is an issue or pull request ref. GitHub numbers issues and pull requests in one sequence, so a
105
+ ref names one of them.
106
+
107
+ 1. **Find the repo.**
108
+ - `#123` or `123`: the caller's own repo. Its name is the folder name of the primary checkout
109
+ (`dirname "$(git rev-parse --path-format=absolute --git-common-dir)"`), and its `<owner>/<repo>`
110
+ comes from `git remote get-url origin`.
111
+ - `color-map#123`: the live units whose repo name is `color-map`. Read `<owner>/<repo>` from
112
+ `git -C <primaryRoot or cwd> remote get-url origin` of those checkouts. No unit with that repo
113
+ name: fail naming it. Checkouts whose `origin` remotes disagree: list them and stop.
114
+ The org is needed only for the `gh` lookup.
115
+ 2. **Read what the number is.** `gh api repos/<owner>/<repo>/issues/<n> --jq '.pull_request != null'`
116
+ prints `true` for a pull request and `false` for an issue. If it fails, quote the error and stop.
117
+ 3. **Find the branches.**
118
+ - A pull request: `gh pr view <n> -R <owner>/<repo> --json headRefName --jq .headRefName`.
119
+ - An issue: `gh issue view <n> -R <owner>/<repo> --json closedByPullRequestsReferences` lists the
120
+ linked pull requests, each with its `number` and `repository`. Read each one's `headRefName` as
121
+ above, in that pull request's own repository.
122
+ 4. **Focus the branch.** Keep the branches a live unit is on. Exactly one: run
123
+ `cyberlegion unit focus --repo <name> --branch <branch>`, where `<name>` is that pull request's
124
+ repository name. More than one: list them and stop.
125
+ 5. **Fall back.** When no branch has a live unit, look for a live unit in that repo whose handle or
126
+ brief names the number: a handle that ends in `-123`, or a brief file that mentions `#123`,
127
+ `<repo>#123`, or `/issues/123` or `/pull/123` on that repo. Exactly one: run
128
+ `cyberlegion unit focus <id>`. More than one: list them and stop. None: fail naming the ref and
129
+ the branches tried.
130
+
131
+ ### Prose
132
+
133
+ Match the words against each live unit's handle, branch, repo name, and brief (read the brief file
134
+ when the record has one). A match is a unit the words plainly describe, not one they could be
135
+ stretched to fit. Exactly one: run `cyberlegion unit focus <id>`. More than one: list them and stop.
136
+ None: say no live unit matches, and list the units so the Council can name one.
137
+
138
+ ## 4. Report
139
+
140
+ - A jump: one line naming the unit's handle and id and the pane, then that `/jump back` returns.
141
+ - Candidates: one row per unit with its id, handle, branch, and repo name, then a line saying the
142
+ Council can narrow the argument (a form word, a repo, or an id). Do not jump.
143
+ - A failure: quote the CLI's error verbatim with its exit code. Do not retry with other flags, prune,
144
+ or reach the pane any other way.
@@ -150,7 +150,7 @@ the Council's words with `unit nudge --message`, never reaches for an MCP messag
150
150
  Every `cyberlegion …` command in this skill runs whichever CLI resolves below, resolved afresh in each
151
151
  session and again after any plugin reload. Never hardcode a versioned
152
152
  `~/.claude/plugins/cache/…/<version>/` path: a reload installs a new version beside the old one, and a
153
- remembered path keeps running the old CLI. The pin is `1.1.0`. Take the first rung that
153
+ remembered path keeps running the old CLI. The pin is `1.7.0`. Take the first rung that
154
154
  resolves and whose `cyberlegion --version` is at or above it; skip a rung that reports an older
155
155
  version:
156
156
 
@@ -158,11 +158,11 @@ version:
158
158
  2. The installed cyberlegion plugin: read `~/.claude/plugins/installed_plugins.json` now, take the
159
159
  `installPath` of its `cyberlegion@<marketplace>` entry, and run `node
160
160
  <installPath>/bin/cyberlegion.mjs`.
161
- 3. `npx -y cyberlegion@1.1.0`.
161
+ 3. `npx -y cyberlegion@1.7.0`.
162
162
 
163
163
  When no rung resolves, stop and report it to the Council with the
164
164
  install hint: install the `cyberlegion` plugin beside this one, or `npm install -g
165
- cyberlegion@1.1.0`.
165
+ cyberlegion@1.7.0`.
166
166
 
167
167
  ## Headless — the lifecycle loop
168
168
 
@@ -153,7 +153,7 @@ leash state itself.
153
153
  Every `cyberlegion …` command in this skill runs whichever CLI resolves below, resolved afresh in each
154
154
  session and again after any plugin reload. Never hardcode a versioned
155
155
  `~/.claude/plugins/cache/…/<version>/` path: a reload installs a new version beside the old one, and a
156
- remembered path keeps running the old CLI. The pin is `1.1.0`. Take the first rung that
156
+ remembered path keeps running the old CLI. The pin is `1.7.0`. Take the first rung that
157
157
  resolves and whose `cyberlegion --version` is at or above it; skip a rung that reports an older
158
158
  version:
159
159
 
@@ -161,11 +161,11 @@ version:
161
161
  2. The installed cyberlegion plugin: read `~/.claude/plugins/installed_plugins.json` now, take the
162
162
  `installPath` of its `cyberlegion@<marketplace>` entry, and run `node
163
163
  <installPath>/bin/cyberlegion.mjs`.
164
- 3. `npx -y cyberlegion@1.1.0`.
164
+ 3. `npx -y cyberlegion@1.7.0`.
165
165
 
166
166
  When no rung resolves, stop and report it to the Council with the
167
167
  install hint: install the `cyberlegion` plugin beside this one, or `npm install -g
168
- cyberlegion@1.1.0`.
168
+ cyberlegion@1.7.0`.
169
169
 
170
170
  ## Output
171
171