tr-plugin-meta-harness 0.3.0 → 0.5.26

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.
Files changed (94) hide show
  1. package/DESIGN.md +86 -0
  2. package/README.md +257 -11
  3. package/capability/BRICK.md +1 -1
  4. package/capability/index.mjs +154 -13
  5. package/cli.mjs +426 -41
  6. package/package.json +15 -3
  7. package/plugin.json +1457 -119
  8. package/skills/meta-harness/SKILL.md +63 -25
  9. package/src/adoption.mjs +102 -0
  10. package/src/agent-user.mjs +194 -0
  11. package/src/alerts.mjs +220 -14
  12. package/src/cascade.mjs +185 -0
  13. package/src/chat.mjs +80 -0
  14. package/src/codex-models.mjs +54 -0
  15. package/src/compat-harness.mjs +114 -0
  16. package/src/control.mjs +145 -0
  17. package/src/coordinator.mjs +267 -358
  18. package/src/dispatch-request.mjs +76 -0
  19. package/src/dispatch.mjs +119 -0
  20. package/src/documentation-authority.mjs +57 -0
  21. package/src/documentation.mjs +120 -32
  22. package/src/executor.mjs +101 -22
  23. package/src/gate-adapters/agy.mjs +155 -0
  24. package/src/gate-adapters/claude.mjs +303 -0
  25. package/src/gate-adapters/cline.mjs +111 -0
  26. package/src/gate-adapters/codex.mjs +164 -0
  27. package/src/gate-adapters/cursor.mjs +164 -0
  28. package/src/gate-adapters/devin.mjs +116 -0
  29. package/src/gate-adapters/dsh.mjs +284 -0
  30. package/src/gate-adapters/grok.mjs +112 -0
  31. package/src/gate-adapters/hermes.mjs +217 -0
  32. package/src/gate-adapters/hook-files.mjs +156 -0
  33. package/src/gate-adapters/index.mjs +131 -0
  34. package/src/gate-adapters/openclaw-plugin/gate-client.js +205 -0
  35. package/src/gate-adapters/openclaw-plugin/index.js +25 -0
  36. package/src/gate-adapters/openclaw-plugin/openclaw.plugin.json +9 -0
  37. package/src/gate-adapters/openclaw-plugin/package.json +15 -0
  38. package/src/gate-adapters/openclaw.mjs +288 -0
  39. package/src/gate-adapters/pi.mjs +146 -0
  40. package/src/gate.mjs +18 -0
  41. package/src/harness-updates.mjs +170 -0
  42. package/src/included-usage.mjs +344 -0
  43. package/src/jobs.mjs +135 -0
  44. package/src/json-reply.mjs +22 -0
  45. package/src/learner.mjs +97 -67
  46. package/src/maintenance.mjs +18 -0
  47. package/src/mcp-server.mjs +228 -0
  48. package/src/model-catalog.mjs +195 -0
  49. package/src/model-selection.mjs +67 -0
  50. package/src/paths.mjs +23 -0
  51. package/src/pool.mjs +69 -0
  52. package/src/process-manager.mjs +246 -0
  53. package/src/process-worker.mjs +18 -0
  54. package/src/reasoning.mjs +231 -0
  55. package/src/remote-operation.mjs +76 -0
  56. package/src/review.mjs +241 -0
  57. package/src/reviews.mjs +25 -0
  58. package/src/router-benchmark-corpus.mjs +16 -0
  59. package/src/router-benchmark.mjs +208 -0
  60. package/src/router.mjs +265 -346
  61. package/src/runtime.mjs +30 -8
  62. package/src/session/claude.mjs +358 -0
  63. package/src/session/codex.mjs +501 -0
  64. package/src/session/result.mjs +90 -0
  65. package/src/session/resume.mjs +393 -0
  66. package/src/session/run.mjs +258 -0
  67. package/src/session-jobs.mjs +77 -0
  68. package/src/setup.mjs +6 -3
  69. package/src/ssss-store.mjs +20 -0
  70. package/src/telemetry.mjs +267 -0
  71. package/src/termination.mjs +28 -0
  72. package/src/threads.mjs +150 -0
  73. package/src/usage-queue.mjs +137 -0
  74. package/src/verify-ssss.mjs +102 -0
  75. package/src/worker.mjs +955 -84
  76. package/src/worktree.mjs +244 -0
  77. package/ui/chunks/adapter-docs-freshness.md +16 -0
  78. package/ui/chunks/chat-handoff.md +26 -0
  79. package/ui/chunks/fleet-maintenance.md +21 -0
  80. package/ui/chunks/harness-inventory.md +21 -0
  81. package/ui/chunks/included-access.md +18 -0
  82. package/ui/chunks/included-usage-verification.md +15 -0
  83. package/ui/chunks/independent-review.md +17 -0
  84. package/ui/chunks/managed-execution.md +20 -0
  85. package/ui/chunks/official-documentation.md +18 -0
  86. package/ui/chunks/quota-recovery.md +21 -0
  87. package/ui/chunks/review-routing-decision.md +16 -0
  88. package/ui/chunks/route-work.md +18 -0
  89. package/ui/chunks/routing-evidence.md +18 -0
  90. package/ui/chunks/run-ledger.md +18 -0
  91. package/ui/chunks/session-controls.md +16 -0
  92. package/ui/home.js +198 -0
  93. package/ui/DESIGN.md +0 -32
  94. package/ui/card.js +0 -845
package/plugin.json CHANGED
@@ -1,13 +1,163 @@
1
1
  {
2
2
  "id": "meta-harness",
3
- "name": "Meta Harness",
4
- "version": "0.3.0",
3
+ "name": "Metaharness",
4
+ "version": "0.5.26",
5
5
  "description": "Discover, configure, document, track, and run coding agent harnesses through Total Recall across mesh nodes.",
6
+ "gate": {
7
+ "tasks": [
8
+ "Run work in another agent harness",
9
+ "Choose which harness takes a task",
10
+ "Check harness versions, sign-in and quota",
11
+ "Read a harness's official documentation"
12
+ ],
13
+ "owned_commands": [
14
+ {
15
+ "pattern": "claude\\s+[^;&|]*(-p|--print)\\b",
16
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
17
+ },
18
+ {
19
+ "pattern": "codex\\s+exec\\b",
20
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
21
+ },
22
+ {
23
+ "pattern": "agy\\s+[^;&|]*(-p|--print)\\b",
24
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
25
+ },
26
+ {
27
+ "pattern": "cursor-agent\\s",
28
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
29
+ },
30
+ {
31
+ "pattern": "dsh\\s+[^;&|]*--profile\\s+headless\\b",
32
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
33
+ },
34
+ {
35
+ "pattern": "grok\\s+[^;&|]*-p\\b",
36
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
37
+ },
38
+ {
39
+ "pattern": "pi\\s+[^;&|]*--print\\b",
40
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
41
+ },
42
+ {
43
+ "pattern": "hermes\\s+chat\\b",
44
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
45
+ },
46
+ {
47
+ "pattern": "openclaw\\s+agent\\b",
48
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
49
+ },
50
+ {
51
+ "pattern": "aider\\s+[^;&|]*--message\\b",
52
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
53
+ },
54
+ {
55
+ "pattern": "goose\\s+run\\b",
56
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
57
+ },
58
+ {
59
+ "pattern": "cline\\s+task\\b",
60
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
61
+ },
62
+ {
63
+ "pattern": "muse\\s+exec\\b",
64
+ "use": "total-recall meta-harness route \"<task>\" --execute --json"
65
+ }
66
+ ]
67
+ },
6
68
  "cli": {
69
+ "answers_help": true,
7
70
  "command": "meta-harness",
8
71
  "alias": "cli-agents",
9
72
  "handler": "cli.mjs",
10
73
  "subcommands": [
74
+ {
75
+ "name": "router-benchmark",
76
+ "description": "Evaluate real capability retrieval and harness routing with versioned labels, efficiency metrics and regression thresholds; no provider calls or task dispatch; --save persists owner SSSS reports/events",
77
+ "effect": "write",
78
+ "output": "json",
79
+ "timeout_ms": 480000,
80
+ "args": [
81
+ {
82
+ "name": "coreRoot",
83
+ "flag": "--core-root",
84
+ "type": "string",
85
+ "label": "Verified core source for catalog and retrieval"
86
+ },
87
+ {
88
+ "name": "allowCatalogChange",
89
+ "flag": "--allow-catalog-change",
90
+ "type": "boolean",
91
+ "label": "Compare changed catalogs with compatible fixed labels"
92
+ },
93
+ {
94
+ "name": "k",
95
+ "flag": "--k",
96
+ "type": "number",
97
+ "label": "Shortlist size (default 20)"
98
+ },
99
+ {
100
+ "name": "repeats",
101
+ "flag": "--repeats",
102
+ "type": "number",
103
+ "label": "Corpus passes (default 3)"
104
+ },
105
+ {
106
+ "name": "catalogSamples",
107
+ "flag": "--catalog-samples",
108
+ "type": "number",
109
+ "label": "Description probes (default 24)"
110
+ },
111
+ {
112
+ "name": "corpus",
113
+ "flag": "--corpus",
114
+ "type": "string",
115
+ "label": "Versioned corpus JSON"
116
+ },
117
+ {
118
+ "name": "baseline",
119
+ "flag": "--baseline",
120
+ "type": "string",
121
+ "label": "Comparable baseline JSON"
122
+ },
123
+ {
124
+ "name": "minRecall",
125
+ "flag": "--min-recall",
126
+ "type": "number",
127
+ "label": "Minimum recall at k"
128
+ },
129
+ {
130
+ "name": "minMrr",
131
+ "flag": "--min-mrr",
132
+ "type": "number",
133
+ "label": "Minimum MRR"
134
+ },
135
+ {
136
+ "name": "maxP95Ms",
137
+ "flag": "--max-p95-ms",
138
+ "type": "number",
139
+ "label": "Maximum p95 milliseconds"
140
+ },
141
+ {
142
+ "name": "maxRecallDrop",
143
+ "flag": "--max-recall-drop",
144
+ "type": "number",
145
+ "label": "Allowed baseline recall loss"
146
+ },
147
+ {
148
+ "name": "cwd",
149
+ "flag": "--cwd",
150
+ "type": "string",
151
+ "label": "Project catalog scope"
152
+ },
153
+ {
154
+ "name": "save",
155
+ "flag": "--save",
156
+ "type": "boolean",
157
+ "label": "Persist owner SSSS report and events"
158
+ }
159
+ ]
160
+ },
11
161
  {
12
162
  "name": "status",
13
163
  "description": "Inspect local agent binaries and authentication metadata",
@@ -22,6 +172,79 @@
22
172
  "output": "json",
23
173
  "args": []
24
174
  },
175
+ {
176
+ "name": "chat-target",
177
+ "description": "Resolve the default Chat harness and prepare a draft for the selected brains",
178
+ "effect": "read",
179
+ "output": "json",
180
+ "args": [
181
+ {
182
+ "name": "brains",
183
+ "flag": "--brains",
184
+ "type": "string",
185
+ "label": "Selected brain IDs, comma separated"
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "name": "chat-default",
191
+ "description": "Save the default Chat harness for every brain selection",
192
+ "effect": "write",
193
+ "output": "json",
194
+ "args": [
195
+ {
196
+ "name": "adapter",
197
+ "type": "string",
198
+ "label": "Metaharness adapter ID",
199
+ "required": true,
200
+ "positional": true
201
+ },
202
+ {
203
+ "name": "url",
204
+ "flag": "--url",
205
+ "type": "string",
206
+ "label": "Optional Chat launch URL"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "name": "reasoning-config",
212
+ "description": "Show or set the harness, model and usage threshold for background reasoning such as lesson reviews",
213
+ "effect": "write",
214
+ "output": "json",
215
+ "args": [
216
+ {
217
+ "name": "agent",
218
+ "flag": "--agent",
219
+ "type": "string",
220
+ "label": "Primary background reasoning harness"
221
+ },
222
+ {
223
+ "name": "model",
224
+ "flag": "--model",
225
+ "type": "string",
226
+ "label": "Model for that harness, checked with the model owner"
227
+ },
228
+ {
229
+ "name": "maxUsagePercent",
230
+ "flag": "--max-usage-percent",
231
+ "type": "number",
232
+ "label": "Hold Codex reasoning at or above this usage percent"
233
+ },
234
+ {
235
+ "name": "enable",
236
+ "flag": "--enable",
237
+ "type": "string",
238
+ "label": "Enable a listed harness"
239
+ },
240
+ {
241
+ "name": "disable",
242
+ "flag": "--disable",
243
+ "type": "string",
244
+ "label": "Keep a harness listed but unused"
245
+ }
246
+ ]
247
+ },
25
248
  {
26
249
  "name": "nodes",
27
250
  "description": "List recorded mesh targets without probing or changing them",
@@ -44,6 +267,27 @@
44
267
  ],
45
268
  "timeout_ms": 120000
46
269
  },
270
+ {
271
+ "name": "adoption",
272
+ "description": "Check installed agents, native gate activity and managed run receipts on this node or the mesh",
273
+ "effect": "read",
274
+ "output": "json",
275
+ "args": [
276
+ {
277
+ "name": "node",
278
+ "flag": "--node",
279
+ "type": "string",
280
+ "label": "Mesh node"
281
+ },
282
+ {
283
+ "name": "all",
284
+ "flag": "--all",
285
+ "type": "boolean",
286
+ "label": "Check the recorded fleet"
287
+ }
288
+ ],
289
+ "timeout_ms": 120000
290
+ },
47
291
  {
48
292
  "name": "run-command",
49
293
  "description": "Run an explicit plugin command through the selected agent and node using a JSON request on stdin",
@@ -54,7 +298,7 @@
54
298
  },
55
299
  {
56
300
  "name": "runtime",
57
- "description": "Manage any agent runtime; includes Hermes gateway/auth/skills/plugins and DSH observations",
301
+ "description": "Inspect a runtime or run supported maintenance; agent tasks use dispatch",
58
302
  "effect": "write",
59
303
  "output": "json",
60
304
  "args": [
@@ -68,7 +312,7 @@
68
312
  {
69
313
  "name": "operation",
70
314
  "type": "string",
71
- "label": "Native operation",
315
+ "label": "Maintenance operation",
72
316
  "required": true,
73
317
  "positional": true
74
318
  }
@@ -77,125 +321,613 @@
77
321
  },
78
322
  {
79
323
  "name": "dispatch",
80
- "description": "Run a task from stdin after automatic Total Recall bootstrap",
324
+ "description": "Run a task from stdin JSON {agent, cwd, prompt, timeoutMs?} (pass --stdin) after automatic Total Recall bootstrap",
81
325
  "effect": "write",
82
326
  "output": "json",
83
- "args": [],
84
- "timeout_ms": 120000
327
+ "args": [
328
+ {
329
+ "name": "background",
330
+ "flag": "--background",
331
+ "type": "boolean",
332
+ "label": "Return the job ID and log"
333
+ },
334
+ {
335
+ "name": "goal",
336
+ "flag": "--goal",
337
+ "type": "string",
338
+ "label": "Goal checked at completion"
339
+ },
340
+ {
341
+ "name": "maxTurns",
342
+ "flag": "--max-turns",
343
+ "type": "number",
344
+ "label": "Job turn limit"
345
+ },
346
+ {
347
+ "name": "maxBudgetUsd",
348
+ "flag": "--max-budget-usd",
349
+ "type": "number",
350
+ "label": "Job cost limit in USD"
351
+ },
352
+ {
353
+ "name": "maxTokens",
354
+ "flag": "--max-tokens",
355
+ "type": "number",
356
+ "label": "Job token limit"
357
+ },
358
+ {
359
+ "name": "resultSchema",
360
+ "flag": "--result-schema",
361
+ "type": "string",
362
+ "label": "JSON Schema file"
363
+ },
364
+ {
365
+ "name": "approvals",
366
+ "flag": "--approvals",
367
+ "type": "string",
368
+ "label": "auto, operator, or rules"
369
+ },
370
+ {
371
+ "name": "questionTimeoutMs",
372
+ "flag": "--question-timeout-ms",
373
+ "type": "number",
374
+ "label": "Question timeout in milliseconds"
375
+ },
376
+ {
377
+ "name": "model",
378
+ "flag": "--model",
379
+ "type": "string",
380
+ "label": "Model for this run, validated before launch (agy never runs Opus)"
381
+ }
382
+ ],
383
+ "timeout_ms": 600000,
384
+ "cli_timeout_ms": 5400000
85
385
  },
86
386
  {
87
- "name": "docs-status",
88
- "description": "Verify cached official documentation coverage freshness and hashes",
89
- "effect": "read",
387
+ "name": "fork",
388
+ "description": "Start a new job from a saved session and branch",
389
+ "effect": "write",
90
390
  "output": "json",
91
391
  "args": [
92
392
  {
93
- "name": "agent",
94
- "flag": "--agent",
393
+ "name": "job",
95
394
  "type": "string",
96
- "label": "Agent adapter"
395
+ "positional": true,
396
+ "required": true,
397
+ "label": "Job ID prefix"
398
+ },
399
+ {
400
+ "name": "at",
401
+ "flag": "--at",
402
+ "type": "string",
403
+ "label": "Last turn to copy when supported"
404
+ },
405
+ {
406
+ "name": "background",
407
+ "flag": "--background",
408
+ "type": "boolean",
409
+ "label": "Return the job ID and log"
410
+ },
411
+ {
412
+ "name": "timeoutMs",
413
+ "flag": "--timeout-ms",
414
+ "type": "number",
415
+ "label": "Deadline in milliseconds; defaults to the saved job deadline"
97
416
  }
98
417
  ],
99
- "timeout_ms": 120000
418
+ "timeout_ms": 600000,
419
+ "cli_timeout_ms": 5400000
100
420
  },
101
421
  {
102
- "name": "docs-refresh",
103
- "description": "Download complete official agent documentation and retain last-good content on failure",
422
+ "name": "resume",
423
+ "description": "Continue a finished job session on its saved branch",
104
424
  "effect": "write",
105
425
  "output": "json",
106
426
  "args": [
107
427
  {
108
- "name": "agent",
109
- "flag": "--agent",
428
+ "name": "job",
110
429
  "type": "string",
111
- "label": "Agent adapter"
430
+ "positional": true,
431
+ "required": true,
432
+ "label": "Job ID prefix"
433
+ },
434
+ {
435
+ "name": "text",
436
+ "type": "string",
437
+ "positional": true,
438
+ "required": true,
439
+ "label": "Continuation message"
440
+ },
441
+ {
442
+ "name": "background",
443
+ "flag": "--background",
444
+ "type": "boolean",
445
+ "label": "Return the job ID and log"
446
+ },
447
+ {
448
+ "name": "timeoutMs",
449
+ "flag": "--timeout-ms",
450
+ "type": "number",
451
+ "label": "Deadline in milliseconds; defaults to the saved job deadline"
112
452
  }
113
453
  ],
114
- "timeout_ms": 600000
454
+ "timeout_ms": 600000,
455
+ "cli_timeout_ms": 5400000
115
456
  },
116
457
  {
117
- "name": "docs-ensure",
118
- "description": "Refresh missing or stale documentation automatically",
458
+ "name": "cancel",
459
+ "description": "Stop a running job and wait up to 60 seconds for its cancelled result",
119
460
  "effect": "write",
120
461
  "output": "json",
121
462
  "args": [
122
463
  {
123
- "name": "agent",
124
- "flag": "--agent",
464
+ "name": "job",
125
465
  "type": "string",
126
- "label": "Agent adapter"
466
+ "label": "Job ID prefix or log path",
467
+ "positional": true,
468
+ "required": true
127
469
  }
128
470
  ],
129
- "timeout_ms": 600000
471
+ "timeout_ms": 65000
130
472
  },
131
473
  {
132
- "name": "maintenance",
133
- "description": "Total Recall daemon maintenance: current official documentation and integration surfaces",
474
+ "name": "reply",
475
+ "description": "Send a reply to a running job or answer its oldest waiting question",
134
476
  "effect": "write",
135
477
  "output": "json",
136
- "args": [],
137
- "timeout_ms": 600000
478
+ "args": [
479
+ {
480
+ "name": "job",
481
+ "type": "string",
482
+ "label": "Job ID prefix or log path",
483
+ "positional": true,
484
+ "required": true
485
+ },
486
+ {
487
+ "name": "text",
488
+ "type": "string",
489
+ "label": "Reply text",
490
+ "positional": true,
491
+ "required": true
492
+ },
493
+ {
494
+ "name": "localDelivery",
495
+ "flag": "--local-delivery",
496
+ "type": "boolean",
497
+ "label": "Deliver on this node"
498
+ }
499
+ ],
500
+ "timeout_ms": 65000
138
501
  },
139
502
  {
140
- "name": "setup",
141
- "description": "Configure supported agent instruction surfaces and daemon task placement",
503
+ "name": "approve",
504
+ "description": "Allow or deny a waiting job approval",
142
505
  "effect": "write",
143
506
  "output": "json",
144
507
  "args": [
145
508
  {
146
- "name": "node",
147
- "flag": "--node",
509
+ "name": "job",
148
510
  "type": "string",
149
- "label": "Maintenance mesh node"
511
+ "label": "Job ID prefix or log path",
512
+ "positional": true,
513
+ "required": true
514
+ },
515
+ {
516
+ "name": "requestId",
517
+ "type": "string",
518
+ "label": "Approval request ID",
519
+ "positional": true,
520
+ "required": true
521
+ },
522
+ {
523
+ "name": "value",
524
+ "type": "string",
525
+ "label": "allow or deny",
526
+ "positional": true,
527
+ "required": true
528
+ },
529
+ {
530
+ "name": "localDelivery",
531
+ "flag": "--local-delivery",
532
+ "type": "boolean",
533
+ "label": "Deliver on this node"
150
534
  }
151
535
  ],
152
- "timeout_ms": 120000
536
+ "timeout_ms": 65000
153
537
  },
154
538
  {
155
- "name": "docs-sources",
156
- "description": "List approved official documentation sources",
157
- "effect": "read",
539
+ "name": "interrupt",
540
+ "description": "Stop the current job turn and keep its session resumable",
541
+ "effect": "write",
158
542
  "output": "json",
159
- "args": []
543
+ "args": [
544
+ {
545
+ "name": "job",
546
+ "type": "string",
547
+ "label": "Job ID prefix or log path",
548
+ "positional": true,
549
+ "required": true
550
+ },
551
+ {
552
+ "name": "localDelivery",
553
+ "flag": "--local-delivery",
554
+ "type": "boolean",
555
+ "label": "Deliver on this node"
556
+ }
557
+ ],
558
+ "timeout_ms": 65000
160
559
  },
161
560
  {
162
- "name": "docs-read",
163
- "description": "Read integrity-checked cached official documentation",
164
- "effect": "read",
561
+ "name": "goal",
562
+ "description": "Set the goal of a running job",
563
+ "effect": "write",
165
564
  "output": "json",
166
565
  "args": [
167
566
  {
168
- "name": "agent",
169
- "flag": "--agent",
567
+ "name": "job",
170
568
  "type": "string",
171
- "label": "Agent"
569
+ "label": "Job ID prefix or log path",
570
+ "positional": true,
571
+ "required": true
172
572
  },
173
573
  {
174
- "name": "url",
175
- "flag": "--url",
574
+ "name": "text",
176
575
  "type": "string",
177
- "label": "Url"
576
+ "label": "Goal text",
577
+ "positional": true,
578
+ "required": true
579
+ },
580
+ {
581
+ "name": "localDelivery",
582
+ "flag": "--local-delivery",
583
+ "type": "boolean",
584
+ "label": "Deliver on this node"
178
585
  }
179
- ]
586
+ ],
587
+ "timeout_ms": 65000
180
588
  },
181
589
  {
182
- "name": "docs-search",
183
- "description": "Search downloaded official documentation",
184
- "effect": "read",
185
- "output": "json",
590
+ "name": "mcp",
591
+ "description": "Serve the Metaharness ask and approve tools over MCP stdio",
592
+ "effect": "write",
186
593
  "args": [
187
594
  {
188
- "name": "agent",
189
- "flag": "--agent",
595
+ "name": "approvals",
596
+ "flag": "--approvals",
190
597
  "type": "string",
191
- "label": "Agent"
598
+ "label": "Approval policy: auto, operator, or rules"
192
599
  },
193
600
  {
194
- "name": "query",
195
- "flag": "--query",
196
- "type": "string",
197
- "required": true,
198
- "label": "Query"
601
+ "name": "questionTimeoutMs",
602
+ "flag": "--question-timeout-ms",
603
+ "type": "number",
604
+ "label": "Question timeout in milliseconds"
605
+ }
606
+ ]
607
+ },
608
+ {
609
+ "name": "watch",
610
+ "description": "Show local or mesh job status, recent events, waiting questions and approvals",
611
+ "effect": "read",
612
+ "output": "json",
613
+ "args": [
614
+ {
615
+ "name": "job",
616
+ "type": "string",
617
+ "label": "Job id prefix or event log path",
618
+ "positional": true
619
+ },
620
+ {
621
+ "name": "tail",
622
+ "flag": "--tail",
623
+ "type": "string",
624
+ "label": "Events to show"
625
+ },
626
+ {
627
+ "name": "node",
628
+ "flag": "--node",
629
+ "type": "string",
630
+ "label": "Recorded node that owns the job"
631
+ }
632
+ ]
633
+ },
634
+ {
635
+ "name": "included-status",
636
+ "description": "Read included usage policy and optionally check Codex allowance without a turn",
637
+ "effect": "read",
638
+ "output": "json",
639
+ "args": [
640
+ {
641
+ "name": "probe",
642
+ "flag": "--probe",
643
+ "type": "boolean",
644
+ "label": "Read live Codex allowance"
645
+ }
646
+ ]
647
+ },
648
+ {
649
+ "name": "included-enforce",
650
+ "description": "Require included usage for managed agent dispatch on this node",
651
+ "effect": "write",
652
+ "output": "json",
653
+ "args": []
654
+ },
655
+ {
656
+ "name": "included-bind-claude",
657
+ "description": "Bind verified Max credit evidence on stdin to an existing Auth key",
658
+ "effect": "write",
659
+ "output": "json",
660
+ "args": []
661
+ },
662
+ {
663
+ "name": "included-bind-claude-plan",
664
+ "description": "Bind the signed-in Claude Max account after verifying Usage credits are off",
665
+ "effect": "write",
666
+ "output": "json",
667
+ "args": []
668
+ },
669
+ {
670
+ "name": "included-bind-claude-token",
671
+ "description": "Bind the Claude subscription token (claude setup-token) stored in Total Recall Auth, after Claude accepts it",
672
+ "effect": "write",
673
+ "output": "json",
674
+ "args": [
675
+ {
676
+ "name": "key",
677
+ "type": "string",
678
+ "label": "Auth key name (default CLAUDE_CODE_OAUTH_TOKEN)",
679
+ "required": false,
680
+ "flag": "--key"
681
+ }
682
+ ]
683
+ },
684
+ {
685
+ "name": "included-bind-agy",
686
+ "description": "Let Antigravity run on the signed-in personal Google plan (Free, Pro or Ultra): refuses while its saved settings select an API key, paid AI credits or a Google Cloud project",
687
+ "effect": "write",
688
+ "output": "json",
689
+ "args": []
690
+ },
691
+ {
692
+ "name": "agent-user",
693
+ "description": "Show, set or clear the non-root Unix user Claude runs as when Metaharness runs as root on Linux",
694
+ "effect": "write",
695
+ "output": "json",
696
+ "args": [
697
+ {
698
+ "name": "name",
699
+ "type": "string",
700
+ "label": "Unix user name",
701
+ "required": false,
702
+ "positional": true
703
+ },
704
+ {
705
+ "name": "clear",
706
+ "type": "boolean",
707
+ "label": "Clear the configured user",
708
+ "flag": "--clear"
709
+ }
710
+ ]
711
+ },
712
+ {
713
+ "name": "openrouter-bind",
714
+ "description": "Authorize an explicit OpenRouter harness with a verified Total Recall Auth key and catalog model",
715
+ "effect": "write",
716
+ "output": "json",
717
+ "args": [
718
+ {
719
+ "name": "agent",
720
+ "type": "string",
721
+ "label": "Harness",
722
+ "required": true,
723
+ "positional": true
724
+ },
725
+ {
726
+ "name": "key",
727
+ "type": "string",
728
+ "label": "Auth key name",
729
+ "required": true,
730
+ "positional": true
731
+ },
732
+ {
733
+ "name": "model",
734
+ "flag": "--model",
735
+ "type": "string",
736
+ "label": "OpenRouter model ID",
737
+ "required": true
738
+ }
739
+ ]
740
+ },
741
+ {
742
+ "name": "usage-queue",
743
+ "description": "List jobs waiting for included usage and their reset evidence",
744
+ "effect": "read",
745
+ "output": "json",
746
+ "args": []
747
+ },
748
+ {
749
+ "name": "usage-reconcile",
750
+ "description": "Preview or archive expired legacy reasoning records with no replay request",
751
+ "effect": "write",
752
+ "output": "json",
753
+ "args": [
754
+ {
755
+ "name": "apply",
756
+ "type": "boolean",
757
+ "label": "Archive matching records",
758
+ "flag": "--apply"
759
+ }
760
+ ]
761
+ },
762
+ {
763
+ "name": "usage-retry",
764
+ "description": "Retry a waiting job after checking included usage",
765
+ "effect": "write",
766
+ "output": "json",
767
+ "args": [
768
+ {
769
+ "name": "job",
770
+ "type": "string",
771
+ "label": "Queued job ID",
772
+ "required": true,
773
+ "positional": true
774
+ }
775
+ ],
776
+ "timeout_ms": 600000
777
+ },
778
+ {
779
+ "name": "usage-cancel",
780
+ "description": "Cancel a waiting included usage job",
781
+ "effect": "write",
782
+ "output": "json",
783
+ "args": [
784
+ {
785
+ "name": "job",
786
+ "type": "string",
787
+ "label": "Queued job ID",
788
+ "required": true,
789
+ "positional": true
790
+ }
791
+ ]
792
+ },
793
+ {
794
+ "name": "docs-status",
795
+ "description": "Verify cached official documentation coverage freshness and hashes",
796
+ "effect": "read",
797
+ "output": "json",
798
+ "args": [
799
+ {
800
+ "name": "agent",
801
+ "flag": "--agent",
802
+ "type": "string",
803
+ "label": "Agent adapter"
804
+ }
805
+ ],
806
+ "timeout_ms": 120000
807
+ },
808
+ {
809
+ "name": "docs-refresh",
810
+ "description": "Download complete official agent documentation and retain last-good content on failure",
811
+ "effect": "write",
812
+ "output": "json",
813
+ "args": [
814
+ {
815
+ "name": "agent",
816
+ "flag": "--agent",
817
+ "type": "string",
818
+ "label": "Agent adapter"
819
+ }
820
+ ],
821
+ "timeout_ms": 600000
822
+ },
823
+ {
824
+ "name": "docs-ensure",
825
+ "description": "Refresh missing or stale documentation automatically",
826
+ "effect": "write",
827
+ "output": "json",
828
+ "args": [
829
+ {
830
+ "name": "agent",
831
+ "flag": "--agent",
832
+ "type": "string",
833
+ "label": "Agent adapter"
834
+ }
835
+ ],
836
+ "timeout_ms": 600000
837
+ },
838
+ {
839
+ "name": "maintenance",
840
+ "description": "Daemon maintenance: official documentation and integration surfaces, the model catalog with --models, or each harness's own update with --harnesses",
841
+ "effect": "write",
842
+ "output": "json",
843
+ "args": [
844
+ {
845
+ "name": "models",
846
+ "flag": "--models",
847
+ "type": "boolean",
848
+ "label": "Refresh the model and benchmark catalog"
849
+ },
850
+ {
851
+ "name": "harnesses",
852
+ "flag": "--harnesses",
853
+ "type": "boolean",
854
+ "label": "Update each installed harness with its own update command"
855
+ },
856
+ {
857
+ "name": "dryRun",
858
+ "flag": "--dry-run",
859
+ "type": "boolean",
860
+ "label": "With --harnesses: report what would be updated and change nothing"
861
+ },
862
+ {
863
+ "name": "agent",
864
+ "flag": "--agent",
865
+ "type": "string",
866
+ "label": "Limit the run to one harness"
867
+ }
868
+ ],
869
+ "timeout_ms": 600000
870
+ },
871
+ {
872
+ "name": "setup",
873
+ "description": "Configure supported agent instruction surfaces and daemon task placement",
874
+ "effect": "write",
875
+ "output": "json",
876
+ "args": [
877
+ {
878
+ "name": "node",
879
+ "flag": "--node",
880
+ "type": "string",
881
+ "label": "Maintenance mesh node"
882
+ }
883
+ ],
884
+ "timeout_ms": 120000
885
+ },
886
+ {
887
+ "name": "docs-sources",
888
+ "description": "List approved official documentation sources",
889
+ "effect": "read",
890
+ "output": "json",
891
+ "args": []
892
+ },
893
+ {
894
+ "name": "docs-read",
895
+ "description": "Read integrity-checked cached official documentation",
896
+ "effect": "read",
897
+ "output": "json",
898
+ "args": [
899
+ {
900
+ "name": "agent",
901
+ "flag": "--agent",
902
+ "type": "string",
903
+ "label": "Agent"
904
+ },
905
+ {
906
+ "name": "url",
907
+ "flag": "--url",
908
+ "type": "string",
909
+ "label": "Url"
910
+ }
911
+ ]
912
+ },
913
+ {
914
+ "name": "docs-search",
915
+ "description": "Search downloaded official documentation",
916
+ "effect": "read",
917
+ "output": "json",
918
+ "args": [
919
+ {
920
+ "name": "agent",
921
+ "flag": "--agent",
922
+ "type": "string",
923
+ "label": "Agent"
924
+ },
925
+ {
926
+ "name": "query",
927
+ "flag": "--query",
928
+ "type": "string",
929
+ "required": true,
930
+ "label": "Query"
199
931
  }
200
932
  ]
201
933
  },
@@ -213,60 +945,388 @@
213
945
  "output": "json",
214
946
  "args": [
215
947
  {
216
- "name": "agent",
948
+ "name": "agent",
949
+ "type": "string",
950
+ "label": "Agent identifier",
951
+ "required": false,
952
+ "positional": true
953
+ }
954
+ ]
955
+ },
956
+ {
957
+ "name": "adapter",
958
+ "description": "Manage extensible harness adapter definitions (list, add, remove)",
959
+ "effect": "write",
960
+ "output": "json",
961
+ "args": [
962
+ {
963
+ "name": "operation",
964
+ "type": "string",
965
+ "label": "list | add | remove",
966
+ "required": true,
967
+ "positional": true
968
+ },
969
+ {
970
+ "name": "target",
971
+ "type": "string",
972
+ "label": "File path, spec JSON, or adapter ID",
973
+ "required": false,
974
+ "positional": true
975
+ }
976
+ ]
977
+ },
978
+ {
979
+ "name": "quota",
980
+ "description": "Inspect 5-hour rolling/weekly quotas, credit balances, and host RAM",
981
+ "effect": "read",
982
+ "output": "json",
983
+ "args": [
984
+ {
985
+ "name": "node",
986
+ "flag": "--node",
987
+ "type": "string",
988
+ "label": "Mesh node"
989
+ }
990
+ ]
991
+ },
992
+ {
993
+ "name": "benchmarks",
994
+ "description": "Sourced model pricing, coding index and leaderboard results, with pass rates measured on this machine",
995
+ "effect": "read",
996
+ "output": "json",
997
+ "args": []
998
+ },
999
+ {
1000
+ "name": "route",
1001
+ "description": "Choose the harness for a task; with --execute, run it on its own branch and escalate on failure",
1002
+ "cli_timeout_ms": 5400000,
1003
+ "effect": "write",
1004
+ "output": "json",
1005
+ "timeout_ms": 600000,
1006
+ "args": [
1007
+ {
1008
+ "name": "goal",
1009
+ "flag": "--goal",
1010
+ "type": "string",
1011
+ "label": "Goal checked at completion"
1012
+ },
1013
+ {
1014
+ "name": "maxTurns",
1015
+ "flag": "--max-turns",
1016
+ "type": "number",
1017
+ "label": "Job turn limit"
1018
+ },
1019
+ {
1020
+ "name": "maxBudgetUsd",
1021
+ "flag": "--max-budget-usd",
1022
+ "type": "number",
1023
+ "label": "Job cost limit in USD"
1024
+ },
1025
+ {
1026
+ "name": "maxTokens",
1027
+ "flag": "--max-tokens",
1028
+ "type": "number",
1029
+ "label": "Job token limit"
1030
+ },
1031
+ {
1032
+ "name": "resultSchema",
1033
+ "flag": "--result-schema",
1034
+ "type": "string",
1035
+ "label": "JSON Schema file"
1036
+ },
1037
+ {
1038
+ "name": "approvals",
1039
+ "flag": "--approvals",
1040
+ "type": "string",
1041
+ "label": "auto, operator, or rules"
1042
+ },
1043
+ {
1044
+ "name": "questionTimeoutMs",
1045
+ "flag": "--question-timeout-ms",
1046
+ "type": "number",
1047
+ "label": "Question timeout in milliseconds"
1048
+ },
1049
+ {
1050
+ "name": "task",
1051
+ "type": "string",
1052
+ "label": "Task description",
1053
+ "required": true,
1054
+ "positional": true
1055
+ },
1056
+ {
1057
+ "name": "execute",
1058
+ "flag": "--execute",
1059
+ "type": "boolean",
1060
+ "label": "Run the task on its own branch"
1061
+ },
1062
+ {
1063
+ "name": "gate",
1064
+ "flag": "--gate",
1065
+ "type": "boolean",
1066
+ "label": "Require the code-quality gate, escalating when it fails"
1067
+ },
1068
+ {
1069
+ "name": "jev",
1070
+ "flag": "--jev",
1071
+ "type": "boolean",
1072
+ "label": "Classify through the decision plugin"
1073
+ },
1074
+ {
1075
+ "name": "tier",
1076
+ "flag": "--tier",
1077
+ "type": "string",
1078
+ "label": "Gate tier: fast | full | remote"
1079
+ },
1080
+ {
1081
+ "name": "cwd",
1082
+ "flag": "--cwd",
1083
+ "type": "string",
1084
+ "label": "Explicit workspace on the selected node"
1085
+ },
1086
+ {
1087
+ "name": "node",
1088
+ "flag": "--node",
1089
+ "type": "string",
1090
+ "label": "Selected mesh node"
1091
+ },
1092
+ {
1093
+ "name": "allowUnknownAuth",
1094
+ "flag": "--allow-unknown-auth",
1095
+ "type": "boolean",
1096
+ "label": "Explicitly allow a runner without a login probe"
1097
+ },
1098
+ {
1099
+ "name": "background",
1100
+ "flag": "--background",
1101
+ "type": "boolean",
1102
+ "label": "Return the owned job and log for a long run"
1103
+ },
1104
+ {
1105
+ "name": "model",
1106
+ "flag": "--model",
1107
+ "type": "string",
1108
+ "label": "Model to run; only harnesses that can run it are chosen (agy never runs Opus)"
1109
+ },
1110
+ {
1111
+ "name": "timeoutMs",
1112
+ "flag": "--timeout-ms",
1113
+ "type": "number",
1114
+ "label": "Remote wall-clock limit in milliseconds"
1115
+ },
1116
+ {
1117
+ "name": "wait",
1118
+ "flag": "--wait",
1119
+ "type": "boolean",
1120
+ "label": "Run in this command instead of the background"
1121
+ },
1122
+ {
1123
+ "name": "agent",
1124
+ "flag": "--agent",
1125
+ "type": "string",
1126
+ "label": "Run this harness only"
1127
+ }
1128
+ ]
1129
+ },
1130
+ {
1131
+ "name": "coordinate",
1132
+ "description": "Coordinate multi-agent specialized execution pipelines (pipeline, council, race)",
1133
+ "effect": "write",
1134
+ "output": "json",
1135
+ "cli_timeout_ms": 5400000,
1136
+ "args": [
1137
+ {
1138
+ "name": "goal",
1139
+ "flag": "--goal",
217
1140
  "type": "string",
218
- "label": "Agent identifier",
219
- "required": false,
1141
+ "label": "Goal checked at completion"
1142
+ },
1143
+ {
1144
+ "name": "maxTurns",
1145
+ "flag": "--max-turns",
1146
+ "type": "number",
1147
+ "label": "Job turn limit"
1148
+ },
1149
+ {
1150
+ "name": "maxBudgetUsd",
1151
+ "flag": "--max-budget-usd",
1152
+ "type": "number",
1153
+ "label": "Job cost limit in USD"
1154
+ },
1155
+ {
1156
+ "name": "maxTokens",
1157
+ "flag": "--max-tokens",
1158
+ "type": "number",
1159
+ "label": "Job token limit"
1160
+ },
1161
+ {
1162
+ "name": "resultSchema",
1163
+ "flag": "--result-schema",
1164
+ "type": "string",
1165
+ "label": "JSON Schema file"
1166
+ },
1167
+ {
1168
+ "name": "approvals",
1169
+ "flag": "--approvals",
1170
+ "type": "string",
1171
+ "label": "auto, operator, or rules"
1172
+ },
1173
+ {
1174
+ "name": "questionTimeoutMs",
1175
+ "flag": "--question-timeout-ms",
1176
+ "type": "number",
1177
+ "label": "Question timeout in milliseconds"
1178
+ },
1179
+ {
1180
+ "name": "task",
1181
+ "type": "string",
1182
+ "label": "Task description",
1183
+ "required": true,
220
1184
  "positional": true
1185
+ },
1186
+ {
1187
+ "name": "mode",
1188
+ "flag": "--mode",
1189
+ "type": "string",
1190
+ "label": "pipeline | council | race"
1191
+ },
1192
+ {
1193
+ "name": "execute",
1194
+ "flag": "--execute",
1195
+ "type": "boolean",
1196
+ "label": "Run the agents; without this the plan is only reported"
1197
+ },
1198
+ {
1199
+ "name": "gate",
1200
+ "flag": "--gate",
1201
+ "type": "boolean",
1202
+ "label": "Require the code-quality gate"
1203
+ },
1204
+ {
1205
+ "name": "autoReview",
1206
+ "flag": "--auto-review",
1207
+ "type": "boolean",
1208
+ "label": "Add a cross-model code review"
1209
+ },
1210
+ {
1211
+ "name": "allowSameFamily",
1212
+ "flag": "--allow-same-family",
1213
+ "type": "boolean",
1214
+ "label": "Accept a Verifier from the Implementer's model family"
1215
+ },
1216
+ {
1217
+ "name": "cwd",
1218
+ "flag": "--cwd",
1219
+ "type": "string",
1220
+ "label": "Explicit workspace on the selected node"
1221
+ },
1222
+ {
1223
+ "name": "node",
1224
+ "flag": "--node",
1225
+ "type": "string",
1226
+ "label": "Selected mesh node"
1227
+ },
1228
+ {
1229
+ "name": "allowUnknownAuth",
1230
+ "flag": "--allow-unknown-auth",
1231
+ "type": "boolean",
1232
+ "label": "Explicitly allow a runner without a login probe"
1233
+ },
1234
+ {
1235
+ "name": "background",
1236
+ "flag": "--background",
1237
+ "type": "boolean",
1238
+ "label": "Return the owned job and log for a long run"
1239
+ },
1240
+ {
1241
+ "name": "model",
1242
+ "flag": "--model",
1243
+ "type": "string",
1244
+ "label": "Model for the Implementer, or every council and race seat (agy never runs Opus)"
1245
+ },
1246
+ {
1247
+ "name": "timeoutMs",
1248
+ "flag": "--timeout-ms",
1249
+ "type": "number",
1250
+ "label": "Remote wall-clock limit in milliseconds"
1251
+ },
1252
+ {
1253
+ "name": "wait",
1254
+ "flag": "--wait",
1255
+ "type": "boolean",
1256
+ "label": "Run in this command instead of the background"
221
1257
  }
222
- ]
1258
+ ],
1259
+ "timeout_ms": 600000
223
1260
  },
224
1261
  {
225
- "name": "adapter",
226
- "description": "Manage extensible harness adapter definitions (list, add, remove)",
1262
+ "name": "learn",
1263
+ "description": "Summarize run receipts into scorecards, quota walls and proposals",
227
1264
  "effect": "write",
228
1265
  "output": "json",
229
1266
  "args": [
230
1267
  {
231
- "name": "operation",
1268
+ "name": "void",
1269
+ "flag": "--void",
232
1270
  "type": "string",
233
- "label": "list | add | remove",
234
- "required": true,
235
- "positional": true
1271
+ "label": "Comma-separated receipt ids to void"
236
1272
  },
237
1273
  {
238
- "name": "target",
1274
+ "name": "reason",
1275
+ "flag": "--reason",
239
1276
  "type": "string",
240
- "label": "File path, spec JSON, or adapter ID",
241
- "required": false,
242
- "positional": true
1277
+ "label": "Why the receipts are void"
243
1278
  }
244
1279
  ]
245
1280
  },
246
1281
  {
247
- "name": "quota",
248
- "description": "Inspect 5-hour rolling/weekly quotas, credit balances, and host RAM",
249
- "effect": "read",
1282
+ "name": "priority-cache",
1283
+ "description": "Show, add or remove checkouts whose interactive cache reads do not count toward the token-velocity limit",
1284
+ "effect": "write",
250
1285
  "output": "json",
251
1286
  "args": [
252
1287
  {
253
- "name": "node",
254
- "flag": "--node",
1288
+ "name": "add",
1289
+ "flag": "--add",
255
1290
  "type": "string",
256
- "label": "Mesh node"
1291
+ "label": "Absolute checkout path to prioritize"
1292
+ },
1293
+ {
1294
+ "name": "remove",
1295
+ "flag": "--remove",
1296
+ "type": "string",
1297
+ "label": "Absolute checkout path to remove"
257
1298
  }
258
1299
  ]
259
1300
  },
260
1301
  {
261
- "name": "benchmarks",
262
- "description": "Inspect SWE-bench Pro, Terminal-Bench 2.0, and local empirical pass rates",
263
- "effect": "read",
1302
+ "name": "alerts",
1303
+ "description": "Send operator alerts for quota walls and usage over the threshold",
1304
+ "effect": "send",
264
1305
  "output": "json",
265
- "args": []
1306
+ "args": [
1307
+ {
1308
+ "name": "action",
1309
+ "type": "string",
1310
+ "label": "check | test",
1311
+ "positional": true
1312
+ },
1313
+ {
1314
+ "name": "threshold",
1315
+ "flag": "--threshold",
1316
+ "type": "number",
1317
+ "label": "Usage percent that triggers an alert"
1318
+ },
1319
+ {
1320
+ "name": "dryRun",
1321
+ "flag": "--dry-run",
1322
+ "type": "boolean",
1323
+ "label": "Report without sending"
1324
+ }
1325
+ ]
266
1326
  },
267
1327
  {
268
- "name": "route",
269
- "description": "Evaluate task complexity and select optimal harness via two-stage RouteLLM classifier",
1328
+ "name": "decompose",
1329
+ "description": "Decompose complex multi-step tasks into specialized Explorer, Architect, Implementer, and Verifier subagent stages",
270
1330
  "effect": "read",
271
1331
  "output": "json",
272
1332
  "args": [
@@ -280,10 +1340,11 @@
280
1340
  ]
281
1341
  },
282
1342
  {
283
- "name": "coordinate",
284
- "description": "Coordinate multi-agent specialized execution pipelines (pipeline, council, race)",
1343
+ "name": "orchestrate",
1344
+ "description": "Run multi-step work in the calling harness's background task and return the final outcome",
285
1345
  "effect": "write",
286
1346
  "output": "json",
1347
+ "cli_timeout_ms": 5400000,
287
1348
  "args": [
288
1349
  {
289
1350
  "name": "task",
@@ -293,19 +1354,263 @@
293
1354
  "positional": true
294
1355
  },
295
1356
  {
296
- "name": "mode",
297
- "flag": "--mode",
1357
+ "name": "orchestrator",
1358
+ "flag": "--orchestrator",
298
1359
  "type": "string",
299
- "label": "pipeline | council | race"
1360
+ "label": "Active orchestrator harness (claude, codex, agy, hermes, cursor)"
1361
+ },
1362
+ {
1363
+ "name": "execute",
1364
+ "flag": "--execute",
1365
+ "type": "boolean",
1366
+ "label": "Execute live stages and return their final outcome"
1367
+ },
1368
+ {
1369
+ "name": "background",
1370
+ "flag": "--background",
1371
+ "type": "boolean",
1372
+ "label": "Detach explicitly and return a job ID instead of waiting"
1373
+ },
1374
+ {
1375
+ "name": "autoReview",
1376
+ "flag": "--auto-review",
1377
+ "type": "boolean",
1378
+ "label": "Trigger adversarial code review upon completion"
1379
+ },
1380
+ {
1381
+ "name": "gate",
1382
+ "flag": "--gate",
1383
+ "type": "boolean",
1384
+ "label": "Require the code-quality gate"
1385
+ },
1386
+ {
1387
+ "name": "allowSameFamily",
1388
+ "flag": "--allow-same-family",
1389
+ "type": "boolean",
1390
+ "label": "Accept a Verifier from the Implementer's model family"
1391
+ },
1392
+ {
1393
+ "name": "wait",
1394
+ "flag": "--wait",
1395
+ "type": "boolean",
1396
+ "label": "Run in this command instead of the background"
1397
+ }
1398
+ ],
1399
+ "timeout_ms": 600000
1400
+ },
1401
+ {
1402
+ "name": "threads",
1403
+ "description": "Manage multi-platform agent threads, PR branch tracking, and turn history across all connected platforms",
1404
+ "effect": "write",
1405
+ "output": "json",
1406
+ "args": [
1407
+ {
1408
+ "name": "action",
1409
+ "type": "string",
1410
+ "label": "list | show | create | update | close | delete | cleanup-fixtures",
1411
+ "required": true,
1412
+ "positional": true
1413
+ },
1414
+ {
1415
+ "name": "target",
1416
+ "type": "string",
1417
+ "label": "Thread ID or title",
1418
+ "positional": true
1419
+ },
1420
+ {
1421
+ "name": "title",
1422
+ "flag": "--title",
1423
+ "type": "string",
1424
+ "label": "Thread title"
1425
+ },
1426
+ {
1427
+ "name": "summary",
1428
+ "flag": "--summary",
1429
+ "type": "string",
1430
+ "label": "Thread summary"
1431
+ },
1432
+ {
1433
+ "name": "status",
1434
+ "flag": "--status",
1435
+ "type": "string",
1436
+ "label": "Lifecycle status or list filter"
1437
+ },
1438
+ {
1439
+ "name": "platform",
1440
+ "flag": "--platform",
1441
+ "type": "string",
1442
+ "label": "Harness platform or list filter"
1443
+ },
1444
+ {
1445
+ "name": "branch",
1446
+ "flag": "--branch",
1447
+ "type": "string",
1448
+ "label": "Deliverable branch"
1449
+ },
1450
+ {
1451
+ "name": "dryRun",
1452
+ "flag": "--dry-run",
1453
+ "type": "boolean",
1454
+ "label": "Preview fixture cleanup"
300
1455
  }
301
1456
  ]
302
1457
  },
303
1458
  {
304
- "name": "learn",
305
- "description": "Summarize empirical run scorecards and generate memory friction proposals",
1459
+ "name": "process",
1460
+ "description": "Manage owned agent processes through isolated dispatch and SSSS lifecycle records",
1461
+ "effect": "write",
1462
+ "output": "json",
1463
+ "timeout_ms": 600000,
1464
+ "args": [
1465
+ {
1466
+ "name": "action",
1467
+ "type": "string",
1468
+ "positional": true,
1469
+ "label": "list | status | spawn | kill | logs"
1470
+ },
1471
+ {
1472
+ "name": "target",
1473
+ "type": "string",
1474
+ "positional": true,
1475
+ "label": "Harness to spawn or managed process ID"
1476
+ },
1477
+ {
1478
+ "name": "task",
1479
+ "type": "string",
1480
+ "positional": true,
1481
+ "label": "Task for a spawned agent"
1482
+ },
1483
+ {
1484
+ "name": "node",
1485
+ "type": "string",
1486
+ "flag": "--node",
1487
+ "label": "Recorded mesh node"
1488
+ },
1489
+ {
1490
+ "name": "cwd",
1491
+ "type": "string",
1492
+ "flag": "--cwd",
1493
+ "label": "Explicit workspace on the selected node"
1494
+ },
1495
+ {
1496
+ "name": "name",
1497
+ "type": "string",
1498
+ "flag": "--name",
1499
+ "label": "Managed process label"
1500
+ },
1501
+ {
1502
+ "name": "tools",
1503
+ "type": "string",
1504
+ "flag": "--tools",
1505
+ "label": "Supported tool restriction"
1506
+ },
1507
+ {
1508
+ "name": "settingSources",
1509
+ "type": "string",
1510
+ "flag": "--setting-sources",
1511
+ "label": "Supported instruction setting sources"
1512
+ },
1513
+ {
1514
+ "name": "model",
1515
+ "type": "string",
1516
+ "flag": "--model",
1517
+ "label": "Explicit configured model selection"
1518
+ },
1519
+ {
1520
+ "name": "tail",
1521
+ "type": "number",
1522
+ "flag": "--tail",
1523
+ "label": "Log tail line count"
1524
+ },
1525
+ {
1526
+ "name": "readOnly",
1527
+ "type": "boolean",
1528
+ "flag": "--read-only",
1529
+ "label": "Disable code writes"
1530
+ },
1531
+ {
1532
+ "name": "noDetach",
1533
+ "type": "boolean",
1534
+ "flag": "--no-detach",
1535
+ "label": "Await the managed process result"
1536
+ },
1537
+ {
1538
+ "name": "allowUnknownAuth",
1539
+ "type": "boolean",
1540
+ "flag": "--allow-unknown-auth",
1541
+ "label": "Explicitly allow an unknown login state"
1542
+ }
1543
+ ]
1544
+ },
1545
+ {
1546
+ "name": "reviews",
1547
+ "description": "Read durable review results, including disposition and selected diff",
306
1548
  "effect": "read",
307
1549
  "output": "json",
308
1550
  "args": []
1551
+ },
1552
+ {
1553
+ "name": "review",
1554
+ "description": "Execute automated adversarial cross-model code review on Git diffs, PR branches, or staged changes",
1555
+ "effect": "write",
1556
+ "output": "json",
1557
+ "args": [
1558
+ {
1559
+ "name": "target",
1560
+ "type": "string",
1561
+ "label": "Target branch, PR commit, or empty for working-tree",
1562
+ "positional": true
1563
+ },
1564
+ {
1565
+ "name": "reviewer",
1566
+ "flag": "--reviewer",
1567
+ "type": "string",
1568
+ "label": "Adversarial reviewer harness"
1569
+ },
1570
+ {
1571
+ "name": "staged",
1572
+ "flag": "--staged",
1573
+ "type": "boolean",
1574
+ "label": "Review staged diffs"
1575
+ },
1576
+ {
1577
+ "name": "author",
1578
+ "flag": "--author",
1579
+ "type": "string",
1580
+ "label": "Harness that wrote the code, excluded with its model family"
1581
+ },
1582
+ {
1583
+ "name": "thread",
1584
+ "flag": "--thread",
1585
+ "type": "string",
1586
+ "label": "Thread to attach the review to"
1587
+ },
1588
+ {
1589
+ "name": "cwd",
1590
+ "flag": "--cwd",
1591
+ "type": "string",
1592
+ "label": "Explicit workspace on the selected node"
1593
+ },
1594
+ {
1595
+ "name": "node",
1596
+ "flag": "--node",
1597
+ "type": "string",
1598
+ "label": "Selected mesh node"
1599
+ },
1600
+ {
1601
+ "name": "allowUnknownAuth",
1602
+ "flag": "--allow-unknown-auth",
1603
+ "type": "boolean",
1604
+ "label": "Explicitly allow a runner without a login probe"
1605
+ },
1606
+ {
1607
+ "name": "timeoutMs",
1608
+ "flag": "--timeout-ms",
1609
+ "type": "number",
1610
+ "label": "Remote wall-clock limit in milliseconds"
1611
+ }
1612
+ ],
1613
+ "timeout_ms": 600000
309
1614
  }
310
1615
  ]
311
1616
  },
@@ -314,41 +1619,31 @@
314
1619
  "command-executor": "src/executor.mjs",
315
1620
  "documentation": "src/documentation.mjs",
316
1621
  "agent-runtime": "src/runtime.mjs",
317
- "tracker": "src/tracker.mjs"
1622
+ "tracker": "src/tracker.mjs",
1623
+ "harness-compat": "src/compat-harness.mjs",
1624
+ "reasoning-runtime": "src/reasoning.mjs",
1625
+ "process-manager": "src/process-manager.mjs",
1626
+ "gate-adapters": "src/gate-adapters/index.mjs"
318
1627
  },
319
1628
  "setup_command": "setup"
320
1629
  },
321
1630
  "branding": {
322
- "name": "Meta Harness",
1631
+ "name": "Metaharness",
323
1632
  "color": "#3b82f6",
324
1633
  "accent": "#38bdf8",
325
1634
  "background": "#0c1427",
326
1635
  "font": "system"
327
1636
  },
328
1637
  "ui": {
1638
+ "home": "home",
1639
+ "design_tokens": "DESIGN.md",
329
1640
  "elements": [
330
1641
  {
331
- "id": "meta-harness-card",
332
- "kind": "card",
333
- "tag": "meta-harness-card",
334
- "module": "ui/card.js",
335
- "description": "Meta Harness multi-agent coordination matrix"
336
- }
337
- ]
338
- },
339
- "card_face": {
340
- "quick_actions": [
341
- {
342
- "subcommand": "status",
343
- "label": "Local agents"
344
- },
345
- {
346
- "subcommand": "nodes",
347
- "label": "Mesh nodes"
348
- },
349
- {
350
- "subcommand": "catalog",
351
- "label": "Adapters"
1642
+ "id": "home",
1643
+ "kind": "panel",
1644
+ "tag": "tr-metaharness-home",
1645
+ "module": "ui/home.js",
1646
+ "description": "Default Chat harness and launch destination"
352
1647
  }
353
1648
  ]
354
1649
  },
@@ -371,6 +1666,49 @@
371
1666
  "command": "maintenance",
372
1667
  "placement": "selected-node",
373
1668
  "timeout_ms": 600000
1669
+ },
1670
+ {
1671
+ "intent": "Automated daily model and benchmark catalog refresh into offline living documents",
1672
+ "schedule": "0 3 * * *",
1673
+ "command": "maintenance --models",
1674
+ "placement": "selected-node",
1675
+ "timeout_ms": 300000
1676
+ },
1677
+ {
1678
+ "intent": "Keep each installed agent harness on its own latest release",
1679
+ "schedule": "30 3 * * *",
1680
+ "command": "maintenance --harnesses",
1681
+ "placement": "selected-node",
1682
+ "timeout_ms": 600000
1683
+ },
1684
+ {
1685
+ "intent": "Report quota walls and measured usage to the operator",
1686
+ "schedule": "*/5 * * * *",
1687
+ "command": "alerts check",
1688
+ "placement": "selected-node",
1689
+ "timeout_ms": 60000
374
1690
  }
375
- ]
1691
+ ],
1692
+ "alerts": {
1693
+ "plugin": "operator-alerts",
1694
+ "command": "alerts",
1695
+ "on_task_failure": true,
1696
+ "events": [
1697
+ {
1698
+ "id": "runaway-velocity",
1699
+ "severity": "critical",
1700
+ "description": "Dispatch or internal reasoning velocity/token circuit breaker tripped"
1701
+ },
1702
+ {
1703
+ "id": "quota-wall",
1704
+ "severity": "high",
1705
+ "description": "Harness quota wall reached"
1706
+ },
1707
+ {
1708
+ "id": "usage-threshold",
1709
+ "severity": "high",
1710
+ "description": "Harness usage exceeded configured threshold"
1711
+ }
1712
+ ]
1713
+ }
376
1714
  }