@nexus-cortex/server 4.108.15 → 4.108.17

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.
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: herdr
3
- description: "Control Herdr, a terminal multiplexer for coding agents. Use only when the user explicitly mentions Herdr or asks to use Herdr to inspect or control panes, tabs, workspaces, commands, or another agent. Do not use merely because a task could benefit from a background terminal, delegation, or parallel work. Requires HERDR_ENV=1."
3
+ description: "Control Herdr, the terminal workspace server nexus-cortex is running inside (HERDR_ENV=1): inspect neighboring panes/agents, run long-lived processes in sibling panes and read/wait on them, start helper agents. Use when the user mentions Herdr, when you need a long-running process visible to the operator, or when coordinating with other agents. Use only when the user explicitly mentions Herdr or asks to use Herdr to inspect or control panes, tabs, workspaces, commands, or another agent. Do not use merely because a task could benefit from a background terminal, delegation, or parallel work. Requires HERDR_ENV=1."
4
4
  requires-env: HERDR_ENV=1
5
5
  ---
6
6
 
7
- > Source: github.com/herdrdev/herdr `skills/herdr/SKILL.md` @ b99002ac (2026-09-07), vendored 2026-09-14 for nexus-cortex (R144 HB-HERDR-SKILL); byte-identical to `herdr --skill` of herdr 0.9.0 at vendoring.
7
+ > Source: github.com/herdrdev/herdr `skills/herdr/SKILL.md` @ b99002ac (2026-09-07), vendored 2026-09-14 for nexus-cortex (R144 HB-HERDR-SKILL); upstream body byte-identical below the harness-specific section to `herdr --skill` of herdr 0.9.0 at vendoring.
8
8
  > The installed binary is authoritative: `herdr --skill` prints the release-matched copy of this skill; prefer it whenever it differs from this file.
9
9
  > Gate: this skill is listed/loadable only when HERDR_ENV=1 (`requires-env` frontmatter, SkillTool), and its body stops unless `test "${HERDR_ENV:-}" = 1` — outside a herdr pane it is invisible and inert.
10
10
 
@@ -22,6 +22,33 @@ If the check fails, say that you are not running inside Herdr and stop. Do not i
22
22
 
23
23
  When the check passes, the `herdr` binary in `PATH` talks to the current session. Use it to inspect neighboring work, create terminal layout, start agents and commands, read output, and wait for state changes.
24
24
 
25
+ ## nexus-cortex inside Herdr (harness-specific — read this first)
26
+
27
+ You are nexus-cortex. When `HERDR_ENV=1`, the harness itself is already integrated with Herdr:
28
+
29
+ - **Your lifecycle is reported for you.** The orchestrator posts `working` (with `turn:<n>` / `tool:<name>` summary tokens), `idle`, and
30
+ `blocked` (while waiting for an approval) to Herdr through `pane report-agent` on your own pane (`$HERDR_PANE_ID`, source
31
+ `custom:nexus-cortex`). Do NOT call `herdr pane report-agent` or `report-metadata` yourself — you would fight the harness's reports.
32
+ - **How others address you.** You appear as agent kind `cortex` in your pane. Other agents and scripts target you by pane id (`$HERDR_PANE_ID`)
33
+ or by a live name; give yourself a stable name once if collaboration needs it: `herdr agent rename --current <name>` (the `--agent` label is
34
+ the kind, not a name). `herdr agent wait <you> --until idle` resolves on the harness's own reports.
35
+ - **Prefer Herdr panes for anything long-running or worth watching.** Your `Bash` tool with `run_in_background` + `BashOutput` is still the
36
+ cheapest way to run a build or a probe loop in the background, but a Herdr pane is better when the process must outlive your turn, when the
37
+ operator should be able to see and take it over (`herdr agent attach`), or when another agent must wait on it:
38
+ `herdr pane split --current --direction right --cwd "$PWD" --no-focus` → `herdr pane run <id> '<command>'` → `herdr pane wait-output <id>
39
+ --match '<text>' --timeout <ms>` or `--regex` → `herdr pane read <id> --lines 80`. This replaces a `sleep N; <probe>` loop — do not poll
40
+ with sleeps when `pane wait-output` can wait for the exact text.
41
+ - **Persistent shells.** `Bash` with `persistentSession: true` uses tmux inside your own pane; when tmux is missing it degrades to a detached
42
+ process (a `[WARN]` says so). Under Herdr, a sibling pane from `pane split` is the more capable persistent terminal: it survives your turn and
43
+ the operator's detach, and its output is readable by everyone through `pane read`.
44
+ - **Delegation.** `Task` sub-agents run in-process today. If a helper must be visible in the Herdr sidebar or driven by others, start it in a
45
+ sibling pane instead: `herdr agent start <name> --kind <kind> --pane <id> -- <args>`, then `herdr agent prompt <name> "<task>" --wait
46
+ --timeout <ms>` and `herdr agent read <name> --source recent-unwrapped --lines 120`. (A `--kind cortex` launcher is planned; until then
47
+ use `pane run` with the `cortex` CLI and address the pane by id.)
48
+ - **Read before retrying.** `agent_prompt_stalled` or a wait timeout does not mean nothing was sent; `agent read` / `pane read` first.
49
+ - **Scope.** Only touch panes you created or were told about; never `server stop`, never close the operator's panes, never `--takeover` an
50
+ agent you did not start. Everything you run in Herdr is visible to the operator — that is the point.
51
+
25
52
  ## Learn the current CLI
26
53
 
27
54
  The installed binary is the authority for command syntax. Start with:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cortex/server",
3
- "version": "4.108.15",
3
+ "version": "4.108.17",
4
4
  "description": "Thin Express server wrapper for Nexus Cortex core library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,8 +20,8 @@
20
20
  "prepack": "node ../../scripts/copy-pkg-cortex-scaffold.mjs"
21
21
  },
22
22
  "dependencies": {
23
- "@nexus-cortex/core": "4.108.15",
24
- "@nexus-cortex/executors": "4.108.15",
23
+ "@nexus-cortex/core": "4.108.17",
24
+ "@nexus-cortex/executors": "4.108.17",
25
25
  "chalk": "^5.3.0",
26
26
  "cors": "^2.8.5",
27
27
  "dotenv": "^16.4.5",