ur-agent 1.18.0 → 1.20.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.
@@ -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.18.0</p>
46
+ <p class="eyebrow">Version 1.20.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>
@@ -80,6 +80,10 @@
80
80
  <strong>Test-first execution</strong>
81
81
  <span><code>ur test-first</code> detects compile/test/lint commands, stores failure traces, and installs edit-time verifier gates.</span>
82
82
  </article>
83
+ <article>
84
+ <strong>Safety and context</strong>
85
+ <span><code>ur safety</code> evaluates command risk. <code>ur context-pack</code> writes architecture context and task memory.</span>
86
+ </article>
83
87
  <article>
84
88
  <strong>Release checks</strong>
85
89
  <span>Typecheck, tests, bundle verification, smoke, package checks, and secret scan are part of the release path.</span>
@@ -146,11 +150,11 @@ ur -p --output-format json "Review the current diff"</code></pre>
146
150
  </article>
147
151
  <article>
148
152
  <h3>Project context</h3>
149
- <p><code>UR.md</code>, <code>AGENTS.md</code>, <code>.ur/agents</code>, <code>.ur/workflows</code>, memory, knowledge, and settings shape behavior.</p>
153
+ <p><code>UR.md</code>, <code>AGENTS.md</code>, <code>.ur/agents</code>, <code>.ur/workflows</code>, <code>.ur/project-manifest.json</code>, memory, knowledge, and settings shape behavior.</p>
150
154
  </article>
151
155
  <article>
152
156
  <h3>Permission boundary</h3>
153
- <p>Tool access is controlled by permission mode, allowed/disallowed tools, sandbox settings, and user approval.</p>
157
+ <p>Tool access is controlled by permission mode, project safety policy, allowed/disallowed tools, sandbox settings, and user approval.</p>
154
158
  </article>
155
159
  <article>
156
160
  <h3>Agent orchestration</h3>
@@ -232,6 +236,33 @@ ur test-first --dry-run
232
236
  ur test-first install</code></pre>
233
237
  </article>
234
238
 
239
+ <article>
240
+ <h3>Preview command safety and pack context</h3>
241
+ <ol>
242
+ <li>Inspect the active safety policy.</li>
243
+ <li>Preview risky command behavior before adding it to scripts or automations.</li>
244
+ <li>Write architecture context and record task decisions.</li>
245
+ </ol>
246
+ <pre><code>ur safety status
247
+ ur safety check --command "rm -rf build"
248
+ ur context-pack scan
249
+ ur context-pack remember --decision "Use manifest commands first"
250
+ ur context-pack compress</code></pre>
251
+ </article>
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
+
235
266
  <article>
236
267
  <h3>Use a multi-agent pattern</h3>
237
268
  <ol>
@@ -386,8 +417,16 @@ ur --model qwen2.5-coder:latest</code></pre>
386
417
  <h3>Permissions</h3>
387
418
  <pre><code>ur -p --allowed-tools "Read,Edit,Bash(git:*)" \
388
419
  --disallowed-tools "Bash(rm:*)" \
389
- "Review the current diff"</code></pre>
390
- <p>Use explicit tool boundaries for automation. Reserve <code>--dangerously-skip-permissions</code> for disposable sandboxes.</p>
420
+ "Review the current diff"
421
+ ur safety check --command "rm -rf build"</code></pre>
422
+ <p>Use explicit tool boundaries for automation. Preview risky commands with <code>ur safety</code>. Reserve <code>--dangerously-skip-permissions</code> for disposable sandboxes.</p>
423
+ </article>
424
+ <article>
425
+ <h3>Project context</h3>
426
+ <pre><code>ur context-pack scan
427
+ ur context-pack remember --constraint "Run command evidence before success claims"
428
+ ur context-pack compress</code></pre>
429
+ <p>Context packs summarize architecture from manifests and preserve task decisions, constraints, commands, and diffs under <code>.ur/context</code>.</p>
391
430
  </article>
392
431
  <article>
393
432
  <h3>Verifier</h3>
@@ -463,7 +502,7 @@ ur claim-ledger validate</code></pre>
463
502
  <article>
464
503
  <h3>New agent-platform command is missing</h3>
465
504
  <pre><code>ur --version
466
- ur --help | grep -E "repo-edit|test-first|spec|arena|escalate|ci-loop|artifacts"
505
+ ur --help | grep -E "repo-edit|test-first|safety|context-pack|spec|arena|escalate|ci-loop|artifacts"
467
506
  npm install -g ur-agent@latest --registry=https://registry.npmjs.org/
468
507
  hash -r</code></pre>
469
508
  </article>
@@ -48,6 +48,17 @@ ur test-first --dry-run
48
48
  ur test-first install
49
49
  ```
50
50
 
51
+ Preview command safety and preserve project context:
52
+
53
+ ```sh
54
+ ur safety status
55
+ ur safety check --command "rm -rf build"
56
+ ur context-pack scan
57
+ ur context-pack remember --decision "Use package scripts before ad hoc commands"
58
+ ur context-pack remember --constraint "Never expose secret values"
59
+ ur context-pack compress
60
+ ```
61
+
51
62
  Use the local memory, evidence, and browser QA helpers:
52
63
 
53
64
  ```sh
@@ -5,5 +5,9 @@
5
5
  - Run `ur a2a card` to print UR's Agent Card metadata for A2A discovery.
6
6
  - Run `ur test-first --dry-run` to preview the detected compile/test/lint
7
7
  evidence loop for the current project.
8
+ - Run `ur safety check --command "rm -rf build"` to preview command permission
9
+ class, destructive approval, and sandbox posture.
10
+ - Run `ur context-pack scan` and `ur context-pack compress` to preserve
11
+ manifest-derived architecture context and task memory.
8
12
  - Use `/agent-trends` inside a session before planning upgrades to local
9
13
  runtime, MCP, A2A, memory, browser, eval, identity, or provenance workflows.
@@ -12,6 +12,11 @@ UR plans, reads files, edits, and can run tests. Safety + stability:
12
12
  - Stack-aware quality loops can use `ur test-first`: detect compile/test/lint
13
13
  commands, store failed command traces, and install the same commands as
14
14
  after-edit verifier gates.
15
+ - Risky commands can be previewed with `ur safety`: classify read/write/execute
16
+ and network permission, require approval for destructive operations, and
17
+ block common secret exfiltration paths.
18
+ - Architecture context can be preserved with `ur context-pack`: scan manifests,
19
+ record decisions/constraints/commands/diffs, and compress old context.
15
20
  - Edits are diffable: `/diff` shows uncommitted changes; `/rewind` rolls back.
16
21
  - Every tool call is recorded to `.ur/actions.jsonl` — see `/actions`, `/evidence`.
17
22
  - `/stability metrics` and `/stability firewall` surface oscillation, repeated
@@ -26,4 +31,8 @@ ur repo-edit apply rename oldName --to newName --check "bun test"
26
31
  ur test-first detect
27
32
  ur test-first --dry-run
28
33
  ur test-first install
34
+ ur safety check --command "rm -rf build"
35
+ ur context-pack scan
36
+ ur context-pack remember --diff "Added the health route and tests"
37
+ ur context-pack compress
29
38
  ```
@@ -5,5 +5,11 @@
5
5
  - Project conventions live in project instruction files and the project DNA file.
6
6
  - `/dna` detects language, package manager, build/test/lint/run commands,
7
7
  ignored folders, and README, saved to `.ur/project_dna.md`.
8
+ - `ur context-pack scan` writes `.ur/project-manifest.json` and
9
+ `.ur/context/architecture.md` from package scripts, instruction files,
10
+ `.ur/verify.json`, and safety config.
11
+ - `ur context-pack remember --decision|--constraint|--command|--diff|--note`
12
+ appends durable task memory to `.ur/context/task-memory.jsonl`; `compress`
13
+ writes `.ur/context/compressed.md`.
8
14
  - `/ur-init` scaffolds the `.ur/` asset folder (docs, superpowers, brainstorming,
9
15
  memory, prompts).
@@ -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.18.0",
5
+ "version": "1.20.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.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "UR terminal coding agent CLI",
5
5
  "type": "module",
6
6
  "packageManager": "bun@1.3.14",