ur-agent 1.20.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.
@@ -49,8 +49,19 @@ 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
52
54
  ```
53
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
+
54
65
  ## v1.20.0 Additions
55
66
 
56
67
  | 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.
package/docs/USAGE.md CHANGED
@@ -154,6 +154,8 @@ ur exec "add tests for the parser" --concurrency 4 --json
154
154
  ur ci-loop --command "bun test" --dry-run
155
155
  ur artifacts capture-diff
156
156
  ur bg run "fix the flaky parser test" --worktree --dry-run
157
+ ur worktree list
158
+ ur worktree clean --dry-run
157
159
  ur repo-edit index
158
160
  ur repo-edit plan rename oldName --to newName
159
161
  ur repo-edit preview rename oldName --to newName
@@ -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 docs-researcher.',
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',
@@ -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'],
@@ -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.20.0</p>
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>
@@ -2,7 +2,7 @@
2
2
  "name": "ur-inline-diffs",
3
3
  "displayName": "UR Inline Diffs",
4
4
  "description": "Review UR inline diff bundles from .ur/ide/diffs inside VS Code.",
5
- "version": "1.20.0",
5
+ "version": "1.21.0",
6
6
  "publisher": "ur-agent",
7
7
  "engines": {
8
8
  "vscode": "^1.92.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ur-agent",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "UR terminal coding agent CLI",
5
5
  "type": "module",
6
6
  "packageManager": "bun@1.3.14",