create-pmos 0.538.0 → 0.540.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 +39 -39
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +38 -0
- package/workspace/guide/agent-capabilities.md +9 -5
- package/workspace/guide/agents-act.md +68 -0
- package/workspace/guide/index.md +2 -1
- package/workspace/guide/initiative-driver.md +16 -7
- package/workspace/guide/settings.md +1 -1
- package/workspace/guide/today.md +8 -4
- package/workspace/guide/workflows.md +14 -12
- package/workspace/ini-workflow-test.js +1 -1
- package/workspace/lib/agent-inbox.js +2 -2
- package/workspace/lib/ai-cli.js +12 -1
- package/workspace/lib/ai-guard.js +16 -6
- package/workspace/lib/auto-keep.js +33 -0
- package/workspace/lib/autonomy-cli.js +53 -0
- package/workspace/lib/autonomy.js +234 -0
- package/workspace/lib/bg-queue.js +2 -1
- package/workspace/lib/driver-cli.js +26 -10
- package/workspace/lib/driver-decide.js +76 -8
- package/workspace/lib/driver.js +15 -4
- package/workspace/lib/goal-loop.js +221 -0
- package/workspace/lib/headless.js +75 -1
- package/workspace/lib/job-graph.js +5 -0
- package/workspace/lib/loop-cli.js +84 -0
- package/workspace/lib/pm-lines-needs.js +3 -0
- package/workspace/lib/pmos-verbs.js +6 -1
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-autonomy.js +95 -0
- package/workspace/lib/routes-proposals.js +101 -46
- package/workspace/lib/run-tokens.js +70 -0
- package/workspace/lib/stage-tools.js +11 -1
- package/workspace/lib/today-cli.js +57 -4
- package/workspace/lib/today.js +2 -8
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-news.js +1 -1
- package/workspace/public/pm/cozy-onboard.js +2 -2
- package/workspace/public/pm/cozy-settings.js +42 -11
- package/workspace/public/pm/home-app.js +10 -1
- package/workspace/public/pm/home-around.js +2 -2
- package/workspace/public/pm/ini-wf.js +3 -3
- package/workspace/public/pm/wf-page.css +26 -15
- package/workspace/public/pm/wf-page.js +96 -72
- package/workspace/public/premium-workflows.html +8 -23
- package/workspace/replaced-tests.json +17 -0
- package/workspace/server.js +33 -16
- package/workspace/test-lists/full-autonomy.json +11 -0
- package/workspace/test-run.js +3 -0
- package/workspace/workflows-setup-test.js +50 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.540.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -32,6 +32,44 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.540.0",
|
|
37
|
+
"at": "2026-11-08T04:40:52.541Z",
|
|
38
|
+
"f": 4,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1266,
|
|
42
|
+
"t": "Workflows folds into Settings, New workflow starts the normal chat (UI grill U1)",
|
|
43
|
+
"s": "Workflows folds into Settings, New workflow starts the normal chat (UI grill U1)",
|
|
44
|
+
"k": "new"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"n": 1267,
|
|
48
|
+
"t": "Pmos today ranks with Your move's rankMove (UI grill item 9)",
|
|
49
|
+
"s": "Pmos today ranks with Your move's rankMove (UI grill item 9)",
|
|
50
|
+
"k": "new"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"n": 1268,
|
|
54
|
+
"t": "Lean start-up for background runs and a per-run token log",
|
|
55
|
+
"s": "Lean start-up for background runs and a per-run token log",
|
|
56
|
+
"k": "new"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"v": "0.539.0",
|
|
62
|
+
"at": "2026-11-08T04:03:50.219Z",
|
|
63
|
+
"f": 4,
|
|
64
|
+
"prs": [
|
|
65
|
+
{
|
|
66
|
+
"n": 1261,
|
|
67
|
+
"t": "Full autonomy now (D106): class A/B changes apply by themselves with Undo",
|
|
68
|
+
"s": "Full autonomy now: class A/B changes apply by themselves with Undo",
|
|
69
|
+
"k": "new"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
35
73
|
{
|
|
36
74
|
"v": "0.538.0",
|
|
37
75
|
"at": "2026-11-08T03:45:27.128Z",
|
|
@@ -421,44 +459,6 @@
|
|
|
421
459
|
"k": "fix"
|
|
422
460
|
}
|
|
423
461
|
]
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"v": "0.520.0",
|
|
427
|
-
"at": "2026-11-04T01:52:53.932Z",
|
|
428
|
-
"f": 4,
|
|
429
|
-
"prs": [
|
|
430
|
-
{
|
|
431
|
-
"n": 1216,
|
|
432
|
-
"t": "Every initiative has its own description",
|
|
433
|
-
"s": "Every initiative has its own description",
|
|
434
|
-
"k": "new"
|
|
435
|
-
}
|
|
436
|
-
]
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"v": "0.519.0",
|
|
440
|
-
"at": "2026-11-04T01:26:27.710Z",
|
|
441
|
-
"f": 4,
|
|
442
|
-
"prs": [
|
|
443
|
-
{
|
|
444
|
-
"n": 1213,
|
|
445
|
-
"t": "Every undated initiative is a Timeline row with No dates",
|
|
446
|
-
"s": "Every undated initiative is a Timeline row with No dates",
|
|
447
|
-
"k": "fix"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
"n": 1214,
|
|
451
|
-
"t": "Chat prompt suggestions run on claude -p by default, and never fail silently",
|
|
452
|
-
"s": "Chat prompt suggestions run on claude -p by default, and never fail silently",
|
|
453
|
-
"k": "fix"
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"n": 1215,
|
|
457
|
-
"t": "Background runs read long connector results; guide fills the wide Viewer",
|
|
458
|
-
"s": "Background runs read long connector results; guide fills the wide Viewer",
|
|
459
|
-
"k": "fix"
|
|
460
|
-
}
|
|
461
|
-
]
|
|
462
462
|
}
|
|
463
463
|
]
|
|
464
464
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-08T04:40:50Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-08T04:40:50Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-08T04:40:50Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.540.0",
|
|
4
|
+
"at": "2026-11-08T04:40:52.541Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1266,
|
|
9
|
+
"t": "Workflows folds into Settings, New workflow starts the normal chat (UI grill U1)",
|
|
10
|
+
"s": "Workflows folds into Settings, New workflow starts the normal chat (UI grill U1)",
|
|
11
|
+
"k": "new"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"n": 1267,
|
|
15
|
+
"t": "Pmos today ranks with Your move's rankMove (UI grill item 9)",
|
|
16
|
+
"s": "Pmos today ranks with Your move's rankMove (UI grill item 9)",
|
|
17
|
+
"k": "new"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"n": 1268,
|
|
21
|
+
"t": "Lean start-up for background runs and a per-run token log",
|
|
22
|
+
"s": "Lean start-up for background runs and a per-run token log",
|
|
23
|
+
"k": "new"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"v": "0.539.0",
|
|
29
|
+
"at": "2026-11-08T04:03:50.219Z",
|
|
30
|
+
"f": 4,
|
|
31
|
+
"prs": [
|
|
32
|
+
{
|
|
33
|
+
"n": 1261,
|
|
34
|
+
"t": "Full autonomy now (D106): class A/B changes apply by themselves with Undo",
|
|
35
|
+
"s": "Full autonomy now: class A/B changes apply by themselves with Undo",
|
|
36
|
+
"k": "new"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
2
40
|
{
|
|
3
41
|
"v": "0.538.0",
|
|
4
42
|
"at": "2026-11-08T03:45:27.128Z",
|
|
@@ -7,17 +7,19 @@ timestamp: 2026-11-08
|
|
|
7
7
|
|
|
8
8
|
# What Claude does behind the scenes
|
|
9
9
|
|
|
10
|
-
Claude works in the background while the workspace runs. It reads your records and the tools you connected, it drafts, and it checks.
|
|
10
|
+
Claude works in the background while the workspace runs. It reads your records and the tools you connected, it drafts, and it checks. Since D106 (Full autonomy now), a change that is reversible is applied at once, with Undo for 14 days. A change that other people see, or that cannot be undone, waits for your ✓. A background job never sends, posts, pushes or merges anything. See [Agents act by themselves](agents-act.md).
|
|
11
11
|
|
|
12
12
|
This page lists every job, so you know what runs and why. Each row links to the page with the full detail.
|
|
13
13
|
|
|
14
14
|
## The rules every job follows
|
|
15
15
|
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
16
|
+
- **Three classes of change (D106).** Class A is upkeep with one right answer: tidy names, dates moved by evidence, a note. Class B is a reversible judgment: a problem statement, an outcome, a description, a task, a grill fix, what was found elsewhere. Class A and class B changes are applied at once and listed with Undo for 14 days. Class C is a change that other people see or that cannot be undone: a message to a person, a Jira move, a stage move, a merge into a product repository, a delete or spend. Class C waits for your ✓. A change with no Undo also waits.
|
|
17
|
+
- **Undo teaches it.** Each Undo is a correction. Two Undos in a row, or one revert, puts that job back to propose for 7 days. So does an Undo rate above 30% in a week. Home says so once.
|
|
18
|
+
- **Every claim has a source.** An AI job files through one shared guard. The guard checks that each quote is really at the file and line it cites. A claim with no source that checks out is dropped. A proposal with a key that would write, apply, send or run a command is dropped. The one exception is a class A or B proposal, which can carry `data.apply`: the change it makes, with Undo.
|
|
18
19
|
- **Few at a time.** A run shows at most 3 proposals. In a quiet week it shows nothing.
|
|
19
20
|
- **Tested first.** A new version of a job shows nothing until its replay passes: its own known cases, and the guard's own cases (a made-up quote, a missing source, a path outside the repository, a write key). Each of those must be dropped.
|
|
20
21
|
- **Your login, your connections.** A job runs as a background Claude session with your own login, model, profile and connectors. The workspace holds no password or token. `PMOS_HEADLESS=off` sends every job back to a terminal pane.
|
|
22
|
+
- **Lean start.** A job that reads none of your connectors starts with only the tools it uses: no MCP servers, no skills, no settings files and no `CLAUDE.md`. It still runs with your login and your model. This cuts the tokens each run reads by about half or more. A job that reads your connectors starts as before. `PMOS_LEAN_JOBS=off` starts every job the old way.
|
|
21
23
|
- **One queue.** Every background job waits for its turn in one queue. Each minute the jobs go in this order: what is due at a set time (schedules, the morning brief and day check, the data refresh, report schedules), then the Initiative Driver, then the deep drafts (core documents, Your impact, metric drafts and reads, grill, proposals), then the idle work (the Horizon scan, then the idle lab). What you ask for, such as Scan now or Prepare my day, starts at once and never waits in the queue.
|
|
22
24
|
- **One run for each initiative.** A background run never starts on an initiative that another background run is working on. It tries again a minute later.
|
|
23
25
|
- **Idle work waits for you to step away.** The idle work starts only when you have not used PMOS for 30 minutes, or in the last hour of your working day if you never stepped away. It also waits when 3 background runs are live, inside quiet hours, and at the spending limit.
|
|
@@ -30,6 +32,7 @@ This page lists every job, so you know what runs and why. Each row links to the
|
|
|
30
32
|
|
|
31
33
|
| Job | When it runs | What it reads | Where you see it | How to stop it |
|
|
32
34
|
|---|---|---|---|---|
|
|
35
|
+
| [Goal loops](agents-act.md) | A goal you set with `pmos loop start`: one round each minute the queue allows, until the goal is done, its budget is spent, or it needs you for a named reason. | The goal, its done criteria, and what the last round found | `pmos loop status` | `pmos loop stop <id>`. `pmos ai off goal-loops` |
|
|
33
36
|
| [Initiative Driver](initiative-driver.md) | An initiative is created, moved or sent back. The unblock sweep runs every 30 minutes in working hours. At most 3 runs at once. | The initiative record, its tasks and its Jira tickets | The Agent strip of the initiative, and Needs you | Board settings › Agent: Off. `PMOS_DRIVER=off` |
|
|
34
37
|
| [Found elsewhere](claude-proposes.md) | You add an initiative | Drive, Docs, Sheets, Slides, Jira, the calendar, meeting notes, Gmail, Slack and Confluence | The initiative's ✦ | `PMOS_PROPOSE=off` |
|
|
35
38
|
| [New dates, done and tidy names](claude-proposes.md) | Each morning, and when a date passes | The tasks of the initiative, and the evidence that work happened | The initiative's ✦ | `PMOS_PROPOSE=off` |
|
|
@@ -64,7 +67,7 @@ Sync by itself is on by default. `PMOS_AUTO_SYNC=0` stops the sync, the repair a
|
|
|
64
67
|
|
|
65
68
|
## What a background job never does
|
|
66
69
|
|
|
67
|
-
- It sends, posts, replies, pushes and merges nothing. A message to a person is a draft that you send. A Jira change is a drafted comment in your outbox.
|
|
70
|
+
- It sends, posts, replies, pushes and merges nothing. A message to a person is a draft that you send. A Jira change is a drafted comment in your outbox. These are class C: they always wait for you.
|
|
68
71
|
- It does not create an initiative. The Horizon scan proposes one, and you approve it.
|
|
69
72
|
- It does not record a verdict on an outcome. The verdict is always yours.
|
|
70
73
|
|
|
@@ -73,10 +76,11 @@ When you ask an agent session to do a piece of work, it can finish it, including
|
|
|
73
76
|
## See what ran, and turn it off
|
|
74
77
|
|
|
75
78
|
- `pmos ai status`: whether each AI job is on, whether its replay passed, and what its last run filed. It also shows the keep rate of each job that files under ✦ for the last 14 days: how many you kept of the ones you decided, and how many wait. It shows each product too. A job with 3 or more decided and none kept is listed to pause. You decide: `pmos ai off <job>`.
|
|
79
|
+
- `pmos ai status` also shows the background runs of the last 7 days: for each kind of run, how many ran, the tokens each run read, and the cost. Lean and full starts show side by side.
|
|
76
80
|
- `pmos ai log [<job>]`: the last audit lines. Each dropped proposal shows why.
|
|
77
81
|
- `pmos ai off [<job>]` and `pmos ai on [<job>]`: turn every AI job, or one job, off or on. `PMOS_AI=off` in the environment wins over the setting.
|
|
78
82
|
|
|
79
|
-
The AI jobs are `past-repeat`, `decision-memory`, `outcomes`, `descriptions`, `drift`, `rehearse`, `next-prompt`, `sharpen-prompt` and `idle-lab`. The switch also covers each job in the queue by its queue name: `schedules`, `proactive`, `prepare`, `day`, `refresh`, `reports`, `driver`, `finder`, `coredocs`, `milestones`, `propose`, `grill`, `metric-drafts`, `impact`, `metric-reads`, `forecast`, `report-design`, `report-structure`, `team`, `scan` and `idle-lab`. `pmos ai off` with no job stops all of them. Git sync uses no model, so the switch does not stop it. A background run cannot change the switch.
|
|
83
|
+
The AI jobs are `past-repeat`, `decision-memory`, `outcomes`, `descriptions`, `drift`, `rehearse`, `next-prompt`, `sharpen-prompt` and `idle-lab`. The switch also covers each job in the queue by its queue name: `schedules`, `proactive`, `prepare`, `day`, `refresh`, `reports`, `driver`, `goal-loops`, `finder`, `coredocs`, `milestones`, `propose`, `grill`, `metric-drafts`, `impact`, `metric-reads`, `forecast`, `report-design`, `report-structure`, `team`, `scan` and `idle-lab`. `pmos ai off` with no job stops all of them. Git sync uses no model, so the switch does not stop it. A background run cannot change the switch.
|
|
80
84
|
|
|
81
85
|
## The team of role agents
|
|
82
86
|
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Guide
|
|
3
|
+
title: "Agents act by themselves"
|
|
4
|
+
description: "D106, Full autonomy now: the three classes of change, what agents apply at once with Undo, what waits for you, how a job goes back to propose, the stop switches, long-running goals, and the pmos autonomy and pmos loop commands."
|
|
5
|
+
timestamp: 2026-11-08
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Agents act by themselves
|
|
9
|
+
|
|
10
|
+
PMOS agents finish work without waiting for you. A change that can be undone is applied at once and listed with Undo. A change that other people see, or that cannot be undone, waits for you. This is decision D106 (Full autonomy now, 2026-11-08).
|
|
11
|
+
|
|
12
|
+
## The three classes
|
|
13
|
+
|
|
14
|
+
| Class | What it is | Examples | What happens |
|
|
15
|
+
|---|---|---|---|
|
|
16
|
+
| A | Upkeep with one right answer | A tidy task name, a date moved by evidence, a note | Applied at once. Undo for 14 days. |
|
|
17
|
+
| B | A judgment that can be undone | A problem statement, evidence, an expected outcome, a description, a task, a grill fix, what was found elsewhere | Applied at once. Undo for 14 days. |
|
|
18
|
+
| C | Seen by others, or cannot be undone | A message to a person, a Jira move, a stage move, a merge into a product repository, a delete, spend | Waits for your ✓. |
|
|
19
|
+
|
|
20
|
+
A change with no Undo waits too, whatever its class. A "maybe" or a possible duplicate that Claude found elsewhere waits, because it is a question for you.
|
|
21
|
+
|
|
22
|
+
## Undo
|
|
23
|
+
|
|
24
|
+
Each change an agent applies is listed for 14 days with Undo. Undo puts the record back as it was. If someone changed the record since, Undo keeps that change.
|
|
25
|
+
|
|
26
|
+
- `pmos autonomy status` lists what agents applied in the last 14 days, each with its id.
|
|
27
|
+
- `pmos driver undo <proposal>` undoes a change of the Initiative Driver.
|
|
28
|
+
- A ✦ change is undone on its initiative's ✦, as before.
|
|
29
|
+
|
|
30
|
+
Each Undo counts as a correction, so the north star (human corrections per agent run) still sees it.
|
|
31
|
+
|
|
32
|
+
## A job goes back to propose
|
|
33
|
+
|
|
34
|
+
Undo is also the safety net. A job goes back to propose for 7 days on one product when:
|
|
35
|
+
|
|
36
|
+
- its last two changes were both undone, or
|
|
37
|
+
- one of its changes was reverted, or
|
|
38
|
+
- in the last 7 days it applied 4 or more changes and more than 30% of them were undone.
|
|
39
|
+
|
|
40
|
+
When the verifier is running, a change it fails counts like an Undo. Home says once that a job went back to propose. The job applies by itself again after the 7 days. `pmos autonomy restore <job>` ends it early.
|
|
41
|
+
|
|
42
|
+
## Stop it
|
|
43
|
+
|
|
44
|
+
- `pmos ai off` stops every agent job, and every change that would apply by itself. `pmos ai on` starts them again.
|
|
45
|
+
- `PMOS_AUTONOMY=off` in the environment stops only what applies by itself. Proposals still come.
|
|
46
|
+
- `pmos driver mode approve` makes every Driver proposal wait for you again.
|
|
47
|
+
- The spending limit in Settings › Claude's checks holds.
|
|
48
|
+
|
|
49
|
+
## Long-running goals
|
|
50
|
+
|
|
51
|
+
Set a goal once, and agents work on it round after round until it is done.
|
|
52
|
+
|
|
53
|
+
- `pmos loop start --goal "<one sentence>" --done "<criterion>"` starts a goal. Give one `--done` for each criterion that must be true, each one checkable. Add `--forbid "<action>"` for each thing it must never do. The budget is 20 rounds and 24 hours by default; `--rounds N` and `--hours H` change it.
|
|
54
|
+
- Each round is one background run: it plans the next step, does it, checks it against the criteria, and records a checkpoint. The next round starts when the queue allows.
|
|
55
|
+
- `pmos loop checkpoint <id> --note "<what and how checked>" --met "<criterion>"` is what a round runs last. You do not need to run it.
|
|
56
|
+
- The loop ends when every criterion is met, or when its rounds or hours are used. If the computer restarts, the loop goes on from its last checkpoint.
|
|
57
|
+
- A loop stops for you only with a named reason: it needs a class C act, it needs a sign-in or secret only you have, it cannot cut the goal into steps, its check failed with no retries left, its work conflicts with other work, an outcome check it depends on is overdue, or three rounds met nothing new.
|
|
58
|
+
- `pmos loop status` shows every goal, its state, its rounds and what is met.
|
|
59
|
+
- `pmos loop resume <id> --note "<your answer>"` answers a loop that waits for you.
|
|
60
|
+
- `pmos loop stop <id>` stops a goal.
|
|
61
|
+
|
|
62
|
+
A loop never sends a message, moves a Jira ticket, merges into a product repository, deletes or spends. It files those as proposals and goes on with the rest.
|
|
63
|
+
|
|
64
|
+
## What did not change
|
|
65
|
+
|
|
66
|
+
- Class C still waits for you (D65 point h: the factory proposes and never merges into a product repository).
|
|
67
|
+
- No request header is logged (D08).
|
|
68
|
+
- Every line an agent writes names the agent (D98).
|
package/workspace/guide/index.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Guide: start here"
|
|
4
|
-
timestamp: 2026-11-
|
|
4
|
+
timestamp: 2026-11-08
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Guide: start here
|
|
@@ -39,6 +39,7 @@ PMOS has three places: **Home**, **Board** and **Intelligence**. The round menu
|
|
|
39
39
|
### Get started
|
|
40
40
|
|
|
41
41
|
- [What Claude does behind the scenes](agent-capabilities.md): every job Claude runs by itself, when it runs, what it reads, where you see it, how to stop it, and what it fixes by itself.
|
|
42
|
+
- [Agents act by themselves](agents-act.md): the three classes of change, what is applied at once with Undo, what waits for you, how a job goes back to propose, long-running goals, and `pmos autonomy` and `pmos loop`.
|
|
42
43
|
- [First run](welcome.md): test your Claude login, describe the project, choose its folder, search your tools read-only, and set up PMOS from Home.
|
|
43
44
|
- [Features appear when their moment comes](moments.md): why a new PMOS starts quiet, what opens the Board, Intelligence and reports, the one ✦ a day, and the dot on the menu.
|
|
44
45
|
- [Layout](layout.md): the three places, the menu button, the Viewer and its trail, docking panels, the keys, and the phone.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "The Initiative Driver: drafts the agent files for you"
|
|
4
|
-
description: "What the Initiative Driver does when an initiative is created or moved, what stops it,
|
|
5
|
-
timestamp: 2026-
|
|
4
|
+
description: "What the Initiative Driver does when an initiative is created or moved, what stops it, what it applies by itself with Undo, the proposals you keep, send back or drop, the board modes, and the pmos driver commands."
|
|
5
|
+
timestamp: 2026-11-08
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# The Initiative Driver: drafts the agent files for you
|
|
9
9
|
|
|
10
|
-
The Initiative Driver is a short background agent run for one initiative or one Work task. It reads the record, decides the next useful step, files the result as a **proposal**, and ends.
|
|
10
|
+
The Initiative Driver is a short background agent run for one initiative or one Work task. It reads the record, decides the next useful step, files the result as a **proposal**, and ends. In Auto mode, the default since D106, a class A or B proposal is applied at once, with Undo for 14 days. A class C proposal waits for you: you keep it, send it back with a note, or drop it. See [Agents act by themselves](agents-act.md).
|
|
11
11
|
|
|
12
12
|
## When a run starts
|
|
13
13
|
|
|
@@ -56,7 +56,7 @@ In Discover, the agent writes the problem statement, the evidence, the opportuni
|
|
|
56
56
|
- **Keep, Send back and Drop on a row.** A kept row stays in the strip, marked "Kept by you", until you leave the page. Send back asks for a one-line note. A kept stage move changes the stage on the page at once. These three acts cannot be undone: each adds one line to the ledger.
|
|
57
57
|
- **One line in Work.** A Work task with an open proposal shows one line under its title, for example "Agent drafted a follow-up to Dana. Nothing is sent." Press Review to read the draft. Keep copies the text so you can send it yourself, and records your decision. If the browser does not allow copying, the text is selected and you press Ctrl+C. A suggested next step shows Keep and Drop in the line. Shadow and Off show no line.
|
|
58
58
|
- **Needs you.** In Briefing, the agent has two kinds of row: "Agent has 3 drafts on ..." and "... is waiting on you". Press a row to open the initiative. A long title wraps inside the card.
|
|
59
|
-
- **The Agent setting.** Open the board, press Board settings, and find Agent. Choose Off, Shadow or
|
|
59
|
+
- **The Agent setting.** Open the board, press Board settings, and find Agent. Choose Off, Shadow, Approve or Auto. The setting is saved when you press it.
|
|
60
60
|
|
|
61
61
|
## Keep, send back, drop
|
|
62
62
|
|
|
@@ -68,21 +68,30 @@ Open proposals appear in Needs you as one row for each initiative or task: "Agen
|
|
|
68
68
|
|
|
69
69
|
An agent session can keep, send back, drop, pause or change the mode too, with no typed confirmation (D98). Each line names the agent, so you see who decided.
|
|
70
70
|
|
|
71
|
+
## What Auto applies, and Undo
|
|
72
|
+
|
|
73
|
+
In Auto mode the Driver applies these kinds at once, through the same Keep, as the agent: a note (class A), and a problem statement, evidence, sizing, an assumption, stakeholders, an overlap and a Work next step (class B). Each one is listed with Undo for 14 days. These kinds always wait for you: a stage move and a follow-up (class C), and a core document, because issuing it has no Undo yet.
|
|
74
|
+
|
|
75
|
+
- **Undo** puts the record back as it was, unless someone changed it since: then it keeps that change. Undo counts as a correction.
|
|
76
|
+
- Two Undos in a row for one kind on one product put that kind back to propose for 7 days. So does an Undo rate above 30% in a week. `pmos autonomy status` shows it.
|
|
77
|
+
|
|
71
78
|
## Board modes
|
|
72
79
|
|
|
73
|
-
- **
|
|
80
|
+
- **Auto** is the default (D106). Class A and B proposals are applied with Undo. Class C proposals wait, and Needs you shows their rows.
|
|
81
|
+
- **Approve.** Every proposal waits for you, and Needs you shows the rows.
|
|
74
82
|
- **Shadow.** The agent runs and drafts, and raises no Needs you rows.
|
|
75
83
|
- **Off.** No run starts.
|
|
76
84
|
|
|
77
85
|
## The commands
|
|
78
86
|
|
|
79
|
-
The agent uses `pmos driver propose` to file a proposal and `pmos driver status` to read what exists. The other commands are yours, at an interactive terminal:
|
|
87
|
+
The agent uses `pmos driver propose` to file a proposal and `pmos driver status` to read what exists. In Auto mode, `pmos driver propose` says whether it applied the proposal or left it for you, and why. The other commands are yours, at an interactive terminal:
|
|
80
88
|
|
|
81
89
|
- `pmos driver keep <proposal>` asks you to type the proposal id. A kept move is pressed on the page.
|
|
82
90
|
- `pmos driver return <proposal> --note "<what to change>"` sends it back.
|
|
83
91
|
- `pmos driver drop <proposal>` drops it.
|
|
92
|
+
- `pmos driver undo <proposal>` undoes a kept proposal, within 14 days.
|
|
84
93
|
- `pmos driver pause <initiative|work> <id>` and `pmos driver resume <initiative|work> <id>` stop and restart the runs for one target.
|
|
85
|
-
- `pmos driver mode <off|shadow|approve> [--board <id>]` sets the board mode. Without `--board` it sets every board.
|
|
94
|
+
- `pmos driver mode <off|shadow|approve|auto> [--board <id>]` sets the board mode. Without `--board` it sets every board.
|
|
86
95
|
|
|
87
96
|
When the agent files a proposal, it can also state what it knows, so that the Briefing can rank the row: `--confidence 0..1` (how sure it is), `--recommended "<what it suggests you do>"`, `--reversible true|false` (whether you can undo the move) and `--effort S|M|L` (about 2 minutes, about 15 minutes, an hour or more). Each one is optional. The Briefing shows a missing one as "Not known yet" and does not guess it. The agent states a fact only when it knows it.
|
|
88
97
|
|
|
@@ -14,7 +14,7 @@ Press the round menu button at the bottom of any page, then the **Settings** ico
|
|
|
14
14
|
| General | The theme (Light, Dark or Auto), whether the Viewer opens as a column or a popup, the products Home, the Board and Intelligence read, when Your day ends, the Your impact switch, and that agents write to Jira only after you press Commit. When a new PMOS is ready, a card here says so. Under **Extras**, **Adler ›** and **Jev and Laya ›** open their own settings (see below). |
|
|
15
15
|
| Claude | The Claude profile that new sessions start with, the Anthropic API key for Claude's own runs, Sharpen prompts, and **Checks**: when Claude grills an initiative by itself and the monthly credit for its checks. |
|
|
16
16
|
| Connectors | Every connector your Claude session has. A switch chooses only what PMOS reads on its own. PMOS reads and never posts. |
|
|
17
|
-
| Workspaces | The repositories PMOS works in. Remove forgets the address only; the folder is not deleted. Add one by its folder path. The **Workflows ›** row opens the stages each kind of initiative goes through. See [Workflows](workflows.md). |
|
|
17
|
+
| Workspaces | The repositories PMOS works in. Remove forgets the address only; the folder is not deleted. Add one by its folder path. The **Workflows ›** row opens the stages each kind of initiative goes through, inside Settings, which then takes the whole window. See [Workflows](workflows.md). |
|
|
18
18
|
| Updates | The version of the app and of each workspace's kit, the check for updates, and what changed. |
|
|
19
19
|
|
|
20
20
|
## Update PMOS and the kit
|
package/workspace/guide/today.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "What waits for you, and pmos today"
|
|
4
4
|
description: "Where the workspace shows what waits for you (Your day in Home) and how pmos today prints the same kind of list from a terminal."
|
|
5
|
-
timestamp: 2026-11-
|
|
5
|
+
timestamp: 2026-11-08
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# What waits for you, and pmos today
|
|
@@ -26,7 +26,7 @@ A session that waits on you has a blue dot in Home's list, under its initiative.
|
|
|
26
26
|
|
|
27
27
|
## From a terminal
|
|
28
28
|
|
|
29
|
-
`pmos today` prints
|
|
29
|
+
`pmos today` prints **Your move**: the same list as Home, in the same order. Home and the command use one ranking.
|
|
30
30
|
|
|
31
31
|
```
|
|
32
32
|
pmos today # the repository you are in
|
|
@@ -35,6 +35,10 @@ pmos today --json # the list as JSON
|
|
|
35
35
|
pmos today --root <dir> # read a repository folder without a server
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
With the workspace server running, the command
|
|
38
|
+
With the workspace server running, the command prints the rows of Your move, then the sessions that wait for you. Rows older than two weeks are counted on one "Older" line. When the board is still being read, the command waits up to 8 seconds.
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Without the server, or when the board cannot be read, the command prints the Today cards instead, with the kind first (1 a gate is owed, 2 a session is waiting, 3 a step was returned to you, 4 work to check, 5 a breakdown to keep, 6 a capture, 7 a cycle review, 8 needs repair). Without the server it also prints a line that says it did not read the sessions.
|
|
41
|
+
|
|
42
|
+
The command prints "Nothing needs you" when the list is empty. It exits with 0 when it read the list, 1 when it could not read it, and 2 when you gave it an option it does not have.
|
|
43
|
+
|
|
44
|
+
The command reads `GET /api/today`, `GET /api/board-premium`, `GET /api/programs` and `GET /api/your-move`. None of them changes anything.
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Workflows: the stages each kind of initiative goes through"
|
|
4
4
|
description: "Settings › Workspaces › Workflows: the workflow list, the default workflow (the star), one numbered list of stages across To do, In progress and Done, the stage panel, Only when conditions, removing a stage in use, New workflow in the chat, moving initiatives to a simpler workflow, and the pmos workflow commands."
|
|
5
|
-
timestamp: 2026-11-
|
|
5
|
+
timestamp: 2026-11-08
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Workflows
|
|
9
9
|
|
|
10
10
|
A **workflow** is the list of stages that one kind of initiative goes through ([D99](/DECISIONS.md)). PMOS ships one workflow, **Product feature**: Triage, Discover, Plan, Prioritize, Build, ◆ Deliver, Monitor and ◆ Evaluate. You make any other workflow, for example a tender or a vendor onboarding.
|
|
11
11
|
|
|
12
|
-
Open it from **Menu › Settings › Workspaces**, then the **Workflows ›** row. The address
|
|
12
|
+
Open it from **Menu › Settings › Workspaces**, then the **Workflows ›** row. It opens inside Settings, which then takes the whole window. **‹** goes back to Workspaces. The old address `/premium-workflows.html` still works: it opens Home with Settings on Workflows.
|
|
13
13
|
|
|
14
|
-
## The
|
|
14
|
+
## The panel
|
|
15
15
|
|
|
16
|
-
- **The list** on the left shows each workflow and how many initiatives use it. **+** starts a new workflow. An archived workflow shows last, under **Archived**.
|
|
16
|
+
- **The list** on the left shows each workflow and how many initiatives use it. **+** starts a new workflow in the chat. Under the list you can also start one **blank** (only Triage) or **from a copy** of a workflow. An archived workflow shows last, under **Archived**.
|
|
17
17
|
- **The star** on a row marks the **default workflow**: the workflow a new initiative starts on. Point at a row, or tab to it, to see its star, and press it to make that workflow the default. The toast has **Undo**. Product feature is the default until you pick another, and it can be the default again.
|
|
18
18
|
- **The workflow** is one numbered list of stages, in three columns: **To do**, **In progress** and **Done**. Drag a stage to change its place or its column. **Add a stage** adds one at the end of that column. The dashed **Won't do · Archived** column is in every workflow: any initiative can go there from any stage, and come back to Triage.
|
|
19
19
|
- **Triage** is always the first stage, in To do.
|
|
@@ -31,7 +31,7 @@ A new initiative starts in Triage on the default workflow. It does not matter ho
|
|
|
31
31
|
|
|
32
32
|
## A stage
|
|
33
33
|
|
|
34
|
-
Tap a stage to open it in the
|
|
34
|
+
Tap a stage to open it in the Viewer, beside the workflow. Escape closes the stage first, then Settings. Tap its name at the top to rename it. The panel has:
|
|
35
35
|
|
|
36
36
|
- **Category**: To do, In progress or Done.
|
|
37
37
|
- **Output**: what finishes the stage, and its kind. **Document** (PMOS drafts it from the template), **Jira tickets**, **Sign-off** or **Checklist only**. The kind sets how the Board counts progress.
|
|
@@ -51,20 +51,22 @@ If initiatives are in the stage, PMOS asks where they move. **Move and remove**
|
|
|
51
51
|
|
|
52
52
|
## New workflow
|
|
53
53
|
|
|
54
|
-
Press **+**.
|
|
54
|
+
Press **+**. Settings closes and Home's chat opens, scoped **In: New workflow**. It is the same chat as every other conversation, not a second one. Tell Claude how the work goes, in your own words, and add a policy or an old checklist if you have one. Claude drafts the stages and explains each choice in the chat. Answer its question or ask for a change, and it drafts again.
|
|
55
|
+
|
|
56
|
+
The draft waits in **Settings › Workspaces › Workflows**, as a row at the end of the list with the draft's name, marked **draft**, until you create it. Press that row to see the draft in the Viewer:
|
|
55
57
|
|
|
56
58
|
- **Create workflow** saves the draft.
|
|
57
|
-
- **Edit by hand** opens the draft
|
|
58
|
-
-
|
|
59
|
+
- **Edit by hand** opens the draft in the panel, so you can change it before you create it.
|
|
60
|
+
- **Continue in the chat** goes back to the same conversation.
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
New workflow… in an initiative's workflow picker starts the same conversation.
|
|
61
63
|
|
|
62
64
|
## Move initiatives to a simpler workflow
|
|
63
65
|
|
|
64
66
|
To use fewer stages, copy Product feature and make the copy simpler. For example, use Discovery, Implementation and Evaluation.
|
|
65
67
|
|
|
66
68
|
- **Claude's proposal.** Claude shows where each old stage goes, once, as a ✦ in **New for you**. For example: Triage, Discover, Plan and Prioritize go into Discovery. Each row shows how many initiatives and tasks go into that stage. Press ✓ to move all the initiatives. Press ✕ to leave them where they are.
|
|
67
|
-
- **The bridge.** The
|
|
69
|
+
- **The bridge.** The new workflow in Settings › Workflows shows **Replaces Product feature**: each old stage, with the stage it goes into. Change a stage there. The change is saved at once, and every later switch from the old workflow uses it.
|
|
68
70
|
- **One initiative.** On the initiative, open the workflow picker and pick the new workflow. The dialog shows the old stages in each new stage. **Change where a stage goes** shows one picker for each old stage. **This initiative** or **All N** sets which initiatives move.
|
|
69
71
|
- **What moves.** An initiative's stage and its tasks move together. Each task goes into the stage that its old stage goes into, on Home, on the Board and in `pmos task list`. A task goes under **Not in a stage** only when it had no stage before the move. Ticked items from the old stages count in the new stage. The new stage counts its days from the day its first old stage began. The stage card shows the days in each old stage.
|
|
70
72
|
- **Jira tickets.** The tickets go under the stage whose output is Jira tickets, whatever its name.
|
|
@@ -72,12 +74,12 @@ To use fewer stages, copy Product feature and make the copy simpler. For example
|
|
|
72
74
|
|
|
73
75
|
## The pmos workflow commands
|
|
74
76
|
|
|
75
|
-
An agent writes a draft or a reading with these commands, and moves an initiative along its workflow when you ask. It never saves, copies or archives a workflow: those are your presses
|
|
77
|
+
An agent writes a draft or a reading with these commands, and moves an initiative along its workflow when you ask. It never saves, copies or archives a workflow: those are your presses in Settings › Workflows.
|
|
76
78
|
|
|
77
79
|
- `pmos workflow list` names every workflow you can pick and marks the default one: the ones of this repository, then the ones you saved in Settings › Workspaces › Workflows (marked **saved in** and the workspace name) and in your other open workspaces.
|
|
78
80
|
- `pmos workflow show <id>` shows one workflow, its stages numbered. It finds a workflow in any of those libraries.
|
|
79
81
|
- An initiative chat reads workflows only through these commands. It does not search the repository's files for a workflow, and it does not use a lane, such as `feature`, in place of the initiative's workflow. When it cannot find a workflow, it says so and asks you.
|
|
80
|
-
- `pmos workflow draft --file <path>` writes the draft that the
|
|
82
|
+
- `pmos workflow draft --file <path>` writes the draft that waits as the draft row in Settings › Workflows. `--note` adds a line.
|
|
81
83
|
- `pmos workflow show-draft` shows the draft that is open.
|
|
82
84
|
- `pmos workflow judge --board <id> --id <initiative> --stage <key> --runs yes|no|unsure --why <reason> --cite <where>` records PMOS's reading of an Only when stage. **unsure** makes PMOS ask you. `--undo` takes a reading back.
|
|
83
85
|
- `pmos workflow of <initiative>` shows the workflow the initiative runs, its current stage, and each stage numbered as done, current or skipped. It reads the same row as the Board.
|
|
@@ -177,7 +177,7 @@ const BRIEF = BRP.build(BRF.facts());
|
|
|
177
177
|
await shot(D.page, 'picker-1440-dark');
|
|
178
178
|
ok('W8 dark: the picker draws, no page error', D.up && !D.errors.length, D.errors.join(' | '));
|
|
179
179
|
await D.page.click('.hi-pop [data-wf-new]');
|
|
180
|
-
ok('W3 New workflow… opens
|
|
180
|
+
ok('W3 New workflow… opens Home\'s chat scoped "New workflow", where the PM describes it and PMOS drafts it', await until(() => D.page.evaluate(() => /New workflow/.test((document.querySelector('.hm-chip') || {}).textContent || '') && /Tell me how this work goes/.test(document.body.innerText))), D.page.url());
|
|
181
181
|
await D.ctx.close();
|
|
182
182
|
finish();
|
|
183
183
|
})();
|
|
@@ -107,7 +107,7 @@ function build({ proposals = [], goals = [], work = [], seen = { all: 0, ids: ne
|
|
|
107
107
|
return { count: items.length, newCount: fresh.length, items: fresh.slice(0, MAX_NEW), more: Math.max(0, fresh.length - MAX_NEW), bundles, oldest: ages.length ? Math.min(...ages) : null, seenAt: seen.all || null };
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
/** The open proposals of each included product whose board is in Approve mode: the set GET /api/driver/open gives the Agent proposals dialog. A ledger that cannot be read gives none. */
|
|
110
|
+
/** The open proposals of each included product whose board is in Approve or Auto mode (D106: in Auto only class C and demoted jobs stay open): the set GET /api/driver/open gives the Agent proposals dialog. A ledger that cannot be read gives none. */
|
|
111
111
|
function readProposals(available) {
|
|
112
112
|
const D = require('./driver.js'), DN = require('./driver-needs.js');
|
|
113
113
|
const out = [];
|
|
@@ -120,7 +120,7 @@ function readProposals(available) {
|
|
|
120
120
|
let titles = new Map(); try { titles = DN.titlesOf({ root: a.root }); } catch { /* the ids stand in */ }
|
|
121
121
|
for (const p of D.openProposals(state)) {
|
|
122
122
|
if (!p.target || (p.target.ws && p.target.ws !== a.ws)) continue;
|
|
123
|
-
if (D.modeOf(state, p.target.kind === 'work' ? 'work' : null)
|
|
123
|
+
if (!['approve', 'auto'].includes(D.modeOf(state, p.target.kind === 'work' ? 'work' : null))) continue; // D106: in auto what is still open waits for the PM
|
|
124
124
|
out.push({ p, ws: a.ws, product: a.name, targetTitle: titles.get(p.target.kind + ':' + p.target.id) || '' });
|
|
125
125
|
}
|
|
126
126
|
} catch { /* this product gives no items */ }
|
package/workspace/lib/ai-cli.js
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* pmos ai status [--json] the switch, each job's replay state and its last run, and the keep rate of every ✦ job (OS evaluation
|
|
5
5
|
* T1): the last 14 days, per job and per product, from each hosted product's proposals.jsonl. A job with
|
|
6
6
|
* 3 or more decided and none kept is listed to pause; the PM pauses it (`pmos ai off <job>`), never this.
|
|
7
|
+
* It also shows the token log of the background runs, last 7 days (lib/run-tokens.js): per kind and launch
|
|
8
|
+
* (lean or full), runs, tokens read per run, turns and cost.
|
|
7
9
|
* pmos ai off [<job>] turn every AI job off, or one job
|
|
8
10
|
* pmos ai on [<job>] turn every AI job on again, or one job
|
|
9
11
|
* pmos ai log [<job>] [--n N] the last audit lines: filed, dropped (with why), held, off, replay
|
|
@@ -55,7 +57,9 @@ function run(argv, { say = (s) => console.log(s), env = process.env, stateDir =
|
|
|
55
57
|
const s = AG.status({ stateDir: dir, settingsDir: dir, env });
|
|
56
58
|
let keep = null;
|
|
57
59
|
try { keep = keepOf(roots || rootsOf(dir, cwd), now); } catch { keep = null; }
|
|
58
|
-
|
|
60
|
+
let tokens = null;
|
|
61
|
+
try { tokens = require('./run-tokens.js').summary(dir, { now }); } catch { tokens = null; }
|
|
62
|
+
if (flag(args, 'json')) { say(JSON.stringify({ ...s, keep, tokens })); return 0; }
|
|
59
63
|
say(`AI jobs: ${s.on ? 'on' : 'off'}${s.settingsOff.length ? ' · off one by one: ' + s.settingsOff.join(', ') : ''}`);
|
|
60
64
|
if (!s.jobs.length) say(' no job has run yet');
|
|
61
65
|
for (const j of s.jobs) {
|
|
@@ -72,6 +76,13 @@ function run(argv, { say = (s) => console.log(s), env = process.env, stateDir =
|
|
|
72
76
|
if (keep.pause.length) say(` To pause (you decide): ${keep.pause.map((j) => '`pmos ai off ' + j + '`').join(', ')}`);
|
|
73
77
|
if (keep.unplaced) say(` ${keep.unplaced} older ✕ could not be placed on a job (a computed proposal that was never filed)`);
|
|
74
78
|
}
|
|
79
|
+
if (tokens && tokens.runs) {
|
|
80
|
+
const k = (n) => (n >= 1e6 ? (n / 1e6).toFixed(1) + 'M' : n >= 1000 ? Math.round(n / 1000) + 'k' : String(n));
|
|
81
|
+
const usd = (n) => '$' + n.toFixed(2);
|
|
82
|
+
const tot = tokens.rows.reduce((a, r) => ({ c: a.c + r.context, o: a.o + r.output, d: a.d + r.costUsd }), { c: 0, o: 0, d: 0 });
|
|
83
|
+
say(`Background runs, last ${tokens.days} days: ${tokens.runs} runs · ${k(tot.c)} tokens read · ${k(tot.o)} written · ${usd(tot.d)}`);
|
|
84
|
+
for (const r of tokens.rows) say(` ${r.kind} (${r.lean ? 'lean' : 'full'}): ${r.runs} runs · ${k(r.perRun)} read per run · ${r.turns} turns · ${usd(r.costUsd)}`);
|
|
85
|
+
}
|
|
75
86
|
return 0;
|
|
76
87
|
}
|
|
77
88
|
if (verb === 'log') {
|