ur-agent 1.21.0 → 1.22.1
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 +95 -0
- package/README.md +16 -2
- package/dist/cli.js +1882 -654
- package/docs/AGENT_FEATURES.md +18 -0
- package/docs/AGENT_UPGRADE_1.22.0.md +48 -0
- package/docs/USAGE.md +15 -1
- package/documentation/app.js +4 -4
- package/documentation/index.html +1 -1
- package/extensions/vscode-ur-inline-diffs/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,100 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.22.1
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- **Rich task decomposition.** `src/services/agents/decomposer.ts` splits large
|
|
7
|
+
goals into atomic subtasks with `goal`, `filesTouched`, `risk` (low/medium/high),
|
|
8
|
+
`testsRequired`, and `rollbackPoint`. `ur crew create|run|plan ... --decompose`
|
|
9
|
+
uses it; a deterministic fallback keeps the command offline and fast, while a
|
|
10
|
+
headless subagent path produces structured JSON.
|
|
11
|
+
- **Parallel specialized subagents.** New `parallel` multi-agent pattern in
|
|
12
|
+
`src/services/agents/patterns.ts`: bug finder, patch writer, test writer,
|
|
13
|
+
security auditor, and style reviewer run concurrently, then a synthesizer
|
|
14
|
+
merges their outputs. Run it with
|
|
15
|
+
`ur pattern parallel "<task>" --execute [--dry-run]`.
|
|
16
|
+
- **AgentKernel abstraction.** `src/services/agents/kernel.ts` is a pure
|
|
17
|
+
orchestrator with seven roles: planner, executor, verifier, critic, memory,
|
|
18
|
+
router, and guard. `ur spec run|verify <name> --kernel` routes through kernel
|
|
19
|
+
stages while the legacy path stays the default.
|
|
20
|
+
- **Spec verification / verifier kernel role.** `ur spec verify <name>` runs
|
|
21
|
+
deterministic `.ur/verify.json` project gates, then a read-only deep
|
|
22
|
+
verification subagent that must prove compile/test/lint/diff/runtime before
|
|
23
|
+
`VERDICT: PASS`. Persists `.ur/specs/<name>/verification.md` and records the
|
|
24
|
+
result in `spec.json`.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
- **Version bump.** Updated from 1.22.0 to 1.22.1 across `package.json`,
|
|
28
|
+
`bunfig.toml`, the VS Code extension manifest, and the bundled CLI.
|
|
29
|
+
|
|
30
|
+
### Verified
|
|
31
|
+
- Added `test/decomposition.test.ts`, `test/parallelPattern.test.ts`, and
|
|
32
|
+
`test/kernel.test.ts` covering decomposition metadata, parallel pattern
|
|
33
|
+
workflow execution, and all seven kernel roles.
|
|
34
|
+
|
|
35
|
+
## 1.22.0
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
- **Agent execution metrics in `ur eval`.** `ur eval run` now captures
|
|
39
|
+
cost, input/output tokens, model used, API duration, files changed,
|
|
40
|
+
insertions/deletions, command failures, human-edit heuristics, and optional
|
|
41
|
+
per-case `testCommand` results. Metrics are written by the headless child
|
|
42
|
+
via `UR_EVAL_METRICS_FILE`, so future parallel eval runs stay safe.
|
|
43
|
+
- **Richer eval dashboard.** `ur eval dashboard` and
|
|
44
|
+
`ur eval report <suite> --dashboard` generate local HTML dashboards with
|
|
45
|
+
summary cards (pass rate, test pass rate, cost, tokens, files changed, command
|
|
46
|
+
failures, human edits, duration) and a per-case timeline showing model, time,
|
|
47
|
+
cost, tokens, diffs, test result, and output preview.
|
|
48
|
+
- **Per-case run metrics persistence.** `ur eval run <suite> --metrics` writes
|
|
49
|
+
each case's metrics to `.ur/evals/.runs/<suite>/<case>.json` for downstream
|
|
50
|
+
analysis.
|
|
51
|
+
- **Benchmark-style reporting.** `formatEvalReport` prints aggregate cost,
|
|
52
|
+
tokens, files changed, command failures, human edits, duration, and test pass
|
|
53
|
+
rate alongside the pass-rate summary.
|
|
54
|
+
- **Spec verification / verifier kernel role.** `ur spec verify <name>` runs
|
|
55
|
+
deterministic project gates from `.ur/verify.json`, then invokes a read-only
|
|
56
|
+
deep verification subagent that must demonstrate compile/test/lint/diff/runtime
|
|
57
|
+
proof before emitting `VERDICT: PASS`. Results are persisted to
|
|
58
|
+
`.ur/specs/<name>/verification.md` and recorded in `spec.json` so `ur spec status`
|
|
59
|
+
shows the latest verdict.
|
|
60
|
+
- **AgentKernel abstraction.** Added `src/services/agents/kernel.ts`, a pure
|
|
61
|
+
orchestrator with seven roles: planner, executor, verifier, critic, memory,
|
|
62
|
+
router, and guard. `ur spec run <name> --kernel` and
|
|
63
|
+
`ur spec verify <name> --kernel` route through kernel stages while the legacy
|
|
64
|
+
loop remains the default. `src/services/agents/kernelSpec.ts` provides
|
|
65
|
+
spec-to-stage adapters.
|
|
66
|
+
- **Rich task decomposition.** Added `src/services/agents/decomposer.ts`. `ur crew
|
|
67
|
+
create|run|plan ... --decompose` splits a goal into atomic subtasks with
|
|
68
|
+
`goal`, `filesTouched`, `risk` (low/medium/high), `testsRequired`, and
|
|
69
|
+
`rollbackPoint` metadata. A deterministic fallback keeps it offline and fast;
|
|
70
|
+
the model path asks a headless subagent for structured JSON.
|
|
71
|
+
- **Parallel specialized subagents.** Added `parallel` multi-agent pattern in
|
|
72
|
+
`src/services/agents/patterns.ts`. Bug finder, patch writer, test writer,
|
|
73
|
+
security auditor, and style reviewer run in parallel, then a synthesizer merges
|
|
74
|
+
the results. `ur pattern parallel "<task>" --execute` runs it via the workflow
|
|
75
|
+
executor with concurrency matching the number of parallel agents.
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
- **`makeCliEvalRunner` resets cost state per case**, reads child metrics,
|
|
79
|
+
gathers `git diff --stat` totals, runs `expect.testCommand` when present, and
|
|
80
|
+
returns an `EvalRunMetrics` object with best-effort command-failure and
|
|
81
|
+
human-edit counts.
|
|
82
|
+
- **Version bump.** Updated from 1.21.0 to 1.22.0 across `package.json`,
|
|
83
|
+
`bunfig.toml`, and the VS Code extension manifest.
|
|
84
|
+
|
|
85
|
+
### Verified
|
|
86
|
+
- Added `test/evalMetrics.test.ts` and `test/evalDashboard.test.ts` covering
|
|
87
|
+
child metrics serialization, report aggregation, dashboard HTML rendering,
|
|
88
|
+
HTML escaping, and run-metrics persistence.
|
|
89
|
+
- Added `test/specVerify.test.ts` covering dry-run verification, gate fast-fail,
|
|
90
|
+
verification record persistence, and verifier prompt construction.
|
|
91
|
+
- Added `test/kernel.test.ts` covering all seven kernel roles and the spec
|
|
92
|
+
run/verify kernel adapters.
|
|
93
|
+
- Added `test/decomposition.test.ts` covering deterministic decomposition, risk
|
|
94
|
+
heuristics, LLM-driven dry-run decomposition, and crew metadata persistence.
|
|
95
|
+
- Added `test/parallelPattern.test.ts` covering the `parallel` pattern stages,
|
|
96
|
+
workflow compilation, and dry-run execution through the workflow executor.
|
|
97
|
+
|
|
3
98
|
## 1.21.0
|
|
4
99
|
|
|
5
100
|
### Added
|
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ as first-class subcommands in the shipped CLI.
|
|
|
124
124
|
| --- | --- |
|
|
125
125
|
| `ur` | Start an interactive terminal agent session in the current workspace. |
|
|
126
126
|
| `ur -p` | Run a non-interactive prompt with text, JSON, or stream-JSON output. |
|
|
127
|
-
| `ur spec` | Create requirements, design, and task documents under `.ur/specs/`,
|
|
127
|
+
| `ur spec` | Create requirements, design, and task documents under `.ur/specs/`, run the task list, and verify with strict proof gates. |
|
|
128
128
|
| `ur escalate` | Plan or run work with fast and oracle model tiers selected from local model capabilities. |
|
|
129
129
|
| `ur arena` | Run multiple agents on the same task in isolated worktrees and surface the winning diff. |
|
|
130
130
|
| `ur ci-loop` | Run a build or test command, hand failures to a fix agent, and retry with a bounded budget. |
|
|
@@ -135,7 +135,8 @@ as first-class subcommands in the shipped CLI.
|
|
|
135
135
|
| `ur worktree` | List, inspect, and clean up UR agent worktrees. |
|
|
136
136
|
| `ur automation` | Store and run project-local scheduled automation specs under `.ur/automations/`. |
|
|
137
137
|
| `ur workflow` | Define, validate, graph, run, and resume declarative agent workflows. |
|
|
138
|
-
| `ur crew` | Run a lead and worker subagent crew over a shared task board. |
|
|
138
|
+
| `ur crew` | Run a lead and worker subagent crew over a shared task board; `--decompose` auto-splits tasks with risk/tests/rollback metadata. |
|
|
139
|
+
| `ur pattern` | Run multi-agent collaboration patterns (PEER, DOE, concurrent, handoff, debate, parallel); `--execute` runs them as a workflow. |
|
|
139
140
|
| `ur goal` | Track long-horizon objectives that persist across sessions. |
|
|
140
141
|
| `ur repo-edit` | Build a repo edit index, plan AST-aware renames, preview patches, and apply with rollback. |
|
|
141
142
|
| `ur code-index` | Build, query, or watch a local semantic code index using Ollama embeddings. |
|
|
@@ -144,6 +145,9 @@ as first-class subcommands in the shipped CLI.
|
|
|
144
145
|
| `ur artifacts` | Capture diffs, test runs, notes, and review feedback under `.ur/artifacts/`. |
|
|
145
146
|
| `ur claim-ledger` | Map generated claims to file, web, MCP, tool, or user sources. |
|
|
146
147
|
| `ur browser-qa` | Validate and smoke-run browser QA replay fixtures. |
|
|
148
|
+
| `ur eval run` | Run an eval suite and grade outputs; optionally capture cost/tokens/files/test metrics. |
|
|
149
|
+
| `ur eval report` | Show a saved eval report; `--dashboard` writes a single-suite HTML timeline. |
|
|
150
|
+
| `ur eval dashboard` | Generate the local-first HTML dashboard across all saved reports. |
|
|
147
151
|
| `ur eval bench` | Import local SWE-bench, Terminal-Bench, or Aider Polyglot exports. |
|
|
148
152
|
| `ur model-doctor` | Inspect Ollama models and report likely agent capabilities. |
|
|
149
153
|
| `ur model-route` | Recommend a local model for a task by capability fit. |
|
|
@@ -168,6 +172,12 @@ Examples:
|
|
|
168
172
|
```sh
|
|
169
173
|
ur spec init checkout --goal "1. add cart 2. add payment 3. add receipt"
|
|
170
174
|
ur spec run checkout --all --dry-run
|
|
175
|
+
ur spec run checkout --all --kernel
|
|
176
|
+
ur spec verify checkout --kernel
|
|
177
|
+
ur crew create parser-crew --goal "fix the flaky parser test" --decompose --dry-run
|
|
178
|
+
ur crew plan parser-crew --goal "fix the flaky parser test" --decompose
|
|
179
|
+
ur crew run parser-crew --workers 3 --decompose --dry-run
|
|
180
|
+
ur pattern parallel "refactor login without changing behavior" --execute --dry-run
|
|
171
181
|
ur arena "implement a debounce helper" --agents 2 --dry-run
|
|
172
182
|
ur escalate run "refactor the cache layer" --force-oracle --dry-run
|
|
173
183
|
ur test-first detect
|
|
@@ -187,6 +197,9 @@ ur artifacts capture-tests --command "bun test"
|
|
|
187
197
|
ur agent-task pr --create --dry-run
|
|
188
198
|
ur acp serve --port 8123
|
|
189
199
|
ur exec "add tests for the parser" --concurrency 4 --json
|
|
200
|
+
ur eval run starter --metrics --json
|
|
201
|
+
ur eval report starter --dashboard
|
|
202
|
+
ur eval dashboard
|
|
190
203
|
```
|
|
191
204
|
|
|
192
205
|
## Project Context
|
|
@@ -296,6 +309,7 @@ CLI. Rebuild it after source, version, or macro changes.
|
|
|
296
309
|
- [Configuration](docs/CONFIGURATION.md)
|
|
297
310
|
- [Agent Feature Expansion](docs/AGENT_FEATURES.md)
|
|
298
311
|
- [Agent Trend Coverage](docs/AGENT_TRENDS.md)
|
|
312
|
+
- [1.22.0 Upgrade Notes](docs/AGENT_UPGRADE_1.22.0.md)
|
|
299
313
|
- [1.20.0 Upgrade Notes](docs/AGENT_UPGRADE_1.20.0.md)
|
|
300
314
|
- [1.19.0 Upgrade Notes](docs/AGENT_UPGRADE_1.19.0.md)
|
|
301
315
|
- [1.18.0 Upgrade Notes](docs/AGENT_UPGRADE_1.18.0.md)
|