pi-bro 0.36.3 → 0.37.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/CHANGELOG.md +22 -0
- package/README.md +13 -15
- package/docs/README.md +7 -7
- package/docs/elevate.md +10 -93
- package/docs/feature-map.md +34 -0
- package/docs/features/architecture.md +1 -1
- package/docs/features/elevate.md +122 -0
- package/docs/features/explain.md +4 -2
- package/docs/features/grill-me.md +65 -0
- package/docs/features/guided-review.md +150 -0
- package/docs/features/overthink.md +66 -0
- package/docs/features/remember-me.md +92 -0
- package/docs/getting-started.md +3 -3
- package/docs/grill-me.md +5 -51
- package/docs/guided-review.md +14 -113
- package/docs/overthink.md +7 -46
- package/docs/piG-agent-shell-qualification.md +2 -2
- package/docs/pig-compatibility.md +1 -1
- package/docs/reference/commands.md +11 -11
- package/docs/reference/data-and-permissions.md +8 -8
- package/docs/reference/settings.md +5 -5
- package/docs/reference/troubleshooting.md +2 -2
- package/docs/remember-me.md +6 -75
- package/docs/user-guide.md +3 -3
- package/package.json +5 -4
- package/src/advisor.ts +1 -1
- package/src/backend.ts +1 -0
- package/src/bro.ts +11 -16
- package/src/btw.ts +6 -0
- package/src/explain-modal.ts +6 -6
- package/src/overthink-state.ts +3 -3
- package/src/overthink.ts +2 -2
- package/src/settings.ts +11 -3
- package/src/simplify-engine.ts +2 -2
- package/src/simplify-ui.ts +19 -8
- package/src/sources.ts +2 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to pi-bro are documented here.
|
|
4
4
|
|
|
5
|
+
## [0.37.1] - 2026-11-24
|
|
6
|
+
|
|
7
|
+
### Improved
|
|
8
|
+
|
|
9
|
+
- New Bro settings use the active physical Pi model when one is selected, with no extra CLI required. Existing settings and the initial `PI_BRO_MODEL` Agy override are unchanged.
|
|
10
|
+
- Overthink makes automatic checks only after explicit opt-in. Previously saved on/off choices, questions, notes and manual checks are unchanged.
|
|
11
|
+
- Publish the feature map, group feature guides under `docs/features/`, and keep pointers at the old paths. Check links in both the source docs and the npm package.
|
|
12
|
+
- Discover offline tests automatically; keep real-CLI and PiG qualification in their separate CI lanes. Update Doctor's Advisor compatibility to Pi 1.3.0.
|
|
13
|
+
|
|
14
|
+
## [0.37.0] - 2026-11-18
|
|
15
|
+
|
|
16
|
+
### Highlights
|
|
17
|
+
|
|
18
|
+
- Open `/bro` or `/bro simplify` to read the saved explanation, or help if none exists, without a model call, starting at the top of the view.
|
|
19
|
+
- Press Esc from Simplify help to return to the saved explanation without losing your unfinished input.
|
|
20
|
+
- Explain supported local documents outside the workspace using relative paths, absolute paths or symlinks.
|
|
21
|
+
|
|
22
|
+
### Breaking
|
|
23
|
+
|
|
24
|
+
- Bare `/bro` no longer generates an explanation of the latest assistant reply. Open `/bro`, then run `/simplify` inside, or use `/bro text` without text to generate it directly. Headless callers must use `/bro text` instead of `/bro`.
|
|
25
|
+
- Replaced the exported `isWorkspaceFile` helper with `isDocumentFile`.
|
|
26
|
+
|
|
5
27
|
## [0.36.3] - 2026-11-10
|
|
6
28
|
|
|
7
29
|
### Improved
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ agent's context.
|
|
|
11
11
|
|
|
12
12
|
`pi-bro` is an extension for [Pi](https://github.com/earendil-works/pi), a
|
|
13
13
|
terminal coding agent. Bro opens its answers in a separate window and runs
|
|
14
|
-
them through
|
|
14
|
+
them through Pi's model or a supported AI coding CLI, so your
|
|
15
15
|
main agent's conversation stays clean. Before you install, see
|
|
16
16
|
[what leaves your machine](#what-leaves-your-machine).
|
|
17
17
|
|
|
@@ -36,7 +36,7 @@ GitHub, use `pi install git:github.com/tranhoangnguyen03/pi-bro`.
|
|
|
36
36
|
|
|
37
37
|
## Try it
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
On first use, Bro picks the active physical Pi model if one is selected. No extra CLI is needed. Existing Bro settings stay as they are. Try this in Pi:
|
|
40
40
|
|
|
41
41
|
```text
|
|
42
42
|
/bro text A request limit means a service allows only a certain number of calls in a given time.
|
|
@@ -46,13 +46,13 @@ For a first success, type this in Pi after setting up a backend:
|
|
|
46
46
|
|
|
47
47
|
| After that | What happens |
|
|
48
48
|
| --- | --- |
|
|
49
|
-
| `/bro` |
|
|
49
|
+
| `/bro` | Shows the saved explanation, or help if none exists. Run `/simplify` inside to explain the latest reply again. |
|
|
50
50
|
| `/bro copy` | Edit and preview the raw Markdown of the last assistant reply before copying |
|
|
51
51
|
| `/bro btw What is a race condition?` | Asks a private side question |
|
|
52
52
|
| `/bro show` | Draws the current session's recent conversation, if any |
|
|
53
53
|
| `/bro architecture` | Creates or refreshes `docs/architecture/` for this project |
|
|
54
54
|
| `/bro grill-me Should agents talk freely to each other?` | Questions your assumptions privately, one at a time |
|
|
55
|
-
| `/bro overthink` |
|
|
55
|
+
| `/bro overthink` | Get a private second look with Ctrl+R; automatic checks are opt-in |
|
|
56
56
|
| `/bro elevate Improve how we search company documents` | Find expert gaps before giving Pi a task |
|
|
57
57
|
|
|
58
58
|
File and webpage examples need your own real path or URL; see [how to explain them](docs/features/explain.md#explain-a-document). For a step-by-step first run, see [Getting started](docs/getting-started.md).
|
|
@@ -65,20 +65,20 @@ File and webpage examples need your own real path or URL; see [how to explain th
|
|
|
65
65
|
| `/bro`, `/bro text`, `/bro file`, `/bro url` | **[Explain](docs/features/explain.md).** A plain-language version of the agent's last reply, pasted text, a PDF/DOCX/Markdown file, or a public webpage. Three modes: `brief`, `balanced`, `faithful`. |
|
|
66
66
|
| `/bro show` | **[Show](docs/features/show.md#bro-show).** The last few turns drawn as a shape (call tree, file tree, diff, pseudocode, a sequence diagram, or an HTML layout) instead of prose. |
|
|
67
67
|
| `/bro architecture [focus]` | **[Architecture Docs](docs/features/architecture.md).** Inspects the project and writes Markdown, diagrams and an offline interactive `architecture.html` under `docs/architecture/`. Uses BTW model settings. |
|
|
68
|
-
| `/bro elevate` or **Ctrl+Shift+E** | **[Elevate](docs/elevate.md).** Discover missing expert considerations, select useful improvements, and rewrite your task without submitting it. Shares BTW backend settings. |
|
|
69
|
-
| `/bro remember-me [thought]` | **[Remember Me](docs/remember-me.md).** Privately clarify and approve short personal memories with unfoldable background. Agents can call `about_user` to read summaries and expand IDs. |
|
|
70
|
-
| `/bro overthink` | **[Overthink](docs/overthink.md).**
|
|
71
|
-
| `/bro grill-me` | **[Grill Me](docs/grill-me.md) (experimental).** A private, opinionated decision interview: light, balanced or exhaustive; one question per round; `/consolidate` drafts a brief without ending the interview; `/copy` returns the latest reply or decision brief to the clipboard. Uses BTW model settings; read-only restrictions vary by backend. |
|
|
68
|
+
| `/bro elevate` or **Ctrl+Shift+E** | **[Elevate](docs/features/elevate.md).** Discover missing expert considerations, select useful improvements, and rewrite your task without submitting it. Shares BTW backend settings. |
|
|
69
|
+
| `/bro remember-me [thought]` | **[Remember Me](docs/features/remember-me.md).** Privately clarify and approve short personal memories with unfoldable background. Agents can call `about_user` to read summaries and expand IDs. |
|
|
70
|
+
| `/bro overthink` | **[Overthink](docs/features/overthink.md).** Get a second look from the active Pi model, with four editable questions. Use Ctrl+R to check now; enable automatic checks in config if you want them. |
|
|
71
|
+
| `/bro grill-me` | **[Grill Me](docs/features/grill-me.md) (experimental).** A private, opinionated decision interview: light, balanced or exhaustive; one question per round; `/consolidate` drafts a brief without ending the interview; `/copy` returns the latest reply or decision brief to the clipboard. Uses BTW model settings; read-only restrictions vary by backend. |
|
|
72
72
|
| `/bro btw` | **[Side questions](docs/features/btw.md#bro-btw-side-conversation).** A separate conversation seeded with recent context, so you can ask without interrupting the agent. ⚠️ [Full-permission mode](#what-leaves-your-machine) can edit files. |
|
|
73
|
-
| `/bro guided-review <PR>` | **[Guided Review](docs/guided-review.md).** An explanation and quality assessment of a GitHub PR, with ranked findings, source evidence and private questions. Claude, Muse, or Pi is recommended for untrusted PRs. |
|
|
73
|
+
| `/bro guided-review <PR>` | **[Guided Review](docs/features/guided-review.md).** An explanation and quality assessment of a GitHub PR, with ranked findings, source evidence and private questions. Claude, Muse, or Pi is recommended for untrusted PRs. |
|
|
74
74
|
| `/bro guided-review delete [PR]` | Choose a saved review and explicitly delete its record, questions and captured source after confirmation. No automatic cleanup. |
|
|
75
75
|
| `bro_advisor` tool | **[Second opinion](docs/features/advisor.md#bro-advisor).** A tool your agent can call mid-task; a fresh backend process reviews the session snapshot, can inspect the workspace when needed, and returns advice to the agent. ⚠️ [Runs with permissions bypassed](#what-leaves-your-machine). |
|
|
76
76
|
| `/bro config`, `/bro preferences` | **[Settings](docs/reference/settings.md#settings) and [preferences](docs/user-guide.md#preferences).** Pick the backend, model and effort per feature, and tell Bro how you like answers. |
|
|
77
77
|
|
|
78
78
|
For help by task, start with the **[four human-intent states](docs/feature-map.md)** or the **[docs home](docs/README.md)**; see the [command reference](docs/reference/commands.md) for syntax.
|
|
79
|
-
**Elevate, in practice:** Bro points out expert questions or tests you may have missed before you ask Pi to do the work. Review the suggestions, approve only what matters, then edit or submit the resulting request yourself. See the [walkthrough](docs/elevate.md) for limits, privacy, and copy-only handoff.
|
|
79
|
+
**Elevate, in practice:** Bro points out expert questions or tests you may have missed before you ask Pi to do the work. Review the suggestions, approve only what matters, then edit or submit the resulting request yourself. See the [walkthrough](docs/features/elevate.md) for limits, privacy, and copy-only handoff.
|
|
80
80
|
|
|
81
|
-
Guided Review has its own [guide](docs/guided-review.md).
|
|
81
|
+
Guided Review has its own [guide](docs/features/guided-review.md).
|
|
82
82
|
|
|
83
83
|
## Requirements
|
|
84
84
|
|
|
@@ -89,7 +89,7 @@ Guided Review has its own [guide](docs/guided-review.md).
|
|
|
89
89
|
|
|
90
90
|
| Backend | CLI | Notes |
|
|
91
91
|
| --- | --- | --- |
|
|
92
|
-
| [Google Antigravity](https://antigravity.google/docs/cli-install) | `agy` |
|
|
92
|
+
| [Google Antigravity](https://antigravity.google/docs/cli-install) | `agy` | Used for new settings if no physical Pi model is selected. Needs `>=1.1.15`. Guided Review uses `--sandbox`, which restricts shell commands but still allows writes inside the project. |
|
|
93
93
|
| [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | `claude` | Works for every feature; strict file-only inspection for Guided Review. |
|
|
94
94
|
| [Grok Build](https://docs.x.ai/build/overview) | `grok` | Guided Review uses its read-only sandbox (shell-enabled). |
|
|
95
95
|
| [Codex CLI](https://github.com/openai/codex) | `codex` | Guided Review uses its read-only sandbox (shell-enabled). |
|
|
@@ -176,9 +176,7 @@ npm test # offline: uses fake backend CLIs, never calls a model
|
|
|
176
176
|
pi --tui-mode fullscreen -e ./src/bro.ts
|
|
177
177
|
```
|
|
178
178
|
|
|
179
|
-
See
|
|
180
|
-
and the [docs index](docs/README.md). Report security problems privately as
|
|
181
|
-
described in [SECURITY.md](SECURITY.md).
|
|
179
|
+
See the [contribution and security guides](docs/README.md#for-contributors).
|
|
182
180
|
|
|
183
181
|
## License
|
|
184
182
|
|
package/docs/README.md
CHANGED
|
@@ -16,11 +16,11 @@ Start with what you want to do. The [README](../README.md) explains the product,
|
|
|
16
16
|
- [Visualize a conversation](features/show.md#bro-show) — Show diagrams.
|
|
17
17
|
- [Document a repository's architecture](features/architecture.md) — create or refresh Markdown, diagrams and an offline HTML map.
|
|
18
18
|
- [Ask a private side question](features/btw.md#bro-btw-side-conversation) — BTW.
|
|
19
|
-
- [Remember personal context for agents](remember-me.md) — approved short memories, expandable background and the read-only `about_user` tool.
|
|
20
|
-
- [Review work quietly with Overthink](overthink.md) —
|
|
21
|
-
- [Get grilled on a decision](grill-me.md) — one question at a time in a private modal, then copy a decision brief.
|
|
22
|
-
- [Improve a request before sending it](elevate.md) — Elevate: discover expert gaps, choose improvements, rewrite the task.
|
|
23
|
-
- [Investigate a PR](guided-review.md) — Guided Review.
|
|
19
|
+
- [Remember personal context for agents](features/remember-me.md) — approved short memories, expandable background and the read-only `about_user` tool.
|
|
20
|
+
- [Review work quietly with Overthink](features/overthink.md) — same-model second look with editable questions and optional automatic checks.
|
|
21
|
+
- [Get grilled on a decision](features/grill-me.md) — one question at a time in a private modal, then copy a decision brief.
|
|
22
|
+
- [Improve a request before sending it](features/elevate.md) — Elevate: discover expert gaps, choose improvements, rewrite the task.
|
|
23
|
+
- [Investigate a PR](features/guided-review.md) — Guided Review.
|
|
24
24
|
- [Get an agent's second opinion](features/advisor.md#bro-advisor) — Advisor; review its permissions first.
|
|
25
25
|
|
|
26
26
|
## I need to set up or fix something
|
|
@@ -32,7 +32,7 @@ Start with what you want to do. The [README](../README.md) explains the product,
|
|
|
32
32
|
|
|
33
33
|
## For contributors
|
|
34
34
|
|
|
35
|
-
- [Contributing](
|
|
36
|
-
- [Presentation standard](PUBLIC-PRESENTATION.md), [test evidence](test-consolidation.md), [prompt benchmarks](
|
|
35
|
+
- [Contributing](https://github.com/tranhoangnguyen03/pi-bro/blob/main/CONTRIBUTING.md), [code map](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/DEVELOPMENT.md), [manual testing](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/TESTING.md), and [security reports](https://github.com/tranhoangnguyen03/pi-bro/blob/main/SECURITY.md).
|
|
36
|
+
- [Presentation standard](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/PUBLIC-PRESENTATION.md), [test evidence](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/test-consolidation.md), [prompt benchmarks](https://github.com/tranhoangnguyen03/pi-bro/tree/main/benchmark), and [historical plans](https://github.com/tranhoangnguyen03/pi-bro/tree/main/docs/plans).
|
|
37
37
|
|
|
38
38
|
The topic pages and references above document shipped behavior. [Old user-guide links](user-guide.md) still work as pointers. Historical plans may describe work that did not ship.
|
package/docs/elevate.md
CHANGED
|
@@ -1,122 +1,39 @@
|
|
|
1
1
|
# Bro Elevate — improve a request before you send it
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Elevate is useful before a design, research task, implementation, plan, or important decision. It is not a way to turn every small request into a large project. Sometimes the best result is: *Your original request is good enough.*
|
|
6
|
-
|
|
7
|
-
Elevate works inside Pi's **separate Bro modal**. It does not post its discussion to the main agent or execute the revised assignment. Copy and paste the revised assignment when you choose; Elevate never edits or submits Pi's main draft.
|
|
3
|
+
This guide moved to [Elevate](features/elevate.md). The links below take you to the corresponding sections.
|
|
8
4
|
|
|
9
5
|
## Start here (one minute)
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
**Option B: Start with a slash command.**
|
|
14
|
-
|
|
15
|
-
```text
|
|
16
|
-
/bro elevate Design a retrieval system for our company documents.
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
**Option C: Start with no text.**
|
|
20
|
-
|
|
21
|
-
```text
|
|
22
|
-
/bro elevate
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
If the main editor contains a draft, Bro pre-fills the objective with that draft. Elevate always opens Compose first so you can choose context before any model call. Otherwise, it shows a multi-line objective field: type or paste the objective and choose **Ctrl+S** (or `Ctrl+Enter` on terminals that send it, or the `[Discover gaps]` button). `Enter` adds a new line, so a pasted multi-line task keeps its structure.
|
|
26
|
-
|
|
27
|
-
When both an explicit `/bro elevate <request>` argument and a draft exist, the **explicit argument takes priority**. The main editor stays untouched throughout.
|
|
7
|
+
[Start here](features/elevate.md#start-here-one-minute)
|
|
28
8
|
|
|
29
9
|
## Conversation context and retry
|
|
30
10
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- **Messages (default):** all user and assistant text from the current conversation branch.
|
|
34
|
-
- **Full:** also includes tool-call arguments and text tool results. This may send sensitive file contents, command arguments or tool output to the selected provider. Hidden reasoning, image binaries and provider metadata are excluded in both modes.
|
|
35
|
-
- There is **no fixed history cap**. Provider context limits still apply. The separate 12,000-character objective limit remains.
|
|
36
|
-
- Changing mode never makes a model call. It returns to Compose and clears old findings, approvals and rewrites. Start discovery again to use the new mode. Each new window defaults to Messages; history is captured when the window opens.
|
|
37
|
-
- After an explicit context-overload error, **Retry** removes the oldest half of remaining messages and repeats the failed step. If only one oversized message remains, subsequent retries halve its text, then omit it. The header shows **reduced** and the prompt marks partial history. The objective and approved findings remain intact. There are no automatic retries and ordinary failures do not trim context. Once history is exhausted, shorten the objective or choose a larger-context backend.
|
|
11
|
+
[Conversation context and retry](features/elevate.md#conversation-context-and-retry)
|
|
38
12
|
|
|
39
13
|
## The two questions Elevate asks
|
|
40
14
|
|
|
41
|
-
|
|
42
|
-
2. **Upgrade:** “Rewrite my request using only the insights I approve. Keep my outcome, constraints, and scope. Improve the quality of the work, not the amount of work.” Bro returns the improved assignment for **you to review**.
|
|
43
|
-
|
|
44
|
-
Discovery and rewrite show a live elapsed-time status in the modal footer, even when the selected backend has not begun replying. The footer is not part of the proposed assignment and clears on completion or cancellation.
|
|
45
|
-
|
|
46
|
-
The flow is **Discover → Select → Upgrade → Copy**. It typically makes **two model calls** (discovery and rewrite); if Bro finds no useful changes, it makes only the discovery call and keeps the original request.
|
|
15
|
+
[The two questions Elevate asks](features/elevate.md#the-two-questions-elevate-asks)
|
|
47
16
|
|
|
48
17
|
## Example: before and after
|
|
49
18
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
> Help me design a system that lets AI agents find relevant information in company documents. Keep our current data pipelines.
|
|
53
|
-
|
|
54
|
-
**Possible discoveries** (illustrative, not a promise of any exact answer):
|
|
55
|
-
|
|
56
|
-
| Finding | Why an expert would ask about it |
|
|
57
|
-
| --- | --- |
|
|
58
|
-
| **Depth — Test real questions first** | A plausible demo may still miss facts spread across different documents. Collect sample questions and expected source evidence before choosing a search method. |
|
|
59
|
-
| **Range — Link company names and metrics** | Acquired firms may use different names for the same product or metric. Map those links so agents don't mistake them for separate things. |
|
|
60
|
-
| **Altitude — Define what a correct answer means** | Retrieving relevant text is not the final goal. The agent must give useful, well-supported answers. |
|
|
61
|
-
|
|
62
|
-
You might approve the first and third findings and reject the second for now.
|
|
63
|
-
|
|
64
|
-
**Possible upgraded request**
|
|
65
|
-
|
|
66
|
-
> Design an approach for helping agents answer real business questions from our existing documents, without replacing our current structured-data pipelines. Start by collecting a small set of representative questions and the evidence needed for correct answers. Compare retrieval approaches against those questions, including how they handle facts spread across documents. Recommend the smallest sound design and specify how we would test answer correctness, coverage, and source support. Flag gaps in access or evidence rather than assuming the answers are known.
|
|
67
|
-
|
|
68
|
-
Bro has **not designed the system** here. It has improved the assignment you can give to Pi. You can still edit or reject the rewrite.
|
|
19
|
+
[Example: before and after](features/elevate.md#example-before-and-after)
|
|
69
20
|
|
|
70
21
|
## Controls in the modal
|
|
71
22
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
| Screen | Key | Effect |
|
|
75
|
-
| --- | --- | --- |
|
|
76
|
-
| Write a request | `Enter` | Start a new line in the objective. |
|
|
77
|
-
| Write a request | `Ctrl+S` or `Ctrl+Enter` | Start discovery. The same as the `[Discover gaps]` button. `Ctrl+S` is listed first because many terminals never deliver `Ctrl+Enter`. |
|
|
78
|
-
| Review discoveries | `↑` / `↓` | Move the highlight between findings. |
|
|
79
|
-
| Review discoveries | `Space` or `Enter` | Tick or untick the **highlighted** finding. Either key works, so there is no wrong one to press. Nothing is selected at first, so you approve only what you read; the reason for the highlighted finding is shown under the list. |
|
|
80
|
-
| Review discoveries | `Tab` | Move focus to the buttons. |
|
|
81
|
-
| Review discoveries | `[Rewrite with N selected]` | Generate a revised request using only the ticked findings. With nothing ticked it explains why instead of proceeding. |
|
|
82
|
-
| Review discoveries | `[Select all]` / `[Select none]` | Change every tick at once. |
|
|
83
|
-
| Revised request | `[Copy]` | Copy the revised request to the system clipboard. |
|
|
84
|
-
| Revised request | `[Back]` | Return to the findings and change your choices. |
|
|
85
|
-
| Failed step | `[Retry]` | Repeat **the step that failed**: a failed rewrite retries the rewrite with the same approved findings, so your choices are not lost. |
|
|
86
|
-
| Any screen | `Ctrl+C` | Copy the objective or the revised request, so closing never loses pasted work. |
|
|
87
|
-
| Any screen | `Esc` | Cancel/close. A running backend request is asked to stop. |
|
|
88
|
-
| Read long content | `↑`/`↓`, Page Up/Down, wheel | Scroll. In the findings list, `↑`/`↓` move the highlight and Page Up/Down scroll. |
|
|
89
|
-
|
|
90
|
-
If there are **no material findings**, the revised-request screen displays your original text unchanged. You may copy or close it; no rewrite model call is made.
|
|
23
|
+
[Controls in the modal](features/elevate.md#controls-in-the-modal)
|
|
91
24
|
|
|
92
25
|
### What happens to the original editor draft?
|
|
93
26
|
|
|
94
|
-
|
|
27
|
+
[What happens to the original editor draft?](features/elevate.md#what-happens-to-the-original-editor-draft)
|
|
95
28
|
|
|
96
29
|
## What Elevate can and cannot do
|
|
97
30
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
**Doesn't (MVP):** Solve the task, run real-world experiments, fetch external sources as an explicit research step, implement code, interrupt the agent mid-task, ask the main agent for advice, or save an ongoing Elevate conversation. It cannot confirm its ideas are correct without external evidence. Suggestions are **model-generated hypotheses**, not verified findings. The rewrite may still misread your intent; review it before sending.
|
|
101
|
-
|
|
102
|
-
**Access and privacy:**
|
|
103
|
-
|
|
104
|
-
- Bro sends the **request**, conversation history selected by **Messages** or **Full**, saved Bro preferences if any, and later the **approved findings**, to the selected backend/provider. History is initially uncapped; Full includes tool-call arguments and text results. Hidden reasoning and image binaries are never captured. Explicit overload retries can remove older context as described above.
|
|
105
|
-
- Elevate uses the **BTW backend/model/effort setting** from `/bro config`, falling back to Bro's shared default. There is **no separate Elevate setting** in this MVP. Each stage makes a **fresh, non-continuing** backend call; your Elevate selections live only in memory and clear on close/reload.
|
|
106
|
-
- Requests use Bro's **restricted explain-style execution path**. Restrictions depend on the backend. For example, **Grok's restriction is prompt-only and its sandbox is off**; **Codex and Muse can have read tools**, including tools governed by local configuration. **Do not treat this as a firm sandbox or a guarantee of no file/network access.** Consult [backend access details](reference/data-and-permissions.md#backends-access-and-retention). Elevate itself has no file-read or file-write action.
|
|
107
|
-
- Closing or cancelling does not submit anything to the main agent. Your backend and provider may still retain prompts or process data under their own policies. Clipboard copies may remain in clipboard history.
|
|
31
|
+
[What Elevate can and cannot do](features/elevate.md#what-elevate-can-and-cannot-do)
|
|
108
32
|
|
|
109
33
|
## Troubleshooting
|
|
110
34
|
|
|
111
|
-
|
|
112
|
-
| --- | --- |
|
|
113
|
-
| Shortcut doesn't open Elevate | Some terminals don't send `Ctrl+Shift+E` as a distinct key. Use `/bro elevate <request>`; check Pi key bindings. |
|
|
114
|
-
| Nothing to work on | Type the objective into the modal and choose `[Discover gaps]`, or pass it with `/bro elevate <request>`. |
|
|
115
|
-
| “Invalid discovery JSON” | The model didn't follow the required response format. Choose `[Retry]` to repeat the step; consider a different BTW model in `/bro config`. |
|
|
116
|
-
| Backend/model/effort fails | Run `/bro doctor`; Elevate does not silently switch models. |
|
|
117
|
-
| The rewrite added unwanted scope | Use `[Back]` to approve fewer findings, or `Esc` to keep your original request. |
|
|
118
|
-
| You need source-backed research | Ask the main agent to investigate after you submit the improved request. Elevate's discovery alone does not verify source facts. |
|
|
35
|
+
[Troubleshooting](features/elevate.md#troubleshooting)
|
|
119
36
|
|
|
120
37
|
## For maintainers
|
|
121
38
|
|
|
122
|
-
|
|
39
|
+
[For maintainers](features/elevate.md#for-maintainers)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Choose Bro by what you need
|
|
2
|
+
|
|
3
|
+
These are **human intentions**, not modes. Run any feature directly. Bare `/bro` shows the saved explanation, or help if none exists, without a model call. Run `/simplify` inside to explain the latest completed assistant reply.
|
|
4
|
+
|
|
5
|
+
| I need to… | Feature | What will I get? |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| **Understand what already exists:** make sense of an answer or file | Simplify (`/bro`) | A clearer explanation |
|
|
8
|
+
| Understand the shape of the discussion | `/bro show` | Diagram, structure, or outline of conversation text |
|
|
9
|
+
| Understand a repository | `/bro architecture` | Architecture docs and offline visualization |
|
|
10
|
+
| **Explore what could exist:** ask a side question | `/bro btw` | A flexible private conversation |
|
|
11
|
+
| Challenge a proposal or form a decision | `/bro grill-me` | Reasoned discussion and optional decision brief |
|
|
12
|
+
| **Get advice on existing work:** review a code change | `/bro guided-review` | Saved findings and code evidence |
|
|
13
|
+
| Reconsider substantial work automatically | `/bro overthink` | Private notes when material concerns arise |
|
|
14
|
+
| Give the agent independent advice | `bro_advisor` (agent tool) | A second opinion returned to the agent |
|
|
15
|
+
| **Guide the agent:** improve the next assignment | `/bro elevate` | Revised request to copy, edit, and submit |
|
|
16
|
+
| Remember lasting personal facts/preferences | `/bro remember-me` | Approved memory available through the read-only `about_user` agent tool |
|
|
17
|
+
| Set the advisor's priorities | `/bro advisor-steer` | Saved session steering |
|
|
18
|
+
| Set shared answer style | `/bro preferences` | Persistent style preferences |
|
|
19
|
+
|
|
20
|
+
`/bro config`, `/bro doctor`, and `/bro help` are support controls, not another intent state. BTW can serve any need; exploration is its primary role. Overthink uses the active Pi model for a second look; Advisor uses an independent backend.
|
|
21
|
+
|
|
22
|
+
## Shared interactions, distinct workflows
|
|
23
|
+
|
|
24
|
+
- **Copy is a shared text handoff, not a separate intent state.** Native Pi `/copy` copies immediately; `/bro copy` lets users edit and preview the last reply before copying. It never edits Pi's draft, submits a message or writes to GitHub. You decide where to paste and when to submit. BTW supports latest/all; Grill Me copies its latest reply or brief; Elevate copies a revised assignment; Guided Review copies findings. Retired `/insert` commands tell users to copy instead.
|
|
25
|
+
- **Resume** restores feature-owned state where needed, not a shared chat engine. Latest Simplify/Show, BTW and Grill Me restore from private Pi session entries on reload, restart, resume and `/tree`; saved Guided Review, approved Remember Me and steering already have durable state.
|
|
26
|
+
- **Clear / Reset / Delete** belong to each feature: BTW resets its thread; Grill Me starts a new interview; Guided Review deletes a specific saved review once cleanup ships; Remember Me deletes a named approved memory; Overthink resets its question defaults.
|
|
27
|
+
- **Retry / Regenerate** repeats a step without silently losing prior accepted work. Guided Review's regenerate (same captured source) is not update revision (new source).
|
|
28
|
+
- **Help / Close** share meanings, but a short viewer needs fewer controls than a review or interview.
|
|
29
|
+
|
|
30
|
+
Do not standardize away distinctive capabilities: Simplify source and modes, Show diagram opening, BTW permissions, Grill Me depth and consolidation, Elevate discovery/selection/rewrite, Guided Review evidence and revisions, Overthink automatic checks/questions, and Remember Me approval/conflict resolution.
|
|
31
|
+
|
|
32
|
+
## Trust and acceptance
|
|
33
|
+
|
|
34
|
+
Private Bro work stays out of Pi's model context unless the human pastes and sends it. `bro_advisor` and `about_user` are intended agent-facing tool result channels, not manual Insert. Use existing Pi session entries or feature-owned stores for persistence. Never claim prompts alone enforce access limits. The human owner judges cohesion by a practical vibe-check, without a new scoring bureaucracy.
|
|
@@ -38,4 +38,4 @@ Bro does not commit, push, run project tests, execute code from the repository,
|
|
|
38
38
|
|
|
39
39
|
A very large repository, skipped source file, unsupported backend model or invalid model response may stop the job. The command reports the error rather than silently changing providers or writing unchecked docs. Generated text goes to your selected provider; the backend's own retention policy applies.
|
|
40
40
|
|
|
41
|
-
To evaluate output, open the Markdown index and `architecture.html` offline, follow a real entry-to-result flow and check the source paths. Try a second run after changing behavior inside a function without changing its name. Ensure the docs reflect the change and still agree with the diagram. See [backend safety](../reference/data-and-permissions.md#architecture-docs) and [manual verification](
|
|
41
|
+
To evaluate output, open the Markdown index and `architecture.html` offline, follow a real entry-to-result flow and check the source paths. Try a second run after changing behavior inside a function without changing its name. Ensure the docs reflect the change and still agree with the diagram. See [backend safety](../reference/data-and-permissions.md#architecture-docs) and [manual verification](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/TESTING.md#architecture-docs).
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Bro Elevate — improve a request before you send it
|
|
2
|
+
|
|
3
|
+
**Elevate helps you ask for better work when you may not know what to ask for.** You describe what you want to achieve; Bro suggests a few expert questions, methods, or checks you may have missed. You choose which ones matter. Bro then rewrites **your assignment**, not the answer to it.
|
|
4
|
+
|
|
5
|
+
Elevate is useful before a design, research task, implementation, plan, or important decision. It is not a way to turn every small request into a large project. Sometimes the best result is: *Your original request is good enough.*
|
|
6
|
+
|
|
7
|
+
Elevate works inside Pi's **separate Bro modal**. It does not post its discussion to the main agent or execute the revised assignment. Copy and paste the revised assignment when you choose; Elevate never edits or submits Pi's main draft.
|
|
8
|
+
|
|
9
|
+
## Start here (one minute)
|
|
10
|
+
|
|
11
|
+
**Option A: Improve a draft already in Pi's editor.** Type your request normally, but **do not submit it**. Invoke the **Ctrl+Shift+E** shortcut, where your terminal sends that key combination to Pi. Elevate opens Compose with your unsent draft; choose a context mode before starting discovery. If the shortcut doesn't work in your terminal, use `/bro elevate <request>` instead.
|
|
12
|
+
|
|
13
|
+
**Option B: Start with a slash command.**
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
/bro elevate Design a retrieval system for our company documents.
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Option C: Start with no text.**
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
/bro elevate
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If the main editor contains a draft, Bro pre-fills the objective with that draft. Elevate always opens Compose first so you can choose context before any model call. Otherwise, it shows a multi-line objective field: type or paste the objective and choose **Ctrl+S** (or `Ctrl+Enter` on terminals that send it, or the `[Discover gaps]` button). `Enter` adds a new line, so a pasted multi-line task keeps its structure.
|
|
26
|
+
|
|
27
|
+
When both an explicit `/bro elevate <request>` argument and a draft exist, the **explicit argument takes priority**. The main editor stays untouched throughout.
|
|
28
|
+
|
|
29
|
+
## Conversation context and retry
|
|
30
|
+
|
|
31
|
+
The **Context: Messages** button toggles to **Context: Full**. Use Tab to focus actions and Left/Right to reach it; Enter activates it. Short labels may show Messages or Full on narrow screens. The header always shows the active mode. While reviewing findings, choose **Edit request** to return to Compose and switch context; keeping the review action row short leaves space for explanations on small terminals.
|
|
32
|
+
|
|
33
|
+
- **Messages (default):** all user and assistant text from the current conversation branch.
|
|
34
|
+
- **Full:** also includes tool-call arguments and text tool results. This may send sensitive file contents, command arguments or tool output to the selected provider. Hidden reasoning, image binaries and provider metadata are excluded in both modes.
|
|
35
|
+
- There is **no fixed history cap**. Provider context limits still apply. The separate 12,000-character objective limit remains.
|
|
36
|
+
- Changing mode never makes a model call. It returns to Compose and clears old findings, approvals and rewrites. Start discovery again to use the new mode. Each new window defaults to Messages; history is captured when the window opens.
|
|
37
|
+
- After an explicit context-overload error, **Retry** removes the oldest half of remaining messages and repeats the failed step. If only one oversized message remains, subsequent retries halve its text, then omit it. The header shows **reduced** and the prompt marks partial history. The objective and approved findings remain intact. There are no automatic retries and ordinary failures do not trim context. Once history is exhausted, shorten the objective or choose a larger-context backend.
|
|
38
|
+
|
|
39
|
+
## The two questions Elevate asks
|
|
40
|
+
|
|
41
|
+
1. **Discover:** “Given my objective, what would a skilled expert know, question, investigate, or test that I haven't accounted for?” Bro looks across **altitude** (right problem), **depth** (evidence, methods, tests), and **range** (useful ideas from other fields). It offers up to **five** non-overlapping suggestions, with a reason and an expert action for each. It can also report **zero** suggestions.
|
|
42
|
+
2. **Upgrade:** “Rewrite my request using only the insights I approve. Keep my outcome, constraints, and scope. Improve the quality of the work, not the amount of work.” Bro returns the improved assignment for **you to review**.
|
|
43
|
+
|
|
44
|
+
Discovery and rewrite show a live elapsed-time status in the modal footer, even when the selected backend has not begun replying. The footer is not part of the proposed assignment and clears on completion or cancellation.
|
|
45
|
+
|
|
46
|
+
The flow is **Discover → Select → Upgrade → Copy**. It typically makes **two model calls** (discovery and rewrite); if Bro finds no useful changes, it makes only the discovery call and keeps the original request.
|
|
47
|
+
|
|
48
|
+
## Example: before and after
|
|
49
|
+
|
|
50
|
+
**Your original request**
|
|
51
|
+
|
|
52
|
+
> Help me design a system that lets AI agents find relevant information in company documents. Keep our current data pipelines.
|
|
53
|
+
|
|
54
|
+
**Possible discoveries** (illustrative, not a promise of any exact answer):
|
|
55
|
+
|
|
56
|
+
| Finding | Why an expert would ask about it |
|
|
57
|
+
| --- | --- |
|
|
58
|
+
| **Depth — Test real questions first** | A plausible demo may still miss facts spread across different documents. Collect sample questions and expected source evidence before choosing a search method. |
|
|
59
|
+
| **Range — Link company names and metrics** | Acquired firms may use different names for the same product or metric. Map those links so agents don't mistake them for separate things. |
|
|
60
|
+
| **Altitude — Define what a correct answer means** | Retrieving relevant text is not the final goal. The agent must give useful, well-supported answers. |
|
|
61
|
+
|
|
62
|
+
You might approve the first and third findings and reject the second for now.
|
|
63
|
+
|
|
64
|
+
**Possible upgraded request**
|
|
65
|
+
|
|
66
|
+
> Design an approach for helping agents answer real business questions from our existing documents, without replacing our current structured-data pipelines. Start by collecting a small set of representative questions and the evidence needed for correct answers. Compare retrieval approaches against those questions, including how they handle facts spread across documents. Recommend the smallest sound design and specify how we would test answer correctness, coverage, and source support. Flag gaps in access or evidence rather than assuming the answers are known.
|
|
67
|
+
|
|
68
|
+
Bro has **not designed the system** here. It has improved the assignment you can give to Pi. You can still edit or reject the rewrite.
|
|
69
|
+
|
|
70
|
+
## Controls in the modal
|
|
71
|
+
|
|
72
|
+
Every consequential action is a **button** on the action row. `Tab` / `Shift+Tab` move between the text/list area and the buttons, `←`/`→` move between buttons, and `Enter` activates the focused one. The focused button is marked with `›`. Nothing changes your main Pi editor or sends a request.
|
|
73
|
+
|
|
74
|
+
| Screen | Key | Effect |
|
|
75
|
+
| --- | --- | --- |
|
|
76
|
+
| Write a request | `Enter` | Start a new line in the objective. |
|
|
77
|
+
| Write a request | `Ctrl+S` or `Ctrl+Enter` | Start discovery. The same as the `[Discover gaps]` button. `Ctrl+S` is listed first because many terminals never deliver `Ctrl+Enter`. |
|
|
78
|
+
| Review discoveries | `↑` / `↓` | Move the highlight between findings. |
|
|
79
|
+
| Review discoveries | `Space` or `Enter` | Tick or untick the **highlighted** finding. Either key works, so there is no wrong one to press. Nothing is selected at first, so you approve only what you read; the reason for the highlighted finding is shown under the list. |
|
|
80
|
+
| Review discoveries | `Tab` | Move focus to the buttons. |
|
|
81
|
+
| Review discoveries | `[Rewrite with N selected]` | Generate a revised request using only the ticked findings. With nothing ticked it explains why instead of proceeding. |
|
|
82
|
+
| Review discoveries | `[Select all]` / `[Select none]` | Change every tick at once. |
|
|
83
|
+
| Revised request | `[Copy]` | Copy the revised request to the system clipboard. |
|
|
84
|
+
| Revised request | `[Back]` | Return to the findings and change your choices. |
|
|
85
|
+
| Failed step | `[Retry]` | Repeat **the step that failed**: a failed rewrite retries the rewrite with the same approved findings, so your choices are not lost. |
|
|
86
|
+
| Any screen | `Ctrl+C` | Copy the objective or the revised request, so closing never loses pasted work. |
|
|
87
|
+
| Any screen | `Esc` | Cancel/close. A running backend request is asked to stop. |
|
|
88
|
+
| Read long content | `↑`/`↓`, Page Up/Down, wheel | Scroll. In the findings list, `↑`/`↓` move the highlight and Page Up/Down scroll. |
|
|
89
|
+
|
|
90
|
+
If there are **no material findings**, the revised-request screen displays your original text unchanged. You may copy or close it; no rewrite model call is made.
|
|
91
|
+
|
|
92
|
+
### What happens to the original editor draft?
|
|
93
|
+
|
|
94
|
+
Elevate never writes to Pi's editor. It may use the unsent draft as its starting objective, but Copy only writes to the clipboard. Paste the revised request yourself and submit when ready. If you have an unsent draft, it stays unchanged.
|
|
95
|
+
|
|
96
|
+
## What Elevate can and cannot do
|
|
97
|
+
|
|
98
|
+
**Does:** Improve how the assignment is framed, point out missing checks, offer cross-field methods, help you choose, and create a stricter request that preserves the outcome and stated limits.
|
|
99
|
+
|
|
100
|
+
**Doesn't (MVP):** Solve the task, run real-world experiments, fetch external sources as an explicit research step, implement code, interrupt the agent mid-task, ask the main agent for advice, or save an ongoing Elevate conversation. It cannot confirm its ideas are correct without external evidence. Suggestions are **model-generated hypotheses**, not verified findings. The rewrite may still misread your intent; review it before sending.
|
|
101
|
+
|
|
102
|
+
**Access and privacy:**
|
|
103
|
+
|
|
104
|
+
- Bro sends the **request**, conversation history selected by **Messages** or **Full**, saved Bro preferences if any, and later the **approved findings**, to the selected backend/provider. History is initially uncapped; Full includes tool-call arguments and text results. Hidden reasoning and image binaries are never captured. Explicit overload retries can remove older context as described above.
|
|
105
|
+
- Elevate uses the **BTW backend/model/effort setting** from `/bro config`, falling back to Bro's shared default. There is **no separate Elevate setting** in this MVP. Each stage makes a **fresh, non-continuing** backend call; your Elevate selections live only in memory and clear on close/reload.
|
|
106
|
+
- Requests use Bro's **restricted explain-style execution path**. Restrictions depend on the backend. For example, **Grok's restriction is prompt-only and its sandbox is off**; **Codex and Muse can have read tools**, including tools governed by local configuration. **Do not treat this as a firm sandbox or a guarantee of no file/network access.** Consult [backend access details](../reference/data-and-permissions.md#backends-access-and-retention). Elevate itself has no file-read or file-write action.
|
|
107
|
+
- Closing or cancelling does not submit anything to the main agent. Your backend and provider may still retain prompts or process data under their own policies. Clipboard copies may remain in clipboard history.
|
|
108
|
+
|
|
109
|
+
## Troubleshooting
|
|
110
|
+
|
|
111
|
+
| Problem | What to do |
|
|
112
|
+
| --- | --- |
|
|
113
|
+
| Shortcut doesn't open Elevate | Some terminals don't send `Ctrl+Shift+E` as a distinct key. Use `/bro elevate <request>`; check Pi key bindings. |
|
|
114
|
+
| Nothing to work on | Type the objective into the modal and choose `[Discover gaps]`, or pass it with `/bro elevate <request>`. |
|
|
115
|
+
| “Invalid discovery JSON” | The model didn't follow the required response format. Choose `[Retry]` to repeat the step; consider a different BTW model in `/bro config`. |
|
|
116
|
+
| Backend/model/effort fails | Run `/bro doctor`; Elevate does not silently switch models. |
|
|
117
|
+
| The rewrite added unwanted scope | Use `[Back]` to approve fewer findings, or `Esc` to keep your original request. |
|
|
118
|
+
| You need source-backed research | Ask the main agent to investigate after you submit the improved request. Elevate's discovery alone does not verify source facts. |
|
|
119
|
+
|
|
120
|
+
## For maintainers
|
|
121
|
+
|
|
122
|
+
See [DEVELOPMENT.md](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/DEVELOPMENT.md) for code boundaries and [TESTING.md](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/TESTING.md) for terminal/desktop checks. `src/elevate-engine.ts` is a host-free prompt, parser, and selection layer; `src/elevate.ts` owns the Pi modal and backend calls. Future cross-harness work is intentionally out of scope.
|
package/docs/features/explain.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[Docs home](../README.md) · [All commands](../reference/commands.md) · [Safety and permissions](../reference/data-and-permissions.md)
|
|
4
4
|
|
|
5
|
+
Opening `/bro` or `/bro simplify` shows your saved explanation, or command help if none exists. It does not call the model. Run `/simplify` inside the modal to explain the latest completed assistant reply again.
|
|
6
|
+
|
|
5
7
|
## Explanation modes
|
|
6
8
|
|
|
7
9
|
Bro treats quoted source as data and asks the model to ignore embedded
|
|
@@ -31,7 +33,7 @@ next mode without saving it:
|
|
|
31
33
|
the mode saved by `/bro mode`; pressing it again while Bro is working skips
|
|
32
34
|
ahead
|
|
33
35
|
- **O**: Open the diagram (an HTML layout or a rendered sequence diagram) when a show reply contains one
|
|
34
|
-
- **Esc**:
|
|
36
|
+
- **Esc**: From `/help`, return to the saved explanation without rerunning it. If there is no saved explanation, or you are already reading it, close the modal. While Bro is working, cancel and close.
|
|
35
37
|
|
|
36
38
|
The modal header shows the model and reasoning effort the explanation or
|
|
37
39
|
drawing used (`default` when the model's own effort applies), followed by the
|
|
@@ -56,7 +58,7 @@ to simplify the same captured text again.
|
|
|
56
58
|
|
|
57
59
|
## Explain a document
|
|
58
60
|
|
|
59
|
-
Use a path
|
|
61
|
+
Use a relative or absolute path, including files outside Pi's current workspace. Symlinks are followed; normal OS file permissions apply:
|
|
60
62
|
|
|
61
63
|
```text
|
|
62
64
|
/bro file "docs/incident review.pdf"
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Grill Me (experimental)
|
|
2
|
+
|
|
3
|
+
[Docs home](../README.md) · [Commands](../reference/commands.md) · [Safety](../reference/data-and-permissions.md)
|
|
4
|
+
|
|
5
|
+
`/bro grill-me` opens an independent decision interview in Bro's modal, without adding turns to Pi's main conversation.
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
/bro grill-me Should child agents communicate freely?
|
|
9
|
+
/bro grill-me
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
With a topic, start a new interview. Without one, reopen the current interview or enter a topic inside the modal. A proposal prompts scrutiny; an open question prompts discovery. Bro offers reasoned pushback, then one question with lettered choices, including an open-ended alternative. Answer with a letter or your own words. Questions request a horizontal divider, a distinct **Question** heading, and exactly one **(Recommended)** option with a short reason. Recommendations are provisional; model adherence is not guaranteed.
|
|
13
|
+
|
|
14
|
+
## How Bro works with you
|
|
15
|
+
|
|
16
|
+
Grill Me is a **context-rich thinking partner**, not a review pipeline. It can help you discover a position from an open question or test a proposal you already have. If you propose a solution before explaining the problem, Bro looks for the goal and constraints that matter; when those are already clear, it uses them rather than repeating an intake checklist.
|
|
17
|
+
|
|
18
|
+
Bro contributes options and reasons, asks about the most consequential choice still open, and may inspect relevant workspace material when its backend permits it. It should check available facts rather than guessing, ask *you* about preferences and trade-offs, and explain meaningful uncertainty. Good arguments can persuade Bro; it should not invent objections to prolong the interview.
|
|
19
|
+
|
|
20
|
+
As the discussion develops, Bro treats your **agreed choices and reasons** differently from untested assumptions and Bro's own suggestions. You can correct or change a constraint in normal conversation. Bro should carry that change forward and avoid reopening settled ground without a reason.
|
|
21
|
+
|
|
22
|
+
`/consolidate` captures the current position for a handoff, at whatever level of detail the topic warrants: goals, key constraints, endorsed decisions and why, material trade-offs, unresolved questions, and a next step. It does not promote Bro's recommendations into decisions you never made. You can consolidate early, then continue and consolidate again.
|
|
23
|
+
|
|
24
|
+
This takes inspiration from the context-rich **Elephant** in Google's [Elephant–Goldfish Model](https://github.com/google/elephant-goldfish-model). Grill Me does **not** dispatch Goldfish reviewers, require a design document, or impose review/approval stages. It remains one dialogue in Bro's modal.
|
|
25
|
+
|
|
26
|
+
## Controls
|
|
27
|
+
|
|
28
|
+
| Command inside the modal | Effect |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `/consolidate` | Generate a current decision brief. Does not end the interview or insert anything. |
|
|
31
|
+
| `/copy` | Copy the latest reply or consolidated brief to the clipboard. No model call or editor changes. |
|
|
32
|
+
| `/depth light` | Quick, focused questioning |
|
|
33
|
+
| `/depth balanced` | Default: material assumptions and trade-offs |
|
|
34
|
+
| `/depth exhaustive` | Deeper alternatives, evidence and failure cases |
|
|
35
|
+
| `/retry` | Retry the failed/cancelled operation, otherwise regenerate the latest reply. Never repeats copying. |
|
|
36
|
+
| `/new <topic>` | Start over after confirmation. Resets depth to balanced and access to inspection. |
|
|
37
|
+
| `/access inspect` | Request inspection tools; enforcement depends on backend |
|
|
38
|
+
| `/access full` | Request full permissions; requires typing `yes` after a warning |
|
|
39
|
+
| `/help` | Show commands on demand; **Esc returns to the interview** |
|
|
40
|
+
| Esc | Close and cancel active work; preserve completed discussion |
|
|
41
|
+
|
|
42
|
+
Type `/` to see matching commands; keep typing to narrow suggestions and press **Tab** to complete the first match. Completion never submits. From help, Esc returns to the discussion; a second Esc closes the modal.
|
|
43
|
+
|
|
44
|
+
For confirmation prompts, type `yes` to proceed; anything else cancels. Depth can change between replies without losing the discussion. There are no question quotas or finished/locked states. Consolidate whenever useful, inspect the brief, then copy it or continue talking. The brief includes the current position, reasons, objections, unresolved questions and next actions. Copy never edits or submits the Pi draft.
|
|
45
|
+
|
|
46
|
+
The old `/finish`, `/copy-all`, `/insert`, `/insert-all`, `/insert-last-message`, `/clear`, and entry depth flags are not supported. Use `/copy` for the latest reply or brief; paste it where you choose. BTW also uses copy-only handoffs.
|
|
47
|
+
|
|
48
|
+
Grill Me uses the **BTW model/backend/effort** selection from `/bro config`, but has its own independent thread. The header shows depth and effective access; `/help` keeps the footer short. Full access and Agy write risks remain visible in the header even when another notice is shown.
|
|
49
|
+
|
|
50
|
+
While Bro works, the footer shows the current stage and elapsed seconds. When the backend reports tools, it shows only the tool name/type. The timer confirms the request is still pending, not that the backend is making progress. Progress disappears on completion or cancellation and never enters saved replies or copies.
|
|
51
|
+
|
|
52
|
+
## Access, privacy and limits
|
|
53
|
+
|
|
54
|
+
- Inspection uses the Guided Review backend path in your current workspace. Claude, Muse and Pi have file-only tools. Codex and Grok have read-only sandboxes with shell access. **Agy inspection can still write project files.** No-edit prompts are not security controls.
|
|
55
|
+
- Full access can read, edit and execute commands. Bro instructs the model not to make changes, but cannot enforce that instruction. There is no automatic escalation.
|
|
56
|
+
- Each turn makes a fresh backend call replaying the complete interview. Long interviews cost more and may exceed context limits; there is no hidden truncation or fallback.
|
|
57
|
+
- The provider receives your topic, interview history, Bro preferences and up to eight recent main-session user/assistant text turns (40,000 characters). Captured context excludes tool calls/results, hidden reasoning and images. Backend tools can inspect additional workspace content.
|
|
58
|
+
- Bro stores completed interview turns, depth, access choice and drafts in private Pi session entries. The current Pi session restores them after reload or resume; a new session starts fresh, and forks diverge after inheriting earlier choices. Backend/provider retention is separate; see [backend retention](../reference/data-and-permissions.md#backends-access-and-retention).
|
|
59
|
+
- Closing discards partial output, preserves completed replies, and restores cancelled input unless a newer draft exists. Retry preserves the previous reply until replacement succeeds. Cancellation cannot undo backend changes; descendant cleanup on Windows and abrupt host shutdown are not guaranteed.
|
|
60
|
+
|
|
61
|
+
## Comparison
|
|
62
|
+
|
|
63
|
+
BTW is for side questions. Elevate improves an assignment. Grill Me tests a decision through dialogue. Its advantage over a standalone questioning skill is modal isolation and explicit return to Pi, not a claim of smarter questioning.
|
|
64
|
+
|
|
65
|
+
See the [evaluation record](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/plans/grill-me-evaluation.md). Historical live results predate the command redesign and multiple-choice guidance; they do not validate the revised experience.
|