pi-subagents 0.3.1 → 0.3.3

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
@@ -1,5 +1,74 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.3] - 2026-01-25
4
+
5
+ ### Added
6
+ - **Thinking level selector in chain TUI** - Press `[t]` to set thinking level for any step
7
+ - Options: off, minimal, low, medium, high, xhigh (ultrathink)
8
+ - Appends to model as suffix (e.g., `anthropic/claude-sonnet-4-5:high`)
9
+ - Pre-selects current thinking level if already set
10
+ - **Model selector in chain TUI** - Press `[m]` to select a different model for any step
11
+ - Fuzzy search through all available models
12
+ - Shows current model with ✓ indicator
13
+ - Provider/model format (e.g., `anthropic/claude-haiku-4-5`)
14
+ - Override indicator (✎) when model differs from agent default
15
+ - **Model visibility in chain execution** - Shows which model each step is using
16
+ - Display format: `Step 1: scout (claude-haiku-4-5) | 3 tools, 16.8s`
17
+ - Model shown in both running and completed steps
18
+ - **Auto-propagate output changes to reads** - When you change a step's output filename,
19
+ downstream steps that read from it are automatically updated to use the new filename
20
+ - Maintains chain dependencies without manual updates
21
+ - Example: Change scout's output from `context.md` to `summary.md`, planner's reads updates automatically
22
+
23
+ ### Changed
24
+ - **Progress is now chain-level** - `[p]` toggles progress for ALL steps at once
25
+ - Progress setting shown at chain level (not per-step)
26
+ - Chains share a single progress.md, so chain-wide toggle is more intuitive
27
+ - **Clearer output/writes labeling** - Renamed `output:` to `writes:` to clarify it's a file
28
+ - Hotkey changed from `[o]` to `[w]` for consistency
29
+ - **{previous} data flow indicator** - Shows on the PRODUCING step (not receiving):
30
+ - `↳ response → {previous}` appears after scout's reads line
31
+ - Only shows when next step's template uses `{previous}`
32
+ - Clearer mental model: output flows DOWN the chain
33
+ - Chain TUI footer updated: `[e]dit [m]odel [t]hinking [w]rites [r]eads [p]rogress`
34
+
35
+ ### Fixed
36
+ - **Chain READ/WRITE instructions now prepended** - Instructions restructured:
37
+ - `[Read from: /path/file.md]` and `[Write to: /path/file.md]` prepended BEFORE task
38
+ - Overrides any hardcoded filenames in task text from parent agent
39
+ - Previously: instructions were appended at end and could be overlooked
40
+ - **Output file validation** - After each step, validates expected file was created:
41
+ - If missing, warns: "Agent wrote to different file(s): X instead of Y"
42
+ - Helps diagnose when agents don't create expected outputs
43
+ - **Root cause: agents need `write` tool** - Agents without `write` in their tools list
44
+ cannot create output files (they tried MCP workarounds which failed)
45
+ - **Thinking level suffixes now preserved** - Models with thinking levels (e.g., `claude-sonnet-4-5:high`)
46
+ now correctly resolve to `anthropic/claude-sonnet-4-5:high` instead of losing the provider prefix
47
+
48
+ ### Improved
49
+ - **Per-step progress indicators** - When progress is enabled, each step shows its role:
50
+ - Step 1: `● creates & updates progress.md`
51
+ - Step 2+: `↔ reads & updates progress.md`
52
+ - Clear visualization of progress.md data flow through the chain
53
+ - **Comprehensive tool descriptions** - Better documentation of chain variables:
54
+ - Tool description now explains `{task}`, `{previous}`, `{chain_dir}` in detail
55
+ - Schema descriptions clarify what each variable means and when to use them
56
+ - Helps agents construct proper chain queries for any use case
57
+
58
+ ## [0.3.2] - 2026-01-25
59
+
60
+ ### Performance
61
+ - **4x faster polling** - Reduced poll interval from 1000ms to 250ms (efficient with mtime caching)
62
+ - **Mtime-based caching** - status.json and output tail reads cached to avoid redundant I/O
63
+ - **Unified throttled updates** - All onUpdate calls consolidated under 50ms throttle
64
+ - **Widget change detection** - Hash-based change detection skips no-op re-renders
65
+ - **Array optimizations** - Use concat instead of spread for chain progress updates
66
+
67
+ ### Fixed
68
+ - **Timer leaks** - Track and clear pendingTimer and cleanupTimers properly
69
+ - **Updates after close** - processClosed flag prevents updates after process terminates
70
+ - **Session cleanup** - Clear cleanup timers on session_start/switch/branch/shutdown
71
+
3
72
  ## [0.3.1] - 2026-01-24
4
73
 
5
74
  ### Changed
package/README.md CHANGED
@@ -50,9 +50,22 @@ npx pi-subagents --remove
50
50
  - `Esc` - Cancel
51
51
  - `↑↓` - Navigate between steps
52
52
  - `e` - Edit task/template
53
- - `o` - Edit output path
53
+ - `m` - Select model (fuzzy search with all available models)
54
+ - `t` - Select thinking level (off, minimal, low, medium, high, xhigh)
55
+ - `w` - Edit writes (output file path)
54
56
  - `r` - Edit reads list
55
- - `p` - Toggle progress tracking on/off
57
+ - `p` - Toggle progress tracking for ALL steps (chains share one progress.md)
58
+
59
+ *Model selector mode:*
60
+ - `↑↓` - Navigate model list
61
+ - `Enter` - Select model
62
+ - `Esc` - Cancel (keep current model)
63
+ - Type to filter (fuzzy search by model name or provider)
64
+
65
+ *Thinking level selector mode:*
66
+ - `↑↓` - Navigate level list
67
+ - `Enter` - Select level
68
+ - `Esc` - Cancel (keep current level)
56
69
 
57
70
  *Edit mode (full-screen editor with word wrapping):*
58
71
  - `Esc` - Save changes and exit