cyberlegion 0.1.0 → 0.3.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,14 +1,13 @@
1
1
  {
2
2
  "name": "cyberlegion",
3
- "version": "0.1.0",
4
- "description": "Harness-agnostic agent session spawning, messaging, and dispatch over the filesystem",
3
+ "version": "0.3.0",
4
+ "description": "Harness-agnostic agent session spawning and messaging over the filesystem",
5
5
  "keywords": [
6
6
  "agent",
7
7
  "claude-code",
8
8
  "cursor",
9
9
  "codex",
10
10
  "inter-agent",
11
- "dispatch",
12
11
  "tmux"
13
12
  ],
14
13
  "repository": {
@@ -34,7 +33,8 @@
34
33
  "dist"
35
34
  ],
36
35
  "dependencies": {
37
- "commander": "^14.0.3"
36
+ "commander": "^14.0.3",
37
+ "cyber-mux": "0.3.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "^24.10.1",
@@ -52,8 +52,10 @@
52
52
  },
53
53
  "scripts": {
54
54
  "build": "tsdown",
55
+ "check:metaphor-free": "tsx src/check-metaphor-free.ts",
56
+ "check:spec": "sdd-check-specs",
55
57
  "dev": "tsx src/cli.ts",
56
- "test": "pnpm build && vitest run src",
58
+ "test": "vitest run src",
57
59
  "test:watch": "vitest",
58
60
  "typecheck": "tsc --noEmit"
59
61
  }
package/readme.md CHANGED
@@ -3,9 +3,9 @@
3
3
  [![npm version](https://img.shields.io/npm/v/cyberlegion.svg)](https://www.npmjs.com/package/cyberlegion)
4
4
  [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5
5
 
6
- Harness-agnostic, MCP-free agent session spawning, messaging, and dispatch over the filesystem (Claude Code, Cursor, Codex).
6
+ Harness-agnostic, MCP-free agent session spawning and messaging over the filesystem (Claude Code, Cursor, Codex).
7
7
 
8
- The CLI is pure mechanism — dumb hands a routing layer composes. It never decides *how* to reach a peer (warm-peer session vs cold subagent vs run-inline); it just spawns, messages, and dispatches. State lives under a shared hub root (`$CYBERLEGION_ROOT`, else the global hub).
8
+ The CLI is pure mechanism — dumb hands a routing layer composes. It never decides *how* to reach a peer (warm-peer session vs cold subagent vs run-inline); it just spawns and messages, and the routing brain composes those primitives (spawn a peer + await its mail, or run a cold subagent and take its Task result). State lives under a shared hub root (`$CYBERLEGION_ROOT`, else the global hub).
9
9
 
10
10
  ## Usage
11
11
 
@@ -23,24 +23,19 @@ npx cyberlegion@0.1.0 <command>
23
23
 
24
24
  ## Commands
25
25
 
26
- ### identity — self-identify and discover peers
26
+ ### unit — self-identify, discover peers, and manage session lifecycle
27
27
 
28
28
  ```sh
29
- npx cyberlegion identity register --handle scout # register/refresh this session
30
- npx cyberlegion identity whoami # print your own identity
31
- npx cyberlegion identity who # list addressable peers
32
- npx cyberlegion identity prune # mark dead agents exited and sweep
33
- ```
34
-
35
- ### session — warm peer session lifecycle over a multiplexer
36
-
37
- ```sh
38
- npx cyberlegion session spawn --agent reviewer # launch a peer in its own git worktree (tmux/herdr)
39
- npx cyberlegion session list # list live peer sessions
40
- npx cyberlegion session focus <ref> # move input focus to a peer's session
41
- npx cyberlegion session nudge <ref> # ring a peer's session (doorbell)
42
- npx cyberlegion session read <ref> # scrape a peer's session screen
43
- npx cyberlegion session close <id> # tear down worktree + session, reap state
29
+ npx cyberlegion unit register --handle scout # register/refresh this session
30
+ npx cyberlegion unit register --standing --handle homa # mint a standing, session-independent owner inbox
31
+ npx cyberlegion unit whoami # print your own identity
32
+ npx cyberlegion unit who # list addressable peers / live peer sessions
33
+ npx cyberlegion unit prune # mark dead agents exited and sweep
34
+ npx cyberlegion unit spawn --agent reviewer # launch a peer in its own git worktree (tmux/herdr)
35
+ npx cyberlegion unit focus <ref> # move input focus to a peer's session
36
+ npx cyberlegion unit nudge <ref> # ring a peer's session (doorbell)
37
+ npx cyberlegion unit read <ref> # scrape a peer's session screen
38
+ npx cyberlegion unit close <id> # tear down worktree + session, reap state
44
39
  ```
45
40
 
46
41
  ### mail — durable inter-agent messaging
@@ -56,14 +51,6 @@ npx cyberlegion mail watch # stream new matching mail
56
51
  npx cyberlegion mail hook # emit the harness hook injection payload (JSON)
57
52
  ```
58
53
 
59
- ### dispatch — delegate work and await a result
60
-
61
- ```sh
62
- npx cyberlegion dispatch prep # allocate id + brief + result slot (spawns nothing)
63
- npx cyberlegion dispatch channel --agent worker --wait # prep + spawn + await the reply
64
- npx cyberlegion dispatch collect <id> # read + validate a subagent's result file
65
- ```
66
-
67
54
  ### agent — resolve reusable agent definitions
68
55
 
69
56
  Reads definitions under `.agents/agents/`.
@@ -75,12 +62,30 @@ npx cyberlegion agent resolve <name> # emit the full machine pay
75
62
  npx cyberlegion agent path <name> # print the resolved def file path
76
63
  ```
77
64
 
78
- ### admin — setup and diagnostics
65
+ ### mux — multiplexer diagnostics
66
+
67
+ ```sh
68
+ npx cyberlegion mux doctor # probe harness, multiplexer, hub root, self-id
69
+ npx cyberlegion mux mode # report the detected session-backend mode
70
+ ```
71
+
72
+ ### init — onboarding
73
+
74
+ ```sh
75
+ npx cyberlegion init # wire the mail-surfacing hook into a harness config
76
+ ```
77
+
78
+ ### attach — the human's read-pane
79
+
80
+ ```sh
81
+ npx cyberlegion attach # bind this pane as the hub's main (owner) pane
82
+ npx cyberlegion attach --show # print the bound main pane
83
+ npx cyberlegion attach --clear # unbind the main pane
84
+ ```
85
+
86
+ ### admin — hub-state maintenance
79
87
 
80
88
  ```sh
81
- npx cyberlegion admin install # wire the mail-surfacing hook into a harness config
82
- npx cyberlegion admin doctor # probe harness, multiplexer, hub root, self-id
83
- npx cyberlegion admin mode # report the detected session-backend mode
84
89
  npx cyberlegion admin migrate # merge one hub root state into another
85
90
  ```
86
91