ur-agent 1.13.8 → 1.14.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 +43 -0
- package/README.md +11 -0
- package/dist/cli.js +3298 -1774
- package/docs/AGENT_FEATURES.md +30 -0
- package/docs/AGENT_TRENDS.md +28 -0
- package/docs/USAGE.md +16 -0
- package/docs/VALIDATION.md +21 -1
- package/documentation/app.js +88 -12
- package/documentation/index.html +71 -1
- package/examples/agent_features.md +14 -0
- package/package.json +1 -1
package/docs/AGENT_FEATURES.md
CHANGED
|
@@ -77,3 +77,33 @@ Cline/Roo, and Copilot workflows.
|
|
|
77
77
|
concept — installing a mode just writes a scoped agent definition.
|
|
78
78
|
- The self-review gate is heuristic and deterministic; it is the automatic
|
|
79
79
|
safety net on the PR path, not a replacement for the model-driven review.
|
|
80
|
+
|
|
81
|
+
## v1.13.9 Additions
|
|
82
|
+
|
|
83
|
+
Five additions from a comparison with current Kiro/Spec Kit, Amp, Cursor,
|
|
84
|
+
Jules, and Antigravity workflows. All keep model and exec behind injectable
|
|
85
|
+
runners, so the core logic is deterministic and unit-tested offline.
|
|
86
|
+
|
|
87
|
+
| Addition | Surface | What it adds |
|
|
88
|
+
| --- | --- | --- |
|
|
89
|
+
| Spec-driven development | `ur spec init\|generate\|approve\|run\|status` + `.ur/specs/` | requirements -> design -> tasks documents and a phase/approval record; executes the Spec Kit / Kiro `- [ ] T1: ...` task list one task at a time, checking off each PASS |
|
|
90
|
+
| In-loop model escalation | `ur escalate plan\|run\|oracle\|policy` + `.ur/escalation.json` | capability-aware fast/oracle tiers from `model-doctor`; routine work runs fast and auto-escalates hard/failed work to the strong model; `oracle` is a one-shot second opinion |
|
|
91
|
+
| Best-of-N judging | `ur arena "<task>" [--agents N] [--apply]` | runs N agents on one task in isolated worktrees, scores diffs with the self-review gate + verdict/diff heuristics, surfaces (optionally applies) the winner |
|
|
92
|
+
| Self-healing CI loop | `ur ci-loop [--command ...] [--commit] [--push]` | run -> on failure summarize -> fix agent -> re-run, bounded by retries; commits/pushes are self-review gated; `--from-log` seeds the first failure |
|
|
93
|
+
| Verifiable artifacts | `ur artifacts add\|capture-diff\|capture-tests\|approve\|reject` + `.ur/artifacts/` | reviewable deliverables with pending/approved/rejected status and threaded feedback; threads into the provenance stack (`claim-ledger`, `trace`, `evidence`) |
|
|
94
|
+
|
|
95
|
+
### Commands
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
ur spec init checkout --goal "1. add cart 2. add payment 3. add receipt"
|
|
99
|
+
ur spec approve checkout requirements
|
|
100
|
+
ur spec run checkout --all
|
|
101
|
+
ur escalate plan "debug the race condition in the scheduler"
|
|
102
|
+
ur escalate run "refactor the cache layer" --force-oracle
|
|
103
|
+
ur escalate oracle "is this lock-free queue correct?"
|
|
104
|
+
ur arena "implement the rate limiter" --agents 3 --apply
|
|
105
|
+
ur ci-loop --command "bun test" --max-attempts 3
|
|
106
|
+
ur artifacts capture-diff
|
|
107
|
+
ur artifacts capture-tests --command "bun test"
|
|
108
|
+
ur artifacts approve 1
|
|
109
|
+
```
|
package/docs/AGENT_TRENDS.md
CHANGED
|
@@ -23,6 +23,14 @@ ur code-index build
|
|
|
23
23
|
ur code-index search "where is the rate limiter configured"
|
|
24
24
|
ur role-mode install all
|
|
25
25
|
ur agent-task pr --create --dry-run # runs the self-review gate first
|
|
26
|
+
ur spec init checkout --goal "1. add cart 2. add payment 3. add receipt"
|
|
27
|
+
ur spec run checkout --all --dry-run
|
|
28
|
+
ur escalate plan "debug the scheduler race"
|
|
29
|
+
ur escalate run "refactor the cache layer" --force-oracle --dry-run
|
|
30
|
+
ur arena "implement a debounce helper" --agents 2 --dry-run
|
|
31
|
+
ur ci-loop --command "bun test" --dry-run
|
|
32
|
+
ur artifacts capture-diff
|
|
33
|
+
ur artifacts capture-tests --command "bun test"
|
|
26
34
|
ur claim-ledger validate
|
|
27
35
|
ur browser-qa validate
|
|
28
36
|
```
|
|
@@ -52,6 +60,26 @@ Inside an interactive session:
|
|
|
52
60
|
| Security and prompt-injection resistance | Covered | allow/ask/deny permissions, shell safety analysis, secret scan, untrusted web-content guidance, OS-level execution sandbox (macOS Seatbelt, Linux bubblewrap) | Continuously test web/MCP injection cases |
|
|
53
61
|
| Agent identity and delegated authorization | Partial | MCP OAuth/XAA helpers, local trust boundaries, permission rules | Add portable cross-agent identity only with an opt-in A2A task adapter |
|
|
54
62
|
| Multimodal workflows | Partial | `/image`, `/video`, `/youtube`, `/voice`, browser workflows | Add model-aware multimodal capability reporting for local Ollama setups |
|
|
63
|
+
| Spec-driven development | Covered | `ur spec` scaffolds requirements/design/tasks under `.ur/specs/`, tracks phase/approvals, and runs the Spec Kit / Kiro task list one task at a time | Add bidirectional sync with an external `specs/` directory |
|
|
64
|
+
| Capability-aware model escalation | Covered | `ur escalate` selects fast/oracle tiers from `model-doctor`, runs routine work fast, and auto-escalates hard/failed work to the strong local model | Learn per-model success rates to tune the difficulty threshold |
|
|
65
|
+
| Best-of-N agent judging | Covered | `ur arena` runs N agents per task in isolated worktrees and judges diffs with the self-review gate; winner is selectable/appliable | Add an optional model judge alongside the deterministic scorer |
|
|
66
|
+
| Self-healing CI | Covered | `ur ci-loop` runs a command, summarizes failures, invokes a fix agent, and re-runs with bounded retries; commits/pushes are self-review gated | Wire to `ur trigger` so a failed CI webhook auto-launches the loop |
|
|
67
|
+
| Verifiable artifacts | Covered | `ur artifacts` records plans/diffs/test-runs with approve/reject/feedback under `.ur/artifacts/` | Attach browser-QA screenshots and link artifacts to claim-ledger entries |
|
|
68
|
+
|
|
69
|
+
## v1.13.9 Direct CLI Surfaces
|
|
70
|
+
|
|
71
|
+
These surfaces are registered as normal shell subcommands and as local slash
|
|
72
|
+
commands, so users can run them directly without inserting `--` before their
|
|
73
|
+
feature-specific flags:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
ur spec init demo --goal "1. add a utils.add function 2. add a test"
|
|
77
|
+
ur spec run demo --all --dry-run
|
|
78
|
+
ur arena "implement a debounce helper" --agents 2 --dry-run
|
|
79
|
+
ur escalate run "refactor the cache layer" --force-oracle --dry-run
|
|
80
|
+
ur ci-loop --command "bun test" --dry-run
|
|
81
|
+
ur artifacts capture-tests --command "bun test"
|
|
82
|
+
```
|
|
55
83
|
|
|
56
84
|
## A2A Position
|
|
57
85
|
|
package/docs/USAGE.md
CHANGED
|
@@ -84,6 +84,11 @@ UR includes slash commands and CLI subcommands for common workflows:
|
|
|
84
84
|
- `ur agents` to list configured agents
|
|
85
85
|
- `ur agent-trends` to inspect coverage for current agent technology trends
|
|
86
86
|
- `ur a2a card` to print UR's Agent Card metadata for A2A discovery
|
|
87
|
+
- `ur spec ...` to scaffold requirements, design, and tasks, then run a spec task list
|
|
88
|
+
- `ur escalate ...` to plan, run, or ask an oracle model for hard tasks
|
|
89
|
+
- `ur arena ...` to run multiple agents on the same task and select a winner
|
|
90
|
+
- `ur ci-loop ...` to run tests, repair failures, and rerun with a bounded loop
|
|
91
|
+
- `ur artifacts ...` to capture reviewable diffs, test runs, notes, and feedback
|
|
87
92
|
- `ur doctor` to inspect CLI health
|
|
88
93
|
- `ur update` or `ur upgrade` to check for updates
|
|
89
94
|
|
|
@@ -92,6 +97,17 @@ Interactive sessions also check the published package version and show
|
|
|
92
97
|
|
|
93
98
|
Run each command with `--help` for exact flags.
|
|
94
99
|
|
|
100
|
+
Agent platform examples:
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
ur spec init demo --goal "1. add a utils.add function 2. add a test"
|
|
104
|
+
ur spec run demo --all --dry-run
|
|
105
|
+
ur arena "implement a debounce helper" --agents 2 --dry-run
|
|
106
|
+
ur escalate run "refactor the cache layer" --force-oracle --dry-run
|
|
107
|
+
ur ci-loop --command "bun test" --dry-run
|
|
108
|
+
ur artifacts capture-diff
|
|
109
|
+
```
|
|
110
|
+
|
|
95
111
|
## Permissions
|
|
96
112
|
|
|
97
113
|
By default, UR asks before sensitive tool actions. For automation, use explicit allow and deny lists:
|
package/docs/VALIDATION.md
CHANGED
|
@@ -17,7 +17,7 @@ You need:
|
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
19
|
ur --version
|
|
20
|
-
# expected: 1.
|
|
20
|
+
# expected: 1.14.0 (Ur)
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 1. Marketplace tree resolves
|
|
@@ -184,6 +184,22 @@ for any literal `<system-reminder>` text. There should be none. The filter
|
|
|
184
184
|
strips them at render time as defense in depth even if the model echoes a
|
|
185
185
|
reminder back.
|
|
186
186
|
|
|
187
|
+
## 9. Direct agent-platform commands parse feature flags
|
|
188
|
+
|
|
189
|
+
These commands should parse their own flags directly, without requiring a `--`
|
|
190
|
+
separator after the command name:
|
|
191
|
+
|
|
192
|
+
```sh
|
|
193
|
+
ur spec init validation-demo --goal "1. add a helper 2. add a test"
|
|
194
|
+
ur spec run validation-demo --all --dry-run
|
|
195
|
+
ur arena "implement a debounce helper" --agents 2 --dry-run
|
|
196
|
+
ur escalate run "refactor the cache layer" --force-oracle --dry-run
|
|
197
|
+
ur ci-loop --command "bun test" --dry-run
|
|
198
|
+
ur artifacts capture-tests --command "bun test"
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Expected: no `unknown option` or `too many arguments` parser errors.
|
|
202
|
+
|
|
187
203
|
## What to do if any step fails
|
|
188
204
|
|
|
189
205
|
- Step 1 (marketplace): check `ls ~/.ur/marketplaces/` — `ur-plugins-official`
|
|
@@ -196,3 +212,7 @@ reminder back.
|
|
|
196
212
|
to register — file an issue with the version (`ur --version`).
|
|
197
213
|
- Step 8 (filter): if `<system-reminder>` appears in visible prose, copy
|
|
198
214
|
the literal output and file an issue.
|
|
215
|
+
- Step 9 (direct commands): run `ur --help` and confirm `spec`, `arena`,
|
|
216
|
+
`escalate`, `ci-loop`, and `artifacts` appear. If `unknown option` or
|
|
217
|
+
`too many arguments` appears, reinstall `ur-agent@latest` and verify the
|
|
218
|
+
npm version with `npm view ur-agent version`.
|
package/documentation/app.js
CHANGED
|
@@ -13,9 +13,15 @@ const featureGroups = [
|
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
title: 'Agent platform',
|
|
16
|
-
tags: ['workflow', 'pattern', 'crew', 'goal'],
|
|
17
|
-
text: '
|
|
18
|
-
commands: ['ur workflow', 'ur pattern', 'ur crew', 'ur goal'],
|
|
16
|
+
tags: ['spec', 'workflow', 'pattern', 'crew', 'goal'],
|
|
17
|
+
text: 'Spec-driven development, durable workflows, collaboration patterns, parallel crews, long-horizon goals, live execution boards, and resumable checkpoint state.',
|
|
18
|
+
commands: ['ur spec', 'ur workflow', 'ur pattern', 'ur crew', 'ur goal'],
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
title: 'Judging, escalation, and repair',
|
|
22
|
+
tags: ['oracle', 'arena', 'CI', 'artifacts'],
|
|
23
|
+
text: 'Capability-aware fast/oracle model routing, best-of-N agent judging, self-healing CI loops, and reviewable artifacts for diffs, test runs, plans, and feedback.',
|
|
24
|
+
commands: ['ur escalate', 'ur arena', 'ur ci-loop', 'ur artifacts'],
|
|
19
25
|
},
|
|
20
26
|
{
|
|
21
27
|
title: 'Automation and triggers',
|
|
@@ -32,8 +38,8 @@ const featureGroups = [
|
|
|
32
38
|
{
|
|
33
39
|
title: 'Evaluation and verification',
|
|
34
40
|
tags: ['evals', 'review', 'QA'],
|
|
35
|
-
text: 'Replayable eval suites, self-review PR gate, browser QA fixtures, verifier reminders, trace inspection, and subagent timelines.',
|
|
36
|
-
commands: ['ur eval', 'ur agent-task', 'ur browser-qa', '/verify', '/trace'],
|
|
41
|
+
text: 'Replayable eval suites, self-review PR gate, browser QA fixtures, verifier reminders, trace inspection, reviewable artifacts, and subagent timelines.',
|
|
42
|
+
commands: ['ur eval', 'ur agent-task', 'ur browser-qa', 'ur artifacts', '/verify', '/trace'],
|
|
37
43
|
},
|
|
38
44
|
{
|
|
39
45
|
title: 'Interoperability',
|
|
@@ -113,6 +119,20 @@ const commands = [
|
|
|
113
119
|
summary: 'List configured agents and project agents available to sessions.',
|
|
114
120
|
examples: ['ur agents', 'ur --agents \'{"reviewer":{"description":"Reviews code","prompt":"Review carefully"}}\''],
|
|
115
121
|
},
|
|
122
|
+
{
|
|
123
|
+
name: 'arena',
|
|
124
|
+
category: 'Agent Platform',
|
|
125
|
+
aliases: ['best-of'],
|
|
126
|
+
summary: 'Run multiple agents on the same task in isolated worktrees, score their diffs, and optionally apply the winning patch.',
|
|
127
|
+
examples: ['ur arena "implement a debounce helper" --agents 2 --dry-run', 'ur arena "implement the rate limiter" --agents 3', 'ur arena "fix the parser" --agents 3 --apply'],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'artifacts',
|
|
131
|
+
category: 'Evidence',
|
|
132
|
+
aliases: ['artifact'],
|
|
133
|
+
summary: 'Record reviewable deliverables under `.ur/artifacts` with pending, approved, rejected, and feedback states.',
|
|
134
|
+
examples: ['ur artifacts list', 'ur artifacts capture-diff', 'ur artifacts capture-tests --command "bun test"', 'ur artifacts approve 1', 'ur artifacts reject 1 --feedback "Needs a failing test first"'],
|
|
135
|
+
},
|
|
116
136
|
{
|
|
117
137
|
name: 'auth',
|
|
118
138
|
category: 'Ops',
|
|
@@ -134,6 +154,13 @@ const commands = [
|
|
|
134
154
|
summary: 'Validate and smoke-run browser replay fixtures under `.ur/browser-qa`.',
|
|
135
155
|
examples: ['ur browser-qa list', 'ur browser-qa validate', 'ur browser-qa run home-page-smoke --dry-run'],
|
|
136
156
|
},
|
|
157
|
+
{
|
|
158
|
+
name: 'ci-loop',
|
|
159
|
+
category: 'Automation',
|
|
160
|
+
aliases: ['heal'],
|
|
161
|
+
summary: 'Run a build or test command, summarize failures, invoke a fix agent, and rerun with a bounded retry budget.',
|
|
162
|
+
examples: ['ur ci-loop --command "bun test" --dry-run', 'ur ci-loop --command "bun test" --max-attempts 3', 'ur ci-loop --from-log failure.log --dry-run', 'ur ci-loop --command "bun test" --commit'],
|
|
163
|
+
},
|
|
137
164
|
{
|
|
138
165
|
name: 'claim-ledger',
|
|
139
166
|
category: 'Evidence',
|
|
@@ -162,6 +189,13 @@ const commands = [
|
|
|
162
189
|
summary: 'Check health of the installation and configured environment.',
|
|
163
190
|
examples: ['ur doctor', 'ur ur-doctor', 'ur model-doctor'],
|
|
164
191
|
},
|
|
192
|
+
{
|
|
193
|
+
name: 'escalate',
|
|
194
|
+
category: 'Models',
|
|
195
|
+
aliases: [],
|
|
196
|
+
summary: 'Plan, run, or consult a capability-aware fast/oracle model path for hard reasoning, debugging, review, and refactor tasks.',
|
|
197
|
+
examples: ['ur escalate plan "debug the scheduler race"', 'ur escalate run "refactor the cache layer" --force-oracle --dry-run', 'ur escalate oracle "is this lock-free queue correct?"', 'ur escalate policy --fast qwen2.5-coder --oracle qwen3-coder:480b-cloud'],
|
|
198
|
+
},
|
|
165
199
|
{
|
|
166
200
|
name: 'eval',
|
|
167
201
|
category: 'Verification',
|
|
@@ -253,6 +287,13 @@ const commands = [
|
|
|
253
287
|
summary: 'Build and search a project-local memory index over durable memory, docs, README, and instructions.',
|
|
254
288
|
examples: ['ur semantic-memory build', 'ur semantic-memory search "release process"', 'ur semantic-memory status --json'],
|
|
255
289
|
},
|
|
290
|
+
{
|
|
291
|
+
name: 'spec',
|
|
292
|
+
category: 'Agent Platform',
|
|
293
|
+
aliases: ['specs'],
|
|
294
|
+
summary: 'Scaffold requirements, design, and task documents under `.ur/specs`, track approvals, and run the task list one item at a time.',
|
|
295
|
+
examples: ['ur spec init demo --goal "1. add a utils.add function 2. add a test"', 'ur spec status demo', 'ur spec approve demo requirements', 'ur spec run demo --all --dry-run', 'ur spec generate demo tasks --dry-run'],
|
|
296
|
+
},
|
|
256
297
|
{
|
|
257
298
|
name: 'setup-token',
|
|
258
299
|
category: 'Ops',
|
|
@@ -291,7 +332,7 @@ const slashGroups = [
|
|
|
291
332
|
},
|
|
292
333
|
{
|
|
293
334
|
title: 'Editing and delivery',
|
|
294
|
-
items: ['/diff', '/commit', '/commit-push-pr', '/review', '/verify', '/trace', '/agent-task'],
|
|
335
|
+
items: ['/diff', '/commit', '/commit-push-pr', '/review', '/verify', '/trace', '/agent-task', '/artifacts'],
|
|
295
336
|
text: 'Review changes, create commits, prepare PRs, inspect the trace, and run verification.',
|
|
296
337
|
},
|
|
297
338
|
{
|
|
@@ -301,8 +342,8 @@ const slashGroups = [
|
|
|
301
342
|
},
|
|
302
343
|
{
|
|
303
344
|
title: 'Agents and orchestration',
|
|
304
|
-
items: ['/agents', '/agent-templates', '/workflow', '/pattern', '/crew', '/goal', '/route', '/role-mode'],
|
|
305
|
-
text: 'Manage agents, install role modes, run workflows, and coordinate multi-agent work.',
|
|
345
|
+
items: ['/agents', '/agent-templates', '/spec', '/workflow', '/pattern', '/crew', '/goal', '/arena', '/route', '/role-mode'],
|
|
346
|
+
text: 'Manage agents, install role modes, run specs and workflows, and coordinate multi-agent work.',
|
|
306
347
|
},
|
|
307
348
|
{
|
|
308
349
|
title: 'Memory and evidence',
|
|
@@ -311,13 +352,13 @@ const slashGroups = [
|
|
|
311
352
|
},
|
|
312
353
|
{
|
|
313
354
|
title: 'Automation and evals',
|
|
314
|
-
items: ['/automation', '/trigger', '/eval', '/browser-qa', '/actions', '/stability'],
|
|
315
|
-
text: 'Run recurring prompts, webhook-triggered runs, browser smoke checks, evals, and stability diagnostics.',
|
|
355
|
+
items: ['/automation', '/trigger', '/ci-loop', '/eval', '/browser-qa', '/actions', '/stability'],
|
|
356
|
+
text: 'Run recurring prompts, webhook-triggered runs, self-healing CI loops, browser smoke checks, evals, and stability diagnostics.',
|
|
316
357
|
},
|
|
317
358
|
{
|
|
318
359
|
title: 'Models, tools, and interop',
|
|
319
|
-
items: ['/model', '/model-doctor', '/model-route', '/mcp', '/plugin', '/skills', '/sdk', '/a2a-card'],
|
|
320
|
-
text: 'Pick models, inspect capabilities, manage MCP/plugin extensions, and expose interop surfaces.',
|
|
360
|
+
items: ['/model', '/model-doctor', '/model-route', '/escalate', '/mcp', '/plugin', '/skills', '/sdk', '/a2a-card'],
|
|
361
|
+
text: 'Pick models, inspect capabilities, escalate to oracle models, manage MCP/plugin extensions, and expose interop surfaces.',
|
|
321
362
|
},
|
|
322
363
|
{
|
|
323
364
|
title: 'Security operations',
|
|
@@ -362,6 +403,11 @@ const projectFiles = [
|
|
|
362
403
|
text: 'Workflow YAML specs and checkpoint state for `ur workflow` and goal resumes.',
|
|
363
404
|
example: 'ur workflow init release',
|
|
364
405
|
},
|
|
406
|
+
{
|
|
407
|
+
title: '.ur/specs/',
|
|
408
|
+
text: 'Spec-driven requirements, design, task lists, phase state, and approvals for `ur spec`.',
|
|
409
|
+
example: 'ur spec init demo --goal "1. add a helper 2. add a test"',
|
|
410
|
+
},
|
|
365
411
|
{
|
|
366
412
|
title: '.ur/automations/',
|
|
367
413
|
text: 'Cron-like automation specs for project-local scheduled headless prompts.',
|
|
@@ -382,6 +428,11 @@ const projectFiles = [
|
|
|
382
428
|
text: 'Claim provenance ledger and evidence files.',
|
|
383
429
|
example: 'ur claim-ledger validate',
|
|
384
430
|
},
|
|
431
|
+
{
|
|
432
|
+
title: '.ur/artifacts/',
|
|
433
|
+
text: 'Reviewable plans, diffs, test runs, screenshots, notes, approvals, rejections, and feedback.',
|
|
434
|
+
example: 'ur artifacts capture-diff',
|
|
435
|
+
},
|
|
385
436
|
{
|
|
386
437
|
title: '.ur/browser-qa/',
|
|
387
438
|
text: 'Browser replay fixtures and smoke-test targets.',
|
|
@@ -410,6 +461,31 @@ const examples = [
|
|
|
410
461
|
text: 'Dry-run first, then create the PR after the deterministic gate passes.',
|
|
411
462
|
code: 'ur agent-task pr --create --dry-run\nur agent-task pr --create',
|
|
412
463
|
},
|
|
464
|
+
{
|
|
465
|
+
title: 'Spec-driven implementation',
|
|
466
|
+
text: 'Create requirements, design, and tasks, then run one task at a time.',
|
|
467
|
+
code: 'ur spec init demo --goal "1. add a utils.add function 2. add a test"\nur spec status demo\nur spec run demo --all --dry-run',
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
title: 'Best-of-N agent run',
|
|
471
|
+
text: 'Let isolated agents attempt the same task and surface the strongest diff.',
|
|
472
|
+
code: 'ur arena "implement a debounce helper" --agents 2 --dry-run\nur arena "fix the parser" --agents 3 --apply',
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
title: 'Model escalation',
|
|
476
|
+
text: 'Plan a fast/oracle route or force the oracle path for hard work.',
|
|
477
|
+
code: 'ur escalate plan "debug the scheduler race"\nur escalate run "refactor the cache layer" --force-oracle --dry-run',
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
title: 'Self-healing CI',
|
|
481
|
+
text: 'Run a test command, summarize failures, attempt a bounded fix loop, and rerun.',
|
|
482
|
+
code: 'ur ci-loop --command "bun test" --dry-run\nur ci-loop --command "bun test" --max-attempts 3',
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
title: 'Reviewable artifacts',
|
|
486
|
+
text: 'Capture diffs or test runs for approval and feedback.',
|
|
487
|
+
code: 'ur artifacts capture-diff\nur artifacts capture-tests --command "bun test"\nur artifacts approve 1',
|
|
488
|
+
},
|
|
413
489
|
{
|
|
414
490
|
title: 'A2A local task server',
|
|
415
491
|
text: 'Expose Agent Card discovery and token-gated task execution.',
|
package/documentation/index.html
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<main id="content" class="content">
|
|
44
44
|
<header class="topbar">
|
|
45
45
|
<div>
|
|
46
|
-
<p class="eyebrow">Version 1.
|
|
46
|
+
<p class="eyebrow">Version 1.14.0</p>
|
|
47
47
|
<h1>UR Agent Documentation</h1>
|
|
48
48
|
<p class="lead">A practical, tutorial-style reference for installing, configuring, automating, extending, and operating UR Agent.</p>
|
|
49
49
|
</div>
|
|
@@ -249,6 +249,68 @@ ur automation run-due --dry-run
|
|
|
249
249
|
ur automation install --platform launchd --interval 300
|
|
250
250
|
ur automation status</code></pre>
|
|
251
251
|
</article>
|
|
252
|
+
|
|
253
|
+
<article>
|
|
254
|
+
<h3>Drive a change from a spec</h3>
|
|
255
|
+
<ol>
|
|
256
|
+
<li>Create a spec with requirements, design, tasks, and approval state.</li>
|
|
257
|
+
<li>Inspect or approve each phase.</li>
|
|
258
|
+
<li>Run the task list one item at a time, or use <code>--all</code>.</li>
|
|
259
|
+
</ol>
|
|
260
|
+
<pre><code>ur spec init demo --goal "1. add a utils.add function 2. add a test"
|
|
261
|
+
ur spec status demo
|
|
262
|
+
ur spec approve demo requirements
|
|
263
|
+
ur spec run demo --all --dry-run</code></pre>
|
|
264
|
+
</article>
|
|
265
|
+
|
|
266
|
+
<article>
|
|
267
|
+
<h3>Escalate hard work to an oracle model</h3>
|
|
268
|
+
<ol>
|
|
269
|
+
<li>Ask UR to plan the fast/oracle model route.</li>
|
|
270
|
+
<li>Run routine work on the fast tier.</li>
|
|
271
|
+
<li>Force or auto-trigger oracle escalation for hard debugging and review.</li>
|
|
272
|
+
</ol>
|
|
273
|
+
<pre><code>ur escalate plan "debug the scheduler race"
|
|
274
|
+
ur escalate run "refactor the cache layer" --force-oracle --dry-run
|
|
275
|
+
ur escalate oracle "is this lock-free queue correct?"</code></pre>
|
|
276
|
+
</article>
|
|
277
|
+
|
|
278
|
+
<article>
|
|
279
|
+
<h3>Compare multiple agent attempts</h3>
|
|
280
|
+
<ol>
|
|
281
|
+
<li>Run multiple agents against the same task in isolated worktrees.</li>
|
|
282
|
+
<li>Let the deterministic self-review gate score the candidate diffs.</li>
|
|
283
|
+
<li>Apply the winner only when you are ready.</li>
|
|
284
|
+
</ol>
|
|
285
|
+
<pre><code>ur arena "implement a debounce helper" --agents 2 --dry-run
|
|
286
|
+
ur arena "fix the parser" --agents 3
|
|
287
|
+
ur arena "fix the parser" --agents 3 --apply</code></pre>
|
|
288
|
+
</article>
|
|
289
|
+
|
|
290
|
+
<article>
|
|
291
|
+
<h3>Repair failing CI in a bounded loop</h3>
|
|
292
|
+
<ol>
|
|
293
|
+
<li>Run the build or test command.</li>
|
|
294
|
+
<li>Summarize the failure and launch a fix attempt.</li>
|
|
295
|
+
<li>Rerun until the command passes or the retry budget is exhausted.</li>
|
|
296
|
+
</ol>
|
|
297
|
+
<pre><code>ur ci-loop --command "bun test" --dry-run
|
|
298
|
+
ur ci-loop --command "bun test" --max-attempts 3
|
|
299
|
+
ur ci-loop --from-log failure.log --dry-run</code></pre>
|
|
300
|
+
</article>
|
|
301
|
+
|
|
302
|
+
<article>
|
|
303
|
+
<h3>Capture reviewable artifacts</h3>
|
|
304
|
+
<ol>
|
|
305
|
+
<li>Capture the current diff or a test run under <code>.ur/artifacts</code>.</li>
|
|
306
|
+
<li>Review the saved body and status.</li>
|
|
307
|
+
<li>Approve, reject, or add feedback.</li>
|
|
308
|
+
</ol>
|
|
309
|
+
<pre><code>ur artifacts capture-diff
|
|
310
|
+
ur artifacts capture-tests --command "bun test"
|
|
311
|
+
ur artifacts show 1
|
|
312
|
+
ur artifacts approve 1</code></pre>
|
|
313
|
+
</article>
|
|
252
314
|
</div>
|
|
253
315
|
</section>
|
|
254
316
|
|
|
@@ -361,9 +423,17 @@ ur automation daemon --once --dry-run</code></pre>
|
|
|
361
423
|
<h3>Need evidence of what happened</h3>
|
|
362
424
|
<pre><code>/trace 20
|
|
363
425
|
ur agent-inspect --file session.jsonl
|
|
426
|
+
ur artifacts list
|
|
364
427
|
ur eval report starter
|
|
365
428
|
ur claim-ledger validate</code></pre>
|
|
366
429
|
</article>
|
|
430
|
+
<article>
|
|
431
|
+
<h3>New agent-platform command is missing</h3>
|
|
432
|
+
<pre><code>ur --version
|
|
433
|
+
ur --help | grep -E "spec|arena|escalate|ci-loop|artifacts"
|
|
434
|
+
npm install -g ur-agent@latest --registry=https://registry.npmjs.org/
|
|
435
|
+
hash -r</code></pre>
|
|
436
|
+
</article>
|
|
367
437
|
</div>
|
|
368
438
|
</section>
|
|
369
439
|
</main>
|
|
@@ -40,6 +40,20 @@ ur claim-ledger validate
|
|
|
40
40
|
ur browser-qa validate
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
Run the v1.13.9 spec, escalation, judging, CI, and artifact flows:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
ur spec init demo --goal "1. add a utils.add function 2. add a test"
|
|
47
|
+
ur spec status demo
|
|
48
|
+
ur spec run demo --all --dry-run
|
|
49
|
+
ur escalate plan "debug the scheduler race"
|
|
50
|
+
ur escalate run "refactor the cache layer" --force-oracle --dry-run
|
|
51
|
+
ur arena "implement a debounce helper" --agents 2 --dry-run
|
|
52
|
+
ur ci-loop --command "bun test" --dry-run
|
|
53
|
+
ur artifacts capture-diff
|
|
54
|
+
ur artifacts capture-tests --command "bun test"
|
|
55
|
+
```
|
|
56
|
+
|
|
43
57
|
Run the opt-in A2A server on loopback:
|
|
44
58
|
|
|
45
59
|
```sh
|