@pi-unipi/unipi 2.18.0 → 2.18.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 CHANGED
@@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.18.1] — 2026-09-16
10
+
11
+ ### Fixed
12
+
13
+ - `updater`: update prompt / changelog detail bodies wrap to the overlay width instead of being truncated (was rendered at terminal width then chopped to the 80% overlay); footers advertise `↑/↓ j/k`.
14
+ - `subagents`: process-backed children now receive `--no-extensions` when the agent sets `extensions: false` (`childExtensionsArg` in `pi-args.ts`); builtin `reviewer` sets `extensions: false` so parent extensions can no longer change its read-only tool surface (#37).
15
+
16
+ ### Changed
17
+
18
+ - `btw`: the side-conversation session is read-only (`read, grep, find, ls`, no bash/edit/write) with an explicit read-only system instruction (#37).
19
+
9
20
  ## [2.18.0] — 2026-09-16
10
21
 
11
22
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/unipi",
3
- "version": "2.18.0",
3
+ "version": "2.18.1",
4
4
  "description": "All-in-one extension suite for Pi coding agent",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -86,13 +86,13 @@
86
86
  "dependencies": {
87
87
  "@pi-unipi/ask-user": "2.18.0",
88
88
  "@pi-unipi/background-tasks": "2.18.0",
89
- "@pi-unipi/btw": "2.18.0",
89
+ "@pi-unipi/btw": "2.18.1",
90
90
  "@pi-unipi/command-enchantment": "2.18.0",
91
91
  "@pi-unipi/compactor": "2.18.0",
92
92
  "@pi-unipi/core": "2.18.0",
93
93
  "@pi-unipi/footer": "2.18.0",
94
94
  "@pi-unipi/image": "2.18.0",
95
- "@pi-unipi/fusion": "2.18.0",
95
+ "@pi-unipi/fusion": "2.18.1",
96
96
  "@pi-unipi/info-screen": "2.18.0",
97
97
  "@pi-unipi/input-shortcuts": "2.18.0",
98
98
  "@pi-unipi/kanboard": "2.18.0",
@@ -101,9 +101,9 @@
101
101
  "@pi-unipi/milestone": "2.18.0",
102
102
  "@pi-unipi/notify": "2.18.0",
103
103
  "@pi-unipi/ralph": "2.18.0",
104
- "@pi-unipi/subagents": "2.18.0",
104
+ "@pi-unipi/subagents": "2.18.1",
105
105
  "@pi-unipi/trajectory": "2.18.0",
106
- "@pi-unipi/updater": "2.18.0",
106
+ "@pi-unipi/updater": "2.18.1",
107
107
  "@pi-unipi/utility": "2.18.0",
108
108
  "@pi-unipi/web-api": "2.18.0",
109
109
  "@pi-unipi/workflow": "2.18.0"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Side conversations that run in parallel. Ask a question using `/unipi:btw` while the main agent keeps working — the answer streams into a modal overlay without interrupting the current task.
4
4
 
5
- BTW opens a real Pi sub-session with coding-tool access. Use it to clarify something, explore an idea, or think through next steps without derailing the main turn. When you're ready, inject the thread back or summarize it.
5
+ BTW opens a real Pi sub-session with read-only file and search access. Use it to clarify something, explore an idea, or think through next steps without derailing the main turn. It cannot run commands or modify files; when you're ready, inject the thread back or summarize it.
6
6
 
7
7
  Based on [pi-btw](https://github.com/Neuron-Mr-White/pi-btw) by Dan Bachelder.
8
8
 
@@ -47,8 +47,8 @@ The BTW overlay opens top-centered so the main session remains visible underneat
47
47
  ## How It Works
48
48
 
49
49
  1. `/unipi:btw` creates or reuses a BTW sub-session
50
- 2. Your question runs in a real Pi session with tool access
51
- 3. The answer streams into the BTW modal overlay
50
+ 2. Your question runs in a real Pi session with read/search tool access (`read`, `grep`, `find`, `ls`)
51
+ 3. The read-only answer streams into the BTW modal overlay
52
52
  4. The thread continues until you clear it or inject it back
53
53
 
54
54
  `/unipi:btw-inject` sends the full thread to the main agent as a user message. If Pi is busy, it queues as a follow-up. `/unipi:btw-summarize` does the same but summarizes first.
@@ -2,7 +2,7 @@
2
2
  * @pi-unipi/btw — Side Conversation Extension
3
3
  *
4
4
  * A /unipi:btw side conversation channel that opens a real pi sub-session
5
- * with coding-tool access, running immediately even while the main
5
+ * with read-only coding-tool access, running immediately even while the main
6
6
  * agent is still busy.
7
7
  *
8
8
  * Based on pi-btw by Dan Bachelder, adapted for the Unipi suite.
@@ -64,6 +64,7 @@ const BTW_SYSTEM_PROMPT = [
64
64
  "If no main session messages are provided, treat this as a fully contextless tangent thread and rely only on the user's words plus your general instructions.",
65
65
  "Focus on answering the user's side questions, helping them think through ideas, or planning next steps.",
66
66
  "Do not act as if you need to continue unfinished work from the main session unless the user explicitly asks you to prepare something for injection back to it.",
67
+ "This aside is read-only: you can read and search files but cannot run commands or modify anything. Never claim to have edited, written, or executed something. If the user wants changes made, tell them to hand this thread off to the main session instead. Use /unipi:btw-inject or /unipi:btw-summarize to hand it off.",
67
68
  ].join(" ");
68
69
 
69
70
  const BTW_SUMMARIZE_SYSTEM_PROMPT =
@@ -1355,7 +1356,7 @@ export default function (pi: ExtensionAPI) {
1355
1356
  model: ctx.model,
1356
1357
  modelRuntime: sessionModelRuntime(ctx),
1357
1358
  thinkingLevel: pi.getThinkingLevel() as SessionThinkingLevel,
1358
- tools: ["read", "bash", "edit", "write"],
1359
+ tools: ["read", "grep", "find", "ls"],
1359
1360
  resourceLoader: createBtwResourceLoader(ctx),
1360
1361
  });
1361
1362
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/btw",
3
- "version": "2.18.0",
3
+ "version": "2.18.1",
4
4
  "description": "A pi extension for parallel side conversations with /unipi:btw — part of the Unipi suite",
5
5
  "type": "module",
6
6
  "main": "extensions/btw.ts",
@@ -7,6 +7,8 @@ description: Helps you use the /unipi:btw side-conversation workflow effectively
7
7
 
8
8
  Use this skill when the user wants to work in parallel with the main agent instead of derailing the current turn.
9
9
 
10
+ BTW side sessions are read-only: they can read and search files with `read`, `grep`, `find`, and `ls`, but cannot run commands or modify files. Send requested changes to the main session with `/unipi:btw-inject` or `/unipi:btw-summarize`.
11
+
10
12
  ## When to use BTW
11
13
 
12
14
  Prefer the BTW workflow when the user wants to:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/fusion",
3
- "version": "2.18.0",
3
+ "version": "2.18.1",
4
4
  "description": "Devin-style model picker, fusion presets (lead + sidekick), and Local Fusion runtime for UniPi",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@pi-unipi/core": "2.18.0",
36
- "@pi-unipi/subagents": "2.18.0"
36
+ "@pi-unipi/subagents": "2.18.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@earendil-works/pi-ai": "^0.84.0",
@@ -14,10 +14,11 @@
14
14
  * $10 / 1M $0.25 / 1M $50 / 1M $0.2 / 1M $1.2 / 1M
15
15
  * ↑/↓ select · ←/→ effort · tab lead · Enter confirm · esc cancel
16
16
  *
17
- * Row order: the active selection pinned first, then the Fusion row (when a
18
- * pair is configured), then recent (≤5, MRU), then the preset models, then
19
- * EVERY other available model — the catalogue is never hidden, the preset
20
- * only controls ordering. Typing filters all rows except the pinned one.
17
+ * Row order: the active selection pinned first, then the always-visible Fusion
18
+ * row (disabled with a setup hint when no pair is configured), then recent
19
+ * (≤5, MRU), then the preset models, then EVERY other available model — the
20
+ * catalogue is never hidden, the preset only controls ordering. Typing filters
21
+ * all rows except the pinned one.
21
22
  *
22
23
  * ←/→ steps the highlighted row's effort. Per-model effort is remembered for
23
24
  * plain model rows; the Fusion row keeps its own lead/sidekick efforts so
@@ -219,7 +220,7 @@ export class ModelPicker {
219
220
  out.push({ kind: "model", key: active.model });
220
221
  seen.add(active.model);
221
222
  }
222
- if (!pinnedFusion && this.fusionAvailable()) out.push({ kind: "fusion" });
223
+ if (!pinnedFusion) out.push({ kind: "fusion" });
223
224
 
224
225
  const ordered: ModelKey[] = [
225
226
  ...this.state.recent,
@@ -268,6 +269,18 @@ export class ModelPicker {
268
269
  return;
269
270
  }
270
271
 
272
+ const disabledFusion = row?.kind === "fusion" && !this.fusionAvailable();
273
+ if (
274
+ disabledFusion &&
275
+ (matchesKey(data, Key.tab) ||
276
+ matchesKey(data, Key.left) ||
277
+ matchesKey(data, Key.right) ||
278
+ matchesKey(data, Key.enter) ||
279
+ data === "\r")
280
+ ) {
281
+ return;
282
+ }
283
+
271
284
  if (inDropdown) {
272
285
  const items = this.dropdownItems();
273
286
  if (matchesKey(data, Key.up)) {
@@ -406,11 +419,12 @@ export class ModelPicker {
406
419
  private renderRow(row: Row, highlighted: boolean, width: number): string {
407
420
  const t = this.theme;
408
421
  const pointer = highlighted ? t.fg("accent", "❭") : t.fg("dim", "·");
422
+ const disabledFusion = row.kind === "fusion" && !this.fusionAvailable();
409
423
  // The Fusion composite gets the check when it is the active selection —
410
424
  // same affordance a single active model gets on its own row.
411
425
  const marker =
412
426
  row.kind === "fusion"
413
- ? this.state.active?.kind === "fusion"
427
+ ? !disabledFusion && this.state.active?.kind === "fusion"
414
428
  ? t.fg("success", "✓")
415
429
  : " "
416
430
  : this.markerFor(row.key);
@@ -418,9 +432,13 @@ export class ModelPicker {
418
432
  const nameRaw = row.kind === "fusion" ? "Fusion" : this.nameOf(row.key, NAME_COL - 1);
419
433
  const name =
420
434
  row.kind === "fusion"
421
- ? highlighted
422
- ? t.fg("accent", t.bold(nameRaw))
423
- : t.fg("text", nameRaw)
435
+ ? disabledFusion
436
+ ? highlighted
437
+ ? t.fg("muted", t.bold(nameRaw))
438
+ : t.fg("dim", nameRaw)
439
+ : highlighted
440
+ ? t.fg("accent", t.bold(nameRaw))
441
+ : t.fg("text", nameRaw)
424
442
  : working
425
443
  ? t.fg("accent", t.bold(nameRaw))
426
444
  : highlighted
@@ -431,25 +449,33 @@ export class ModelPicker {
431
449
  const badgeGlyph = badge === undefined ? "" : ` ${t.fg(badge === "new" ? "success" : badge === "promotion" ? "accent" : "warning", "✱")}`;
432
450
 
433
451
  const level = row.kind === "fusion" ? this.fusionLeadEffort : this.effortFor(row.key);
434
- const arrowsOn = highlighted && this.focus === "effort";
452
+ const arrowsOn = !disabledFusion && highlighted && this.focus === "effort";
435
453
  const left = arrowsOn ? t.fg("accent", "←") : " ";
436
454
  const right = arrowsOn ? t.fg("accent", "→") : " ";
437
- const label = highlighted ? t.fg("accent", effortLabel(level)) : t.fg("muted", effortLabel(level));
455
+ const label = disabledFusion
456
+ ? t.fg("dim", effortLabel(level))
457
+ : highlighted
458
+ ? t.fg("accent", effortLabel(level))
459
+ : t.fg("muted", effortLabel(level));
438
460
 
439
- let line = `${pointer} ${marker} ${pad(`${name}${badgeGlyph}`, NAME_COL)} ${left} ${this.bar(level, highlighted)} ${right} ${pad(label, 8)}`;
461
+ let line = `${pointer} ${marker} ${pad(`${name}${badgeGlyph}`, NAME_COL)} ${left} ${this.bar(level, !disabledFusion && highlighted)} ${right} ${pad(label, 8)}`;
440
462
 
441
463
  if (row.kind === "fusion") {
442
- const leadName = this.nameOf(this.lead, 14);
443
- const sideName = this.nameOf(this.sidekick, 14);
444
- const leadFocused = highlighted && this.focus === "lead";
445
- const sideFocused = highlighted && this.focus === "sidekick";
446
- const leadText = leadFocused
447
- ? `${t.fg("accent", t.bold("Lead"))} ${t.fg("accent", leadName)} ${t.fg("accent", "")}`
448
- : `${t.fg("dim", "Lead")} ${t.fg("text", leadName)} ${t.fg("dim", "")}`;
449
- const sideText = sideFocused
450
- ? `${t.fg("accent", t.bold("Sidekick"))} ${t.fg("accent", sideName)} ${t.fg("accent", "▾")}`
451
- : `${t.fg("dim", "Sidekick")} ${t.fg("text", sideName)} ${t.fg("dim", "▾")}`;
452
- line += ` ${leadText} ${sideText}`;
464
+ if (disabledFusion) {
465
+ line += ` ${t.fg("dim", "not configured — run /unipi:fusion-preset")}`;
466
+ } else {
467
+ const leadName = this.nameOf(this.lead, 14);
468
+ const sideName = this.nameOf(this.sidekick, 14);
469
+ const leadFocused = highlighted && this.focus === "lead";
470
+ const sideFocused = highlighted && this.focus === "sidekick";
471
+ const leadText = leadFocused
472
+ ? `${t.fg("accent", t.bold("Lead"))} ${t.fg("accent", leadName)} ${t.fg("accent", "▾")}`
473
+ : `${t.fg("dim", "Lead")} ${t.fg("text", leadName)} ${t.fg("dim", "▾")}`;
474
+ const sideText = sideFocused
475
+ ? `${t.fg("accent", t.bold("Sidekick"))} ${t.fg("accent", sideName)} ${t.fg("accent", "▾")}`
476
+ : `${t.fg("dim", "Sidekick")} ${t.fg("text", sideName)} ${t.fg("dim", "▾")}`;
477
+ line += ` ${leadText} ${sideText}`;
478
+ }
453
479
  }
454
480
  return truncateToWidth(line, Math.max(1, width - 1));
455
481
  }
@@ -478,6 +504,7 @@ export class ModelPicker {
478
504
  private renderPricePanel(row: Row | undefined, width: number): string[] {
479
505
  const t = this.theme;
480
506
  if (row === undefined) return [];
507
+ const disabledFusion = row.kind === "fusion" && !this.fusionAvailable();
481
508
  const primaryKey = row.kind === "fusion" ? this.lead : row.key;
482
509
  const primary = primaryKey === undefined ? undefined : this.modelsByKey.get(primaryKey);
483
510
  const side = row.kind === "fusion" && this.sidekick !== undefined ? this.modelsByKey.get(this.sidekick) : undefined;
@@ -505,18 +532,20 @@ export class ModelPicker {
505
532
  const head = cols.map(([h]) => pad(t.fg("dim", h), colWidth)).join("");
506
533
  const vals = cols.map(([, v]) => pad(t.fg("text", v), colWidth)).join("");
507
534
  const desc =
508
- row.kind === "fusion"
509
- ? t.fg("dim", "Pairs frontier intelligence with cost-efficient execution")
510
- : primary?.reasoning
511
- ? t.fg("dim", "Reasoning model · ←/→ adjusts thinking effort")
512
- : t.fg("dim", "Non-reasoning model · effort is ignored by the provider");
535
+ disabledFusion
536
+ ? t.fg("warning", "Run /unipi:fusion-preset to enable Fusion — a powerful lead model plans and reviews while a cheaper sidekick executes, for frontier performance at lower cost")
537
+ : row.kind === "fusion"
538
+ ? t.fg("dim", "Pairs frontier intelligence with cost-efficient execution")
539
+ : primary?.reasoning
540
+ ? t.fg("dim", "Reasoning model · ←/→ adjusts thinking effort")
541
+ : t.fg("dim", "Non-reasoning model · effort is ignored by the provider");
513
542
  const badges = this.state.models.some((m) => m.badge !== undefined)
514
543
  ? `${t.fg("success", "✱")} ${t.fg("dim", "New")} ${t.fg("accent", "✱")} ${t.fg("dim", "Promotion")} ${t.fg("warning", "✱")} ${t.fg("dim", "Beta")} ${t.fg("dim", "·")}`
515
544
  : "";
516
545
  const noPricing = row.kind === "fusion"
517
546
  ? !hasPricing(primaryCost) || !hasPricing(sideCost)
518
547
  : !hasPricing(primaryCost);
519
- const pricing = noPricing ? t.fg("dim", " · no pricing data from provider") : "";
548
+ const pricing = !disabledFusion && noPricing ? t.fg("dim", " · no pricing data from provider") : "";
520
549
  const description = `${badges}${badges.length > 0 ? " " : ""}${desc}${pricing}`;
521
550
  return [truncateToWidth(` ${head}`, width - 1), truncateToWidth(` ${vals}`, width - 1), truncateToWidth(` ${description}`, width - 1)];
522
551
  }
@@ -524,7 +553,9 @@ export class ModelPicker {
524
553
  private hintLine(row: Row | undefined): string {
525
554
  const t = this.theme;
526
555
  const parts: string[] = [];
527
- if (row?.kind === "fusion" && this.focus !== "effort") {
556
+ if (row?.kind === "fusion" && !this.fusionAvailable()) {
557
+ parts.push("↑↓ select", "esc cancel");
558
+ } else if (row?.kind === "fusion" && this.focus !== "effort") {
528
559
  parts.push("↑↓ select", `tab ${this.focus === "lead" ? "sidekick" : "effort"}`, "↵ apply", "esc collapse");
529
560
  } else {
530
561
  parts.push("↑↓ select");
@@ -2,6 +2,7 @@
2
2
  name: reviewer
3
3
  description: Versatile review specialist for code diffs, plans, proposed solutions, codebase health, and PR/issue validation
4
4
  tools: read, grep, find, ls
5
+ extensions: false
5
6
  thinking: high
6
7
  systemPromptMode: replace
7
8
  inheritProjectContext: true
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/subagents",
3
- "version": "2.18.0",
3
+ "version": "2.18.1",
4
4
  "description": "Subagents for UniPi — parallel execution, file locking, workflow integration",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -37,6 +37,7 @@ import {
37
37
  matchesDetachInput,
38
38
  } from "./foreground-detach.js";
39
39
  import { coerceThinkingLevel } from "./agent-runner.js";
40
+ import { childExtensionsArg } from "./pi-args.js";
40
41
 
41
42
  /** Get info registry from global */
42
43
  function getInfoRegistry() {
@@ -300,6 +301,7 @@ export default function (pi: ExtensionAPI) {
300
301
  model: launch.model,
301
302
  thinking: launch.thinking,
302
303
  tools: agent.builtinToolNames,
304
+ extensions: childExtensionsArg(agent.extensions),
303
305
  timeoutMs: launch.timeoutMs,
304
306
  parentSessionId: asyncSessionId,
305
307
  config,
@@ -24,6 +24,12 @@ const TASK_ARG_LIMIT = 8000;
24
24
 
25
25
  export type SubagentTaskDelivery = "auto" | "file";
26
26
 
27
+ export function childExtensionsArg(extensions: true | string[] | false): string[] | undefined {
28
+ if (extensions === false) return [];
29
+ if (extensions === true) return undefined;
30
+ return [...extensions];
31
+ }
32
+
27
33
  export function resolveSubagentTaskDelivery(
28
34
  env: NodeJS.ProcessEnv = process.env,
29
35
  ): SubagentTaskDelivery {