@pi-unipi/btw 2.18.0 → 2.18.1

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Side conversations that run in parallel. Ask a question using `/unipi:btw` while the main agent keeps working — the answer streams into a modal overlay without interrupting the current task.
4
4
 
5
- BTW opens a real Pi sub-session with coding-tool access. Use it to clarify something, explore an idea, or think through next steps without derailing the main turn. When you're ready, inject the thread back or summarize it.
5
+ BTW opens a real Pi sub-session with read-only file and search access. Use it to clarify something, explore an idea, or think through next steps without derailing the main turn. It cannot run commands or modify files; when you're ready, inject the thread back or summarize it.
6
6
 
7
7
  Based on [pi-btw](https://github.com/Neuron-Mr-White/pi-btw) by Dan Bachelder.
8
8
 
@@ -47,8 +47,8 @@ The BTW overlay opens top-centered so the main session remains visible underneat
47
47
  ## How It Works
48
48
 
49
49
  1. `/unipi:btw` creates or reuses a BTW sub-session
50
- 2. Your question runs in a real Pi session with tool access
51
- 3. The answer streams into the BTW modal overlay
50
+ 2. Your question runs in a real Pi session with read/search tool access (`read`, `grep`, `find`, `ls`)
51
+ 3. The read-only answer streams into the BTW modal overlay
52
52
  4. The thread continues until you clear it or inject it back
53
53
 
54
54
  `/unipi:btw-inject` sends the full thread to the main agent as a user message. If Pi is busy, it queues as a follow-up. `/unipi:btw-summarize` does the same but summarizes first.
package/extensions/btw.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @pi-unipi/btw — Side Conversation Extension
3
3
  *
4
4
  * A /unipi:btw side conversation channel that opens a real pi sub-session
5
- * with coding-tool access, running immediately even while the main
5
+ * with read-only coding-tool access, running immediately even while the main
6
6
  * agent is still busy.
7
7
  *
8
8
  * Based on pi-btw by Dan Bachelder, adapted for the Unipi suite.
@@ -64,6 +64,7 @@ const BTW_SYSTEM_PROMPT = [
64
64
  "If no main session messages are provided, treat this as a fully contextless tangent thread and rely only on the user's words plus your general instructions.",
65
65
  "Focus on answering the user's side questions, helping them think through ideas, or planning next steps.",
66
66
  "Do not act as if you need to continue unfinished work from the main session unless the user explicitly asks you to prepare something for injection back to it.",
67
+ "This aside is read-only: you can read and search files but cannot run commands or modify anything. Never claim to have edited, written, or executed something. If the user wants changes made, tell them to hand this thread off to the main session instead. Use /unipi:btw-inject or /unipi:btw-summarize to hand it off.",
67
68
  ].join(" ");
68
69
 
69
70
  const BTW_SUMMARIZE_SYSTEM_PROMPT =
@@ -1355,7 +1356,7 @@ export default function (pi: ExtensionAPI) {
1355
1356
  model: ctx.model,
1356
1357
  modelRuntime: sessionModelRuntime(ctx),
1357
1358
  thinkingLevel: pi.getThinkingLevel() as SessionThinkingLevel,
1358
- tools: ["read", "bash", "edit", "write"],
1359
+ tools: ["read", "grep", "find", "ls"],
1359
1360
  resourceLoader: createBtwResourceLoader(ctx),
1360
1361
  });
1361
1362
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/btw",
3
- "version": "2.18.0",
3
+ "version": "2.18.1",
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",
@@ -7,6 +7,8 @@ description: Helps you use the /unipi:btw side-conversation workflow effectively
7
7
 
8
8
  Use this skill when the user wants to work in parallel with the main agent instead of derailing the current turn.
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`.
11
+
10
12
  ## When to use BTW
11
13
 
12
14
  Prefer the BTW workflow when the user wants to: