@johngaynor/ocnus 2.0.1-next.78 → 2.0.1-next.86

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/herdr/README.md CHANGED
@@ -16,11 +16,12 @@ layouts (whole-window arrangements of mods).
16
16
  | `mods/card-list/` | The card list, at the top of the `vibe` layout's middle column, and in a column of its own beside the terminals on `showcase`: the cards of the space that is showing, in two views. Agents lists the cards running now, the ones that need you first; Linear lists every open card under its parent card, with Start for a card not approved yet. A click on a running card opens its agent on the right. See [The card list](#the-card-list). |
17
17
  | `mods/steps/` | The steps of the card whose tab is selected: what each did, how long it took, and how long it waited on you. With no card's tab selected, the space's cards and where each stands. |
18
18
  | `mods/step-counts/` | The Step counts section, right above Usage and about as small: the seven steps, each with a dot for every card of the space that is showing that stands on it, coloured by how the card's agent is doing, and how many there are. See [The Step counts section](#the-step-counts-section). |
19
+ | `mods/needs-you/` | Needs you, the right column of `vibe`: the questions that wait on you in the space that is showing, most urgent first, each answered with a click, with nothing typed in the agent's tab. See [Needs you](#needs-you). |
19
20
  | `mods/agent-settings/` | The settings button, a cog at the right end of the tab bar, and the popup it opens: the model and effort of each phase profile and dev profile, then the breakdown approval, archiving, the tests setting and billing, each of which a click changes. See [The settings button](#the-settings-button). |
20
21
  | `mods/names/` | Draws nothing but a note saying what it does, and that only where a layout asks for it, as `showcase` does. It gives the spaces and tabs the app takes in from herdr-core, for agents started while the app was closed, the names ocnus gave them. See [Writing the card up](#writing-the-card-up). |
21
22
  | `layouts/default.json` | Herdr's own layout with ocnus's panels: the Ocnus spaces panel, the `ocnus-spaces` mod, in place of Herdr's own list of spaces; the layout dropdown, the Cards and Steps panels, the Step counts section, the Usage section, the Memory mod and the CPU mod in the sidebar, with the Step counts right above Usage, Usage above Memory and CPU, and Memory right above CPU; and the settings button beside the tabs. Herdr's Agents section, its `agents` mod, is not on it. The tab bar is a row of Herdr's `tabs`, `agent-settings` and `names`, in a block 1px wide, since a mod runs only while a layout places it. |
22
- | `layouts/showcase.json` | For seeing each mod working before you choose what to put in a layout of your own: it places every mod ocnus ships, each in a block of its own that shows as soon as the layout opens, and each is the mod itself, on this machine's own data, as on `default`. It is `default` with three changes: the card list, which `default` does not have, is a column of its own left of the terminals, 540px wide; the Usage section, the Memory mod and the CPU mod leave the sidebar for a row along the bottom, under the terminals; and `names` sits at the end of that row, where it draws a note saying that it draws nothing, and what it does. `npm test` fails, naming the mod, when a mod in `mods/` is not on it, so a card that adds a mod adds it here too. |
23
- | `layouts/vibe.json` | Three columns side by side, each the window's full height, for steering every agent without reading code. The left one is the sidebar, 268px wide as `default`'s is: Herdr's brand, the layout dropdown, the Ocnus spaces panel and, at its bottom, the Step counts section, the Usage section, the Memory mod and the CPU mod, stacked in that order with nothing between them. The middle one is the card list, the `card-list` mod, which fills its place there (see [The card list](#the-card-list)), above the place for Brainstorm (LAB-240), and the right one is the place for Needs you (LAB-238), which turns into the opened agent (LAB-239). Those two places are still empty: each is a column with nothing in it, which its card swaps for the mod's block, so the layout names no mod that is not installed. It shows no files, diffs or split terminals: it has no Files panel, no Changes panel, no tab bar and no block for a tab's terminals, shown or hidden, so code is only in the pull requests. It has no settings button and no footer either: the settings button is on `default`, and Herdr's Settings still opens by its key. The `names` mod is beside the brand, in a block 1px wide. `layouts/vibe.svg`, beside it, is its picture in Herdr's Settings: `ocnus install` and `ocnus update` link it, and `ocnus status` lists it, as they do a layout. |
23
+ | `layouts/showcase.json` | For seeing each mod working before you choose what to put in a layout of your own: it places every mod ocnus ships, each in a block of its own that shows as soon as the layout opens, and each is the mod itself, on this machine's own data, as on `default`. It is `default` with four changes: the card list, which `default` does not have, is a column of its own left of the terminals, 540px wide; Needs you, which `default` does not have either, is a column of its own right of them, 368px wide; the Usage section, the Memory mod and the CPU mod leave the sidebar for a row along the bottom, under the terminals; and `names` sits at the end of that row, where it draws a note saying that it draws nothing, and what it does. `npm test` fails, naming the mod, when a mod in `mods/` is not on it, so a card that adds a mod adds it here too. |
24
+ | `layouts/vibe.json` | Three columns side by side, each the window's full height, for steering every agent without reading code. The left one is the sidebar, 268px wide as `default`'s is: Herdr's brand, the layout dropdown, the Ocnus spaces panel and, at its bottom, the Step counts section, the Usage section, the Memory mod and the CPU mod, stacked in that order with nothing between them. The middle one is the card list, the `card-list` mod, which fills its place there (see [The card list](#the-card-list)), above the place for Brainstorm (LAB-240), and the right one is Needs you, the `needs-you` mod (see [Needs you](#needs-you)), which turns into the opened agent (LAB-239). The place for Brainstorm is still empty: it is a column with nothing in it, which its card swaps for the mod's block, so the layout names no mod that is not installed. It shows no files, diffs or split terminals: it has no Files panel, no Changes panel, no tab bar and no block for a tab's terminals, shown or hidden, so code is only in the pull requests. It has no settings button and no footer either: the settings button is on `default`, and Herdr's Settings still opens by its key. The `names` mod is beside the brand, in a block 1px wide. `layouts/vibe.svg`, beside it, is its picture in Herdr's Settings: `ocnus install` and `ocnus update` link it, and `ocnus status` lists it, as they do a layout. |
24
25
  | `spaces/template/` | The starting `SPACE.md` for every new space. |
25
26
 
26
27
  The skills are in [../skills/](../skills/), outside this folder. They are
@@ -967,6 +968,7 @@ ocnus task answer <space> <card> <question> <answer>
967
968
  |---|---|
968
969
  | `id` | The question's id, a string: what `task answer` takes |
969
970
  | `card`, `kind`, `text` | The card, one of the four kinds, and what is asked. A permission prompt's text names the tool and what it would do, such as `Allow Bash to run: npm test` or `Allow Edit on the file: /repo/app.ts` |
971
+ | `step` | The step the question's agent is at. For an approval, a choice or a merge, the step of its hand-off. For a permission prompt, the step its card stands on, as the Step counts section places a card: the step that comes next when the card's latest hand-off is `done`, and that hand-off's own step otherwise, as after an answer. null for a card with no hand-off |
970
972
  | `options` | The options, a list of strings |
971
973
  | `at`, `seconds` | When it was asked, in UTC, and how many seconds ago |
972
974
  | `summary` | The summary the agent recorded with the question, or null |
@@ -1373,6 +1375,94 @@ ocnus task answer <space> <card> <question> <answer>
1373
1375
  tab opens, closes or is renamed, or one of its terminals reports another
1374
1376
  status. They also read it again every 6 seconds.
1375
1377
 
1378
+ ### Needs you
1379
+
1380
+ On the `vibe` layout, the right column is Needs you: the questions that
1381
+ wait on you in the space that is showing, as `task asks` lists them (see
1382
+ [Hand-offs](#hand-offs)), each answered with a click and with nothing typed
1383
+ in the agent's tab. An agent with no question waiting is not in it.
1384
+
1385
+ - **It lists what `task asks <space> --json` lists, most urgent first:**
1386
+ permission prompts, approvals and the agents' own lists of options, then
1387
+ merges, and within each of those two groups the question that has waited
1388
+ longest first. That is ocnus's order, oldest first, with the merges moved
1389
+ after the rest, which is the one thing the mod orders. Its heading says how
1390
+ many there are, as `Needs you · 3`.
1391
+ - **Each question shows** its card's ID and title, the step its agent is at
1392
+ (`step`), how long it has waited, as `<1m`, then in whole minutes, hours
1393
+ or days, such as `6m`, `2h` or `3d`, and its kind: Permission, Approve? or
1394
+ Asking in the theme's `blocked` colour, and Merge? in its `done` colour.
1395
+ Under them come the question's text and, when the agent recorded one with
1396
+ it, its summary. The titles come from `task ls <space> --json`, so a card
1397
+ `task ls` does not list, as when no Linear key is saved, shows its ID
1398
+ alone. A read of the titles that fails leaves the ones the space's last
1399
+ read gave.
1400
+ - **A permission prompt, an approval and a merge show their options as
1401
+ buttons in a row**, in the order ocnus gives them, the first standing
1402
+ out. Each answers with the option ocnus gave:
1403
+
1404
+ | Kind | Button | Answers with |
1405
+ |---|---|---|
1406
+ | `permission` | Yes | `allow` |
1407
+ | `permission` | No | `refuse` |
1408
+ | `permission` | Yes, and don't ask again, only where the prompt offers it | `allow from now on` |
1409
+ | `approval` | Approve, Change breakdown, Change plan, Change specification: each option with a capital | the option, such as `approve` |
1410
+ | `merge` | Merge | `merge`, which merges the card's pull requests on GitHub |
1411
+ | `merge` | Ask for changes | `a change you want made`, which goes to the agent |
1412
+ | `merge` | Open and a pull request's repo and number, such as `Open acme/api#7 ↗`, for each of the card's open pull requests (`pulls`) | nothing: it opens the pull request in your browser |
1413
+
1414
+ A merge's `stop here` has no button: give it in the agent's tab.
1415
+ - **An agent's own list of options is a stack of rows**, in the agent's
1416
+ order, each with its number and the option as the agent wrote it, on as
1417
+ many lines as it needs. The last row is Something else. A click on it
1418
+ answers nothing and runs no command: it sets Herdr's shared value
1419
+ `ocnus.open` to `{space, card}`, which the opened agent (LAB-239) reads to
1420
+ open that agent on its conversation, where you answer in your own words.
1421
+ Until the opened agent is installed, nothing reads it. When the agent's
1422
+ own last option is Something else, in any case, it shows once, as that
1423
+ row.
1424
+ - **A click on any other button or row answers its question,** with
1425
+ `ocnus task answer <space> <card> <question> <option>`. From the click,
1426
+ the question shows the choice beside a spinner in place of its buttons or
1427
+ rows, and takes no second answer. Once the command exits zero, which is
1428
+ once ocnus says the agent, the prompt's hook or GitHub took the answer,
1429
+ it shows `✓ Sent:` and the choice until ocnus no longer lists the
1430
+ question. Each question has its own state, so one being sent holds no
1431
+ other. The questions are read again as soon as an answer has ended.
1432
+ - **When ocnus refuses the answer or cannot deliver it,** the question shows
1433
+ what `task answer` said, with its buttons or rows back under it, and
1434
+ nothing reads as sent, so a question that still waits can be answered
1435
+ again. That is so for a question answered already in the tab, one whose
1436
+ agent is not running, a pull request GitHub will not merge as it stands,
1437
+ and each of the other refusals under [Hand-offs](#hand-offs), and for a
1438
+ command that cannot start or has not ended after 2 minutes.
1439
+ - **It keeps up on its own** while Herdr's window is visible. It looks every
1440
+ second, and reads the questions again every 4 seconds, at once when
1441
+ Herdr's tabs in the space open, close, are renamed or report another
1442
+ status, and once an answer has ended. So a question shows within 5
1443
+ seconds of ocnus listing it, and goes within 5 seconds of ocnus no longer
1444
+ listing it, however it was answered: by a click, in the agent's tab or by
1445
+ a merge on GitHub, which ocnus records within a minute. Showing another
1446
+ space reads that space's questions at once. The spaces and the cards'
1447
+ titles are read when another space shows and every minute, on their own,
1448
+ so a slow Linear never holds the questions up. Nothing is read while the
1449
+ window is hidden, and it redraws only when what it shows has changed.
1450
+ - **In place of the list, one line says why** there is none:
1451
+
1452
+ | It says | When |
1453
+ |---|---|
1454
+ | `Nothing needs you.` | No question waits on you in the space. |
1455
+ | `This space is not an ocnus space.` | The Herdr space that is showing is not one of ocnus's spaces. |
1456
+ | `This ocnus cannot list the questions. Run: ocnus update` | The `ocnus` it runs is from before `task asks`. |
1457
+ | What `task asks` or `space ls` said, such as that `sqlite3` is not installed | Either one failed, or could not run. |
1458
+
1459
+ - **It works nothing out itself.** The space comes from `space ls --json`,
1460
+ the questions from `task asks <space> --json`, the titles from
1461
+ `task ls <space> --json`, and what an answer does from `task answer`, so
1462
+ Needs you and the commands always agree. It runs the `ocnus` on your
1463
+ `PATH`, or the copy it is linked from when Herdr cannot start that, as the
1464
+ other panels do.
1465
+
1376
1466
  ### The Step counts section
1377
1467
 
1378
1468
  On the `default` layout, the Step counts section sits in the sidebar right
@@ -2400,7 +2490,7 @@ turn it on, and works on macOS only.
2400
2490
  ocnus host # whether recording is on, and what it has
2401
2491
  ocnus host on # turn recording on
2402
2492
  ocnus host off # turn it off, and delete every reading
2403
- ocnus host report [<period>] # the host's numbers summed up, what used the most, and where the steps' time went
2493
+ ocnus host report [<period>] # the host's numbers and the work summed up, and where the steps' time went
2404
2494
  ocnus host report --card <space> <card> --json # what the host recorded while each of a card's steps ran, as JSON for programs
2405
2495
  ocnus tests run <command> # run a test command, and record the test run
2406
2496
  ```
@@ -2764,21 +2854,30 @@ of it, summed up as what it is, and none is judged:
2764
2854
  has no Wi-Fi signal, or readings from before the network and the power and
2765
2855
  heat were recorded. It is never shown as 0.
2766
2856
 
2767
- Then come the steps, the phases and the test runs that used the most:
2768
-
2769
- - **The 10 steps and the 10 phases that used the most CPU time** in the
2770
- period, and **the 10 of each that held the most memory at once**. Each is
2771
- one card's own, such as LAB-150's build step or its write-up phase. A
2772
- step's CPU time is its shares' CPU, as a share of all cores, over the part
2773
- of each reading in the period, on that reading's cores, and a phase's is
2774
- its steps' together. Its memory is the most its shares held in one
2775
- reading. Beside each is how long it ran: the recorded time it was in.
2776
- - **The 10 test runs that used the most CPU time**, of those that started in
2777
- the period, and **the 10 that held the most memory at once**, each named by
2778
- its card, its repo and when it started, with how long it ran. A run the
2779
- recorder cut short says so, and is ranked by the CPU the recorder counted
2780
- of it, or by its memory alone when it counted none; one still going says
2781
- that in place of its time.
2857
+ Then comes the work, summed up by kind, never card by card. None of it is
2858
+ ranked, and no card is named:
2859
+
2860
+ - **Each step and each phase** in the period, under `Steps:` and
2861
+ `Phases:`, the steps in their order from `define` to `pr` and the phases
2862
+ `write-up` then `build`, each with how many cards were in it, how long
2863
+ their agents were open in all, on average and at the longest, the CPU time
2864
+ they used, and the most memory one card held at once. A card counts for
2865
+ its shares while its agent was open, for the part of each reading in the
2866
+ period, once a reading however many of its tabs were in the step, and a
2867
+ tab that holds its shell alone counts for nothing. Its CPU time is its
2868
+ shares' CPU, as a share of all cores, over that part, on that reading's
2869
+ cores, and its memory is the most its shares held in one reading. So a
2870
+ step's time in all is how long its agents were open, as where the steps'
2871
+ time went counts it.
2872
+ - **Each repo's test runs**, under `Test runs:`, of those that started in
2873
+ the period, the repos in the order of their names: how many there were,
2874
+ how long those that ended took in all, on average and at the longest, the
2875
+ CPU time they used, and the most memory one held. When any were cut short
2876
+ by the recorder, as their process had gone, or are still going, the line
2877
+ ends with how many of each.
2878
+ - **Not read** stands in place of a figure nothing in the period holds,
2879
+ such as the CPU time in readings from before the cores were counted, or
2880
+ the time of a repo whose runs are all still going.
2782
2881
  - **With no step, phase or test run in the period**, as when no agent was
2783
2882
  tied to a card, the report says so in place of the lists. With some, a
2784
2883
  list that has none says `none recorded`.
@@ -2789,12 +2888,12 @@ Then comes where the steps' time went:
2789
2888
  rest, from the splits in the period, each reading's split counted for the
2790
2889
  part of the reading in the period, as the report counts a reading. With
2791
2890
  it is how long they were open, which the three add up to.
2792
- - **The 10 steps open longest**, each one card's own, such as LAB-152's
2793
- build step, with the same: how long its agents were open with a split,
2891
+ - **Each step**, in their order from `define` to `pr`, with the same, every
2892
+ card's splits in it added up: how long its agents were open with a split,
2794
2893
  and its three parts, each to the second.
2795
- - **How many steps had no split**: steps open in the period with no split,
2796
- as of an agent started in another harness or while recording was off.
2797
- With no split in the period, or a store made before the splits, the
2894
+ - **How many steps had no split**: each card's step open in the period with
2895
+ no split, as of an agent started in another harness or while recording was
2896
+ off. With no split in the period, or a store made before the splits, the
2798
2897
  report says no step was split.
2799
2898
 
2800
2899
  ```
@@ -2843,30 +2942,21 @@ Power and heat:
2843
2942
  Low Power Mode on 0s, off 9h 41m
2844
2943
  thermal state nominal 9h 12m, fair 25m 00s, serious 4m 00s, critical 0s
2845
2944
 
2846
- Steps that used the most CPU time:
2847
- LAB-150 build step CPU time 1h 12m, ran 2h 40m
2848
- LAB-149 review step CPU time 22m 05s, ran 51m 10s
2849
- Steps that held the most memory at once:
2850
- LAB-150 build step memory 3412 MB, ran 2h 40m
2851
- LAB-149 review step memory 1890 MB, ran 51m 10s
2852
- Phases that used the most CPU time:
2853
- LAB-150 build phase CPU time 1h 31m, ran 3h 48m
2854
- LAB-151 write-up phase CPU time 9m 40s, ran 1h 05m
2855
- Phases that held the most memory at once:
2856
- LAB-150 build phase memory 3412 MB, ran 3h 48m
2857
- LAB-151 write-up phase memory 1204 MB, ran 1h 05m
2858
- Test runs that used the most CPU time:
2859
- LAB-150 ocnus 2026-11-29 14:02 CPU time 6m 10s, ran 2m 05s
2860
- LAB-149 ocnus 2026-11-28 10:41 CPU time 5m 58s, ran 2m 01s
2861
- Test runs that held the most memory at once:
2862
- LAB-150 ocnus 2026-11-29 14:02 memory 1830 MB, ran 2m 05s
2863
- LAB-149 ocnus 2026-11-28 10:41 memory 1795 MB, ran 2m 01s
2945
+ Steps:
2946
+ plan 2 cards, 1h 05m in all, 32m 30s on average, 41m 10s at the longest; CPU time 9m 40s; memory 1204 MB at most
2947
+ build 3 cards, 5h 12m in all, 1h 44m on average, 2h 40m at the longest; CPU time 2h 03m; memory 3412 MB at most
2948
+ review 2 cards, 1h 22m in all, 41m 00s on average, 51m 10s at the longest; CPU time 31m 20s; memory 1890 MB at most
2949
+ Phases:
2950
+ write-up 2 cards, 1h 05m in all, 32m 30s on average, 41m 10s at the longest; CPU time 9m 40s; memory 1204 MB at most
2951
+ build 3 cards, 6h 34m in all, 2h 11m on average, 3h 31m at the longest; CPU time 2h 34m; memory 3412 MB at most
2952
+ Test runs:
2953
+ ocnus 14 runs, 28m 10s in all, 2m 01s on average, 2m 05s at the longest; CPU time 1h 24m; memory 1830 MB at most
2864
2954
 
2865
2955
  Where the steps' time went:
2866
- all agents open 3h 31m: on the host 1h 02m, waiting on the model 1h 49m, the rest 40m 00s
2867
- LAB-150 build step open 2h 40m: on the host 51m 20s, waiting on the model 1h 22m, the rest 26m 40s
2868
- LAB-149 review step open 51m 10s: on the host 10m 40s, waiting on the model 27m 00s, the rest 13m 30s
2869
- 1 step had no split, as an agent's time is split only when it starts in Claude Code while recording is on
2956
+ all agents open 6h 34m: on the host 1h 31m, waiting on the model 3h 58m, the rest 1h 05m
2957
+ build open 5h 12m: on the host 1h 20m, waiting on the model 3h 02m, the rest 50m 00s
2958
+ review open 1h 22m: on the host 11m 00s, waiting on the model 56m 00s, the rest 15m 00s
2959
+ 2 steps had no split, as an agent's time is split only when it starts in Claude Code while recording is on
2870
2960
  ```
2871
2961
 
2872
2962
  `ocnus host report --card <space> <card> --json` gives what the host
@@ -210,6 +210,17 @@
210
210
  "min": 280,
211
211
  "max": 900,
212
212
  "hidden": true
213
+ },
214
+ {
215
+ "id": "needs-you",
216
+ "type": "block",
217
+ "content": {
218
+ "mod": "needs-you"
219
+ },
220
+ "size": {
221
+ "px": 368
222
+ },
223
+ "min": 280
213
224
  }
214
225
  ],
215
226
  "padding": 8,
@@ -139,8 +139,13 @@
139
139
  "children": [
140
140
  {
141
141
  "id": "needs-you",
142
- "type": "column",
143
- "children": []
142
+ "type": "block",
143
+ "content": {
144
+ "mod": "needs-you"
145
+ },
146
+ "size": {
147
+ "weight": 1
148
+ }
144
149
  }
145
150
  ],
146
151
  "size": {