pi-btw 0.4.0 → 0.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-btw",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "A pi extension for parallel side conversations with /btw",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,6 +22,7 @@
22
22
  ],
23
23
  "files": [
24
24
  "extensions",
25
+ "skills",
25
26
  "docs",
26
27
  "README.md",
27
28
  "LICENSE"
@@ -30,7 +31,8 @@
30
31
  "access": "public"
31
32
  },
32
33
  "scripts": {
33
- "test": "vitest --run"
34
+ "test": "vitest --run",
35
+ "typecheck": "tsc --noEmit"
34
36
  },
35
37
  "pi": {
36
38
  "extensions": [
@@ -42,11 +44,14 @@
42
44
  "image": "https://raw.githubusercontent.com/dbachelder/pi-btw/main/docs/btw-overlay.png"
43
45
  },
44
46
  "peerDependencies": {
45
- "@earendil-works/pi-ai": "^0.74.0",
46
- "@earendil-works/pi-coding-agent": "^0.74.0",
47
- "@earendil-works/pi-tui": "^0.74.0"
47
+ "@earendil-works/pi-ai": ">=0.85.1 <1",
48
+ "@earendil-works/pi-coding-agent": ">=0.85.1 <1",
49
+ "@earendil-works/pi-tui": ">=0.85.1 <1"
48
50
  },
49
51
  "devDependencies": {
52
+ "@earendil-works/pi-ai": "0.85.1",
53
+ "@earendil-works/pi-coding-agent": "0.85.1",
54
+ "@earendil-works/pi-tui": "0.85.1",
50
55
  "typescript": "^6.0.2",
51
56
  "vitest": "^4.1.0"
52
57
  }
@@ -0,0 +1,170 @@
1
+ ---
2
+ name: btw
3
+ description: Helps you use the /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.
4
+ ---
5
+
6
+ # BTW
7
+
8
+ Use this skill when the user wants to work in parallel with the main agent instead of derailing the current turn.
9
+
10
+ ## When to use BTW
11
+
12
+ Prefer the BTW workflow when the user wants to:
13
+
14
+ - ask a side question while the main agent keeps working
15
+ - brainstorm or compare options without interrupting the current run
16
+ - prepare a plan or summary before handing it back to the main agent
17
+ - keep exploratory discussion out of the main transcript/context
18
+
19
+ ## Commands
20
+
21
+ Use these commands in your guidance to the user:
22
+
23
+ ```text
24
+ /btw <question>
25
+ /btw --save <question>
26
+ /btw:new [question]
27
+ /btw:tangent <question>
28
+ /btw:tangent --save <question>
29
+ /btw:clear
30
+ /btw:model [<provider> <model> <api> | clear]
31
+ /btw:thinking [<level> | clear]
32
+ /btw:inject [instructions]
33
+ /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
+ /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
+ /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
+ /btw:new
64
+ ```
65
+
66
+ or
67
+
68
+ ```text
69
+ /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
+ /btw:tangent <question>
80
+ ```
81
+
82
+ or
83
+
84
+ ```text
85
+ /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
+ /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
+ /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
+ ### To make BTW cheaper or faster than the main thread
111
+
112
+ Recommend:
113
+
114
+ ```text
115
+ /btw:model <provider> <model> <api>
116
+ /btw:thinking <level>
117
+ ```
118
+
119
+ Use these when the main thread should keep its current model or thinking level, but BTW should run with a different cost/speed profile.
120
+
121
+ ## Recommendation rules
122
+
123
+ - Prefer `/btw` over normal chat when the user explicitly wants a side conversation.
124
+ - Prefer `/btw:tangent` when the user wants that side conversation to be contextless.
125
+ - Prefer `/btw:summarize` over `/btw:inject` for long exploratory threads.
126
+ - Prefer `/btw:inject` when precise wording, detailed tradeoffs, or a full plan matters.
127
+ - Suggest `/btw:new` before starting a totally unrelated side topic when main-session context is still useful.
128
+ - Suggest `/btw:clear` when the widget/thread should be dismissed.
129
+ - Suggest `/btw:model` or `/btw:thinking` when the user wants BTW to be cheaper, faster, or less deliberative than the main thread.
130
+
131
+ ## Response style
132
+
133
+ When helping the user use BTW:
134
+
135
+ - give the exact slash command to run
136
+ - explain briefly why that command fits
137
+ - keep the guidance short and operational
138
+
139
+ ## Examples
140
+
141
+ ### Example: brainstorm while coding continues
142
+
143
+ ```text
144
+ /btw what are the risks of switching this to optimistic updates?
145
+ ```
146
+
147
+ ### Example: create a clean new thread
148
+
149
+ ```text
150
+ /btw:new sketch a safer migration plan
151
+ ```
152
+
153
+ ### Example: start a contextless tangent
154
+
155
+ ```text
156
+ /btw:tangent think through this from first principles without using the current chat context
157
+ ```
158
+
159
+ ### Example: send the result back
160
+
161
+ ```text
162
+ /btw:summarize implement the recommended migration plan
163
+ ```
164
+
165
+ ### Example: make BTW cheaper than the main thread
166
+
167
+ ```text
168
+ /btw:model openai gpt-5-mini openai-responses
169
+ /btw:thinking low
170
+ ```