@pi-unipi/btw 0.1.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 ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@pi-unipi/btw",
3
+ "version": "0.1.0",
4
+ "description": "A pi extension for parallel side conversations with /btw — part of the Unipi suite",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Neuron Mr White",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/Neuron-Mr-White/unipi.git",
11
+ "directory": "packages/btw"
12
+ },
13
+ "homepage": "https://github.com/Neuron-Mr-White/unipi#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/Neuron-Mr-White/unipi/issues"
16
+ },
17
+ "keywords": [
18
+ "pi-package",
19
+ "pi-extension",
20
+ "pi-coding-agent",
21
+ "unipi",
22
+ "btw",
23
+ "side-conversation"
24
+ ],
25
+ "files": [
26
+ "extensions",
27
+ "skills",
28
+ "README.md"
29
+ ],
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "pi": {
34
+ "extensions": [
35
+ "./extensions/btw.ts"
36
+ ],
37
+ "skills": [
38
+ "./skills"
39
+ ]
40
+ },
41
+ "peerDependencies": {
42
+ "@mariozechner/pi-ai": "*",
43
+ "@mariozechner/pi-coding-agent": "*",
44
+ "@mariozechner/pi-tui": "*"
45
+ },
46
+ "dependencies": {
47
+ "@pi-unipi/core": "*"
48
+ }
49
+ }
@@ -0,0 +1,149 @@
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:inject [instructions]
31
+ /btw:summarize [instructions]
32
+ ```
33
+
34
+ ## How to guide the user
35
+
36
+ ### For a quick side question
37
+
38
+ Recommend:
39
+
40
+ ```text
41
+ /btw <question>
42
+ ```
43
+
44
+ Use this when the user wants an immediate aside and does not need a visible saved note.
45
+
46
+ ### For a saved one-off note
47
+
48
+ Recommend:
49
+
50
+ ```text
51
+ /btw --save <question>
52
+ ```
53
+
54
+ Use this when the user wants the exchange to appear as a visible BTW note in the session transcript.
55
+
56
+ ### For a fresh side thread
57
+
58
+ Recommend:
59
+
60
+ ```text
61
+ /btw:new
62
+ ```
63
+
64
+ or
65
+
66
+ ```text
67
+ /btw:new <question>
68
+ ```
69
+
70
+ 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.
71
+
72
+ ### For a contextless tangent thread
73
+
74
+ Recommend:
75
+
76
+ ```text
77
+ /btw:tangent <question>
78
+ ```
79
+
80
+ or
81
+
82
+ ```text
83
+ /btw:tangent --save <question>
84
+ ```
85
+
86
+ Use this when the user wants a side conversation that does not include the current main-session context.
87
+
88
+ ### To hand the full thread back to the main agent
89
+
90
+ Recommend:
91
+
92
+ ```text
93
+ /btw:inject <instructions>
94
+ ```
95
+
96
+ Use this when the exact discussion matters and the user wants the main agent to act on it.
97
+
98
+ ### To hand back a condensed version
99
+
100
+ Recommend:
101
+
102
+ ```text
103
+ /btw:summarize <instructions>
104
+ ```
105
+
106
+ Use this when the thread is long and only the distilled outcome should go back into the main agent.
107
+
108
+ ## Recommendation rules
109
+
110
+ - Prefer `/btw` over normal chat when the user explicitly wants a side conversation.
111
+ - Prefer `/btw:tangent` when the user wants that side conversation to be contextless.
112
+ - Prefer `/btw:summarize` over `/btw:inject` for long exploratory threads.
113
+ - Prefer `/btw:inject` when precise wording, detailed tradeoffs, or a full plan matters.
114
+ - Suggest `/btw:new` before starting a totally unrelated side topic when main-session context is still useful.
115
+ - Suggest `/btw:clear` when the widget/thread should be dismissed.
116
+
117
+ ## Response style
118
+
119
+ When helping the user use BTW:
120
+
121
+ - give the exact slash command to run
122
+ - explain briefly why that command fits
123
+ - keep the guidance short and operational
124
+
125
+ ## Examples
126
+
127
+ ### Example: brainstorm while coding continues
128
+
129
+ ```text
130
+ /btw what are the risks of switching this to optimistic updates?
131
+ ```
132
+
133
+ ### Example: create a clean new thread
134
+
135
+ ```text
136
+ /btw:new sketch a safer migration plan
137
+ ```
138
+
139
+ ### Example: start a contextless tangent
140
+
141
+ ```text
142
+ /btw:tangent think through this from first principles without using the current chat context
143
+ ```
144
+
145
+ ### Example: send the result back
146
+
147
+ ```text
148
+ /btw:summarize implement the recommended migration plan
149
+ ```