@pi-unipi/btw 3.0.0-alpha.2 → 3.0.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/btw",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0-alpha.3",
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",
@@ -37,7 +37,7 @@
37
37
  "@earendil-works/pi-tui": "^0.87.1"
38
38
  },
39
39
  "dependencies": {
40
- "@pi-unipi/core": "3.0.0-alpha.2"
40
+ "@pi-unipi/core": "3.0.0-alpha.3"
41
41
  },
42
42
  "pi": {
43
43
  "extensions": [
@@ -48,5 +48,8 @@
48
48
  ],
49
49
  "prompts": [],
50
50
  "themes": []
51
+ },
52
+ "scripts": {
53
+ "test": "npx tsx --test tests/*.test.ts"
51
54
  }
52
55
  }
@@ -1,151 +1,15 @@
1
1
  ---
2
2
  name: btw
3
- description: Helps you use the /unipi:btw side-conversation workflow effectively. Use when you want to think in parallel, ask side questions without interrupting ongoing work, or inject a side thread back into the main agent.
3
+ description: Ask side questions in an inline panel without interrupting the main agent — read-only, one-shot, invisible to the main session.
4
4
  ---
5
5
 
6
6
  # BTW
7
7
 
8
- Use this skill when the user wants to work in parallel with the main agent instead of derailing the current turn.
8
+ `/unipi:btw <question>` opens an inline panel and answers a side question from a fresh read-only session seeded with the main session's current context.
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`.
10
+ Rules the panel enforces:
11
+ - Read-only tools (`read`, `grep`, `find`, `ls`) — no commands or edits; changes belong in the main conversation.
12
+ - No memory between btw questions, and nothing reaches the main agent.
13
+ - Nothing is persisted — page history dies with the pi session.
11
14
 
12
- ## When to use BTW
13
-
14
- Prefer the BTW workflow when the user wants to:
15
-
16
- - ask a side question while the main agent keeps working
17
- - brainstorm or compare options without interrupting the current run
18
- - prepare a plan or summary before handing it back to the main agent
19
- - keep exploratory discussion out of the main transcript/context
20
-
21
- ## Commands
22
-
23
- Use these commands in your guidance to the user:
24
-
25
- ```text
26
- /unipi:btw <question>
27
- /unipi:btw --save <question>
28
- /unipi:btw-new [question]
29
- /unipi:btw-tangent <question>
30
- /unipi:btw-tangent --save <question>
31
- /unipi:btw-clear
32
- /unipi:btw-inject [instructions]
33
- /unipi:btw-summarize [instructions]
34
- ```
35
-
36
- ## How to guide the user
37
-
38
- ### For a quick side question
39
-
40
- Recommend:
41
-
42
- ```text
43
- /unipi:btw <question>
44
- ```
45
-
46
- Use this when the user wants an immediate aside and does not need a visible saved note.
47
-
48
- ### For a saved one-off note
49
-
50
- Recommend:
51
-
52
- ```text
53
- /unipi:btw --save <question>
54
- ```
55
-
56
- Use this when the user wants the exchange to appear as a visible BTW note in the session transcript.
57
-
58
- ### For a fresh side thread
59
-
60
- Recommend:
61
-
62
- ```text
63
- /unipi:btw-new
64
- ```
65
-
66
- or
67
-
68
- ```text
69
- /unipi:btw-new <question>
70
- ```
71
-
72
- Use this when the previous BTW discussion is no longer relevant, but you still want the new side thread to inherit the current main-session context.
73
-
74
- ### For a contextless tangent thread
75
-
76
- Recommend:
77
-
78
- ```text
79
- /unipi:btw-tangent <question>
80
- ```
81
-
82
- or
83
-
84
- ```text
85
- /unipi:btw-tangent --save <question>
86
- ```
87
-
88
- Use this when the user wants a side conversation that does not include the current main-session context.
89
-
90
- ### To hand the full thread back to the main agent
91
-
92
- Recommend:
93
-
94
- ```text
95
- /unipi:btw-inject <instructions>
96
- ```
97
-
98
- Use this when the exact discussion matters and the user wants the main agent to act on it.
99
-
100
- ### To hand back a condensed version
101
-
102
- Recommend:
103
-
104
- ```text
105
- /unipi:btw-summarize <instructions>
106
- ```
107
-
108
- Use this when the thread is long and only the distilled outcome should go back into the main agent.
109
-
110
- ## Recommendation rules
111
-
112
- - Prefer `/unipi:btw` over normal chat when the user explicitly wants a side conversation.
113
- - Prefer `/unipi:btw-tangent` when the user wants that side conversation to be contextless.
114
- - Prefer `/unipi:btw-summarize` over `/unipi:btw-inject` for long exploratory threads.
115
- - Prefer `/unipi:btw-inject` when precise wording, detailed tradeoffs, or a full plan matters.
116
- - Suggest `/unipi:btw-new` before starting a totally unrelated side topic when main-session context is still useful.
117
- - Suggest `/unipi:btw-clear` when the widget/thread should be dismissed.
118
-
119
- ## Response style
120
-
121
- When helping the user use BTW:
122
-
123
- - give the exact slash command to run
124
- - explain briefly why that command fits
125
- - keep the guidance short and operational
126
-
127
- ## Examples
128
-
129
- ### Example: brainstorm while coding continues
130
-
131
- ```text
132
- /unipi:btw what are the risks of switching this to optimistic updates?
133
- ```
134
-
135
- ### Example: create a clean new thread
136
-
137
- ```text
138
- /unipi:btw-new sketch a safer migration plan
139
- ```
140
-
141
- ### Example: start a contextless tangent
142
-
143
- ```text
144
- /unipi:btw-tangent think through this from first principles without using the current chat context
145
- ```
146
-
147
- ### Example: send the result back
148
-
149
- ```text
150
- /unipi:btw-summarize implement the recommended migration plan
151
- ```
15
+ When to suggest it: quick clarifications, "what is X doing" checks, reading files, thinking out loud — anything that shouldn't derail or pollute the main turn.