ai-agentmanager 1.56.0 → 1.56.1
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 +5 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/public/app.js +26 -18
- package/public/index.html +9 -0
- package/public/menu.js +24 -0
- package/public/style.css +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.56.1 (2026-11-17)
|
|
4
|
+
|
|
5
|
+
- **Review rounds and the AI judge are easier to find.** Their switches were two lines under the inbox cards. They are now one short row at the top of the inbox, each with its Turn on / Turn off button and the explanation in its tooltip, and a link to Settings.
|
|
6
|
+
- **☰ → Settings → Review and judging** is new: the review rounds switch, the number of rounds (1 to 5) and critics (1 to 3), whether the pull request opens when the critics approve, and the AI judge switch. The numbers could only be changed with `agentmgr rounds` or in config.json before.
|
|
7
|
+
|
|
3
8
|
## 1.56.0 (2026-11-17)
|
|
4
9
|
|
|
5
10
|
- **Review rounds before a pull request.** A pull request's reviewers, people or GitHub Copilot, should not be the ones who find the bugs. When an agent says it is done, critics on other models read its changes in the background and report what is wrong or missing: wrong results and missed cases, error handling, behavior callers relied on, security, missing tests, and what the task asked for that isn't there. The findings go to the agent's session as one message, it fixes them and says done again, and the critics look again, until no blocker or major finding is open or the rounds run out (4 by default, 5 at most).
|
package/README.md
CHANGED
|
@@ -464,7 +464,7 @@ Minor findings and nits are passed to the agent but do not hold the pull request
|
|
|
464
464
|
|
|
465
465
|
The agent's detail shows the rounds as they go: the round, each critic's verdict, and every finding with whether it is dealt with. **Review rounds** there starts them by hand, also with the switch off. From the command line: `agentmgr rounds <agent>` (`--start`, `--again`, `--open`, `--stop`).
|
|
466
466
|
|
|
467
|
-
- **The switch** is the
|
|
467
|
+
- **The switch** is at the top of the inbox, and in ☰ → Settings → Review and judging with the number of rounds and critics; or `agentmgr rounds --on|--off`. It is on by default.
|
|
468
468
|
- **Rounds and critics:** `agentmgr rounds --rounds 5 --critics 3`. A critic that fails in a round is replaced by the next model.
|
|
469
469
|
- **Other providers, if you have them.** A different provider catches different mistakes. To use one, name the critics yourself in config.json: `"preReview": { "models": [{ "engine": "codex" }, { "engine": "claude", "model": "opus" }] }`. They come first, and an engine that isn't installed is left out.
|
|
470
470
|
- **Engines other than Claude Code.** The app knows Claude Code's model names. For another engine, say which of its models review: `"engines": { "codex": { "reviewModels": ["…", "…"] } }`. Without that, one critic reads each round, on the model the engine is set up with. An agent on a local model or an ACP agent is read by the engine that writes its summaries (Claude Code); with none installed, it has no review rounds.
|
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -1749,7 +1749,7 @@ document.addEventListener('input', (e) => {
|
|
|
1749
1749
|
if (e.target.dataset?.draft) needDrafts.set(e.target.dataset.draft, e.target.value);
|
|
1750
1750
|
});
|
|
1751
1751
|
|
|
1752
|
-
/** The AI judge's state for the
|
|
1752
|
+
/** The AI judge's state for the switch at the top of the inbox: it spends calls on the user's own plan. */
|
|
1753
1753
|
let judgeStatus = null;
|
|
1754
1754
|
async function loadJudge() {
|
|
1755
1755
|
try {
|
|
@@ -1763,22 +1763,28 @@ async function loadJudge() {
|
|
|
1763
1763
|
|
|
1764
1764
|
/** Review rounds before a pull request (prereview.js): the switch, with what a round costs. */
|
|
1765
1765
|
let roundsStatus = null;
|
|
1766
|
-
|
|
1766
|
+
// Settings saved them: the switches show the new state.
|
|
1767
|
+
document.addEventListener('agentmgr:review-settings', () => loadJudge());
|
|
1768
|
+
/**
|
|
1769
|
+
* The switches at the top of the inbox: review rounds and the AI judge, each with what it costs
|
|
1770
|
+
* (the whole of it in the tooltip). The numbers are in Settings.
|
|
1771
|
+
*/
|
|
1772
|
+
function inboxSwitches() {
|
|
1767
1773
|
const r = roundsStatus;
|
|
1768
|
-
if (!r) return '';
|
|
1769
|
-
const text = r.enabled
|
|
1770
|
-
? `🔎 Review rounds on: when an agent says it is done, ${r.critics} ${r.critics === 1 ? 'critic' : 'critics'} on other models read its changes, it fixes what they find, and they look again (up to ${r.rounds} rounds). ${r.openPr ? 'The pull request is opened when they approve.' : ''} Each round is ${r.critics === 1 ? 'a call' : `${r.critics} calls`} on your own plan.`
|
|
1771
|
-
: '🔎 Review rounds off: changes are not reviewed by other models before a pull request.';
|
|
1772
|
-
return `<p class="judge-line hint">${esc(text)} <button class="small ghost" data-rounds="${r.enabled ? 'off' : 'on'}">${r.enabled ? 'Turn off' : 'Turn on'}</button></p>`;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
function judgeLine() {
|
|
1776
1774
|
const j = judgeStatus;
|
|
1777
|
-
if (!j) return '';
|
|
1778
|
-
const text =
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1775
|
+
if (!r && !j) return '';
|
|
1776
|
+
const one = (key, on, text, title) => `<span class="inbox-switch ${on ? '' : 'off'}" title="${esc(title)}">${esc(text)} <button class="small ghost" data-${key}="${on ? 'off' : 'on'}">${on ? 'Turn off' : 'Turn on'}</button></span>`;
|
|
1777
|
+
const rounds = !r
|
|
1778
|
+
? ''
|
|
1779
|
+
: r.enabled
|
|
1780
|
+
? one('rounds', true, `🔎 Review rounds on · ${r.critics} ${r.critics === 1 ? 'critic' : 'critics'}, up to ${r.rounds} ${r.rounds === 1 ? 'round' : 'rounds'}`, `When an agent says it is done, ${r.critics} ${r.critics === 1 ? 'critic' : 'critics'} on other models read its changes, it fixes what they find, and they look again (up to ${r.rounds} rounds). ${r.openPr ? 'The pull request is opened when they approve. ' : ''}Each round is ${r.critics === 1 ? 'a call' : `${r.critics} calls`} on your own plan.`)
|
|
1781
|
+
: one('rounds', false, '🔎 Review rounds off', 'Changes are not reviewed by other models before a pull request.');
|
|
1782
|
+
const judge = !j
|
|
1783
|
+
? ''
|
|
1784
|
+
: j.enabled
|
|
1785
|
+
? one('judge', true, `🤖 AI judge on · ${j.calls} of ${j.cap} calls today`, 'On your own Claude or Codex plan. It checks stuck agents, idle screens, finished work, overlaps, backlog order and alerts.')
|
|
1786
|
+
: one('judge', false, '🤖 AI judge off', 'Stuck agents, idle screens and alerts use fixed rules only.');
|
|
1787
|
+
return `<div class="inbox-switches hint">${rounds}${judge}<button class="link" data-inbox-settings title="Rounds, critics and the pull request: in Settings">Settings…</button></div>`;
|
|
1782
1788
|
}
|
|
1783
1789
|
|
|
1784
1790
|
function renderInbox() {
|
|
@@ -1791,15 +1797,17 @@ function renderInbox() {
|
|
|
1791
1797
|
if (view.contains(document.activeElement) && document.activeElement.dataset.draft) return; // don't yank the field being typed in
|
|
1792
1798
|
morph(
|
|
1793
1799
|
view,
|
|
1794
|
-
(
|
|
1795
|
-
|
|
1796
|
-
|
|
1800
|
+
inboxSwitches() +
|
|
1801
|
+
(items.length
|
|
1802
|
+
? `<div class="counts"><span>${items.length} waiting on you</span></div><div class="needs inbox">${promptGroups(items).map(groupCard).join('')}${items.map((it) => needCard(it)).join('')}</div>`
|
|
1803
|
+
: `<div class="empty"><p>Nothing needs you right now.</p><p>Prompts waiting for an answer, questions agents ask, agents that seem stuck and agents editing the same files show up here.</p></div>`),
|
|
1797
1804
|
);
|
|
1798
1805
|
}
|
|
1799
1806
|
|
|
1800
1807
|
async function onNeed(e) {
|
|
1801
1808
|
// A recommendation's own buttons (Decide draws them on plan and question cards).
|
|
1802
1809
|
if (decideUi?.handle(e)) return e.preventDefault();
|
|
1810
|
+
if (e.target.closest('[data-inbox-settings]')) return $('#settings-btn').click();
|
|
1803
1811
|
const judge = e.target.closest('[data-judge]');
|
|
1804
1812
|
if (judge) {
|
|
1805
1813
|
e.preventDefault();
|
package/public/index.html
CHANGED
|
@@ -954,6 +954,15 @@
|
|
|
954
954
|
<ul id="settings-rules-list" class="rules-list"></ul>
|
|
955
955
|
<p class="hint" id="settings-rules-readonly"></p>
|
|
956
956
|
</fieldset>
|
|
957
|
+
<fieldset id="settings-review">
|
|
958
|
+
<legend>Review and judging</legend>
|
|
959
|
+
<label class="check"><input type="checkbox" name="roundsOn" /> Review rounds: other models review an agent's changes before a pull request</label>
|
|
960
|
+
<label class="check">Up to <input type="number" name="roundsMax" min="1" max="5" class="num" /> rounds, with <input type="number" name="roundsCritics" min="1" max="3" class="num" /> critics each round</label>
|
|
961
|
+
<label class="check"><input type="checkbox" name="roundsPr" /> Open the pull request when the critics approve</label>
|
|
962
|
+
<p class="hint">When an agent says it is done, the critics (other models of the agent's own engine) read its changes, it fixes what they find, and they look again. Each round is one call per critic on your own plan. <span id="settings-review-state"></span></p>
|
|
963
|
+
<label class="check"><input type="checkbox" name="judgeOn" /> AI judge: checks stuck agents, idle screens, finished work, overlaps, backlog order and alerts</label>
|
|
964
|
+
<p class="hint">On your own Claude or Codex plan; without it, fixed rules only. <span id="settings-judge-state"></span></p>
|
|
965
|
+
</fieldset>
|
|
957
966
|
<fieldset class="local-only" id="settings-service">
|
|
958
967
|
<legend>Start at login</legend>
|
|
959
968
|
<label class="check"><input type="checkbox" name="startAtLogin" /> Start AI Agent Manager when I log in</label>
|
package/public/menu.js
CHANGED
|
@@ -57,6 +57,8 @@ export function initMenu({ api, esc, toast, $ }) {
|
|
|
57
57
|
let jira = null; // the Jira settings as the dialog opened
|
|
58
58
|
let containers = null; // Docker and the agent image as the dialog opened
|
|
59
59
|
let features = null; // what you use, and who you are, as the dialog opened
|
|
60
|
+
let rounds = null; // review rounds as the dialog opened
|
|
61
|
+
let judge = null; // the AI judge as the dialog opened
|
|
60
62
|
const FEATURE_KEYS = ['jira', 'slack', 'gemini'];
|
|
61
63
|
function showContainers() {
|
|
62
64
|
const c = containers;
|
|
@@ -100,6 +102,20 @@ export function initMenu({ api, esc, toast, $ }) {
|
|
|
100
102
|
$('#settings-features').hidden = !features;
|
|
101
103
|
for (const k of FEATURE_KEYS) form[`feat_${k}`].checked = features?.features?.[k] !== false;
|
|
102
104
|
form.me.value = features?.me ?? '';
|
|
105
|
+
rounds = await api('GET', '/prereview').catch(() => null);
|
|
106
|
+
judge = await api('GET', '/judge').catch(() => null);
|
|
107
|
+
$('#settings-review').hidden = !rounds && !judge;
|
|
108
|
+
for (const k of ['roundsOn', 'roundsMax', 'roundsCritics', 'roundsPr']) form[k].closest('label').hidden = !rounds;
|
|
109
|
+
form.roundsOn.checked = Boolean(rounds?.enabled);
|
|
110
|
+
form.roundsMax.value = rounds?.rounds ?? '';
|
|
111
|
+
form.roundsMax.max = rounds?.maxRounds ?? 5;
|
|
112
|
+
form.roundsCritics.value = rounds?.critics ?? '';
|
|
113
|
+
form.roundsCritics.max = rounds?.maxCritics ?? 3;
|
|
114
|
+
form.roundsPr.checked = Boolean(rounds?.openPr);
|
|
115
|
+
$('#settings-review-state').textContent = rounds ? `Can review here: ${rounds.engines.map((e) => e.label).join(', ') || 'no engine (install Claude Code or Codex)'}.` : '';
|
|
116
|
+
form.judgeOn.closest('label').hidden = !judge;
|
|
117
|
+
form.judgeOn.checked = Boolean(judge?.enabled);
|
|
118
|
+
$('#settings-judge-state').textContent = judge?.enabled ? `${judge.calls} of ${judge.cap} calls today.` : '';
|
|
103
119
|
const u = await api('GET', '/update').catch(() => null);
|
|
104
120
|
form.updateCheck.checked = u?.check !== false;
|
|
105
121
|
if (!remote()) {
|
|
@@ -184,6 +200,14 @@ export function initMenu({ api, esc, toast, $ }) {
|
|
|
184
200
|
document.dispatchEvent(new CustomEvent('agentmgr:features', { detail: r.features }));
|
|
185
201
|
}
|
|
186
202
|
}
|
|
203
|
+
// Only what changed: each is kept in config.json.
|
|
204
|
+
if (rounds) {
|
|
205
|
+
const want = { enabled: form.roundsOn.checked, rounds: Number(form.roundsMax.value), critics: Number(form.roundsCritics.value), openPr: form.roundsPr.checked };
|
|
206
|
+
const changed = Object.fromEntries(Object.entries(want).filter(([k, v]) => v !== rounds[k]));
|
|
207
|
+
if (Object.keys(changed).length) rounds = await api('PUT', '/prereview', changed);
|
|
208
|
+
}
|
|
209
|
+
if (judge && form.judgeOn.checked !== Boolean(judge.enabled)) judge = await api('PUT', '/judge', { enabled: form.judgeOn.checked });
|
|
210
|
+
document.dispatchEvent(new CustomEvent('agentmgr:review-settings'));
|
|
187
211
|
if (!remote() && jira && (form.jiraSite.value.trim() !== (jira.site ?? '') || form.jiraEmail.value.trim() !== (jira.email ?? '') || form.jiraToken.value.trim())) {
|
|
188
212
|
const j = await api('PUT', '/jira', { site: form.jiraSite.value.trim(), email: form.jiraEmail.value.trim(), token: form.jiraToken.value.trim() || undefined });
|
|
189
213
|
toast(j.problem ? `Jira saved, but it doesn't work yet: ${j.problem}` : j.assigned !== null && j.assigned !== undefined ? `Jira works: ${j.assigned} open issue${j.assigned === 1 ? '' : 's'} assigned to you` : 'Jira saved', j.problem ? 10_000 : 4000);
|
package/public/style.css
CHANGED
|
@@ -714,7 +714,9 @@ pre.diff .meta { color: var(--muted); font-weight: 600; }
|
|
|
714
714
|
#import-dialog .import-main .tag { align-self: flex-start; }
|
|
715
715
|
#import-dialog .import-foot label { display: flex; flex-direction: row; align-items: center; gap: 6px; }
|
|
716
716
|
#import-dialog .import-foot input { width: auto; }
|
|
717
|
-
.
|
|
717
|
+
.inbox-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
|
|
718
|
+
.inbox-switch.off { opacity: 0.75; }
|
|
719
|
+
.inbox-switches > .link { margin-left: auto; }
|
|
718
720
|
|
|
719
721
|
.agent-list li.agent.idle { opacity: .62; }
|
|
720
722
|
.agent-list li.agent.idle:hover, .agent-list li.agent.idle.selected { opacity: 1; }
|