ai-agentmanager 1.63.0 → 1.65.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/CHANGELOG.md +37 -0
- package/README.md +168 -3
- package/package.json +1 -1
- package/public/app.js +48 -4
- package/public/autonomy.js +4 -0
- package/public/groups.js +2 -0
- package/public/index.html +7 -0
- package/public/machine.js +2 -0
- package/public/proof.js +194 -0
- package/public/quality.js +81 -3
- package/public/style.css +54 -1
- package/public/valuelens.js +114 -0
- package/src/autonomy.js +81 -10
- package/src/autopilot.js +3 -1
- package/src/brief.js +73 -6
- package/src/cli.js +101 -5
- package/src/config.js +8 -0
- package/src/engines/claude.js +7 -2
- package/src/inbox.js +60 -6
- package/src/manager.js +44 -4
- package/src/mutate.js +456 -0
- package/src/private.js +52 -0
- package/src/proof.js +255 -0
- package/src/quality.js +16 -2
- package/src/record.js +147 -0
- package/src/scorecard.js +40 -2
- package/src/server.js +53 -2
- package/src/service.js +24 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.65.0 (2026-11-23)
|
|
4
|
+
|
|
5
|
+
- **Test the tests: would the agent's tests notice a mistake?** The app breaks the lines the agent changed, one at a time and in a small way (`===` becomes `!==`, `&&` becomes `||`, a number goes up by one), runs the tests on each, and puts the line back. A break the tests still pass on is a line nothing checks. In the agent's **Proof** dialog under **Test the tests**, or `agentmgr test-tests <agent> --run` (`-c` for the test command, `--max` for how many lines). The Results show **Tests tested**, for example "5 of 6 breaks caught".
|
|
6
|
+
- **Tell the agent.** **Tell the agent**, or `--send`, sends the lines whose breaks went unnoticed and asks for tests that fail when they are wrong.
|
|
7
|
+
- **The scorecard uses it.** When no break was caught the tests score is at most 35; when more than half went unnoticed, at most 55. A run before the latest changes is not counted.
|
|
8
|
+
- **The folder is kept as it was.** The tests run first with nothing changed. One line is different at a time and is written down first, so a daemon that stops halfway puts it back when it starts. A run does not start while the agent works, messages to it wait, and typing to it stops the run.
|
|
9
|
+
- **Limits.** Only you can ask for it (it runs commands on your computer and changes the agent's files for a moment). A break that went unnoticed is a pointer, not a verdict: some change nothing a test could see. The breaks are made on the text of a line, in 14 languages; agents in containers are not covered.
|
|
10
|
+
|
|
11
|
+
Found by running real agents:
|
|
12
|
+
|
|
13
|
+
- **A permission prompt that lost letters to a redraw is seen again.** Claude Code redraws only the screen cells that changed, so a prompt could arrive as "Do you want to pro eed?" with its first choice as "1 Yes". It was not recognised: the agent sat at the prompt while the app showed nothing to answer. The prompt is now also recognised by its choices and footer, and its choices are read without the dot.
|
|
14
|
+
- **Insights: value now against later, the kind of idea, and paths ranked.** Below Why / What / How / Now, Insights adds three cards. **Value** rates what the work is worth as soon as it ships and what it is worth over time, with what waiting costs and which should drive the design. **Kind of idea** says whether it is just a task, worth a white paper, or possibly patentable, what is new and what to do next. **Paths** lists the 2 to 4 real ways to go, preferred first, each with its value now and later, cost, risk and when it is the right pick. The kind is a first read without a prior-art search, not legal advice.
|
|
15
|
+
- **Agents weigh the paths while they design.** When a task has more than one reasonable way, the agent lists them under **Options** in its brief, preferred first, and its Results show **Paths it weighed**. Something that seems new is said in one line and kept inside the repository. `"valueLens": false` in config.json turns it off.
|
|
16
|
+
- **Kept private: possibly patentable work is not sent out.** When the agent says part of its design is new, Insights reads the work as possibly patentable, or you mark it (`agentmgr private <agent> --keep`), the app holds every way out: publishing to Google Drive, updates and Slack, the scorecard comment, opening the pull request (also without you and on autopilot), and a merge without you. The agent is told to keep it inside the repository. Only you lift it: **Allow sharing**, or `agentmgr private <agent> --allow`. It guards what the app sends, not what an agent can run in its terminal.
|
|
17
|
+
- **Pre-mortem: how could this go wrong?** Before it changes anything, each agent writes **Risks** in its brief: the 3 to 5 most likely ways the task could go wrong. At the end it marks each as avoided (with how it knows), happened, or not checked. The Results show **Risks it named before starting**; the scorecard is given the list and notes the ones that happened or were not checked. `"premortem": false` in config.json turns it off.
|
|
18
|
+
- **Track record: was the confidence right?** As a pull request merges, the app keeps what was said about it: the agent's own confidence, the scorecard's recommendation, whether its tests were tested, the model, and how far it ran without you. **Quality → Track record**, or `agentmgr quality record`, compares that with what happened after the merge: "90 to 100%: 6 of 10 held up, said 92% on average: said more than held up". Rows with fewer than 5 settled pull requests say "too few to say".
|
|
19
|
+
- **Earned autonomy.** Per project, the record says which level of "Without you" it supports: up one step after 5 settled pull requests with 9 in 10 held up and none of the last 5 a problem (10 for "Run to merge"); down one step when one of the last 3 did not hold up. It only suggests: the level changes when you press **Set** or run `agentmgr autonomy --project <name> --default <level>`. A project's level applies to its new agents when none is named.
|
|
20
|
+
|
|
21
|
+
## 1.64.0 (2026-11-22)
|
|
22
|
+
|
|
23
|
+
- **Proof: what the agent ran, kept so you can check it.** Next to its brief each agent keeps `PROOF.md`: for every check it ticked and every agreed point of what done means, the exact command, its exit code and the last lines of real output. The agent's Results show a **Proof** row; **Open** lists each check with its command and output. `agentmgr proof <agent>` prints it.
|
|
24
|
+
- **Run it again.** **Run these again here**, or `agentmgr proof <agent> --run`, runs the recorded commands in the agent's folder and marks each "Same result" or "Different result" by its exit code (the command exits with 1 when one differs). Only you can ask for it; an agent's own call is refused. A command that changes things (deleting, committing, pushing, installing, publishing, deploying, reaching the network, writing to a file) is not run and is listed with the reason.
|
|
25
|
+
- **Not done: what the agent left out.** Under Results the agent lists what the request asked or implied that it skipped, stubbed, left untested or only assumed, or says there is nothing. It is shown above what was delivered.
|
|
26
|
+
- **Reviews use it.** The scorecard and the review when an agent finishes are given the proof and what the app saw when it ran the commands again. A command that gave a different result caps the tests score at 40. A merge without you (Run to merge, autopilot) is left to you when something is listed as not done or a recorded command gave a different result.
|
|
27
|
+
- **Limits.** The record is the agent's own until you run it again. Running again uses your rights on your computer, without the agent's permission prompts; the list of what is not run is a filter on the command's text, not a sandbox. `"proof": false` in config.json turns the instructions off.
|
|
28
|
+
|
|
29
|
+
Found by running real agents at "Agree, then run":
|
|
30
|
+
|
|
31
|
+
- **A message sent while the agent shows a question menu is no longer lost.** Claude Code's current question menu was not recognised as a prompt, so text sent to the agent (your agreement on what done means, an answer, a nudge) was typed into the menu and Enter picked its highlighted option. The menu now counts as **Needs input**: the inbox shows the question with its options as buttons, and messages wait until it is answered.
|
|
32
|
+
- **Without you: a menu question is answered by picking an option.** For an agent that runs without you, the option is chosen from what is already decided and picked with its key. A menu where several can be ticked, or where no option is right, is left for you.
|
|
33
|
+
- **Without you: a permission prompt is never sent to a model.** When the screen reader took a permission prompt for a question, the answering model was asked about it (it left it for you, but that was its judgment). The app now recognises these itself and leaves them for you without asking.
|
|
34
|
+
- **Without you: nothing is answered while your agreement is pending.** While what done means or a plan waited for you, the agent's "do these look right?" was looked at by a model twice and listed as "left for you". It is now skipped.
|
|
35
|
+
- **Without you: permission prompts still stop it, and the app says so.** New agent shows a hint with **Use Auto** when a level past "Ask me" is chosen in a mode that asks for each command; the agent's "Without you" dialog and `agentmgr add --autonomy` say the same.
|
|
36
|
+
- **`agentmgr restart` with a second daemon.** For a daemon on another home or port than the login service's (a trial, a test), restart asked the login service to start it and then reported "Daemon did not come back". It now starts that daemon itself.
|
|
37
|
+
- **`agentmgr inbox`** labels answers given for you as "done for you" with the answer and the commands to accept or change it (it printed "undefined"), and shows a menu's question instead of the word "Question".
|
|
38
|
+
- **Open Terminal on a phone: a swipe scrolls.** The terminal on this computer (Open Terminal) and the terminals in groups did not move under a finger, so what had scrolled off could not be read from a phone or tablet. They now scroll like an agent's terminal: a swipe moves through what was printed, a flick keeps going, and in a full-screen program the swipe scrolls the program.
|
|
39
|
+
|
|
3
40
|
## 1.63.0 (2026-11-21)
|
|
4
41
|
|
|
5
42
|
- **Acceptance: agree on what done means.** Tick **Agree on what done means first** in New agent or the backlog (or `agentmgr add --acceptance`). The agent reads the code, writes three to six points you could check, and stops before changing anything. The points wait in the inbox as **Done means**, with a notification.
|
package/README.md
CHANGED
|
@@ -483,6 +483,7 @@ Each agent has a level for how far it goes before it needs you. Choose it in New
|
|
|
483
483
|
|
|
484
484
|
- **A question it asks without stopping, or a plan waiting for review**, is decided by [Decide](#decide) at its "Most things; ask when unsure" level, whatever the project's own level is: carried out when the recommendation is at least 70% sure and easy to undo. Its recommendation now also knows the agreed points, your ground rules and the repository's lessons.
|
|
485
485
|
- **A question it stopped on in its terminal** (read from its screen by the AI judge) is answered from what is already decided: your request, the agreed points, your ground rules, the repository's lessons and your earlier answers, or the agent's own default when it is a routine detail that is cheap to change. The agent is told the answer came from the app while you were away, and to note it as an assumption.
|
|
486
|
+
- **A question it shows as a menu** (Claude Code's own question menu) is answered the same way, by picking one of its options with its key. A menu where several options can be ticked, and one where none of the options is right, is left for you.
|
|
486
487
|
- **A stuck agent** gets the judge's nudge when the judge is at least 70% sure, three times at most.
|
|
487
488
|
- **A quiet, unfinished agent** is told to carry on, twice at most, unless it is blocked on you.
|
|
488
489
|
- **At "Run to merge"**, its pull request is merged when the checks pass, the review rounds (when they ran) approved it, the scorecard says "Ready to approve", no high-risk path is touched, and the agent's own confidence is not low. Otherwise it is held, and the inbox says why. (A backlog item is shipped by [autopilot](#autopilot) at the item's level.)
|
|
@@ -491,7 +492,9 @@ Each agent has a level for how far it goes before it needs you. Choose it in New
|
|
|
491
492
|
|
|
492
493
|
**Never done for you:**
|
|
493
494
|
|
|
494
|
-
- A permission prompt is never answered by a model (your [approval rules](#decision-inbox) still apply).
|
|
495
|
+
- A permission prompt is never answered by a model (your [approval rules](#decision-inbox) still apply). This is checked by the app, not left to the model: a prompt the screen reader took for a question is left for you without asking one.
|
|
496
|
+
- While what done means, or a plan, waits for your agreement, nothing is answered or nudged for you.
|
|
497
|
+
- A choice your request says to ask you about: the answering model is told to leave it for you (in the trial it did, each time).
|
|
495
498
|
- A question about deleting or overwriting, rewriting history, publishing, deploying or merging, credentials, money or licences, personal data, messages to other people, or the scope of the task is left for you whatever a model would say.
|
|
496
499
|
- An agent cannot set or raise its own level, and cannot change your ground rules: its own calls are refused.
|
|
497
500
|
|
|
@@ -508,7 +511,7 @@ agentmgr autonomy add-a-csv-export --change 3fa2c1d0="Use Postgres"
|
|
|
508
511
|
|
|
509
512
|
In config.json: `"autonomy": { "level": "ask", "models": ["fable", "opus", "sonnet"], "answers": true, "nudges": true, "followUps": true, "minConfidence": 0.7, "minBuildConfidence": 70, "maxAnswers": 12, "maxNudges": 3, "maxFollowUps": 2, "dailyCalls": 80 }`.
|
|
510
513
|
|
|
511
|
-
**Limits.** It needs the AI judge on (it reads the screen and finds stuck agents) and Decide on (for questions and plans). An answer is a model's reading of what you decided before, and can be wrong: that is why each one is shown to you. The level does not change the permission mode, so an agent
|
|
514
|
+
**Limits.** It needs the AI judge on (it reads the screen and finds stuck agents) and Decide on (for questions and plans). An answer is a model's reading of what you decided before, and can be wrong: that is why each one is shown to you. The level does not change the permission mode, so in the default mode an agent stops at each permission prompt (running a command, reading outside the project) and waits for you. New agent says so and offers Permission mode **Auto**, where Claude Code approves what it judges safe; `agentmgr add --autonomy run -p auto` does the same. Each answer, nudge and judgment is a model call on your own plan.
|
|
512
515
|
|
|
513
516
|
## Ground rules: your own rules for every agent
|
|
514
517
|
|
|
@@ -533,9 +536,110 @@ Every agent now ends its Results with its own confidence: `Confidence: 85% - wha
|
|
|
533
536
|
|
|
534
537
|
The number is the agent's own statement, not a measurement.
|
|
535
538
|
|
|
539
|
+
## Proof: what it ran, and what it did not do
|
|
540
|
+
|
|
541
|
+
"All checks pass" in a brief is the agent's word. With proof, you can check it.
|
|
542
|
+
|
|
543
|
+
- **What it ran.** Next to its brief the agent keeps `PROOF.md`: for each check it ticked, and each agreed point of [what done means](#acceptance-agree-on-what-done-means), the exact command, its exit code and the last lines of real output. A check it made by reading says so.
|
|
544
|
+
- **What it did not do.** Under Results the agent lists each thing the request asked or implied that it skipped, stubbed, left untested or only assumed, as **Not done**, or says there is nothing. A finished agent that has not said is shown as such.
|
|
545
|
+
- **Where you see it.** The agent's Results show **Not done** and a **Proof** row ("3 recorded runs, 1 by reading"). **Open** lists each check with its command and output. `agentmgr proof <agent>` prints the same.
|
|
546
|
+
- **Run it again.** **Run these again here** (or `agentmgr proof <agent> --run`) runs the recorded commands in the agent's folder, one after the other, and marks each **Same result** or **Different result** by its exit code. The command exits with 1 when one differs. If the agent changes its proof afterwards, the earlier run no longer counts.
|
|
547
|
+
- **What it feeds.** The review scorecard and the review when an agent finishes are given the proof as the agent's own record, and what the app saw when it ran the commands. A command that gave a different result caps the scorecard's tests score at 40. At "Run to merge" and on autopilot, a merge is left to you when the agent lists something as not done, or a recorded command gave a different result.
|
|
548
|
+
|
|
549
|
+
**What is not run again:** a command that changes things: deleting or moving files, committing or pushing, installing or publishing, deploying, reaching the network, writing to a file, or running as administrator. It is listed as "Not run again" with the reason. At most 12 commands are run, each for two minutes at most.
|
|
550
|
+
|
|
551
|
+
**Limits.** The record is written by the agent: until you run the commands again, it is still its word, now in a form you can check. Running them again happens on your computer with your rights and without the agent's permission prompts, which is why only you can ask for it (an agent's own call is refused) and why the commands are shown first; the list of what is not run is a filter on the command's text, not a sandbox, so read the commands. The same exit code does not prove the same output (durations and dates differ between runs; the page says when the last recorded line was not printed). An agent in a container cannot be run again from here. `"proof": false` in `config.json` stops asking agents for it.
|
|
552
|
+
|
|
553
|
+
## Pre-mortem: how could this go wrong?
|
|
554
|
+
|
|
555
|
+
Before it changes anything, each agent writes **Risks** in its brief: the 3 to 5 most likely ways this task could go wrong or be done wrongly, specific to the task. When it finishes it marks each one:
|
|
556
|
+
|
|
557
|
+
| Mark | Meaning |
|
|
558
|
+
| --- | --- |
|
|
559
|
+
| **Avoided** | with how it knows (the test or command) |
|
|
560
|
+
| **Happened** | with what, and what it did about it |
|
|
561
|
+
| **Not checked** | it named the risk and did not look |
|
|
562
|
+
|
|
563
|
+
- **Where you see it.** In the agent's Results, as **Risks it named before starting** ("3 avoided, 1 not checked"). The list is open when one happened or was not checked.
|
|
564
|
+
- **Why it helps.** The list is written before the work, so it is not shaped by what was built. It tells a reviewer where to look first, and a risk left "not checked" is a place nobody looked.
|
|
565
|
+
- **What it feeds.** The review scorecard is given the list and asked to check the ones not marked avoided against the changes. Risks that happened are noted under safety, ones not checked under tests.
|
|
566
|
+
- **Off:** `"premortem": false` in config.json.
|
|
567
|
+
|
|
568
|
+
**Limit.** The marks are the agent's word. "Avoided" with a command is as good as that command; [Proof](#proof-what-it-ran-and-what-it-did-not-do) lets you run it again.
|
|
569
|
+
|
|
570
|
+
## Test the tests: would they notice a mistake?
|
|
571
|
+
|
|
572
|
+
Proof shows the tests ran and passed. It does not show they could have failed. Tests written by the same agent as the code can pass while checking very little.
|
|
573
|
+
|
|
574
|
+
**Test the tests** answers that by measuring. The app takes the lines the agent changed and breaks them one at a time in a small way, runs the tests, and puts the line back:
|
|
575
|
+
|
|
576
|
+
| Kind of break | Example |
|
|
577
|
+
| --- | --- |
|
|
578
|
+
| Equal and not equal swapped | `===` becomes `!==` |
|
|
579
|
+
| A comparison turned around | `<=` becomes `>` |
|
|
580
|
+
| And / or swapped | `&&` becomes `\|\|` |
|
|
581
|
+
| True / false swapped | `true` becomes `false` |
|
|
582
|
+
| Plus / minus swapped | `total + fee` becomes `total - fee` |
|
|
583
|
+
| A number moved by one | `10` becomes `11` |
|
|
584
|
+
|
|
585
|
+
A break the tests fail on is **Caught**. A break they still pass on is **Not noticed**: that line can be wrong and no test will say so.
|
|
586
|
+
|
|
587
|
+
- **Where.** In the agent's **Proof** dialog, under **Test the tests**: **Break the code and run the tests**. Or `agentmgr test-tests <agent> --run`. The Results then show **Tests tested**, for example "5 of 6 breaks caught".
|
|
588
|
+
- **Which tests.** The passing commands the agent recorded in its proof, or the command you type (`-c "npm test"`).
|
|
589
|
+
- **Which lines.** Up to 8 (`--max`), spread over the changed source lines and over the kinds of break. Test files, comments, text inside strings, imports and logging lines are left alone.
|
|
590
|
+
- **Tell the agent.** **Tell the agent** (or `--send`) sends it the lines whose breaks went unnoticed and asks for tests that fail when they are wrong, or a reason why none should.
|
|
591
|
+
- **What it feeds.** The review scorecard is given the result. When no break was caught, its tests score is at most 35; when more than half went unnoticed, at most 55. A run made before the latest changes is not counted.
|
|
592
|
+
- **Exit code.** `agentmgr test-tests` exits with 1 when a break went unnoticed or the tests fail as they are.
|
|
593
|
+
|
|
594
|
+
**How the folder is kept safe.** The tests are run first with nothing changed; if they fail, nothing is broken. One line of one file is different at a time, and it is put back before the next. The line is written down before it is changed, so a daemon that stops halfway puts it back when it starts again. A run does not start while the agent is working, messages to the agent wait until the run is over, and typing to the agent stops the run. After the run the app compares the folder's changes with those before it and says so if they differ.
|
|
595
|
+
|
|
596
|
+
**Limits.**
|
|
597
|
+
|
|
598
|
+
- It runs on your computer with your rights, without the agent's permission prompts, and changes the agent's files for a moment. For that reason only you can ask for it; an agent's own call is refused.
|
|
599
|
+
- "Not noticed" is a pointer, not a verdict. Some breaks change nothing a test could see (a number in a timeout, two versions that behave the same). Read the line before asking for a test.
|
|
600
|
+
- "Caught" includes a break that stops the code from loading at all, which any test would notice. A high count shows the changed lines are exercised; it does not show every behaviour is checked.
|
|
601
|
+
- The breaks are made on the text of a line, not on a parsed program. They cover JavaScript, TypeScript, Python, Go, Ruby, Java, Kotlin, Rust, C, C++, C#, PHP, Swift and Scala.
|
|
602
|
+
- Each run of the tests may take 5 minutes at most, and a whole run 15 (`"testTheTests"` in config.json: `max`, `timeoutMs`, `budgetMs`). An agent in a container is not covered.
|
|
603
|
+
|
|
604
|
+
## Track record: was the confidence right?
|
|
605
|
+
|
|
606
|
+
An agent writes "Confidence: 85%" and the scorecard says "Ready to approve". The track record shows how much those were worth.
|
|
607
|
+
|
|
608
|
+
[Quality](#quality-what-happened-after-the-merge) already watches each merged pull request for some days: held up, or reverted, fixed afterwards, failed its checks. As a pull request merges, the app now also keeps what was said about it:
|
|
609
|
+
|
|
610
|
+
- the agent's own confidence,
|
|
611
|
+
- the review scorecard's recommendation,
|
|
612
|
+
- whether its tests were tested, and whether every break was caught,
|
|
613
|
+
- the engine and model,
|
|
614
|
+
- how far the agent ran without you.
|
|
615
|
+
|
|
616
|
+
**Quality → Track record**, or `agentmgr quality record`, compares the two once a pull request is settled:
|
|
617
|
+
|
|
618
|
+
| Table | Reads like |
|
|
619
|
+
| --- | --- |
|
|
620
|
+
| The agent's own confidence | "90 to 100%: 6 of 10 held up (60%), said 92% on average: said more than held up" |
|
|
621
|
+
| The review scorecard | "Ready to approve: 9 of 10 held up" |
|
|
622
|
+
| Tests tested | "every break caught: 6 of 6 held up" |
|
|
623
|
+
| Model | "claude · opus: 11 of 13 held up" |
|
|
624
|
+
| Without you | "Run to pull request: 4 of 5 held up" |
|
|
625
|
+
|
|
626
|
+
A row with fewer than 5 settled pull requests says "too few to say". "Said more than held up" means the average confidence was at least 15 points above the share that held.
|
|
627
|
+
|
|
628
|
+
### Earned autonomy: the level a project's record supports
|
|
629
|
+
|
|
630
|
+
The last table lists each project with the level of [Without you](#without-you-how-far-an-agent-goes-on-its-own) its new agents get, and what the record supports:
|
|
631
|
+
|
|
632
|
+
- **Up one step** after at least 5 settled pull requests, 9 in 10 held up, and none of the last 5 a problem. "Run to merge" needs 10, with 95% held up and all of the last 10.
|
|
633
|
+
- **Down one step** when one of the last 3 did not hold up.
|
|
634
|
+
- Otherwise, keep it.
|
|
635
|
+
|
|
636
|
+
It is a suggestion. The level changes only when you press **Set** or run `agentmgr autonomy --project <name> --default <level>`; an agent's own call is refused. A project's level applies to its new agents when none is named; agents that run now keep theirs. `--default default` takes the project's own level away again.
|
|
637
|
+
|
|
638
|
+
**Limits.** The record counts merged pull requests only: work that was thrown away before a merge is not in it. "Fixed afterwards" is Quality's guess from titles and files, so mark the ones it gets wrong there. A pull request merged before this version has what is said about its agent now, not as it merged. A project is matched by its name. Small numbers say little, which is why the app waits for 5.
|
|
639
|
+
|
|
536
640
|
## Insights
|
|
537
641
|
|
|
538
|
-
**Insights** in the Brief panel, or `agentmgr insights <agent>`, shows the agent's work as four cards built from its ask and live context:
|
|
642
|
+
**Insights** in the Brief panel, or `agentmgr insights <agent>`, shows the agent's work as four quick cards built from its ask and live context, followed by three cards for the decision in it:
|
|
539
643
|
|
|
540
644
|
| Card | Answers |
|
|
541
645
|
| --- | --- |
|
|
@@ -546,6 +650,67 @@ The number is the agent's own statement, not a measurement.
|
|
|
546
650
|
|
|
547
651
|
Each card has at most **three points of about 12 words each**, so they're easy to remember and repeat. Insights uses the same context and the same separate, tool-less Claude call as Explain, so the agent isn't interrupted. Use Insights for a quick glance and Explain for the full briefing.
|
|
548
652
|
|
|
653
|
+
### The decision side: value, kind of idea, and paths
|
|
654
|
+
|
|
655
|
+
Below the four cards, Insights adds three more, for the part of a design that is a decision:
|
|
656
|
+
|
|
657
|
+
| Card | Answers |
|
|
658
|
+
| --- | --- |
|
|
659
|
+
| ⚖️ **Value: now and later** | What the work is worth as soon as it ships, what it is worth over time, what waiting costs, and which of the two should drive the design |
|
|
660
|
+
| 💡 **Kind of idea** | Just a task, worth a white paper, or possibly patentable; what is new, and what to do next |
|
|
661
|
+
| 🧭 **Paths, preferred first** | The 2 to 4 real ways to go, ranked, each with its value now and later, cost, risk, and when it is the right pick |
|
|
662
|
+
|
|
663
|
+
**Now against later.** "Now" is what someone gains as soon as it ships. "Later" is what it makes possible, saves or avoids over time, counted lower the less sure it is. Each is rated high, medium or low with a one-line reason.
|
|
664
|
+
|
|
665
|
+
**How the paths are ranked.**
|
|
666
|
+
|
|
667
|
+
1. The most value for its cost comes first.
|
|
668
|
+
2. Between close ones, the one that is easier to undo.
|
|
669
|
+
3. A path worth more later than now comes first only when waiting costs little, or when the cheaper path would close that door.
|
|
670
|
+
|
|
671
|
+
The first path is marked **Preferred**, with the reason it wins. The others stay listed with the condition under which each becomes the right pick, so the ranking can change when your situation does.
|
|
672
|
+
|
|
673
|
+
**Kind of idea.**
|
|
674
|
+
|
|
675
|
+
| Kind | Means | Next |
|
|
676
|
+
| --- | --- | --- |
|
|
677
|
+
| Just a task | Ordinary work done in a known way. Most work. | Build it |
|
|
678
|
+
| Worth a white paper | The approach or the result would teach others something | Write it up, and for whom |
|
|
679
|
+
| Possibly patentable | A specific technical mechanism that seems new, not an obvious step, and useful. An idea, a goal or a business rule alone is not. | Keep it unpublished and talk to a patent attorney before sharing |
|
|
680
|
+
|
|
681
|
+
When unsure between two kinds, the lower one is given.
|
|
682
|
+
|
|
683
|
+
**While the agent designs.** Agents weigh the same things before they build. When a task has more than one reasonable way, the agent lists them in its brief under **Options**, preferred first, in the same form, and builds the first unless you say otherwise. Its Results show them as **Paths it weighed**. If part of its design seems new, it says so in one line and keeps it inside the repository; whether that is worth a paper or a patent is yours to decide. A task with one reasonable way has no Options section. `"valueLens": false` in config.json turns this off for agents.
|
|
684
|
+
|
|
685
|
+
### Kept private: possibly patentable work is not sent out
|
|
686
|
+
|
|
687
|
+
Publishing before filing can cost the right to a patent. So when part of an agent's work is read as possibly new, the app keeps it private until you say otherwise.
|
|
688
|
+
|
|
689
|
+
**What makes it private:**
|
|
690
|
+
|
|
691
|
+
- the agent says part of its design is new (the "New:" line under Options in its brief),
|
|
692
|
+
- Insights reads it as possibly patentable,
|
|
693
|
+
- or you mark it: **keep this work private** under Insights, or `agentmgr private <agent> --keep`.
|
|
694
|
+
|
|
695
|
+
**What is held**, each with the reason and how to lift it:
|
|
696
|
+
|
|
697
|
+
| Held | Where it would have gone |
|
|
698
|
+
| --- | --- |
|
|
699
|
+
| Publishing its documents | Google Drive |
|
|
700
|
+
| Publishing an update, or posting it | Google Drive, Slack |
|
|
701
|
+
| Posting the scorecard | A comment on the pull request |
|
|
702
|
+
| Opening the pull request | GitHub, also when the agent runs without you or on autopilot |
|
|
703
|
+
| A merge without you | Left to you |
|
|
704
|
+
|
|
705
|
+
The agent is told as well: nothing published outside the repository, no pull request, and its design doc stays a file.
|
|
706
|
+
|
|
707
|
+
**Lifting it** is yours alone: **Allow sharing** in the agent's Results, or `agentmgr private <agent> --allow`. An agent's own call is refused. `--reset` goes back to what the agent and Insights say. A white paper is not held.
|
|
708
|
+
|
|
709
|
+
**Limits.** This guards what the app sends. It does not stop an agent from running a command in its terminal that publishes something; the agent is instructed not to, and its permission prompts still apply. Work already pushed or published before it was marked stays where it is. It is a caution based on a first read, not a finding that anything is patentable: talk to a patent attorney.
|
|
710
|
+
|
|
711
|
+
**Limits.** The ratings are a model's judgement from the agent's request and session, not a calculation with your numbers. The kind of idea is a first read: no search for prior art is made, and it is not legal advice. Publishing before filing can cost the right to a patent, so treat "possibly patentable" as a reason to ask an attorney before you share, not as a finding.
|
|
712
|
+
|
|
713
|
+
|
|
549
714
|
## Review changes
|
|
550
715
|
|
|
551
716
|
**Review changes** on an agent opens its changes against where its branch started (the merge base with the branch it came from), new files included:
|
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -58,7 +58,9 @@ import { initFiles } from '/files.js';
|
|
|
58
58
|
import { initUpdateView, updateHtml, updateWaits } from '/announce.js';
|
|
59
59
|
import { morph } from '/morph.js';
|
|
60
60
|
import { acceptanceRow, acceptanceWaits, initAcceptance } from '/acceptance.js';
|
|
61
|
-
import { autoNeedHtml, autonomyNeeds, autonomyRow, initAutonomy } from '/autonomy.js';
|
|
61
|
+
import { autoNeedHtml, autonomyNeeds, autonomyRow, initAutonomy, needsPermissionHint } from '/autonomy.js';
|
|
62
|
+
import { initProof, proofRows } from '/proof.js';
|
|
63
|
+
import { kindHtml, optionsRows, parseKind, parsePaths, parseValue, pathsHtml, privateRow, valueHtml } from '/valuelens.js';
|
|
62
64
|
|
|
63
65
|
const $ = (sel) => document.querySelector(sel);
|
|
64
66
|
const agents = new Map();
|
|
@@ -193,10 +195,27 @@ async function act(fn, okMsg) {
|
|
|
193
195
|
|
|
194
196
|
const reviewUi = initReview({ api, esc, toast, agents, $ });
|
|
195
197
|
const acceptUi = initAcceptance({ dialog: $('#accept-dialog'), api, esc, toast, ago, agentOf: (id) => agents.get(id), upsert: (a) => upsert(a) });
|
|
198
|
+
const proofUi = initProof({ dialog: $('#proof-dialog'), api, esc, toast, ago, agentOf: (id) => agents.get(id) });
|
|
196
199
|
const autoUi = initAutonomy({ dialog: $('#auto-dialog'), api, esc, toast, ago, agentOf: (id) => agents.get(id), upsert: (a) => upsert(a) });
|
|
197
200
|
// Past "Ask me", what done means is agreed first: that is what the answers given for you are checked against.
|
|
201
|
+
// And a permission prompt is never answered for you: say so where the mode would stop it at each one.
|
|
202
|
+
function syncAutonomyPerm() {
|
|
203
|
+
const f = $('#new-autonomy')?.form;
|
|
204
|
+
const hint = $('#new-autonomy-perm');
|
|
205
|
+
if (!f || !hint) return;
|
|
206
|
+
hint.hidden = !needsPermissionHint(f.autonomy.value, f.permissionMode?.value);
|
|
207
|
+
}
|
|
198
208
|
$('#new-autonomy')?.addEventListener('change', (e) => {
|
|
199
209
|
if (['run', 'pr', 'merge'].includes(e.target.value) && e.target.form?.acceptance) e.target.form.acceptance.checked = true;
|
|
210
|
+
syncAutonomyPerm();
|
|
211
|
+
});
|
|
212
|
+
$('#new-autonomy')?.form?.permissionMode?.addEventListener('change', syncAutonomyPerm);
|
|
213
|
+
$('#new-autonomy')?.form?.addEventListener('reset', () => setTimeout(syncAutonomyPerm));
|
|
214
|
+
$('#new-autonomy-auto')?.addEventListener('click', () => {
|
|
215
|
+
const f = $('#new-autonomy').form;
|
|
216
|
+
f.permissionMode.value = 'auto';
|
|
217
|
+
syncAutonomyPerm();
|
|
218
|
+
toast('Permission mode: Auto');
|
|
200
219
|
});
|
|
201
220
|
const triggersUi = initTriggers({ api, esc, toast, $ });
|
|
202
221
|
initSpend({ api, esc, toast, $ });
|
|
@@ -643,6 +662,8 @@ function reviewBox(a) {
|
|
|
643
662
|
}
|
|
644
663
|
|
|
645
664
|
const INSIGHT_ICONS = { why: '🎯', what: '📦', how: '🛠', now: '📍' };
|
|
665
|
+
// The decision side of Insights (valuelens.js): worth now against later, the kind of idea, the ways ranked.
|
|
666
|
+
const INSIGHT_WIDE = { value: ['⚖️', 'Value: now and later'], kind: ['💡', 'Kind of idea'], paths: ['🧭', 'Paths, preferred first'] };
|
|
646
667
|
|
|
647
668
|
// ------------------------------------------------------------------ stakeholder documents
|
|
648
669
|
|
|
@@ -1037,14 +1058,17 @@ bindListen((id) => {
|
|
|
1037
1058
|
function insightsBox(a) {
|
|
1038
1059
|
const ins = a.insights;
|
|
1039
1060
|
const button = `<button class="small ${ins?.markdown ? '' : 'primary'}" data-act="insights" ${ins?.pending ? 'disabled' : ''}
|
|
1040
|
-
title="Why, What, How and Now in three memorable points each,
|
|
1061
|
+
title="Why, What, How and Now in three memorable points each; then what it is worth now against later, what kind of idea it is, and the ways to go ranked. From the agent's ask and live session (a separate one-off Claude call)">${ins?.pending ? 'Thinking…' : ins?.markdown ? 'Refresh insights' : 'Insights'}</button>`;
|
|
1041
1062
|
if (!ins?.markdown && !ins?.error) return { button, box: '' };
|
|
1042
1063
|
const sections = {};
|
|
1064
|
+
const wide = {};
|
|
1043
1065
|
for (const part of (ins.markdown ?? '').split(/^###\s+/m).slice(1)) {
|
|
1044
1066
|
const [head, ...rest] = part.split('\n');
|
|
1045
1067
|
const key = head.trim().toLowerCase().replace(/[^a-z]/g, '');
|
|
1046
1068
|
if (INSIGHT_ICONS[key]) sections[key] = rest.join('\n').trim();
|
|
1069
|
+
if (INSIGHT_WIDE[key]) wide[key] = rest.join('\n').trim();
|
|
1047
1070
|
}
|
|
1071
|
+
const lens = { value: valueHtml(parseValue(wide.value), esc), kind: kindHtml(parseKind(wide.kind), esc), paths: pathsHtml(parsePaths(wide.paths), esc) };
|
|
1048
1072
|
const stale = ins.markdown && a.brief?.updatedAt && ins.briefUpdatedAt !== a.brief.updatedAt;
|
|
1049
1073
|
const box = `<div class="insights">
|
|
1050
1074
|
${ins.error ? `<p class="error">Couldn't get insights: ${esc(ins.error)}</p>` : ''}
|
|
@@ -1052,7 +1076,14 @@ function insightsBox(a) {
|
|
|
1052
1076
|
? Object.keys(sections).length
|
|
1053
1077
|
? `<div class="insight-grid">${Object.keys(INSIGHT_ICONS)
|
|
1054
1078
|
.map((k) => `<section class="insight ${k}"><h4>${INSIGHT_ICONS[k]} ${k[0].toUpperCase()}${k.slice(1)}</h4><div class="md">${md(sections[k] || 'Unclear yet')}</div></section>`)
|
|
1055
|
-
.join('')}</div
|
|
1079
|
+
.join('')}</div>${
|
|
1080
|
+
Object.keys(INSIGHT_WIDE).some((k) => wide[k])
|
|
1081
|
+
? `<div class="insight-grid insight-wide">${Object.keys(INSIGHT_WIDE)
|
|
1082
|
+
.filter((k) => wide[k])
|
|
1083
|
+
.map((k) => `<section class="insight ${k}"><h4>${INSIGHT_WIDE[k][0]} ${INSIGHT_WIDE[k][1]}</h4>${lens[k] || `<div class="md">${md(wide[k])}</div>`}</section>`)
|
|
1084
|
+
.join('')}</div>${a.keptPrivate ? '' : '<p class="hint">If this may be worth protecting, <button class="link" data-act="idea-keep" title="The app then publishes and sends nothing of it until you allow it, and the agent is told">keep this work private</button>.</p>'}`
|
|
1085
|
+
: ''
|
|
1086
|
+
}`
|
|
1056
1087
|
: `<div class="md">${md(ins.markdown)}</div>`
|
|
1057
1088
|
: ''}
|
|
1058
1089
|
${ins.markdown ? `<p class="hint">${stale ? 'The brief has changed since; refresh for the latest. · ' : ''}From ${ago(ins.at)}.</p>` : ''}
|
|
@@ -1085,6 +1116,9 @@ function resultsCard(a) {
|
|
|
1085
1116
|
${scoreStrip(a)}
|
|
1086
1117
|
${r.confidence ? `<p class="own-conf"><span class="tag conf-${esc(r.confidence.level)}" title="The agent's own confidence in what it built, as it wrote it in its brief. The review scorecard is the separate check.">Its own confidence: ${r.confidence.percent}%</span> ${esc(r.confidence.why)}</p>` : r.fromAgent && ['done', 'partial'].includes(r.outcome) ? '<p class="hint own-conf">The agent has not said how confident it is in this.</p>' : ''}
|
|
1087
1118
|
${r.blockers.length ? `<ul class="blockers">${r.blockers.map((x) => item(x, 'blocker')).join('')}</ul>` : ''}
|
|
1119
|
+
${privateRow(a, esc)}
|
|
1120
|
+
${optionsRows(a, esc)}
|
|
1121
|
+
${proofRows(a, esc)}
|
|
1088
1122
|
${r.delivered.length ? `<ul class="delivered">${r.delivered.map((x) => item(x, 'delivered')).join('')}</ul>` : '<p class="hint">Nothing delivered yet.</p>'}
|
|
1089
1123
|
${r.notes ? `<div class="md">${md(r.notes)}</div>` : ''}
|
|
1090
1124
|
</div>`;
|
|
@@ -1698,7 +1732,7 @@ function needCard(it, { inDetail = false } = {}) {
|
|
|
1698
1732
|
const p = a.runtime.prompt;
|
|
1699
1733
|
body = `${p?.tool ? `<p class="need-title">${toolLine(p.tool)}</p><p class="hint">${esc(p.question || a.runtime.attention)}</p>` : `<p class="need-title">${esc(p?.question || a.runtime.attention)}</p>`}
|
|
1700
1734
|
<div class="need-actions">
|
|
1701
|
-
${(p?.choices ?? []).map((c) => `<button class="small ${c.key === '1' ? 'primary' : ''}" data-ib="key" data-key="${c.key}">${c.key}. ${esc(c.label)}</button>`).join('')}
|
|
1735
|
+
${(p?.choices ?? []).map((c) => `<button class="small ${c.key === '1' ? 'primary' : ''}" data-ib="key" data-key="${c.key}"${c.hint ? ` title="${esc(c.hint)}"` : ''}>${c.key}. ${esc(c.label)}</button>`).join('')}
|
|
1702
1736
|
<button class="small" data-ib="key" data-key="esc" title="Escape">Esc</button>
|
|
1703
1737
|
<button class="small ghost" data-ib="terminal">Open terminal</button>
|
|
1704
1738
|
</div>`;
|
|
@@ -3986,6 +4020,7 @@ function agentChanged(a) {
|
|
|
3986
4020
|
reviewUi.agentChanged(a);
|
|
3987
4021
|
acceptUi.agentChanged(a);
|
|
3988
4022
|
autoUi.agentChanged(a);
|
|
4023
|
+
proofUi.agentChanged(a);
|
|
3989
4024
|
sidePane?.agentChanged(a);
|
|
3990
4025
|
}
|
|
3991
4026
|
|
|
@@ -4179,6 +4214,15 @@ $('#detail-body').addEventListener('click', async (e) => {
|
|
|
4179
4214
|
return openPlan(a.id);
|
|
4180
4215
|
case 'accept-open':
|
|
4181
4216
|
return acceptUi.open(a.id);
|
|
4217
|
+
case 'idea-allow':
|
|
4218
|
+
case 'idea-keep':
|
|
4219
|
+
case 'idea-reset':
|
|
4220
|
+
return act(async () => {
|
|
4221
|
+
upsert(await api('POST', `/agents/${a.id}/private`, { private: btn.dataset.act === 'idea-keep' ? true : btn.dataset.act === 'idea-allow' ? false : null }));
|
|
4222
|
+
toast(btn.dataset.act === 'idea-allow' ? 'Sharing allowed' : btn.dataset.act === 'idea-keep' ? 'Kept private: nothing of it is published or sent' : 'Back to what was read');
|
|
4223
|
+
});
|
|
4224
|
+
case 'proof-open':
|
|
4225
|
+
return proofUi.open(a.id);
|
|
4182
4226
|
case 'auto-open':
|
|
4183
4227
|
return autoUi.open(a.id);
|
|
4184
4228
|
case 'accept-skip':
|
package/public/autonomy.js
CHANGED
|
@@ -12,6 +12,9 @@ export const LEVEL_HINT = {
|
|
|
12
12
|
};
|
|
13
13
|
const KIND = { answer: 'Answered', left: 'Left for you', nudge: 'Nudged', followup: 'Told to carry on', plan: 'Plan decided', merge: 'Merged' };
|
|
14
14
|
|
|
15
|
+
/** Whether to say that permission prompts still stop it: past "Ask me", in a mode that asks for each one. */
|
|
16
|
+
export const needsPermissionHint = (level, mode) => ['run', 'pr', 'merge'].includes(level) && !['auto', 'bypassPermissions'].includes(mode || '');
|
|
17
|
+
|
|
15
18
|
export const levelOf = (a) => (LEVELS.includes(a.autonomy?.level) ? a.autonomy.level : 'ask');
|
|
16
19
|
|
|
17
20
|
/** "2 answered, 1 nudge, 1 left for you". */
|
|
@@ -85,6 +88,7 @@ export function initAutonomy({ dialog, api, esc, toast, ago, agentOf, upsert })
|
|
|
85
88
|
</label>
|
|
86
89
|
<p class="hint">${LEVEL_HINT[level]}</p>
|
|
87
90
|
<p class="hint">Never done for you: answering a permission prompt, or a question about deleting, publishing, money, credentials or the scope of the task.</p>
|
|
91
|
+
${needsPermissionHint(level, a.permissionMode) ? '<p class="hint auto-perm">It still stops at each permission prompt, and waits for you in the inbox. To be stopped less, set its Permission mode to Auto (Edit agent; from its next launch), where Claude Code approves what it judges safe.</p>' : ''}
|
|
88
92
|
${st.hold && !st.hold.ack && level === 'merge' ? `<p class="auto-hold"><b>Not merged:</b> ${esc(st.hold.note)} <button type="button" class="small" data-auto="ok" data-entry="hold">OK</button></p>` : ''}
|
|
89
93
|
${log.length ? `<h4>Done for you</h4><ul class="auto-log">${log.map(entry).join('')}</ul>` : level === 'ask' ? '' : '<p class="hint">Nothing was done for you yet.</p>'}`;
|
|
90
94
|
}
|
package/public/groups.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
// The layout and what each group shows are kept per browser.
|
|
8
8
|
|
|
9
9
|
import { termFont } from '/termfont.js';
|
|
10
|
+
import { touchScroll } from '/touchscroll.js';
|
|
10
11
|
|
|
11
12
|
const SAVED = 'agentmgr.groups';
|
|
12
13
|
const MAX_GROUPS = 6;
|
|
@@ -157,6 +158,7 @@ export function initGroups({ $, esc, agents, Terminal, FitAddon, openStream, api
|
|
|
157
158
|
if (!p.el.isConnected) return;
|
|
158
159
|
if (!p.opened) {
|
|
159
160
|
p.xterm.open(p.el.querySelector('.gterm'));
|
|
161
|
+
touchScroll(p.el.querySelector('.gterm'), p.xterm);
|
|
160
162
|
p.opened = true;
|
|
161
163
|
}
|
|
162
164
|
p.failed = false;
|
package/public/index.html
CHANGED
|
@@ -335,6 +335,7 @@
|
|
|
335
335
|
<option value="merge">Run to merge</option>
|
|
336
336
|
</select>
|
|
337
337
|
</label>
|
|
338
|
+
<p class="hint auto-perm" id="new-autonomy-perm" hidden>It still stops at each permission prompt (running a command, reading outside the project): those are never answered for you. To be stopped less, choose Permission mode <b>Auto</b> under More options, where Claude Code approves what it judges safe. <button type="button" class="small" id="new-autonomy-auto">Use Auto</button></p>
|
|
338
339
|
<label class="check">
|
|
339
340
|
<input type="checkbox" name="planReview" />
|
|
340
341
|
Review the implementation plan first <span class="hint">(the agent writes a plan and waits for your approval before changing anything)</span>
|
|
@@ -950,6 +951,12 @@
|
|
|
950
951
|
<div class="dialog-actions"><button type="button" class="small primary" data-auto="close">Close</button></div>
|
|
951
952
|
</dialog>
|
|
952
953
|
|
|
954
|
+
<dialog id="proof-dialog" class="update-dialog proof-dialog" aria-label="Proof">
|
|
955
|
+
<h2 id="proof-title">Proof</h2>
|
|
956
|
+
<div id="proof-body"></div>
|
|
957
|
+
<div class="dialog-actions"><button type="button" class="small" data-proof="run" hidden>Run again here</button><span class="spacer"></span><button type="button" class="small primary" data-proof="close">Close</button></div>
|
|
958
|
+
</dialog>
|
|
959
|
+
|
|
953
960
|
<dialog id="update-dialog" class="update-dialog" aria-label="Update">
|
|
954
961
|
<h2 id="update-title">Update</h2>
|
|
955
962
|
<div id="update-body"></div>
|
package/public/machine.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { openStream } from '/transport.js';
|
|
5
5
|
import { openCopy, pasteInto } from '/termclip.js';
|
|
6
6
|
import { termFont } from '/termfont.js';
|
|
7
|
+
import { touchScroll } from '/touchscroll.js';
|
|
7
8
|
|
|
8
9
|
const MACHINE = '__machine__';
|
|
9
10
|
|
|
@@ -22,6 +23,7 @@ export function initMachine({ api, esc, toast, $, Terminal, FitAddon }) {
|
|
|
22
23
|
fit = new FitAddon();
|
|
23
24
|
xterm.loadAddon(fit);
|
|
24
25
|
xterm.open($('#machine-term'));
|
|
26
|
+
touchScroll($('#machine-term'), xterm);
|
|
25
27
|
// Answers xterm gives to queries in the replayed backlog are stale; don't send them as typing.
|
|
26
28
|
xterm.onData((d) => !replaying && conn?.send({ t: 'i', d }));
|
|
27
29
|
xterm.onResize(({ cols, rows }) => conn?.send({ t: 'r', cols, rows }));
|