ur-agent 1.19.0 → 1.21.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 +64 -0
- package/README.md +12 -0
- package/dist/cli.js +4596 -2358
- package/docs/AGENT_FEATURES.md +27 -0
- package/docs/AGENT_TRENDS.md +4 -0
- package/docs/AGENT_UPGRADE_1.20.0.md +42 -0
- package/docs/AGENT_UPGRADE_1.21.0.md +58 -0
- package/docs/USAGE.md +6 -0
- package/documentation/app.js +39 -6
- package/documentation/index.html +14 -1
- package/extensions/vscode-ur-inline-diffs/package.json +1 -1
- package/package.json +1 -1
package/docs/AGENT_FEATURES.md
CHANGED
|
@@ -31,6 +31,9 @@ ur safety check --command "rm -rf build"
|
|
|
31
31
|
ur context-pack scan
|
|
32
32
|
ur context-pack remember --decision "Use package scripts before ad hoc commands"
|
|
33
33
|
ur context-pack compress
|
|
34
|
+
ur acp serve --port 8123
|
|
35
|
+
ur acp status --json
|
|
36
|
+
ur exec "add tests for the parser" --concurrency 4 --json
|
|
34
37
|
ur repo-edit index
|
|
35
38
|
ur repo-edit preview rename oldName --to newName
|
|
36
39
|
ur repo-edit apply rename oldName --to newName --check "bun test"
|
|
@@ -46,8 +49,32 @@ ur browser-qa validate
|
|
|
46
49
|
ur browser-qa run home-page-smoke --dry-run
|
|
47
50
|
ur --discover-ollama
|
|
48
51
|
ur --ollama-host http://192.168.1.50:11434
|
|
52
|
+
ur worktree list
|
|
53
|
+
ur worktree clean --dry-run
|
|
49
54
|
```
|
|
50
55
|
|
|
56
|
+
## v1.21.0 Additions
|
|
57
|
+
|
|
58
|
+
| Addition | Surface | What it adds |
|
|
59
|
+
| --- | --- | --- |
|
|
60
|
+
| 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. |
|
|
61
|
+
| 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. |
|
|
62
|
+
| 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/`. |
|
|
63
|
+
| Worktree command | `ur worktree list\|status\|clean` | Inspect and clean up UR agent worktrees created by `ur bg` or slash skills. |
|
|
64
|
+
|
|
65
|
+
## v1.20.0 Additions
|
|
66
|
+
|
|
67
|
+
| Addition | Surface | What it adds |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| ACP server for IDE extensions | `ur acp serve\|stop\|status` | HTTP+JSON-RPC Agent Communication Protocol server that exposes tool listing, tool calls, task submission, and status for VS Code/Cursor/Zed-like editors. |
|
|
70
|
+
| Non-interactive pool execution | `ur exec [prompts...]` | Run one or more prompts headlessly with optional concurrency, worktrees, output capture, and dry-run. |
|
|
71
|
+
| GitHub tool | `GitHub` | PR/issue/repo operations via the `gh` CLI. |
|
|
72
|
+
| API tool | `Api` | REST HTTP calls with JSON/text output. |
|
|
73
|
+
| Browser tool | `Browser` | Headless browser automation (fetch/goto/click/type/evaluate/screenshot); interactive actions require `UR_BROWSER_TOOL=1`. |
|
|
74
|
+
| Docker tool | `Docker` | Container and compose operations via the `docker` CLI. |
|
|
75
|
+
| Test-runner tool | `TestRunner` | Auto-detect and run project tests. |
|
|
76
|
+
| Database tool | `Database` | SQL queries against SQLite, Postgres, MySQL, and DuckDB. |
|
|
77
|
+
|
|
51
78
|
## v1.19.0 Additions
|
|
52
79
|
|
|
53
80
|
| Addition | Surface | What it adds |
|
package/docs/AGENT_TRENDS.md
CHANGED
|
@@ -46,6 +46,8 @@ ur safety check --command "rm -rf build"
|
|
|
46
46
|
ur context-pack scan
|
|
47
47
|
ur context-pack remember --decision "Use manifest commands first"
|
|
48
48
|
ur context-pack compress
|
|
49
|
+
ur acp serve --port 8123
|
|
50
|
+
ur exec "add tests for the parser" --concurrency 4 --json
|
|
49
51
|
ur ci-loop --command "bun test" --dry-run
|
|
50
52
|
ur artifacts capture-diff
|
|
51
53
|
ur artifacts capture-tests --command "bun test"
|
|
@@ -88,6 +90,8 @@ Inside an interactive session:
|
|
|
88
90
|
| 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 |
|
|
89
91
|
| Verifiable artifacts | Covered | `ur artifacts` records plans/diffs/test-runs with approve/reject/feedback under `.ur/artifacts/`; comments steer active background agents through stream-json inbox injection | Attach browser-QA screenshots and link artifacts to claim-ledger entries |
|
|
90
92
|
| Native IDE review | Covered | `ur ide diff` writes `.ur/ide/diffs/` bundles and `extensions/vscode-ur-inline-diffs/` provides a VS Code tree/webview/comment surface | Add JetBrains packaging if demand appears |
|
|
93
|
+
| ACP / IDE agent server | Covered | `ur acp serve|stop|status` exposes an HTTP+JSON-RPC agent server so VS Code/Cursor/Zed extensions can list tools, call tools, and submit tasks | Ship reference editor extensions |
|
|
94
|
+
| External tool integration | Covered | Built-in `GitHub`, `Api`, `Browser`, `Docker`, `TestRunner`, and `Database` tools complement existing file-system, terminal, web, and MCP tools | Add richer output parsing and error recovery |
|
|
91
95
|
|
|
92
96
|
## v1.13.9 Direct CLI Surfaces
|
|
93
97
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# UR Agent 1.20.0 Upgrade Notes
|
|
2
|
+
|
|
3
|
+
UR 1.20.0 adds IDE integration and a richer tool surface for agent workflows.
|
|
4
|
+
|
|
5
|
+
## What Changed
|
|
6
|
+
|
|
7
|
+
- **ACP server** — `ur acp serve|stop|status` exposes an HTTP+JSON-RPC Agent
|
|
8
|
+
Communication Protocol server for VS Code/Cursor/Zed-like editors. It lists
|
|
9
|
+
tools, calls tools, sends tasks, and reports status. Existing A2A and MCP
|
|
10
|
+
support remains unchanged.
|
|
11
|
+
- **`ur exec`** — run one or more prompts in non-interactive mode with optional
|
|
12
|
+
concurrency, worktrees, and output capture.
|
|
13
|
+
- **New built-in tools** exposed through the agent loop, MCP server, and ACP
|
|
14
|
+
server:
|
|
15
|
+
- `GitHub` — PR/issue/repo operations via the `gh` CLI.
|
|
16
|
+
- `Api` — REST HTTP calls with JSON/text output and path extraction.
|
|
17
|
+
- `Browser` — headless browser automation (fetch/goto/click/type/evaluate/
|
|
18
|
+
screenshot); interactive actions require `UR_BROWSER_TOOL=1`.
|
|
19
|
+
- `Docker` — container and compose operations via the `docker` CLI.
|
|
20
|
+
- `TestRunner` — auto-detect and run project tests.
|
|
21
|
+
- `Database` — SQL queries against SQLite, Postgres, MySQL, and DuckDB.
|
|
22
|
+
- File-system and terminal tools (`FileRead`, `FileEdit`, `FileWrite`, `Glob`,
|
|
23
|
+
`Grep`, `Bash`, `PowerShell`) remain built in and are now also reachable via
|
|
24
|
+
ACP/MCP.
|
|
25
|
+
|
|
26
|
+
## New Commands
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
ur acp serve --host 127.0.0.1 --port 8123
|
|
30
|
+
ur acp status --json
|
|
31
|
+
ur exec "refactor the parser" --concurrency 2 --json
|
|
32
|
+
ur exec --file prompts.jsonl --output-dir ./outputs
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Validate
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
ur acp status
|
|
39
|
+
ur exec --dry-run "add tests"
|
|
40
|
+
bun run typecheck
|
|
41
|
+
bun test
|
|
42
|
+
```
|
|
@@ -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.
|
package/docs/USAGE.md
CHANGED
|
@@ -123,6 +123,8 @@ UR includes slash commands and CLI subcommands for common workflows:
|
|
|
123
123
|
- `ur ci-loop ...` to run tests, repair failures, and rerun with a bounded loop
|
|
124
124
|
- `ur artifacts ...` to capture reviewable diffs, test runs, notes, and feedback
|
|
125
125
|
- `ur ide diff ...` to capture editor-readable inline diff bundles
|
|
126
|
+
- `ur acp ...` to start/stop/status the Agent Communication Protocol server for IDE extensions
|
|
127
|
+
- `ur exec ...` to run prompts in non-interactive mode with optional concurrency
|
|
126
128
|
- `ur eval bench ...` to import local SWE-bench, Terminal-Bench, or Aider Polyglot exports
|
|
127
129
|
- `ur doctor` to inspect CLI health
|
|
128
130
|
- `ur update` or `ur upgrade` to check for updates
|
|
@@ -147,9 +149,13 @@ ur safety check --command "rm -rf build"
|
|
|
147
149
|
ur context-pack scan
|
|
148
150
|
ur context-pack remember --constraint "Run command evidence before claiming success"
|
|
149
151
|
ur context-pack compress
|
|
152
|
+
ur acp serve --port 8123
|
|
153
|
+
ur exec "add tests for the parser" --concurrency 4 --json
|
|
150
154
|
ur ci-loop --command "bun test" --dry-run
|
|
151
155
|
ur artifacts capture-diff
|
|
152
156
|
ur bg run "fix the flaky parser test" --worktree --dry-run
|
|
157
|
+
ur worktree list
|
|
158
|
+
ur worktree clean --dry-run
|
|
153
159
|
ur repo-edit index
|
|
154
160
|
ur repo-edit plan rename oldName --to newName
|
|
155
161
|
ur repo-edit preview rename oldName --to newName
|
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',
|
|
@@ -76,6 +76,13 @@ const commands = [
|
|
|
76
76
|
summary: 'Run one prompt headlessly and exit. This is the base mode for scripts, CI, evals, triggers, SDK calls, and A2A tasks.',
|
|
77
77
|
examples: ['ur -p "Summarize this repository"', 'ur -p --output-format json "Review the current diff"', 'ur -p --json-schema \'{"type":"object"}\' "Return structured output"'],
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
name: 'acp',
|
|
81
|
+
category: 'Interop',
|
|
82
|
+
aliases: [],
|
|
83
|
+
summary: 'Agent Communication Protocol server for IDE extensions: serve, stop, and status.',
|
|
84
|
+
examples: ['ur acp serve --port 8123', 'ur acp status --json', 'ur acp stop'],
|
|
85
|
+
},
|
|
79
86
|
{
|
|
80
87
|
name: 'a2a',
|
|
81
88
|
category: 'Interop',
|
|
@@ -83,6 +90,20 @@ const commands = [
|
|
|
83
90
|
summary: 'A2A interoperability utilities: Agent Card, local task server, and delegation tokens.',
|
|
84
91
|
examples: ['ur a2a card', 'ur a2a serve --dry-run', 'ur a2a token mint --secret "$UR_A2A_DELEGATION_SECRET" --scope coding,review'],
|
|
85
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
|
+
},
|
|
86
107
|
{
|
|
87
108
|
name: 'agent-features',
|
|
88
109
|
category: 'Agent Platform',
|
|
@@ -108,8 +129,8 @@ const commands = [
|
|
|
108
129
|
name: 'agent-templates',
|
|
109
130
|
category: 'Agent Platform',
|
|
110
131
|
aliases: ['agent-template'],
|
|
111
|
-
summary: 'List or install reusable project agent templates such as reviewer, test-runner, security-auditor, and
|
|
112
|
-
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'],
|
|
113
134
|
},
|
|
114
135
|
{
|
|
115
136
|
name: 'agent-trends',
|
|
@@ -335,6 +356,13 @@ const commands = [
|
|
|
335
356
|
summary: 'Set up a long-lived authentication token when that subscription surface is enabled.',
|
|
336
357
|
examples: ['ur setup-token'],
|
|
337
358
|
},
|
|
359
|
+
{
|
|
360
|
+
name: 'exec',
|
|
361
|
+
category: 'Automation',
|
|
362
|
+
aliases: [],
|
|
363
|
+
summary: 'Run one or more prompts in non-interactive mode with optional concurrency, worktrees, and output capture.',
|
|
364
|
+
examples: ['ur exec "add tests for the parser" --json', 'ur exec --file prompts.jsonl --concurrency 4 --output-dir ./outputs', 'ur exec "refactor auth" --worktree --dry-run'],
|
|
365
|
+
},
|
|
338
366
|
{
|
|
339
367
|
name: 'trigger',
|
|
340
368
|
category: 'Automation',
|
|
@@ -376,9 +404,14 @@ const slashGroups = [
|
|
|
376
404
|
},
|
|
377
405
|
{
|
|
378
406
|
title: 'Agents and orchestration',
|
|
379
|
-
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'],
|
|
380
408
|
text: 'Manage agents, install role modes, run specs and workflows, and coordinate multi-agent work.',
|
|
381
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
|
+
},
|
|
382
415
|
{
|
|
383
416
|
title: 'Memory and evidence',
|
|
384
417
|
items: ['/memory', '/remember', '/forget', '/knowledge', '/semantic-memory', '/claim-ledger', '/evidence', '/graph'],
|
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.21.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>
|
|
@@ -250,6 +250,19 @@ ur context-pack remember --decision "Use manifest commands first"
|
|
|
250
250
|
ur context-pack compress</code></pre>
|
|
251
251
|
</article>
|
|
252
252
|
|
|
253
|
+
<article>
|
|
254
|
+
<h3>Start the ACP server and run a prompt pool</h3>
|
|
255
|
+
<ol>
|
|
256
|
+
<li>Start the Agent Communication Protocol server for IDE extensions.</li>
|
|
257
|
+
<li>Run one or more prompts in non-interactive mode with concurrency.</li>
|
|
258
|
+
<li>Capture per-prompt outputs to a directory.</li>
|
|
259
|
+
</ol>
|
|
260
|
+
<pre><code>ur acp serve --port 8123
|
|
261
|
+
ur acp status --json
|
|
262
|
+
ur exec "add tests for the parser" --concurrency 4 --json
|
|
263
|
+
ur exec --file prompts.jsonl --output-dir ./outputs --dry-run</code></pre>
|
|
264
|
+
</article>
|
|
265
|
+
|
|
253
266
|
<article>
|
|
254
267
|
<h3>Use a multi-agent pattern</h3>
|
|
255
268
|
<ol>
|