pi-qq
Ask side questions in pi without polluting the main transcript — /qq or alt+q.
Package details
Install pi-qq from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-qq- Package
pi-qq- Version
0.1.16- Published
- May 18, 2026
- Downloads
- 2,347/mo · 272/wk
- Author
- tianrendong
- License
- MIT
- Types
- extension
- Size
- 26.7 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
],
"image": "https://raw.githubusercontent.com/jennyyu212/pi-qq-assets/main/assets/pi-qq-preview.png"
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-qq

Ask quick side questions about your current pi session without polluting the main transcript.
You: refactor this auth flow…
agent: [making changes]
You (alt+q): is there a reason we're not using the existing AuthClient?
↳ overlay: Yes — AuthClient does X, but this path needs Y because…
You: [keeps editing, transcript untouched]
pi-qq adds /qq <question> plus an alt+q / Option+Q shortcut that toggles /qq in the editor. Answers appear in a dismissible bottom overlay, can be reopened from in-memory /qq-history, and never enter the main conversation.
Try these first
/qq is this safe to merge?
/qq why are we doing it this way and not X?
/qq summarize what's happened so far
/qq what's the risk in this plan?
/qq what files have we touched this session?
/qq --recent did the last tool call succeed?
/qq --full what decisions have we made so far?
Why try it?
- A real side channel: ask
/qq why are we changing this file?while the main agent keeps working. The answer shows in a bottom overlay and does not enter the main transcript. - Context-aware, intentionally constrained:
/qqpasses read-only main-session context, treats ambiguous references like “this”, “that”, “we”, and “the plan” as references to the active session, and gives the side call no tools. Previous/qqanswers are available only through/qq-history; they are not fed back into future/qqcalls. - Fast, low-friction UX: press alt+q / Option+Q to toggle
/qq, then use Esc to cancel/dismiss or ↑/↓ to scroll longer answers. - Smart context modes:
/qquses recent context by default, automatically switches to broader bounded context for retrospective questions, and supports explicit--recent/--fullmodes.
Demo
/qq why are we changing this file?
pi-qq answers from the active session context in a bottom overlay, without adding either the question or answer to your main conversation.
Another common flow:
- Press alt+q / Option+Q.
- Type
what's the risk with this plan?. - Hit Enter.
- Read the concise overlay answer; press Esc to dismiss. If you close it too soon, run
/qq-historyto reopen recent answers.
Install
pi install npm:pi-qq
After installing, run /reload in pi or restart the session.
Usage
Command
/qq <question>
/qq --recent <question>
/qq --full <question>
/qq-history
By default, /qq chooses a context mode automatically:
| Mode | When to use it | Context sent |
|---|---|---|
| Auto | Default for /qq <question> |
Recent context for immediate questions, broader bounded context for retrospective questions |
--recent |
Fastest answers about the latest work | Latest messages only |
--full |
Recaps or questions about earlier decisions | Broader but still bounded session context, not unlimited history |
Use /qq-history to reopen recent /qq answers from the current session. History is view-only and is not included as context for future /qq model calls.
Shortcut
Press alt+q / Option+Q to toggle /qq at the front of the editor:
- If the editor does not start with
/qq, the prefix is prepended. - If the editor already starts with
/qq, the prefix is removed.
Overlay keys
| Key | Action |
|---|---|
↑ / ↓ |
Scroll the panel when content overflows |
Esc |
Close the panel; cancel the request if it is still running |
Design constraints
- The main transcript is never polluted by
/qqquestions or answers. - The side call receives read-only main-session context.
- Recent mode sends only the latest messages for speed; full mode sends broader but still bounded context, not unlimited history.
- Large text parts are clipped; images, tool calls, and tool results are converted into plain-text background so the side call never uses provider tool protocol.
- The side call has no tools.
- Recent
/qqanswers are kept in memory only so/qq-historycan reopen them after dismissal. /qq-historyis view-only; it is not used as context for future/qqmodel calls.- The system prompt biases answers toward concise, direct responses.
Pairs well with
- pi-chrome — the de-facto browser-automation toolkit for Pi agents (drives your real, signed-in Chrome).
/qq summarize what the active GitHub tab showsworks beautifully against a pi-chrome session. - pi-bar — model / thinking / context footer so you catch wrong-model runs and context pressure early.
License
MIT