You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/pi-btw/README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Use it when you want to ask a temporary question, inspect context, or get a shor
9
9
## ✨ Features
10
10
11
11
- Adds a `/btw <question>` command to Pi.
12
-
- Answers side questions in a temporary UI.
12
+
- Answers side questions in a temporary, scrollable UI.
13
13
- Uses the current session branch as context.
14
14
- Does not append the side question or answer to the main conversation.
15
15
- Works as an independently installable npm Pi extension package.
@@ -46,6 +46,11 @@ Examples:
46
46
/btw is this API name idiomatic?
47
47
```
48
48
49
+
Long answers open in a pager-style view. Use `↑`/`↓` or `k`/`j` to scroll by line,
50
+
`PgUp`/`PgDn`, `Shift+Space`/`Space`, or `Ctrl+B`/`Ctrl+F` to scroll by page,
51
+
`Ctrl+U`/`Ctrl+D` to scroll by half page, and `Home`/`End` to jump. Close with
52
+
`q`, `Esc`, `Enter`, or `Ctrl+C`.
53
+
49
54
## 🧠 Why use pi-btw?
50
55
51
56
Normal assistant messages become part of the main Pi conversation and can distract the coding agent from the task. `pi-btw` creates a lightweight side channel for context-aware questions, making it useful for pair programming, debugging, code review, and repository exploration.
// Pi renders a spacer above the custom editor and a two-line built-in footer below it.
23
+
constANSWER_RESERVED_APP_LINES=3;
12
24
constSYSTEM_PROMPT=`You answer quick side questions for a coding-agent user.
13
25
14
26
Use the provided conversation context only as background. Answer the user's side question directly and concisely. Do not claim to have changed files, run tools, or affected the main task. If the context is insufficient, say what is unknown and give the best next step.`;
@@ -120,29 +132,161 @@ async function askSideQuestion(
0 commit comments