ur-agent 1.20.0 → 1.22.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 +62 -0
- package/README.md +12 -0
- package/dist/cli.js +1992 -1032
- package/docs/AGENT_FEATURES.md +22 -0
- package/docs/AGENT_UPGRADE_1.21.0.md +58 -0
- package/docs/AGENT_UPGRADE_1.22.0.md +48 -0
- package/docs/USAGE.md +9 -0
- package/documentation/app.js +29 -10
- package/documentation/index.html +1 -1
- package/extensions/vscode-ur-inline-diffs/package.json +1 -1
- package/package.json +1 -1
package/docs/AGENT_FEATURES.md
CHANGED
|
@@ -49,8 +49,30 @@ ur browser-qa validate
|
|
|
49
49
|
ur browser-qa run home-page-smoke --dry-run
|
|
50
50
|
ur --discover-ollama
|
|
51
51
|
ur --ollama-host http://192.168.1.50:11434
|
|
52
|
+
ur worktree list
|
|
53
|
+
ur worktree clean --dry-run
|
|
54
|
+
ur eval run starter --metrics --json
|
|
55
|
+
ur eval report starter --dashboard
|
|
56
|
+
ur eval dashboard
|
|
52
57
|
```
|
|
53
58
|
|
|
59
|
+
## v1.22.0 Additions
|
|
60
|
+
|
|
61
|
+
| Addition | Surface | What it adds |
|
|
62
|
+
| --- | --- | --- |
|
|
63
|
+
| Eval execution metrics | `ur eval run <suite> --metrics`, `UR_EVAL_METRICS_FILE` | Child-serialized cost, tokens, model, duration, files changed, insertions/deletions, command failures, human-edit heuristics, and per-case `testCommand` pass/fail. Safe for parallel runs because each child writes its own metrics file. |
|
|
64
|
+
| Richer eval dashboard | `ur eval dashboard`, `ur eval report <suite> --dashboard` | Local-first HTML dashboard with summary cards and a per-case timeline showing model, time, cost, tokens, diffs, test result, command failures, and human edits. |
|
|
65
|
+
| Per-case run metrics persistence | `.ur/evals/.runs/<suite>/<case>.json` | `ur eval run <suite> --metrics` writes each case's metrics to a JSON file for downstream analysis. |
|
|
66
|
+
|
|
67
|
+
## v1.21.0 Additions
|
|
68
|
+
|
|
69
|
+
| Addition | Surface | What it adds |
|
|
70
|
+
| --- | --- | --- |
|
|
71
|
+
| Agent skill runner | `src/services/agents/agentSkillRunner.ts` | Reusable wrapper around `startBackgroundTask({ worktree: true, pr: true })` that polls to completion and returns a PR-style summary. |
|
|
72
|
+
| Worktree slash skills | `/debug-v2`, `/refactor`, `/paper-implementation`, `/benchmark`, `/security-review`, `/dockerize`, `/latex-paper` | Bundled slash skills that expand into prompts for isolated worktree work with clean commits and PR output. |
|
|
73
|
+
| Agent templates | `ur agent-templates install` | Adds `debug-v2`, `refactor`, `paper-implementation`, `benchmark`, `security-review`, `dockerize`, and `latex-paper` reusable agent templates under `.ur/agents/`. |
|
|
74
|
+
| Worktree command | `ur worktree list\|status\|clean` | Inspect and clean up UR agent worktrees created by `ur bg` or slash skills. |
|
|
75
|
+
|
|
54
76
|
## v1.20.0 Additions
|
|
55
77
|
|
|
56
78
|
| Addition | Surface | What it adds |
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Upgrading to UR Agent v1.21.0
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
v1.21.0 adds a set of worktree-first agent skills and a command to manage the worktrees they create.
|
|
6
|
+
|
|
7
|
+
- **Agent skill runner** — `src/services/agents/agentSkillRunner.ts` wraps
|
|
8
|
+
`startBackgroundTask({ worktree: true, pr: true })`, polls the background run to
|
|
9
|
+
completion, and returns a PR-style summary with branch, commits, PR URL, and
|
|
10
|
+
diff summary.
|
|
11
|
+
- **New bundled slash skills** — each skill expands into a prompt that instructs
|
|
12
|
+
the model to work in an isolated git worktree and produce a clean branch,
|
|
13
|
+
commits, and PR:
|
|
14
|
+
- `/debug-v2` — reproduce, root-cause, and fix a bug with a regression test
|
|
15
|
+
- `/refactor` — safe, test-backed refactoring
|
|
16
|
+
- `/paper-implementation` — implement an algorithm or system from a paper/URL
|
|
17
|
+
- `/benchmark` — add or run benchmarks and commit results
|
|
18
|
+
- `/security-review` — audit code for security issues, fix low-risk items
|
|
19
|
+
- `/dockerize` — add Dockerfile, compose file, health checks, `.dockerignore`
|
|
20
|
+
- `/latex-paper` — generate or compile a LaTeX paper/report
|
|
21
|
+
- **Matching agent templates** — `debug-v2`, `refactor`, `paper-implementation`,
|
|
22
|
+
`benchmark`, `security-review`, `dockerize`, and `latex-paper` are now part of
|
|
23
|
+
`AGENT_TEMPLATES`. Install them with `ur agent-templates install`.
|
|
24
|
+
- **`ur worktree`** — `ur worktree list|status|clean` inspects and cleans up UR
|
|
25
|
+
agent worktrees.
|
|
26
|
+
|
|
27
|
+
## Quick examples
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
# Run a bug-fix agent in an isolated worktree
|
|
31
|
+
ur -p /debug-v2 "parser crashes on empty input"
|
|
32
|
+
|
|
33
|
+
# Same through the CLI
|
|
34
|
+
ur bg run "reproduce and fix parser crash on empty input" --worktree --pr
|
|
35
|
+
|
|
36
|
+
# List active worktrees and clean up finished ones
|
|
37
|
+
ur worktree list
|
|
38
|
+
ur worktree clean --dry-run
|
|
39
|
+
ur worktree clean
|
|
40
|
+
|
|
41
|
+
# Install the new agent templates
|
|
42
|
+
ur agent-templates install debug-v2 refactor benchmark security-review dockerize latex-paper paper-implementation
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## For users of `/debug`
|
|
46
|
+
|
|
47
|
+
The existing `/debug` skill still reads the session debug log. `/debug-v2` is a
|
|
48
|
+
separate skill for bug-fix work in a worktree. You can keep using `/debug` for
|
|
49
|
+
diagnosing the current session and use `/debug-v2` (or `ur bg run ... --worktree
|
|
50
|
+
--pr`) when you want a branch + PR.
|
|
51
|
+
|
|
52
|
+
## Upgrade steps
|
|
53
|
+
|
|
54
|
+
1. Pull the release and run `bun install`.
|
|
55
|
+
2. Run `bun run typecheck` and `bun test` to confirm the local state.
|
|
56
|
+
3. Install agent templates if you want the new `.ur/agents/*.md` files:
|
|
57
|
+
`ur agent-templates install`.
|
|
58
|
+
4. No settings or project file migration is required.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Upgrading to UR Agent v1.22.0
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
v1.22.0 turns `ur eval` into a real agent benchmark tool.
|
|
6
|
+
|
|
7
|
+
- **Execution metrics** — headless `ur -p` child runs now write a metrics JSON file
|
|
8
|
+
via `UR_EVAL_METRICS_FILE`. The eval runner reads it and also runs
|
|
9
|
+
`git diff --stat` and an optional per-case `expect.testCommand`. Captured
|
|
10
|
+
metrics: cost USD, input/output tokens, model, API duration, files changed,
|
|
11
|
+
insertions/deletions, command failures, human-edit heuristics, and test
|
|
12
|
+
pass/fail.
|
|
13
|
+
- **Parallel-safe by design** — each child writes its own metrics file, so
|
|
14
|
+
future parallel eval runs will not corrupt shared cost state.
|
|
15
|
+
- **Richer dashboard** — `ur eval dashboard` and
|
|
16
|
+
`ur eval report <suite> --dashboard` generate local HTML dashboards with
|
|
17
|
+
summary cards (pass rate, test pass rate, cost, tokens, files changed, command
|
|
18
|
+
failures, human edits, duration) and a per-case timeline showing model, time,
|
|
19
|
+
cost, tokens, diffs, test result, and output preview.
|
|
20
|
+
- **Per-case metrics persistence** — `ur eval run <suite> --metrics` writes
|
|
21
|
+
each case's metrics to `.ur/evals/.runs/<suite>/<case>.json`.
|
|
22
|
+
- **Aggregate reporting** — `ur eval report <suite>` now prints totals for cost,
|
|
23
|
+
tokens, files changed, command failures, human edits, duration, and test pass
|
|
24
|
+
rate.
|
|
25
|
+
|
|
26
|
+
## Quick examples
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
# Run the starter suite and print JSON with metrics
|
|
30
|
+
ur eval run starter --metrics --json
|
|
31
|
+
|
|
32
|
+
# Write a single-suite HTML timeline dashboard
|
|
33
|
+
ur eval report starter --dashboard
|
|
34
|
+
|
|
35
|
+
# Generate the combined dashboard across all saved reports
|
|
36
|
+
ur eval dashboard
|
|
37
|
+
|
|
38
|
+
# Import a SWE-bench-style export and run it
|
|
39
|
+
ur eval bench swe-bench --file issues.jsonl --name my-bench
|
|
40
|
+
ur eval run my-bench --metrics
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Upgrade steps
|
|
44
|
+
|
|
45
|
+
1. Pull the release and run `bun install`.
|
|
46
|
+
2. Run `bun run typecheck` and `bun test` to confirm the local state.
|
|
47
|
+
3. Rebuild the bundled CLI: `bun run bundle`.
|
|
48
|
+
4. No settings or project file migration is required.
|
package/docs/USAGE.md
CHANGED
|
@@ -125,6 +125,9 @@ UR includes slash commands and CLI subcommands for common workflows:
|
|
|
125
125
|
- `ur ide diff ...` to capture editor-readable inline diff bundles
|
|
126
126
|
- `ur acp ...` to start/stop/status the Agent Communication Protocol server for IDE extensions
|
|
127
127
|
- `ur exec ...` to run prompts in non-interactive mode with optional concurrency
|
|
128
|
+
- `ur eval run ...` to run a suite, grade results, and capture execution metrics
|
|
129
|
+
- `ur eval report ...` to show a saved report or write a single-suite dashboard
|
|
130
|
+
- `ur eval dashboard` to generate the local HTML dashboard across all reports
|
|
128
131
|
- `ur eval bench ...` to import local SWE-bench, Terminal-Bench, or Aider Polyglot exports
|
|
129
132
|
- `ur doctor` to inspect CLI health
|
|
130
133
|
- `ur update` or `ur upgrade` to check for updates
|
|
@@ -154,12 +157,18 @@ ur exec "add tests for the parser" --concurrency 4 --json
|
|
|
154
157
|
ur ci-loop --command "bun test" --dry-run
|
|
155
158
|
ur artifacts capture-diff
|
|
156
159
|
ur bg run "fix the flaky parser test" --worktree --dry-run
|
|
160
|
+
ur worktree list
|
|
161
|
+
ur worktree clean --dry-run
|
|
157
162
|
ur repo-edit index
|
|
158
163
|
ur repo-edit plan rename oldName --to newName
|
|
159
164
|
ur repo-edit preview rename oldName --to newName
|
|
160
165
|
ur repo-edit apply rename oldName --to newName --check "bun test"
|
|
161
166
|
ur ide diff capture --title "Working tree review"
|
|
162
167
|
ur eval bench list
|
|
168
|
+
ur eval run starter --dry-run --json
|
|
169
|
+
ur eval run starter --metrics --json
|
|
170
|
+
ur eval report starter --dashboard
|
|
171
|
+
ur eval dashboard
|
|
163
172
|
```
|
|
164
173
|
|
|
165
174
|
## Permissions
|
package/documentation/app.js
CHANGED
|
@@ -13,15 +13,15 @@ const featureGroups = [
|
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
title: 'Agent platform',
|
|
16
|
-
tags: ['spec', 'workflow', 'pattern', 'crew', 'goal'],
|
|
16
|
+
tags: ['spec', 'workflow', 'pattern', 'crew', 'goal', 'worktree'],
|
|
17
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'],
|
|
18
|
+
commands: ['ur spec', 'ur workflow', 'ur pattern', 'ur crew', 'ur goal', 'ur worktree'],
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
title: 'Judging, escalation, and repair',
|
|
22
22
|
tags: ['oracle', 'arena', 'CI', 'artifacts'],
|
|
23
23
|
text: 'Capability-aware fast/oracle model routing, best-of-N agent judging, test-first execution loops, self-healing CI loops, and reviewable artifacts for diffs, test runs, plans, and feedback.',
|
|
24
|
-
commands: ['ur escalate', 'ur arena', 'ur test-first', 'ur ci-loop', 'ur artifacts'],
|
|
24
|
+
commands: ['ur escalate', 'ur arena', 'ur test-first', 'ur ci-loop', 'ur artifacts', 'ur bg'],
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
title: 'Reliable repo editing',
|
|
@@ -90,6 +90,20 @@ const commands = [
|
|
|
90
90
|
summary: 'A2A interoperability utilities: Agent Card, local task server, and delegation tokens.',
|
|
91
91
|
examples: ['ur a2a card', 'ur a2a serve --dry-run', 'ur a2a token mint --secret "$UR_A2A_DELEGATION_SECRET" --scope coding,review'],
|
|
92
92
|
},
|
|
93
|
+
{
|
|
94
|
+
name: 'bg',
|
|
95
|
+
category: 'Agent Platform',
|
|
96
|
+
aliases: ['background-agent'],
|
|
97
|
+
summary: 'Run and manage detached local background agents with optional worktrees and PR creation.',
|
|
98
|
+
examples: ['ur bg run "fix the flaky parser test" --worktree', 'ur bg list --json', 'ur bg status <id> --json'],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'worktree',
|
|
102
|
+
category: 'Agent Platform',
|
|
103
|
+
aliases: ['worktrees'],
|
|
104
|
+
summary: 'List, inspect, and clean up UR agent worktrees created by background runs.',
|
|
105
|
+
examples: ['ur worktree list', 'ur worktree status <id>', 'ur worktree clean --dry-run'],
|
|
106
|
+
},
|
|
93
107
|
{
|
|
94
108
|
name: 'agent-features',
|
|
95
109
|
category: 'Agent Platform',
|
|
@@ -115,8 +129,8 @@ const commands = [
|
|
|
115
129
|
name: 'agent-templates',
|
|
116
130
|
category: 'Agent Platform',
|
|
117
131
|
aliases: ['agent-template'],
|
|
118
|
-
summary: 'List or install reusable project agent templates such as reviewer, test-runner, security-auditor, and
|
|
119
|
-
examples: ['ur agent-templates list', 'ur agent-templates install reviewer test-runner', 'ur agent-templates install --force'],
|
|
132
|
+
summary: 'List or install reusable project agent templates such as reviewer, test-runner, security-auditor, debug-v2, refactor, paper-implementation, benchmark, security-review, dockerize, and latex-paper.',
|
|
133
|
+
examples: ['ur agent-templates list', 'ur agent-templates install reviewer test-runner', 'ur agent-templates install debug-v2 refactor --force'],
|
|
120
134
|
},
|
|
121
135
|
{
|
|
122
136
|
name: 'agent-trends',
|
|
@@ -227,8 +241,8 @@ const commands = [
|
|
|
227
241
|
name: 'eval',
|
|
228
242
|
category: 'Verification',
|
|
229
243
|
aliases: ['evals'],
|
|
230
|
-
summary: 'Create, validate, run, and report public agent eval suites with deterministic grading.',
|
|
231
|
-
examples: ['ur eval init', 'ur eval list', 'ur eval validate starter', 'ur eval run starter --dry-run', 'ur eval report starter'],
|
|
244
|
+
summary: 'Create, validate, run, and report public agent eval suites with deterministic grading plus execution metrics and a local HTML dashboard.',
|
|
245
|
+
examples: ['ur eval init', 'ur eval list', 'ur eval validate starter', 'ur eval run starter --dry-run', 'ur eval run starter --metrics --json', 'ur eval report starter --dashboard', 'ur eval dashboard'],
|
|
232
246
|
},
|
|
233
247
|
{
|
|
234
248
|
name: 'goal',
|
|
@@ -390,9 +404,14 @@ const slashGroups = [
|
|
|
390
404
|
},
|
|
391
405
|
{
|
|
392
406
|
title: 'Agents and orchestration',
|
|
393
|
-
items: ['/agents', '/agent-templates', '/spec', '/workflow', '/pattern', '/crew', '/goal', '/arena', '/route', '/role-mode'],
|
|
407
|
+
items: ['/agents', '/agent-templates', '/spec', '/workflow', '/pattern', '/crew', '/goal', '/arena', '/route', '/role-mode', '/bg'],
|
|
394
408
|
text: 'Manage agents, install role modes, run specs and workflows, and coordinate multi-agent work.',
|
|
395
409
|
},
|
|
410
|
+
{
|
|
411
|
+
title: 'Agent skills',
|
|
412
|
+
items: ['/debug-v2', '/refactor', '/paper-implementation', '/benchmark', '/security-review', '/dockerize', '/latex-paper', '/simplify', '/debug'],
|
|
413
|
+
text: 'Bundled slash skills that dispatch focused agent work in isolated git worktrees with clean commits and PR output.',
|
|
414
|
+
},
|
|
396
415
|
{
|
|
397
416
|
title: 'Memory and evidence',
|
|
398
417
|
items: ['/memory', '/remember', '/forget', '/knowledge', '/semantic-memory', '/claim-ledger', '/evidence', '/graph'],
|
|
@@ -611,8 +630,8 @@ const examples = [
|
|
|
611
630
|
},
|
|
612
631
|
{
|
|
613
632
|
title: 'Eval suite',
|
|
614
|
-
text: 'Create a suite, validate, run offline, then
|
|
615
|
-
code: 'ur eval init\nur eval validate starter\nur eval run starter --dry-run\nur eval report starter',
|
|
633
|
+
text: 'Create a suite, validate, run offline with metrics, then open the dashboard.',
|
|
634
|
+
code: 'ur eval init\nur eval validate starter\nur eval run starter --dry-run\nur eval run starter --metrics\nur eval report starter --dashboard',
|
|
616
635
|
},
|
|
617
636
|
{
|
|
618
637
|
title: 'Safe automation',
|
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.22.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>
|