@timmyjl12/pi-subagents 0.21.1 → 0.21.2

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
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.21.2] - 2026-11-14
11
+
12
+ ### Added
13
+ - **Fine-grained conversation scrolling.** The agent conversation viewer now scrolls one rendered line with `Alt+↑`/`Alt+↓` in regular and fullscreen TUI modes and honors configurable `tui.altScreen.lineUp`/`lineDown` bindings. Plain arrows remain in the steering editor; existing page and tail shortcuts are unchanged.
14
+
10
15
  ## [0.21.0] - 2026-11-08
11
16
 
12
17
  ### Added
package/README.md CHANGED
@@ -19,7 +19,7 @@ https://github.com/user-attachments/assets/8685261b-9338-4fea-8dfe-1c590d5df543
19
19
  - **Live widget UI** — one compact agent list with animated spinners, live tool activity, token counts, and colored status icons. `/agents → Settings → Widget` selects `all` (default), `background` (hides foreground runs already rendered as native tool results), or `off`. **Widget placement** selects `above` (default) or `below` the editor; changes apply immediately
20
20
  - **Terminal spinner for background work** — the tab/taskbar progress indicator pi blanks when a turn ends stays up while background subagents run, so an idle-looking window doesn't mean finished work (see [Terminal progress](#terminal-progress))
21
21
  - **Agent Hub** — press `←` at an empty editor to open the full-screen roster and live details whenever an agent or workflow exists. `/agent-fleet`, `Alt+A`, and `/agents → Running agents` remain available even when the widget is hidden. Inspect conversations, steer, stop or resume agents, and open workflow runs without a duplicate lower roster
22
- - **Conversation viewer** — select any agent in `/agents` to open a live-scrolling overlay of its full conversation (auto-follows new content, scroll up to pause). Steer a running agent inline by pressing `Enter` to open a composer, typing, then `Enter` to send (`Esc` or an empty submit returns) — the message appears as a user message and redirects the agent after its current tool. Stop a still-running agent by pressing `x` (then `x` again to confirm) — both work for background agents too. Assistant text renders as Markdown; `m` cycles that between off, assistant-only and everything (see [Viewer markdown](#persistent-settings))
22
+ - **Conversation viewer** — select any agent in `/agents` to open a live-scrolling overlay of its full conversation (auto-follows new content, scroll up to pause). `Alt+↑`/`Alt+↓` scroll one rendered line in regular and fullscreen TUI modes; `PgUp`/`PgDn` or `Shift+↑`/`Shift+↓` scroll a page, and `Ctrl+Shift+End` returns to the tail. Plain arrows stay in the permanent steering editor. Configured `tui.altScreen.lineUp`/`lineDown` bindings also work. Type in the inline editor and press `Enter` to steer a running agent or continue a finished one. Press `Ctrl+X` twice to stop a still-running agent. Assistant text renders as Markdown; `Ctrl+R` cycles that between off, assistant-only and everything (see [Viewer markdown](#persistent-settings))
23
23
  - **Custom agent types** — define agents in `.pi/agents/<name>.md` or `.agents/agents/<name>.md` (project) or globally, with YAML frontmatter: custom system prompts, model selection, thinking levels, tool restrictions, and Claude Code-compatible colored name badges
24
24
  - **Nested subagents** — opt-in, default-off delegation: a custom agent that sets `allowed_subagents` gets its own ownership-scoped `Agent`, `get_subagent_result`, and `steer_subagent` tools, depth-capped from the main session (default 2). It can control only its own children, they are stopped when it finishes, and their transcripts and token spend roll up to it. The allowlist is a privilege boundary — a child runs with its own tools, so pick it as carefully as `tools:` itself
25
25
  - **Agent mentions** — subagents are first-class: type `@explore also check the RPC path` at the prompt and it goes to that agent instead of the main model, without a word of it entering the chat. One syntax covers the whole lifecycle — message it while it runs, resume it once it has finished, reopen its session from disk long after that, or start it if it never ran. Mentioning an agent that isn't running spawns it through an off-screen clone of the conversation, so it gets Claude Code's context-written prompt and a real `Agent` tool call without a word of it reaching the chat; `direct` mode starts it here from your text instead, with no model call at all. The orchestrator can `name` an agent so you address it as `@auth-audit`, and handles work in `steer_subagent`/`get_subagent_result` too. `@` completes live agents, resumable ones, and startable types alongside pi's file completion; `@main` forces text back to the main model. Toggle via `/agents → Settings → Agent mentions`
@@ -636,7 +636,7 @@ Create new agent ← manual wizard or AI-generated
636
636
  Settings ← max concurrency (background + foreground), max turns, grace turns, per-call turn limits, join mode
637
637
  ```
638
638
 
639
- - **Running agents** - opens the [fleet overlay](#fleet-overlay): the full session roster with a live detail card. On an agent row, `Enter` opens its live conversation viewer. While it's still running, press `Enter` to open the steering composer, then `Enter` again to send a message that redirects the agent (same mechanism as the `steer_subagent` tool; `Esc` or an empty submit returns), or press `x` (then `x` again to confirm) to stop/abort it - including **background** agents, which a global Esc can't unambiguously target. A stopped agent reports its partial output flagged as incomplete, not as a completion. `m` cycles how much of the transcript renders as Markdown - see [Viewer markdown](#persistent-settings).
639
+ - **Running agents** - opens the [fleet overlay](#fleet-overlay): the full session roster with a live detail card. On an agent row, `Enter` opens its live conversation viewer. There, `Alt+↑`/`Alt+↓` scroll one line, `PgUp`/`PgDn` scroll a page, and `Ctrl+Shift+End` returns to the tail. Type in the permanent inline editor and press `Enter` to steer a running agent or continue a finished one. Press `Ctrl+X` twice to stop/abort an active agent - including **background** agents, which a global Esc can't unambiguously target. A stopped agent reports its partial output flagged as incomplete, not as a completion. `Ctrl+R` cycles how much of the transcript renders as Markdown - see [Viewer markdown](#persistent-settings).
640
640
  - **Agent types** — unified list with source indicators: `•` (project), `◦` (global), `✕` (disabled). Each row shows the agent's model, and the highlighted agent's full description appears below the list. The model column flags `(unavailable pin; Agent call rejected)` when a configured pin can't be resolved, shows `(→ provider/id)` when shorthand resolves, and marks unpinned roles as `(caller or parent)`. Select an agent to manage it:
641
641
  - **Default agents** (no override): Eject (export as `.md`), Disable
642
642
  - **Default agents** (ejected/overridden): Edit, Disable, Reset to default, Delete
@@ -20,6 +20,8 @@ export declare class ConversationViewer implements Component, Focusable {
20
20
  private done;
21
21
  /** Abort the agent shown here. Omitted → no stop affordance (e.g. read-only history). */
22
22
  private onStop?;
23
+ /** User keybindings from `ctx.ui.custom()`. Omitted → hardcoded defaults. */
24
+ private readonly keybindings;
23
25
  /** Resolves only after steering/resume acceptance. False or rejection retains the draft. */
24
26
  private onSubmitMessage?;
25
27
  /**
@@ -105,6 +105,7 @@ export class ConversationViewer {
105
105
  theme;
106
106
  done;
107
107
  onStop;
108
+ keybindings;
108
109
  onSubmitMessage;
109
110
  showCost;
110
111
  viewerMarkdown;
@@ -163,6 +164,7 @@ export class ConversationViewer {
163
164
  this.theme = theme;
164
165
  this.done = done;
165
166
  this.onStop = onStop;
167
+ this.keybindings = keybindings;
166
168
  this.onSubmitMessage = onSubmitMessage;
167
169
  this.showCost = showCost;
168
170
  this.viewerMarkdown = viewerMarkdown;
@@ -216,6 +218,12 @@ export class ConversationViewer {
216
218
  this.markdownModeOverride = next;
217
219
  this.onMarkdownMode?.(next);
218
220
  }
221
+ else if (matchesKey(data, "alt+up") || this.keybindings.matches(data, "tui.altScreen.lineUp")) {
222
+ this.scroll.scrollBy(-1);
223
+ }
224
+ else if (matchesKey(data, "alt+down") || this.keybindings.matches(data, "tui.altScreen.lineDown")) {
225
+ this.scroll.scrollBy(1);
226
+ }
219
227
  else if (matchesKey(data, "pageUp") || matchesKey(data, "shift+up")) {
220
228
  this.scroll.scrollBy(-Math.max(1, this.scroll.viewportHeight));
221
229
  }
@@ -341,7 +349,7 @@ export class ConversationViewer {
341
349
  this.editorTop = lines.length;
342
350
  lines.push(...editorLines.slice(this.editorClip, this.editorClip + editorHeight).map(row));
343
351
  if (footerRows) {
344
- lines.push(row(th.fg("dim", `Esc parent · Ctrl+R ${MARKDOWN_MODE_LABELS[this.markdownMode()]} · PgUp/Dn scroll · Ctrl+Shift+End tail`)));
352
+ lines.push(row(th.fg("dim", `Esc parent · Ctrl+R ${MARKDOWN_MODE_LABELS[this.markdownMode()]} · Alt+↑/↓ line · PgUp/Dn page · Ctrl+Shift+End tail`)));
345
353
  lines.push(hrBot);
346
354
  }
347
355
  return lines.slice(0, rows);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timmyjl12/pi-subagents",
3
- "version": "0.21.1",
3
+ "version": "0.21.2",
4
4
  "description": "Claude Code-style subagents and workflow orchestration for pi, with coordinated fallback recovery and an interactive child-session workspace.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -142,7 +142,7 @@ export class ConversationViewer implements Component, Focusable {
142
142
  /** Abort the agent shown here. Omitted → no stop affordance (e.g. read-only history). */
143
143
  private onStop?: () => void,
144
144
  /** User keybindings from `ctx.ui.custom()`. Omitted → hardcoded defaults. */
145
- keybindings: KeybindingsManager = getKeybindings() as KeybindingsManager,
145
+ private readonly keybindings: KeybindingsManager = getKeybindings() as KeybindingsManager,
146
146
  /** Resolves only after steering/resume acceptance. False or rejection retains the draft. */
147
147
  private onSubmitMessage?: (message: string) => Promise<boolean>,
148
148
  /**
@@ -205,6 +205,10 @@ export class ConversationViewer implements Component, Focusable {
205
205
  const next = MARKDOWN_MODES[(MARKDOWN_MODES.indexOf(this.markdownMode()) + 1) % MARKDOWN_MODES.length];
206
206
  this.markdownModeOverride = next;
207
207
  this.onMarkdownMode?.(next);
208
+ } else if (matchesKey(data, "alt+up") || this.keybindings.matches(data, "tui.altScreen.lineUp")) {
209
+ this.scroll.scrollBy(-1);
210
+ } else if (matchesKey(data, "alt+down") || this.keybindings.matches(data, "tui.altScreen.lineDown")) {
211
+ this.scroll.scrollBy(1);
208
212
  } else if (matchesKey(data, "pageUp") || matchesKey(data, "shift+up")) {
209
213
  this.scroll.scrollBy(-Math.max(1, this.scroll.viewportHeight));
210
214
  } else if (matchesKey(data, "pageDown") || matchesKey(data, "shift+down")) {
@@ -323,7 +327,7 @@ export class ConversationViewer implements Component, Focusable {
323
327
  this.editorTop = lines.length;
324
328
  lines.push(...editorLines.slice(this.editorClip, this.editorClip + editorHeight).map(row));
325
329
  if (footerRows) {
326
- lines.push(row(th.fg("dim", `Esc parent · Ctrl+R ${MARKDOWN_MODE_LABELS[this.markdownMode()]} · PgUp/Dn scroll · Ctrl+Shift+End tail`)));
330
+ lines.push(row(th.fg("dim", `Esc parent · Ctrl+R ${MARKDOWN_MODE_LABELS[this.markdownMode()]} · Alt+↑/↓ line · PgUp/Dn page · Ctrl+Shift+End tail`)));
327
331
  lines.push(hrBot);
328
332
  }
329
333
  return lines.slice(0, rows);