pi-bro 0.37.0 → 0.38.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +18 -22
  3. package/docs/README.md +7 -7
  4. package/docs/elevate.md +10 -93
  5. package/docs/examples.md +1 -1
  6. package/docs/feature-map.md +33 -0
  7. package/docs/features/architecture.md +1 -1
  8. package/docs/features/elevate.md +122 -0
  9. package/docs/features/explain.md +16 -20
  10. package/docs/features/grill-me.md +65 -0
  11. package/docs/features/guided-review.md +150 -0
  12. package/docs/features/overthink.md +66 -0
  13. package/docs/features/remember-me.md +92 -0
  14. package/docs/features/show.md +9 -15
  15. package/docs/getting-started.md +5 -5
  16. package/docs/grill-me.md +5 -51
  17. package/docs/guided-review.md +14 -113
  18. package/docs/overthink.md +7 -46
  19. package/docs/piG-agent-shell-qualification.md +3 -3
  20. package/docs/pig-compatibility.md +1 -1
  21. package/docs/reference/commands.md +18 -33
  22. package/docs/reference/data-and-permissions.md +9 -9
  23. package/docs/reference/settings.md +8 -8
  24. package/docs/reference/troubleshooting.md +3 -3
  25. package/docs/remember-me.md +6 -75
  26. package/docs/user-guide.md +4 -4
  27. package/package.json +6 -4
  28. package/src/advisor.ts +1 -1
  29. package/src/architecture.ts +1 -1
  30. package/src/backend.ts +1 -0
  31. package/src/bro.ts +47 -189
  32. package/src/btw.ts +10 -199
  33. package/src/composer-modal.ts +197 -0
  34. package/src/explain-modal.ts +28 -79
  35. package/src/grill.ts +3 -2
  36. package/src/overthink-state.ts +3 -3
  37. package/src/overthink.ts +2 -2
  38. package/src/remember.ts +3 -2
  39. package/src/session-state.ts +46 -28
  40. package/src/settings.ts +11 -3
  41. package/src/simplify-engine.ts +50 -24
  42. package/src/simplify-ui.ts +165 -126
  43. package/src/sources.ts +3 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to pi-bro are documented here.
4
4
 
5
+ ## [0.38.0] - 2026-11-24
6
+
7
+ ### Highlights
8
+
9
+ - Use one Simplify window to read a plain-language explanation or draw recent conversation turns with `/show`. `/bro` reopens the latest result without calling a model.
10
+ - Retry or copy either result from the same window. Browser diagrams can be rebuilt from the saved result without another model call.
11
+
12
+ ### Breaking
13
+
14
+ - Use `/bro simplify show|text|file|url …` in place of `/bro show|text|file|url …`, and `/bro simplify latest` in place of `/bro text` without arguments. Those direct commands also work headless.
15
+ - Use `/bro` or `/bro simplify` instead of `/bro open`. Pick an explicit source command instead of passing a path, URL, or text directly to `/bro`. Retired shortcuts give migration instructions and do not call a model.
16
+
17
+ ## [0.37.1] - 2026-11-24
18
+
19
+ ### Improved
20
+
21
+ - 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.
22
+ - Overthink makes automatic checks only after explicit opt-in. Previously saved on/off choices, questions, notes and manual checks are unchanged.
23
+ - 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.
24
+ - 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.
25
+
5
26
  ## [0.37.0] - 2026-11-18
6
27
 
7
28
  ### Highlights
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 an AI coding CLI you already have and are signed in to, so your
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,23 +36,22 @@ GitHub, use `pi install git:github.com/tranhoangnguyen03/pi-bro`.
36
36
 
37
37
  ## Try it
38
38
 
39
- For a first success, type this in Pi after setting up a backend:
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
- /bro text A request limit means a service allows only a certain number of calls in a given time.
42
+ /bro simplify text A request limit means a service allows only a certain number of calls in a given time.
43
43
  ```
44
44
 
45
45
  **Expected:** Bro opens a separate window and explains that sentence in plain words. Close with **Esc**. Nothing is sent to your main agent's conversation. The exact words depend on your selected model.
46
46
 
47
47
  | After that | What happens |
48
48
  | --- | --- |
49
- | `/bro` | Shows the saved explanation, or help if none exists. Run `/simplify` inside to explain the latest reply again. |
49
+ | `/bro` | Opens Simplify and shows the saved result or help. Run `/simplify` inside to explain the latest reply or `/show` to draw recent conversation turns. |
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
- | `/bro show` | Draws the current session's recent conversation, if any |
53
52
  | `/bro architecture` | Creates or refreshes `docs/architecture/` for this project |
54
53
  | `/bro grill-me Should agents talk freely to each other?` | Questions your assumptions privately, one at a time |
55
- | `/bro overthink` | Views private automatic second-look notes; Ctrl+R forces a new check |
54
+ | `/bro overthink` | Get a private second look with Ctrl+R; automatic checks are opt-in |
56
55
  | `/bro elevate Improve how we search company documents` | Find expert gaps before giving Pi a task |
57
56
 
58
57
  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).
@@ -62,23 +61,22 @@ File and webpage examples need your own real path or URL; see [how to explain th
62
61
  | Command | What you get |
63
62
  | --- | --- |
64
63
  | `/bro copy` | **[Copy Markdown](docs/features/copy.md).** Edit, preview and copy the last completed reply as Markdown, without a model call or saved file. |
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
- | `/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. |
64
+ | `/bro`, `/bro simplify` | **Simplify.** Understand one source at a time: [plain-language explanations](docs/features/explain.md) of replies, text, files, or webpages, or [diagrams of recent turns](docs/features/show.md#bro-show) with `/show` inside the same window. |
67
65
  | `/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).** Quietly checks meaningful work with the active Pi model; four factory questions, a short summary and one response per editable question. Automatic checks can be switched off in config. No separate backend. |
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. |
66
+ | `/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. |
67
+ | `/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. |
68
+ | `/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. |
69
+ | `/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
70
  | `/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. |
71
+ | `/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
72
  | `/bro guided-review delete [PR]` | Choose a saved review and explicitly delete its record, questions and captured source after confirmation. No automatic cleanup. |
75
73
  | `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
74
  | `/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
75
 
78
76
  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.
77
+ **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
78
 
81
- Guided Review has its own [guide](docs/guided-review.md).
79
+ Guided Review has its own [guide](docs/features/guided-review.md).
82
80
 
83
81
  ## Requirements
84
82
 
@@ -89,7 +87,7 @@ Guided Review has its own [guide](docs/guided-review.md).
89
87
 
90
88
  | Backend | CLI | Notes |
91
89
  | --- | --- | --- |
92
- | [Google Antigravity](https://antigravity.google/docs/cli-install) | `agy` | Default for new settings. Needs `>=1.1.15`. Guided Review uses `--sandbox`, which restricts shell commands but still allows writes inside the project. |
90
+ | [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
91
  | [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | `claude` | Works for every feature; strict file-only inspection for Guided Review. |
94
92
  | [Grok Build](https://docs.x.ai/build/overview) | `grok` | Guided Review uses its read-only sandbox (shell-enabled). |
95
93
  | [Codex CLI](https://github.com/openai/codex) | `codex` | Guided Review uses its read-only sandbox (shell-enabled). |
@@ -121,7 +119,7 @@ which may keep it under their own policies. Paths below are under
121
119
 
122
120
  Session-scoped Bro entries live **inside Pi's session file**. They stay out of the model's conversation, but are not secret from someone who can read, back up, export, or share that file. Check the session content before sharing it; this feature does not encrypt or redact exports.
123
121
 
124
- `/bro url` also connects straight to the website, which sees your IP address.
122
+ `/bro simplify url` also connects straight to the website, which sees your IP address.
125
123
  Bro runs each CLI as you, with your environment. It never reads or copies an
126
124
  external CLI's provider credentials, but a CLI signs in its own way, which can
127
125
  include API keys set in your environment. The built-in **Pi** backend is the
@@ -150,11 +148,11 @@ and [Privacy and safety](docs/reference/data-and-permissions.md#privacy-and-safe
150
148
  - Documents: `.md`, `.markdown`, `.txt`, `.pdf`, `.docx` only, no OCR, up to 10 MiB.
151
149
  → Run OCR elsewhere first.
152
150
  - Webpages: one public HTML page; no logins, paywalls, page JavaScript or
153
- proxy settings. → Save the page as PDF or text and use `/bro file`.
151
+ proxy settings. → Save the page as PDF or text and use `/bro simplify file`.
154
152
  - No fallback: if the chosen backend, model or effort fails, Bro shows that
155
153
  backend's error instead of switching. → Run `/bro doctor`.
156
154
  - Elevate runs fresh restricted calls through the BTW model setting. Restricted does not always mean sandboxed; see [access and retention](docs/reference/data-and-permissions.md). The shortcut may not work in all terminals: use `/bro elevate` instead.
157
- - BTW, Grill Me and the latest explanation/Show result use private session entries; they survive normal Pi reload/resume. A new session starts fresh and later fork changes stay separate. Abrupt crashes during active calls are not guaranteed.
155
+ - BTW, Grill Me and Simplify's latest result use private session entries; they survive normal Pi reload/resume. A new session starts fresh and later fork changes stay separate. Abrupt crashes during active calls are not guaranteed.
158
156
  - Guided Review runs in local interactive Pi only and does not post to
159
157
  GitHub.
160
158
 
@@ -176,9 +174,7 @@ npm test # offline: uses fake backend CLIs, never calls a model
176
174
  pi --tui-mode fullscreen -e ./src/bro.ts
177
175
  ```
178
176
 
179
- See [CONTRIBUTING.md](CONTRIBUTING.md), the [code map](docs/DEVELOPMENT.md)
180
- and the [docs index](docs/README.md). Report security problems privately as
181
- described in [SECURITY.md](SECURITY.md).
177
+ See the [contribution and security guides](docs/README.md#for-contributors).
182
178
 
183
179
  ## License
184
180
 
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) — automatic same-model second look with editable session questions.
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](../CONTRIBUTING.md), [code map](DEVELOPMENT.md), [manual testing](TESTING.md), and [security reports](../SECURITY.md).
36
- - [Presentation standard](PUBLIC-PRESENTATION.md), [test evidence](test-consolidation.md), [prompt benchmarks](../benchmark/README.md), and [historical plans](plans/).
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
- **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.
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
- **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.
7
+ [Start here](features/elevate.md#start-here-one-minute)
28
8
 
29
9
  ## Conversation context and retry
30
10
 
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.
11
+ [Conversation context and retry](features/elevate.md#conversation-context-and-retry)
38
12
 
39
13
  ## The two questions Elevate asks
40
14
 
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.
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
- **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.
19
+ [Example: before and after](features/elevate.md#example-before-and-after)
69
20
 
70
21
  ## Controls in the modal
71
22
 
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.
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
- 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.
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
- **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.
31
+ [What Elevate can and cannot do](features/elevate.md#what-elevate-can-and-cannot-do)
108
32
 
109
33
  ## Troubleshooting
110
34
 
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. |
35
+ [Troubleshooting](features/elevate.md#troubleshooting)
119
36
 
120
37
  ## For maintainers
121
38
 
122
- See [DEVELOPMENT.md](DEVELOPMENT.md) for code boundaries and [TESTING.md](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.
39
+ [For maintainers](features/elevate.md#for-maintainers)
package/docs/examples.md CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  [![A complex PDF before Bro](https://raw.githubusercontent.com/tranhoangnguyen03/pi-bro/main/docs/images/bro-file-before.png)](https://raw.githubusercontent.com/tranhoangnguyen03/pi-bro/main/docs/images/bro-file-before.png)
22
22
 
23
- **After `/bro file <path>`**
23
+ **After `/bro simplify file <path>`**
24
24
 
25
25
  [![The PDF explained in the Bro modal](https://raw.githubusercontent.com/tranhoangnguyen03/pi-bro/main/docs/images/bro-file-after.png)](https://raw.githubusercontent.com/tranhoangnguyen03/pi-bro/main/docs/images/bro-file-after.png)
26
26
 
@@ -0,0 +1,33 @@
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, file, or discussion | Simplify (`/bro`) | A plain-language explanation or, with `/show` inside the same window, a diagram of the discussion |
8
+ | Understand a repository | `/bro architecture` | Architecture docs and offline visualization |
9
+ | **Explore what could exist:** ask a side question | `/bro btw` | A flexible private conversation |
10
+ | Challenge a proposal or form a decision | `/bro grill-me` | Reasoned discussion and optional decision brief |
11
+ | **Get advice on existing work:** review a code change | `/bro guided-review` | Saved findings and code evidence |
12
+ | Reconsider substantial work automatically | `/bro overthink` | Private notes when material concerns arise |
13
+ | Give the agent independent advice | `bro_advisor` (agent tool) | A second opinion returned to the agent |
14
+ | **Guide the agent:** improve the next assignment | `/bro elevate` | Revised request to copy, edit, and submit |
15
+ | Remember lasting personal facts/preferences | `/bro remember-me` | Approved memory available through the read-only `about_user` agent tool |
16
+ | Set the advisor's priorities | `/bro advisor-steer` | Saved session steering |
17
+ | Set shared answer style | `/bro preferences` | Persistent style preferences |
18
+
19
+ `/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.
20
+
21
+ ## Shared interactions, distinct workflows
22
+
23
+ - **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.
24
+ - **Resume** restores feature-owned state where needed, not a shared chat engine. The latest Simplify result, 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.
25
+ - **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.
26
+ - **Retry / Regenerate** repeats a step without silently losing prior accepted work. Guided Review's regenerate (same captured source) is not update revision (new source).
27
+ - **Help / Close** share meanings, but a short viewer needs fewer controls than a review or interview.
28
+
29
+ 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.
30
+
31
+ ## Trust and acceptance
32
+
33
+ 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](../TESTING.md#architecture-docs).
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.
@@ -2,7 +2,7 @@
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.
5
+ **Simplify** turns one source into something easier to understand, in plain words or as a [diagram of recent conversation](show.md#bro-show). Opening `/bro` or `/bro simplify` shows your saved result, or command help if none exists. It does not call the model. Run `/simplify` inside the modal (or `/bro simplify latest` directly) to explain the latest completed assistant reply.
6
6
 
7
7
  ## Explanation modes
8
8
 
@@ -25,20 +25,18 @@ next mode without saving it:
25
25
  - **Mouse wheel / trackpad**: Scroll in regular or fullscreen mode
26
26
  - **↑ / ↓**: Scroll in any mode
27
27
  - **PgUp / PgDn**: Scroll a page at a time (also in btw)
28
- - **C**: Copy the complete explanation
29
- - **R**: Simplify the captured source again in the mode shown, or run the
30
- current Doctor check again
31
- - **M**: Re-simplify the captured source in the next mode (brief → balanced →
32
- faithful → brief). It applies to this explanation only and does not change
33
- the mode saved by `/bro mode`; pressing it again while Bro is working skips
34
- ahead
35
- - **O**: Open the diagram (an HTML layout or a rendered sequence diagram) when a show reply contains one
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.
28
+ - **C** or `/copy`: Copy the complete result
29
+ - **R**: Retry the same captured source
30
+ - **M**: Re-simplify the captured source in the next mode (brief → balanced → faithful → brief), without changing the saved default
31
+ - **O**: Open the browser diagram when a `/show` result has one
32
+ - **Esc**: Return from help to the saved result, or close (and cancel any active request)
33
+
34
+ Use the single-letter shortcuts with the composer empty.
37
35
 
38
36
  The modal header shows the model and reasoning effort the explanation or
39
37
  drawing used (`default` when the model's own effort applies), followed by the
40
38
  explanation mode, and `prefs` when your [preferences](../reference/settings.md#preferences) shaped the
41
- result; `/bro open` keeps the original labels, mode, and tag.
39
+ result; reopening Simplify keeps the original labels, mode, and tag.
42
40
 
43
41
  Bro temporarily captures mouse input while its modal is open. Native mouse
44
42
  selection may be unavailable or visually extend outside the modal depending on
@@ -49,25 +47,23 @@ your terminal mode; press **C** to copy the complete explanation reliably.
49
47
  Paste text directly after the command:
50
48
 
51
49
  ```text
52
- /bro text OAuth refresh tokens are rotated after every successful use.
50
+ /bro simplify text OAuth refresh tokens are rotated after every successful use.
53
51
  ```
54
52
 
55
- Bro explains the pasted text instead of the latest assistant reply. With no text
56
- after `/bro text`, it falls back to the latest completed reply. Press **R**
57
- to simplify the same captured text again.
53
+ Inside Simplify, use `/text <text>` for the same action. Press **R** to simplify the same captured text again.
58
54
 
59
55
  ## Explain a document
60
56
 
61
57
  Use a relative or absolute path, including files outside Pi's current workspace. Symlinks are followed; normal OS file permissions apply:
62
58
 
63
59
  ```text
64
- /bro file "docs/incident review.pdf"
60
+ /bro simplify file "docs/incident review.pdf"
65
61
  ```
66
62
 
67
63
  Paths may contain spaces; matching single or double quotes are also accepted.
68
64
  Bro extracts text locally, then sends that text through the same explanation
69
65
  flow used by `/bro`. Pressing **R** retries the extracted snapshot; running a
70
- new `/bro file <path>` command reads the file again.
66
+ new `/file <path>` command inside Simplify (or `/bro simplify file <path>` directly) reads it again.
71
67
 
72
68
  Files are limited to 10 MiB and 100,000 extracted characters. Scanned PDFs are
73
69
  not supported because Bro does not perform OCR.
@@ -77,13 +73,13 @@ not supported because Bro does not perform OCR.
77
73
  Pass one public HTTP or HTTPS page:
78
74
 
79
75
  ```text
80
- /bro url https://example.com/complicated-article
76
+ /bro simplify url https://example.com/complicated-article
81
77
  ```
82
78
 
83
79
  Bro fetches the page, extracts its main readable text locally, and sends only
84
80
  that text through the existing explanation flow. The completed modal shows the
85
81
  final website and page title. Pressing **R** retries the captured page without
86
- fetching again; running a new `/bro url <url>` command fetches a fresh copy.
82
+ fetching again; running `/url <url>` inside Simplify fetches a fresh copy.
87
83
 
88
84
  The first version is intentionally limited to one public, text-based page. It
89
85
  does not use browser cookies, sign in, run page JavaScript, bypass paywalls or
@@ -91,4 +87,4 @@ bot protection, load complete discussion threads, follow pagination, or
91
87
  understand images and video. Pages that depend on those features may fail.
92
88
 
93
89
  If Bro cannot read a page, copy its content into a `.txt` or `.md` file, or save
94
- it as a PDF, then use `/bro file <path>`.
90
+ it as a PDF, then use `/bro simplify file <path>`.