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
@@ -1,150 +1,51 @@
1
1
  # Guided Review
2
2
 
3
- **Understand and evaluate a PR, without turning your main Pi conversation into a review transcript.**
4
-
5
- The normal journey is: **open a PR → read and investigate → leave when satisfied.** Bro automatically prepares both an explanation and a quality assessment. Asking questions is optional. You do not need to copy findings, mark progress or submit feedback to finish.
3
+ This guide moved to [Guided Review](features/guided-review.md). The links below take you to the corresponding sections.
6
4
 
7
5
  ## Open a review
8
6
 
9
- Requirements: local Pi interactive mode, Git, authenticated GitHub CLI (`gh`), and a configured review backend (Claude, Muse, or Pi is recommended for untrusted PRs). Run `gh auth status` to check GitHub authentication; `/bro doctor` checks Bro's selected backend setup and shows an advisory when the review backend uses a shell-capable sandbox, without proving GitHub access or model connectivity.
10
-
11
- ```text
12
- /bro guided-review https://github.com/OWNER/REPO/pull/123
13
- ```
14
-
15
- A URL works even when your current workspace belongs to a different repository. A PR number alone uses the current GitHub repository:
16
-
17
- ```text
18
- /bro guided-review 123
19
- ```
20
-
21
- A **new** review captures the PR's base/head commits outside your working tree and automatically makes one model request. Subsequent questions each make another request. Calls use your selected backend CLI's account and billing—not Pi's model account. Bro does not automatically retry a failed generation or switch backends.
22
-
23
- Opening the **same PR again** restores its saved review without another model call. Bare `/bro guided-review` lists saved reviews; `/bro guided-review resume` remains an alias for that list.
24
-
25
- **Reopening keeps the captured code.** It does not fetch a new comparison when the author pushes commits. Opening by URL/number checks current metadata and reports newer source, but continues the saved capture. The saved-review picker does not check freshness. Reviewing newer revisions is not implemented.
7
+ [Open a review](features/guided-review.md#open-a-review)
26
8
 
27
9
  ## Read and investigate
28
10
 
29
- Contents is on the left; reading and contextual actions are on the right. Narrow terminals show one pane at a time. The supported minimum is 36×18; smaller terminals show resize guidance with a working exit.
30
-
31
- | Destination | What you get |
32
- | --- | --- |
33
- | Overview | Purpose, main concerns and overall assessment |
34
- | Topics | Short explanations with captured code and related findings |
35
- | Findings | Ranked concerns, author questions, suggested fixes/checks and evidence |
36
- | Across the change | Findings that do not belong to one topic, when present |
37
- | Coverage and limitations | Reported inspection, uncited files, omissions and unverified execution |
38
- | Changed files | The full changed-file list and one actual diff at a time |
39
- | Your questions | Private discussions and unsent drafts, including earlier context |
40
-
41
- A finding is a proposal, not a proven defect or an applied patch. **No findings is not approval.** Source blocks and diffs come from captured Git objects, not model quotations. Valid citations establish locations; they do not certify the reasoning or complete inspection. Coverage paths and access explanations are model-reported. Suggested tests have not been independently executed by Bro.
42
-
43
- The preparation prompt investigates the whole change and relevant unchanged callers/tests before organizing topics. It supplies the first 100,000 diff characters, with an omission marker for larger changes; the backend can inspect the captured checkout beyond that seed. Follow-up questions include at most the latest 12 relevant turns and disclose older omitted discussion. A saved guide without an assessment is explicitly labelled unassessed. Prototype formats are not supported; unreadable files are left unchanged.
44
-
45
- The generation header shows observable application stages and elapsed time—not a percentage or invented model checklist.
11
+ [Read and investigate](features/guided-review.md#read-and-investigate)
46
12
 
47
13
  ### Controls
48
14
 
49
- | Control | Behavior |
50
- | --- | --- |
51
- | ↑ / ↓ | Select entries or scroll the focused reading area |
52
- | Page Up / Page Down | Page the focused pane |
53
- | Enter | Read a destination, open a list item, or focus contextual actions |
54
- | Enter on a highlighted action | Activate it |
55
- | Tab / Shift+Tab | Move focus in screen order |
56
- | Esc | Return to where you came from; from Contents, close |
57
- | Close | Save automatically and leave |
58
- | Stop and close | Stop active work, await cancellation, save partial work, then leave |
59
-
60
- The wheel scrolls the pane under the pointer without moving its list selection or keyboard focus, in regular and fullscreen mode. Reading an active answer pauses following; deliberately returning to the bottom resumes it. In regular terminal mode, Bro captures the mouse while the review is open (as its other windows do), so terminal scrollback and mouse text selection return when you close it; use the copy actions meanwhile.
15
+ [Controls](features/guided-review.md#controls)
61
16
 
62
17
  ## Ask privately, if needed
63
18
 
64
- Choose Ask from a topic, finding, file or Overview. Type in the composer below the discussion. **Enter in the composer sends the question**; leaving without sending retains the draft. Stop response cancels an answer. Stop preparation/regeneration cancels the corresponding guide request.
65
-
66
- Back restores the originating screen. Failed/stopped questions offer Edit and resend; it restores the question only if the current draft is empty. Resending is explicit and makes a new call. Nothing enters the main Pi conversation or is posted to GitHub.
67
-
68
- Capture fetches only the head and GitHub-reported merge-base trees (depth 1). Source/diff/evidence remain available offline; ancestry, log and blame history are not captured. Fetch has a ten-minute bound; metadata and other commands have two-minute bounds. Very large trees can still exceed time/output/disk limits; retries reuse the managed store rather than intentionally deleting it.
19
+ [Ask privately, if needed](features/guided-review.md#ask-privately-if-needed)
69
20
 
70
21
  ## Optional conveniences
71
22
 
23
+ [Optional conveniences](features/guided-review.md#optional-conveniences)
24
+
72
25
  ### Your work is remembered
73
26
 
74
- There is no separate Save step. Bro saves the guide, questions, drafts and reading position automatically. Close waits for a successful save. If saving fails, the window stays open with a readable error and Retry saving; fix the reported filesystem problem and retry. Do not force-quit if unsaved work matters.
27
+ [Your work is remembered](features/guided-review.md#your-work-is-remembered)
75
28
 
76
29
  ### Copy finding
77
30
 
78
- Copy finding copies a finding's text, evidence references and suggested fix/check to the **system clipboard**. Nothing is submitted, inserted into Pi or applied to source. Your OS or clipboard manager may retain the copied text. Remote clipboard forwarding depends on your host and terminal; a failure is shown in the review.
31
+ [Copy finding](features/guided-review.md#copy-finding)
79
32
 
80
33
  ### Regenerate guide
81
34
 
82
- Use Overview → Regenerate guide only when you want a fresh explanation/assessment. Confirmation identifies the captured revision and the model call. **It reuses the same captured source; it is not an update fetch.** Successful output replaces one current guide. Failure/cancellation keeps the current guide. Questions and nonempty drafts retain their original context under Your questions; there is no guide-version picker. A replacement that fails to save remains in memory with retry controls.
35
+ [Regenerate guide](features/guided-review.md#regenerate-guide)
83
36
 
84
37
  ### Delete a saved review
85
38
 
86
- Use **Overview → Delete review** inside a saved review, or run
87
- `/bro guided-review delete` to choose from your saved reviews. For a specific
88
- record, use `/bro guided-review delete <PR number or URL>`. Deletion reads
89
- only local saved records: no GitHub access or model call is required. A bare
90
- PR number must match exactly one saved review across all repositories, regardless
91
- of your current working directory. In contrast, opening a PR by number uses
92
- the current repository. Use the full PR URL if multiple saved reviews share
93
- that number. If none are saved, Bro says there is nothing to delete.
94
- Pressing Esc cancels silently.
95
- Bro shows the target and asks for confirmation before removing its JSON record,
96
- private questions/drafts and captured Git source. Closing the picker or declining
97
- the confirmation changes nothing. Close an open review first; an active writer
98
- blocks deletion. This affects only the selected review, not your main working tree.
99
- Deletion cannot be undone. There is no automatic cleanup.
39
+ [Delete a saved review](features/guided-review.md#delete-a-saved-review)
100
40
 
101
41
  ## Access, privacy and storage
102
42
 
103
- Review never runs with full-access or bypass flags. **Claude, Muse, and Pi provide strict file-only inspection** and are recommended for untrusted PRs: Claude runs with `--restricted`, Read/Grep/Glob only, `dontAsk`, safe mode and no MCP; Muse disables write, shell and web tools, foreign personal context and native session logs, without trusting repository rules; Pi runs in-process with `read/grep/find/ls` only, no shell, and an isolated session. No model-run project tests, commands, Git or network tools are available on Claude, Muse, or Pi.
104
-
105
- **Codex, Grok and Agy run with shell available inside their own sandbox**, and each sandbox is different: Codex and Grok apply a read-only sandbox (`codex exec --sandbox read-only --ephemeral`, `grok --sandbox read-only --permission-mode dontAsk`), while Agy's `--sandbox` only restricts terminal commands and still lets them write inside the project. All three inspect the captured checkout with a 10-minute review deadline, and **none is shell-free**. When one of these backends is selected for review, Bro shows an advisory during acquisition, in the live review workspace, and in `/bro doctor` (as a non-fatal informational note). Set the **review** override to Claude, Muse, or Pi in `/bro config` for untrusted PRs; saved reviews remain readable with any backend. Unsupported/older CLI flags fail visibly; there is no bypass fallback.
106
-
107
- Captured evidence is read from pinned Git blobs, so a shell-capable backend that writes inside the checkout cannot alter the code shown as evidence — but it can still change what it later reads, so treat very large changes with suspicion when using Agy.
108
-
109
- These controls reduce malicious-code execution/write risk, but repository content can still manipulate the model's conclusions. Captured content, questions and answers go to the provider; do not use review as a secrets boundary or approval certificate. CLI enforcement and managed host policies remain the backend's responsibility.
110
-
111
- PR identity/description, diff, relevant saved discussion and your Bro preferences are sent to the selected backend. It can inspect the captured source. Main-session conversation is not automatically attached. Each request reconstructs context; review does not resume BTW/native sessions. Claude, Muse and Codex disable native session persistence where their CLIs support it; backend/provider retention policies still apply.
112
-
113
- Records, private text and captured source remain under:
114
-
115
- ```text
116
- ${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}/bro-reviews/
117
- ```
118
-
119
- The implementation uses the host's `getAgentDir()`. Records are
120
- `<review-id>.json`, captured source lives under `source/<review-id>/`,
121
- including preserved incomplete recovery directories. Failed/corrupt records are
122
- reported without overwriting them. There is no cross-machine sync or automatic
123
- cleanup. Use the explicit deletion picker rather than editing these files by hand.
124
- Cross-process writers are not locked, so close the same review in every Pi process
125
- before deletion.
126
-
127
- One open writer per review is supported within a Pi process. Concurrent editing of the same review from separate processes is unsupported.
43
+ [Access, privacy and storage](features/guided-review.md#access-privacy-and-storage)
128
44
 
129
45
  ## If something goes wrong
130
46
 
131
- | Problem | What to do |
132
- | --- | --- |
133
- | GitHub unavailable when reopening | Use bare `/bro guided-review` to choose a saved review; resume and deletion from local records do not fetch |
134
- | Sandboxed shell review backend (Codex, Grok, Agy) | Advisory shown; choose Claude, Muse, or Pi in `/bro config` for strict file-only inspection on untrusted PRs |
135
- | Git/gh authentication or fetch error | Read the acquisition error; check Git/`gh auth status`; retry explicitly |
136
- | Invalid/failed preparation | Changed files remain available; use Prepare guide to retry when ready for another call |
137
- | Failed regeneration | Current guide is kept; retry only if you want another call |
138
- | Unavailable evidence | Treat it as unavailable; re-enter its topic/finding to retry transient reads |
139
- | Binary/directory evidence | Not presented as source text; inspect the diff/inventory instead |
140
- | Save error | Keep the window open; correct the reported cause and Retry saving or Close |
141
- | Clipboard error | Read the notice; clipboard support depends on the host/platform |
142
- | Author pushed new commits | Saved review remains on the captured revision; newer-revision review is not available |
47
+ [If something goes wrong](features/guided-review.md#if-something-goes-wrong)
143
48
 
144
49
  ## Not available yet
145
50
 
146
- Notes, explicit examination tracking, branch/PR discovery, newer-revision review
147
- and feedback delivery into Pi/GitHub are not implemented. These were part of
148
- the original [#104 scope](https://github.com/tranhoangnguyen03/pi-bro/issues/104);
149
- no implementation sequence is agreed. They are not required steps in the
150
- reading experience above.
51
+ [Not available yet](features/guided-review.md#not-available-yet)
package/docs/overthink.md CHANGED
@@ -1,66 +1,27 @@
1
1
  # Overthink — private second look
2
2
 
3
- Overthink gives Pi's work a small, skeptical second pass. It checks the direction, the evidence, the risks and the next move, without making a new agent or interrupting the original conversation. It is inspired by [pi-heads-up](https://github.com/Pringled/pi-extensions/tree/main/packages/pi-heads-up).
3
+ This guide moved to [Overthink](features/overthink.md). The links below take you to the corresponding sections.
4
4
 
5
5
  ## Normal use
6
6
 
7
- With **automatic checks on** (the factory default), after a **fully settled substantial task** (currently at least three tool results across the run), Overthink sends one extra private assessment to the **same active Pi model, at the same thinking level**. A short note appears above the input only if there is something material to flag. If the reply already covered the issue, or there is nothing important to add, Overthink stays quiet. A question-only turn is not enough to trigger a check.
8
-
9
- Run `/bro overthink` to **view** the latest assessment. Opening the modal makes **no model request**. The notes never enter Pi's user/assistant conversation and do not direct the agent to perform work.
7
+ [Normal use](features/overthink.md#normal-use)
10
8
 
11
9
  ## Four factory questions
12
10
 
13
- A new session starts with four questions:
14
-
15
- 1. **Direction:** Are we solving the right problem and moving toward the intended outcome?
16
- 2. **Evidence:** What important assumptions or conclusions might be wrong or insufficiently verified?
17
- 3. **Risks:** What material risks, unintended changes, or needless complexity have we introduced?
18
- 4. **Next move:** What correction, decision, or next step would most improve the outcome?
19
-
20
- Bro still permits up to 32 custom questions and does **one same-model call for the entire list**. When nothing material is missed, the model should answer `NONE` and Overthink stays quiet. Otherwise it must return a brief 2–3-sentence summary followed by **one concise answer for each saved question**, in order, written in plain, everyday words for a tired reader. Saved [preferences](reference/settings.md#preferences) (`bro-preferences.md`) can adjust tone or answer language on top, without overriding the JSON format, sentence limits, plain-language brevity or review rules. A question without a material concern can say so; it need not invent criticism.
21
-
22
- **Existing saved global and per-session question lists do not change automatically.** To adopt the four new factory questions, reset the global defaults (Ctrl+D twice, Ctrl+S), then reset the session list (Ctrl+D twice, Ctrl+S). User-edited lists remain intact, even when they contain the former seven questions.
11
+ [Four factory questions](features/overthink.md#four-factory-questions)
23
12
 
24
13
  ## Viewer
25
14
 
26
- The modal shows a compact check date/model/freshness line, followed by **Summary** and numbered question–answer sections. The original question wording is visible. For the four factory questions, the sections are labeled Direction, Evidence, Risks and Next move. Longer results scroll; short results no longer expand into a mostly empty frame. Earlier plain-text notes stay viewable without being misrepresented as answers to the new questions.
27
-
28
- In the modal:
29
-
30
- - **Ctrl+R** — force a fresh assessment (also works for smaller tasks). A check uses the **current** session context.
31
- - **Ctrl+E** — edit the questions for **this Pi session**.
32
- - **?** — show or hide help.
33
- - **U** — show or hide full token/cache/estimated-cost usage details (hidden by default).
34
- - **Ctrl+C** — copy the latest findings.
35
- - **Esc** — close or leave Help.
36
- - **↑/↓** — scroll.
37
-
38
- If the last assessment found nothing, the modal says so. The note records the model-relevant session entry it assessed. When a later task (even a trivial turn), compaction, context edit, or branch move changes that position, the viewer explicitly marks the old note **OUTDATED**. Older notes without position metadata are marked **source position not recorded**. Editing questions also marks an existing note as using earlier questions.
15
+ [Viewer](features/overthink.md#viewer)
39
16
 
40
17
  ## Question editor
41
18
 
42
- The same ordered, editable list is used in both places:
43
-
44
- - **Global defaults:** `/bro config → Features → Overthink → Default questions`.
45
- - **Automatic checks:** `/bro config → Features → Overthink → Automatic checks` toggles the global on/off switch. It starts **On**. Turning it off does not delete questions or notes; the viewer and manual **Ctrl+R** still work.
46
- - **Session questions:** `/bro overthink`, then **Ctrl+E**.
47
-
48
- Use **↑/↓** to choose an entry; **Enter** to edit; **Ctrl+N** to add; **Ctrl+X** to delete; **Ctrl+↑/↓** to reorder; **Ctrl+S** to save; **Esc** to cancel. Saving an empty list disables checks. Unsaved changes are protected by a second-Esc warning.
49
-
50
- **Ctrl+D** twice resets the editor draft. In the global editor it restores Bro's factory questions; in the session editor it restores the **current global defaults**. Press Ctrl+S to save that reset. A new session inherits the current global defaults once and can then be edited independently. Existing sessions do not change when the global defaults are updated.
19
+ [Question editor](features/overthink.md#question-editor)
51
20
 
52
21
  ## Model, cache and privacy
53
22
 
54
- Overthink **never** uses the BTW or Bro backend/model setting. It calls Pi's current `modelRegistry.streamSimple` using `buildSessionProjection()` plus a single appended private review instruction. It uses the active physical session model and reasoning level, makes **one call for all questions**, **never executes tools**, and does not add the assessment to the main model context. The request may still contain Pi's tool descriptions as part of the original context; the prompt tells the model to respond in text and not call tools. An unexpected tool-use response is treated as a failed check, not executed. The call sends the session context (including tool evidence exposed by Pi's projection) to that model's provider, under the provider's data policy.
55
-
56
- This largely preserves the request prefix and **can** reuse provider prompt-cache input. The benefit varies by provider, model, elapsed time, tool/context changes, other extensions' context hooks, and prompt-cache policy. It does not replicate every live Pi context modification. In Pi 1.3 and 1.5, `context_with_system` can observe a prepared context just before a provider call, while `before_provider_request` can observe a provider-specific payload; neither provides a portable, complete, settled-session request that can simply be appended and replayed through `streamSimple`. A recorded pre-call context also lacks the final agent response that Overthink needs to review. Bro therefore keeps the explicit projection path until a real provider-side comparison shows a safe improvement. **A cached prefix is not free:** high thinking effort can add substantial reasoning tokens on top of the visible-output limit, and both output and reasoning can cost money. Press **U** in the viewer to show *provider-reported* input, cache-read, cache-write, output and reasoning tokens when available; the details are hidden during normal reading. It labels USD cost separately as **estimated cost** from Pi's model price table, not a provider-billed amount; subscription or OAuth users may pay differently. A reported cache-read value of **0** could mean no hit **or unsupported caching**; it is not proof that caching works. Some providers report no usage fields. Check actual billed cost before treating Overthink as cheap.
57
-
58
- New structured assessments include the exact question snapshot used for that check, so later edits do not relabel earlier answers. Saved notes made by older versions remain plain text. Invalid or incomplete structured model outputs are rejected rather than shown under the wrong question.\n\nOverthink stores editable global defaults in `getAgentDir()/bro-overthink-defaults.json` and session questions plus the **latest** private check in Pi session `custom` entries (`bro-overthink`). Those entries are outside LLM prompts. Session forks inherit their branch's last state; later edits are independent. The viewer resolves only the **latest** note. Pi stores session custom entries by appending, so **each completed check adds another entry to the session file**, even though Bro does not provide a history browser or archive. This is a deliberate reuse of Pi's branch-aware persistence, not a claim that only one physical record exists. Keep this storage growth in mind for long sessions. It does not write to your project files.
23
+ [Model, cache and privacy](features/overthink.md#model-cache-and-privacy)
59
24
 
60
25
  ## Limits and verification
61
26
 
62
- - The second look is self-criticism by the **same** model; it is not an independent external review. Use `bro_advisor` when a genuinely separate view matters.
63
- - An automatic check can fail without an on-screen error; it must not disturb the main run. Force retry in the modal to see the error.
64
- - Automatic work is triggered at Pi's `agent_settled` lifecycle event (supported from Pi 1.3), not `agent_end`. The earlier event collects tool-use evidence; only a normal final settlement, without queued messages, may start the check. A new agent turn, model change, question edit or session navigation cancels or invalidates stale checks. A returned note is not proof that every listed concern is true.
65
- - Running Heads-up and Overthink together can cause **two extra calls** after a substantive turn. Disable one if that cost is not wanted.
66
- - Host events and cache accounting vary. See [manual qualification](TESTING.md) before claiming live TUI, PiG or cache-cost behavior.
27
+ [Limits and verification](features/overthink.md#limits-and-verification)
@@ -40,15 +40,15 @@ These tests load the extension from its source checkout in the **real PiG host**
40
40
 
41
41
  ## Codex provider-route regression and diagnostic parity
42
42
 
43
- [Codex 0.165.0 offline regression](../test/codex-subscription-real.test.mjs) is a separate source CI lane. It creates an isolated temporary `CODEX_HOME` with **synthetic ChatGPT login tokens**, selects a custom `model_provider` with an API-key `env_key`, and starts a local HTTP listener. A deliberate subscription selection must fail in both Bro execution and `/bro doctor`; the local server must see **zero** requests. This verifies a real CLI configuration path, not a live account or subscription billing. The fallback guarantee is limited to the effective provider configuration that Codex exposes through `config/read`; if Codex cannot report its effective route, Bro stops before execution. Doctor uses the same effective environment and checks.
43
+ [Codex 0.165.0 offline regression](https://github.com/tranhoangnguyen03/pi-bro/blob/main/test/qualification/codex-subscription-real.mjs) is a separate source CI lane. It creates an isolated temporary `CODEX_HOME` with **synthetic ChatGPT login tokens**, selects a custom `model_provider` with an API-key `env_key`, and starts a local HTTP listener. A deliberate subscription selection must fail in both Bro execution and `/bro doctor`; the local server must see **zero** requests. This verifies a real CLI configuration path, not a live account or subscription billing. The fallback guarantee is limited to the effective provider configuration that Codex exposes through `config/read`; if Codex cannot report its effective route, Bro stops before execution. Doctor uses the same effective environment and checks.
44
44
 
45
- **Codex 0.165.0 default + network-discovery regression:** The [real CLI test](../test/codex-subscription-real.test.mjs) now covers a normal `CODEX_HOME/config.toml` with **no `model_provider` field** and checks that both the subscription preflight and Doctor accept it. It also checks explicit `openai`, custom `env_key` providers, trusted-project `model_provider` keys that Codex deliberately ignores, and a redirected `openai_base_url`. The test's local HTTP server must receive **zero requests of any method**, including discovery `GET /v1/models`, during these preflight probes. This verifies the selected model endpoint on Codex 0.165.0; it is not a blanket guarantee against unrelated Codex startup network traffic. The static catalog is an **inspection-only input**: it is not a model source or auth override for real inference. A passing preflight still does not verify a live subscription call or billing.
45
+ **Codex 0.165.0 default + network-discovery regression:** The [real CLI test](https://github.com/tranhoangnguyen03/pi-bro/blob/main/test/qualification/codex-subscription-real.mjs) now covers a normal `CODEX_HOME/config.toml` with **no `model_provider` field** and checks that both the subscription preflight and Doctor accept it. It also checks explicit `openai`, custom `env_key` providers, trusted-project `model_provider` keys that Codex deliberately ignores, and a redirected `openai_base_url`. The test's local HTTP server must receive **zero requests of any method**, including discovery `GET /v1/models`, during these preflight probes. This verifies the selected model endpoint on Codex 0.165.0; it is not a blanket guarantee against unrelated Codex startup network traffic. The static catalog is an **inspection-only input**: it is not a model source or auth override for real inference. A passing preflight still does not verify a live subscription call or billing.
46
46
 
47
47
  ## Reproducible acceptance on the *packaged* shell
48
48
 
49
49
  Build the exact PiG-Agent PR #2 source with the Bro PR head pinned. Install it into **two fresh independent homes** `A` and `B` using `shell-reference install --home DIR`. Run `doctor` for each and record actual PiG/Node/Bro/CLI versions, commit SHA, installed archive SHA256, platform and where `getAgentDir()` resolves.
50
50
 
51
- 1. **TUI, not RPC:** Run `shell-reference new --home A` in a real terminal. Use a real authorized backend and try `/bro`, `/bro simplify` (inside it `/text`, `/url`, `/file`, `/copy`, `/clear`, `/help`), `/bro config`, `/bro preferences`, `/bro btw`, and `/bro remember-me`. Exercise text input, selection, scrolling, resize, Esc/cancel and clipboard. Verify a real final backend answer. Check `/bro guided-review`, `/bro advisor`, `/bro elevate`, `/bro grill-me`, `/bro show`, `/bro overthink`, `/bro architecture`, and `/bro doctor`; mark unexercised paths **NOT RUN**, not PASS.
51
+ 1. **TUI, not RPC:** Run `shell-reference new --home A` in a real terminal. Use a real authorized backend and try `/bro`, `/bro simplify` (inside it `/text`, `/url`, `/file`, `/show`, `/copy`, `/clear`, `/help`), `/bro config`, `/bro preferences`, `/bro btw`, and `/bro remember-me`. Exercise text input, selection, scrolling, resize, Esc/cancel and clipboard. Verify a real final backend answer. Check `/bro guided-review`, `/bro advisor`, `/bro elevate`, `/bro grill-me`, `/bro simplify show`, `/bro overthink`, `/bro architecture`, and `/bro doctor`; mark unexercised paths **NOT RUN**, not PASS.
52
52
  2. **Cleanup:** During a long real Claude/Codex/Pi request, use cancel, `/reload` and exit, then inspect child PIDs/grandchildren. A terminal exit must not leave an active backend. Test the same with a fast failure, slow backend and missing executable.
53
53
  3. **Models:** Start with no `A/.pi/models.json`, check built-ins. Add an agent-local custom provider with a harmless locally controlled test endpoint; confirm picker listing, unchanged provider/model ID, request URL, configured credentials and metadata overrides in a real result. Break its key and definition and confirm useful failure with no fallback. Edit model file; check the host's supported reload/new session. Test enabled-model scopes and default settings separately.
54
54
  4. **Accounts:** With an already-authorized host Claude login, run with `CLAUDE_CONFIG_DIR` inherited and then with the shell-selected profile and `PI_BRO_CLAUDE_AUTH_SOURCE=subscription`. Confirm non-secret CLI account/method and actual answer. Repeat Codex with `CODEX_HOME` and `PI_BRO_CODEX_AUTH_SOURCE=subscription`. Test inherited API key collisions, missing/expired login, forced method and parent API env retention. For two distinct authorized accounts, test concurrent A/B routing; otherwise mark the second live account **NOT RUN**.
@@ -25,7 +25,7 @@ Bro follows the host's `getAgentDir()`: normally `~/.pi/agent` on Pi and `~/.pig
25
25
  - **PiG 0.3.0 RPC does not enforce `--exclude-tools`.** Excluded tools may remain active and reach provider requests. This is not a sandbox boundary. Use an explicit `--tools` allowlist instead; do not rely on `/bro doctor` to prove exclusion. Bro does not mask this defect by falsely reporting an active tool as unavailable.
26
26
  - The smoke suite retains Pi's strict exclusion assertion. The PiG lane has an explicit version-specific expected failure; a changed result fails the lane so the exception must be reviewed/removed.
27
27
  - Elevate is not yet qualified end-to-end on PiG. Interactive behavior, keyboard shortcut delivery and clipboard Copy must be checked on PiG before claiming support.
28
- - Guided Review currently targets local Pi interactive mode. Its capture/reading/question/regeneration journey is not qualified on PiG or RPC/Desktop; existing Bro PiG checks do not establish review support. See [current review scope](guided-review.md#not-available-yet).
28
+ - Guided Review currently targets local Pi interactive mode. Its capture/reading/question/regeneration journey is not qualified on PiG or RPC/Desktop; existing Bro PiG checks do not establish review support. See [current review scope](features/guided-review.md#not-available-yet).
29
29
  - Mouse-wheel forwarding is not qualified; use keyboard scrolling.
30
30
  - Remote/SSH OSC 52 clipboard forwarding is not qualified. Local clipboard behavior depends on the host and installed platform utilities.
31
31
  - Windows support is not qualified by these checks.
@@ -4,37 +4,30 @@
4
4
 
5
5
  ## What Bro can explain
6
6
 
7
- | Source | Command | What Bro does |
7
+ **Simplify** helps you understand one source in plain words or as a diagram. `/bro` and `/bro simplify` open the last result (or help) without calling a model.
8
+
9
+ | Source | Inside Simplify | Direct command (also headless) |
8
10
  | --- | --- | --- |
9
- | Latest assistant reply | `/simplify` inside `/bro`, or `/bro text` | Explains the latest completed reply without inserting the result into Pi's conversation. Opening `/bro` itself shows the saved explanation, or help if none exists. |
10
- | Pasted text | `/bro text <text>` | Explains text supplied directly in the command. |
11
- | Local document | `/bro file <path>` | Extracts text from a local Markdown, text, PDF, or DOCX file. |
12
- | Public webpage | `/bro url <url>` | Fetches one public HTML page and extracts its main readable content. |
13
- | Recent session turns | `/bro show` | Draws the last turns' conversation text as shapes instead of prose (tool calls, tool results, reasoning, and images are omitted). |
14
- | Any of the above, auto-detected | `/bro <input>` | Routes a lone URL to the webpage reader, an existing local file with a supported extension to the document reader, and anything else to pasted text. |
11
+ | Latest completed assistant reply | `/simplify` | `/bro simplify latest` |
12
+ | Pasted text | `/text <text>` | `/bro simplify text <text>` |
13
+ | Local Markdown, text, PDF, or DOCX file | `/file <path>` | `/bro simplify file <path>` |
14
+ | Public webpage | `/url <url>` | `/bro simplify url <url>` |
15
+ | Recent user and assistant conversation text only | `/show [n-turns] [query]` | `/bro simplify show [n-turns] [query]` |
16
+
17
+ A new result replaces the previous one. Headless runs keep the result in private session state rather than sending an assistant reply. RPC clients may still receive the custom session entry event. Use an existing saved session to reopen the result after exit. In a fresh session, Pi keeps the result only in memory until the first user or assistant message creates the session file.
15
18
 
16
- Pressing **R** simplifies the captured source again in the mode shown, and
17
- **M** re-simplifies it in the next mode. These commands capture a
18
- new source: `/bro text`, `/bro file`, `/bro url`, and `/bro show`. Giving `/bro` a URL, path, or
19
- text directly captures a new source the same way.
19
+ The old top-level shortcuts `/bro show`, `/bro text`, `/bro file`, `/bro url`, and `/bro open` now point to their replacements without running them. `/bro <input>` no longer guesses the source: choose an explicit command.
20
20
 
21
21
  ## Default command suggestions
22
22
 
23
- Typing `/bro ` displays ten task-level suggestions: `simplify`, `show`, `btw`, `guided-review`, `architecture`, `elevate`, `grill-me`, `remember-me`, `overthink`, and `config`. Every other documented command remains callable and discoverable by typing its prefix (e.g., `/bro doc`).
23
+ Typing `/bro ` suggests `simplify`, `btw`, `guided-review`, `architecture`, `elevate`, `grill-me`, `remember-me`, `overthink`, and `config`. Type `/bro simplify ` for the source options, or a prefix such as `/bro doc` for other commands.
24
24
 
25
25
  ## Commands
26
26
 
27
27
  | Command | Description |
28
28
  | --- | --- |
29
- | `/bro` | Show the saved explanation, or help if none exists. No model call; run `/simplify` inside to explain the latest reply again. |
30
- | `/bro simplify` | Reopen the last Simplify screen within this Pi session, without a new model call. |
29
+ | `/bro`, `/bro simplify` | Reopen the last private explanation or diagram on this session branch. No model call. |
31
30
  | `/bro copy` | Edit and preview the latest completed assistant reply as raw Markdown. Ctrl+D switches views; Ctrl+C copies Markdown; F1 opens Help. No backend call or saved draft. Native Pi `/copy` copies immediately. [Guide](../features/copy.md). |
32
- | `/bro text [text]` | Explain pasted text, or the latest completed assistant reply when text is omitted. |
33
- | `/bro <input>` | Explain it directly: a lone URL runs the webpage reader, an existing local file with a supported extension runs the document reader, and anything else is pasted text. A quoted path with spaces is routed too when the file exists. |
34
- | `/bro file <path>` | Explain a local `.md`, `.markdown`, `.txt`, `.pdf`, or `.docx` file. |
35
- | `/bro url <url>` | Explain one public, text-based webpage. |
36
- | `/bro open` | Legacy compatibility shortcut to the last result. No `/open` command inside Simplify. |
37
- | `/bro show [n-turns] [query]` | Draw recent session turns (default last 1) as shapes instead of prose, from user and assistant conversation text only — tool calls, tool results, reasoning, and images are omitted. An optional query steers what the shapes focus on, with or without a leading turn count. |
38
31
  | `/bro doctor` | Check Bro's settings, preferences, and each selected backend, with the effective backend/model/effort per feature. |
39
32
  | `/bro mode [brief\|balanced\|faithful]` | View or choose the explanation mode. |
40
33
  | `/bro preferences` | View or edit what Bro knows about you and how you like answers; see [Preferences](settings.md#preferences). |
@@ -43,23 +36,15 @@ Typing `/bro ` displays ten task-level suggestions: `simplify`, `show`, `btw`, `
43
36
  | `/bro guided-review <PR number or URL>` | Automatically explain and assess a captured PR in local Pi, with source evidence and optional private questions. Opening the same PR restores its saved review. |
44
37
  | `/bro guided-review` | List saved reviews; `resume` is an alias. |
45
38
  | `/bro guided-review delete [PR number or URL]` | Choose and confirm deletion of a saved review and its captured source. Without a target, opens the saved-review picker. |
46
- | `/bro remember-me [thought]` | Start a private memory-writing conversation, browse and expand memories, and approve saves explicitly. [Guide](../remember-me.md). |
47
- | `/bro overthink` | View the latest private automatic second-look notes, without a model call. Ctrl+R retry, Ctrl+E edit session questions, U usage details, ? help, Ctrl+C copy. [Guide](../overthink.md). |
48
- | `/bro grill-me [topic]` | Private one-question-at-a-time decision interview. Supply a topic to start fresh; omit it to resume. `/consolidate` drafts a brief; `/copy` copies the latest reply or brief; Pi's editor stays untouched. `/help` lists modal controls. [Guide](../grill-me.md). |
49
- | `/bro elevate [request]` | Improve an assignment before execution. Discover up to five gaps, choose useful findings, and copy the revised request. Pi's editor is never changed. **Ctrl+Shift+E** can use your unsent draft. See [Elevate](../elevate.md). |
39
+ | `/bro remember-me [thought]` | Start a private memory-writing conversation, browse and expand memories, and approve saves explicitly. [Guide](../features/remember-me.md). |
40
+ | `/bro overthink` | View the latest private second-look notes, without a model call. Ctrl+R retry, Ctrl+E edit session questions, U usage details, ? help, Ctrl+C copy. [Guide](../features/overthink.md). |
41
+ | `/bro grill-me [topic]` | Private one-question-at-a-time decision interview. Supply a topic to start fresh; omit it to resume. `/consolidate` drafts a brief; `/copy` copies the latest reply or brief; Pi's editor stays untouched. `/help` lists modal controls. [Guide](../features/grill-me.md). |
42
+ | `/bro elevate [request]` | Improve an assignment before execution. Discover up to five gaps, choose useful findings, and copy the revised request. Pi's editor is never changed. **Ctrl+Shift+E** can use your unsent draft. See [Elevate](../features/elevate.md). |
50
43
  | `/bro btw [question]` | Open a side conversation in a modal, seeded with recent main-session context. Starts conversation-only; `/mode` toggles full workspace access; `/copy` and `/copy-all` copy the latest answer or full thread. |
51
44
  | `/bro advisor` | Quick notice of whether the executor's `bro_advisor` tool is available right now, pointing at `/bro config`, `/bro advisor-steer`, and `/bro doctor`. |
52
45
  | `/bro advisor-steer` | View, edit, save, or clear the one persistent steering brief the advisor always sees. |
53
46
  | `/bro help` | Open the built-in quick reference. |
54
47
 
55
- Giving `/bro` the input directly works the same way:
56
-
57
- ```text
58
- /bro https://example.com/article
59
- /bro docs/report.pdf
60
- /bro any other text is explained as pasted text
61
- ```
62
-
63
48
  ## Simplify modal (single-source explanation)
64
49
 
65
- Once inside Simplify, use `/simplify` for the latest completed reply; `/text <text>`, `/file <path>`, `/url <url>` for a new source; `/copy` to copy the current explanation; `/clear` to return to the empty screen; and `/help` for controls. **M** changes the one-off Brief/Balanced/Faithful mode and re-explains the captured source; **R** retries the same source. This modal is not a conversation and does not persist history across restarts. Legacy `/bro text|file|url` shortcuts keep working. The global menu consolidation is tracked separately.
50
+ Use `/copy` to copy the current result, `/clear` to forget it, and `/help` for commands. With the composer empty, **R** reruns the captured source, **M** changes the one-off Brief/Balanced/Faithful mode on explanations, and **O** opens a browser diagram when available. **Esc** goes back from help or closes. Only the latest result is saved; this is not a chat. See [plain-language explanations](../features/explain.md) and [conversation diagrams](../features/show.md#bro-show).
@@ -69,8 +69,8 @@ When resolving backend, model, and reasoning effort:
69
69
  3. **Backend-specific normalization**: Agy selections are mapped against its installed catalog (suffixed variants, fixed-effort models); Pi selections are `<provider>/<id>` physical models resolved against your Pi registry.
70
70
  4. **Initial file creation only**: `PI_BRO_MODEL` has no effect once the settings file exists.
71
71
 
72
- When resolving turn count for `/bro show`:
73
- 1. **Command argument**: an explicit count like `/bro show 3` or `/bro show 1 query` overrides for that run.
72
+ When resolving turn count for `/show` inside Simplify:
73
+ 1. **Command argument**: an explicit count like `/show 3` or `/bro simplify show 1 query` overrides for that run.
74
74
  2. **Saved setting**: `showTurns` (defaults to 1).
75
75
 
76
76
  When shaping an answer, each part has one owner:
@@ -96,19 +96,19 @@ See [feature guide](../features/architecture.md).
96
96
 
97
97
  - **Copy Markdown:** `/bro copy` reads the last completed assistant reply from the current Pi session and lets you edit it in a temporary modal. Preview renders locally. Ctrl+C writes to the system clipboard, which other apps may read. No backend request, saved file, session record, or Pi message changes.
98
98
 
99
- - **Overthink requests:** after a substantive Pi turn, Bro makes one additional provider call using Pi's active model and current session conversation projection (including exposed tool evidence), appending the current session's questions and any saved `bro-preferences.md` (for tone and language only). Overthink never executes tool calls. It may still send tool descriptions copied from Pi's existing context to support cache reuse; a tool-use response is rejected without executing the tool. The provider may retain input under its policy. Results and questions are stored in private Pi session custom entries, not LLM turns; global questions use `bro-overthink-defaults.json` in the agent home. This cannot promise a cache hit or fixed incremental cost. Features → Overthink has an on/off switch (on by default). The viewer displays provider-reported input/cache-read/cache-write/output/reasoning tokens and USD cost when available; a reported cache-read value of zero may mean either a cache miss or unsupported caching. See [Overthink](../overthink.md).
99
+ - **Overthink requests:** when you trigger a manual check, or after a substantive Pi turn if you opted into automatic checks, Bro makes one additional provider call using Pi's active model and current session conversation projection (including exposed tool evidence), appending the current session's questions and any saved `bro-preferences.md` (for tone and language only). Overthink never executes tool calls. It may still send tool descriptions copied from Pi's existing context to support cache reuse; a tool-use response is rejected without executing the tool. The provider may retain input under its policy. Results and questions are stored in private Pi session custom entries, not LLM turns; global questions use `bro-overthink-defaults.json` in the agent home. This cannot promise a cache hit or fixed incremental cost. Features → Overthink has an on/off switch (off by default). The viewer displays provider-reported input/cache-read/cache-write/output/reasoning tokens and USD cost when available; a reported cache-read value of zero may mean either a cache miss or unsupported caching. See [Overthink](../features/overthink.md).
100
100
 
101
101
  - **External requests**: Bro sends the latest completed assistant response,
102
102
  pasted text, extracted document text, extracted webpage text, or recent
103
103
  session conversation text (tool calls, tool results, reasoning, and images
104
104
  omitted) to the selected backend and its configured model provider.
105
- - **Elevate requests**: `/bro elevate` sends your objective, preferences, and all user/assistant text on the current branch by default, without a fixed history cap. Its visible Context switch can include tool-call arguments and text results (Full), potentially including sensitive file contents or command output. Both modes exclude hidden reasoning and image binaries. Only explicit Retry after a context-overload error trims older history; the UI discloses reduced context. Its optional rewrite call includes only approved findings. It makes fresh restricted calls through the BTW model setting, but a backend's restricted mode is not a universal file/network sandbox (Grok restrictions are prompt-only). Elevate never edits or submits Pi's main draft. The user may copy the revision and paste it manually. See the [Elevate guide](../elevate.md).
105
+ - **Elevate requests**: `/bro elevate` sends your objective, preferences, and all user/assistant text on the current branch by default, without a fixed history cap. Its visible Context switch can include tool-call arguments and text results (Full), potentially including sensitive file contents or command output. Both modes exclude hidden reasoning and image binaries. Only explicit Retry after a context-overload error trims older history; the UI discloses reduced context. Its optional rewrite call includes only approved findings. It makes fresh restricted calls through the BTW model setting, but a backend's restricted mode is not a universal file/network sandbox (Grok restrictions are prompt-only). Elevate never edits or submits Pi's main draft. The user may copy the revision and paste it manually. See the [Elevate guide](../features/elevate.md).
106
106
  - **Side conversation requests**: `/bro btw` sends your side questions and the
107
107
  seeded main-session conversation text (plus earlier turns when a native
108
108
  session is reseeded) to the selected backend. In full permission mode the
109
109
  side agent can additionally read and edit the workspace.
110
- - **Grill Me requests**: `/bro grill-me` sends the user-supplied topic, their answers, the full private Grill Me transcript so far, preferences, and up to 8 recent main-session text turns (40,000 characters) to the BTW-selected provider. It runs **fresh** each turn in the current workspace, via the Guided Review *inspection execution path* (not the Guided Review UI or checkout). Claude, Muse and Pi use file-only tools; Codex and Grok use a read-only sandbox with shell; **Agy can still write inside the project**. The model is always told not to edit or run mutating commands, but that prompt is not enforced. Optional `/access full` explicitly uses a fresh, full-permission backend call and gives the backend unrestricted tools; it never happens automatically. Grill Me and BTW hold separate in-memory threads, and nothing enters the main agent unless the user inserts it into an empty editor. See [Grill Me](../grill-me.md).
111
- - **Guided Review requests**: PR identity/description, captured diff, relevant private discussion and preferences go to the selected backend, which can inspect captured files. Main-session context is not attached. Claude (`--restricted`, file tools only), Muse (write/shell/web disabled), and Pi (`read/grep/find/ls` only, in-process) use strict file-only inspection and are recommended for untrusted PRs. Codex and Grok inspect the captured checkout under a read-only sandbox; Agy's `--sandbox` still allows in-project writes. All three run shell commands and show an advisory. Prompt injection can still corrupt conclusions or reveal captured content to the provider; this is not a general confidentiality guarantee. See [Guided Review access and storage](../guided-review.md#access-privacy-and-storage).
110
+ - **Grill Me requests**: `/bro grill-me` sends the user-supplied topic, their answers, the full private Grill Me transcript so far, preferences, and up to 8 recent main-session text turns (40,000 characters) to the BTW-selected provider. It runs **fresh** each turn in the current workspace, via the Guided Review *inspection execution path* (not the Guided Review UI or checkout). Claude, Muse and Pi use file-only tools; Codex and Grok use a read-only sandbox with shell; **Agy can still write inside the project**. The model is always told not to edit or run mutating commands, but that prompt is not enforced. Optional `/access full` explicitly uses a fresh, full-permission backend call and gives the backend unrestricted tools; it never happens automatically. Grill Me and BTW hold separate in-memory threads, and nothing enters the main agent unless the user inserts it into an empty editor. See [Grill Me](../features/grill-me.md).
111
+ - **Guided Review requests**: PR identity/description, captured diff, relevant private discussion and preferences go to the selected backend, which can inspect captured files. Main-session context is not attached. Claude (`--restricted`, file tools only), Muse (write/shell/web disabled), and Pi (`read/grep/find/ls` only, in-process) use strict file-only inspection and are recommended for untrusted PRs. Codex and Grok inspect the captured checkout under a read-only sandbox; Agy's `--sandbox` still allows in-project writes. All three run shell commands and show an advisory. Prompt injection can still corrupt conclusions or reveal captured content to the provider; this is not a general confidentiality guarantee. See [Guided Review access and storage](../features/guided-review.md#access-privacy-and-storage).
112
112
  - **Preferences**: `bro-preferences.md` is sent with every explain, Show,
113
113
  BTW, Elevate, Grill Me, Guided Review, and Overthink request. It is never sent to the advisor or
114
114
  added to Pi's main conversation.
@@ -127,14 +127,14 @@ See [feature guide](../features/architecture.md).
127
127
  steering brief to Pi's conversation history or main-agent context. BTW text
128
128
  reaches the main conversation only after the user copies, pastes, and submits it, and advisor
129
129
  results appear as normal tool results in the executor's transcript.
130
- - **Saved reviews**: Guided Review records, questions, drafts and captured Git source persist under the host's `getAgentDir()/bro-reviews/`. No automatic cleanup or sync is provided; see [storage and removal](../guided-review.md#access-privacy-and-storage).
130
+ - **Saved reviews**: Guided Review records, questions, drafts and captured Git source persist under the host's `getAgentDir()/bro-reviews/`. No automatic cleanup or sync is provided; see [storage and removal](../features/guided-review.md#access-privacy-and-storage).
131
131
  - **Private session continuity**: completed BTW and Grill Me turns, modes, drafts, the latest Simplify state and the last Show result are saved as Pi `custom` entries inside the current session file. They survive normal reload/restart and are never added to the main model or Advisor snapshot. A fork initially inherits earlier entries; later updates stay on its own branch. This is local disk storage, not a global memory store or an abrupt-crash guarantee. Backend-native sessions may persist independently.
132
132
  Standing Advisor priorities are stored in `~/.pi/agent/bro-advisor.md`, and
133
133
  the session steering brief uses another `custom` entry (`bro-advisor-steering`). Session entries remain readable to anyone with the session file; export/sharing may include them. The private boundary is model-context isolation, not encrypted storage or export redaction.
134
- - **File access**: `/bro file` reads regular files at the selected relative or
134
+ - **File access**: `/bro simplify file` reads regular files at the selected relative or
135
135
  absolute path, including outside Pi's current workspace and through symlinks.
136
136
  Normal OS permissions apply. Bro's extractor does not modify the files.
137
- - **Web requests**: `/bro url` connects directly to the target website. The site
137
+ - **Web requests**: `/bro simplify url` connects directly to the target website. The site
138
138
  sees your IP address and Bro's user agent. Bro sends no browser cookies,
139
139
  authorization, or referrer information, and it refuses local, private, and
140
140
  reserved network destinations, including redirects. Avoid private or signed
@@ -48,7 +48,7 @@ existing editing pages. The old `/bro doctor`, `/bro preferences` and
48
48
 
49
49
  Architecture Docs inherits the **BTW** backend/model/effort selection. It uses a fresh restricted file-inspection call and does not alter the BTW thread. See [Architecture Docs](../features/architecture.md).
50
50
 
51
- Elevate inherits the **BTW** backend/model/effort selection. There is no separate Elevate setting in this release. See the [Elevate guide](../elevate.md).
51
+ Elevate inherits the **BTW** backend/model/effort selection. There is no separate Elevate setting in this release. See the [Elevate guide](../features/elevate.md).
52
52
 
53
53
  Settings live in this user-editable file, created when the extension loads
54
54
  (under `$PI_CODING_AGENT_DIR` instead when that is set):
@@ -71,7 +71,7 @@ Settings live in this user-editable file, created when the extension loads
71
71
  }
72
72
  ```
73
73
 
74
- Bro reads the file again before each request, so manual edits apply next time.
74
+ Bro reads the file again before each request, so manual edits apply next time. If the file is missing, Bro saves the active physical Pi model as the default, with effort `default`. If Pi has no active model or is using a virtual model, Bro starts with the Agy preset shown above; use `/bro config` to choose another backend or a physical Pi model.
75
75
 
76
76
  - Each selection is one atomic backend/model/effort choice. An override pins
77
77
  its own complete selection and ignores the shared default, even when it
@@ -87,9 +87,9 @@ Bro reads the file again before each request, so manual edits apply next time.
87
87
  Explicit Pi efforts are clamped to the model's supported reasoning levels; the
88
88
  picker's own step 1 chooses the backend and step 2 the model.
89
89
  - `mode` is `brief`, `balanced` (the default), or `faithful`. `showTurns` is
90
- the default number of turns `/bro show` draws (default 1); `/bro show
90
+ the default number of turns `/show` draws inside Simplify (default 1); `/bro simplify show
91
91
  <n-turns>` overrides it for one run.
92
- - `PI_BRO_MODEL` picks the initial Agy model only when Bro creates a missing
92
+ - `PI_BRO_MODEL` explicitly selects Agy and its model when Bro creates a missing
93
93
  settings file, for example `PI_BRO_MODEL=gemini-3.7-flash-low pi`.
94
94
  - Older flat settings files (root `model`/`effort`) still load and mean Agy.
95
95
 
@@ -161,14 +161,14 @@ another backend's authentication.
161
161
  `/bro doctor` applies the same explicit subscription checks as execution. A passing
162
162
  check establishes the tested login method and route, **not** a successful live
163
163
  answer, human account identity or subscription billing. See the
164
- [implementation notes](../DEVELOPMENT.md#official-cli-subscription-policy) for
164
+ [implementation notes](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/DEVELOPMENT.md#official-cli-subscription-policy) for
165
165
  Codex's inspection-only catalog and the [PiG qualification guide](../piG-agent-shell-qualification.md#codex-provider-route-regression-and-diagnostic-parity)
166
166
  for the versioned real-CLI/local-server evidence.
167
167
 
168
168
  ## Preferences
169
169
 
170
170
  Tell Bro about yourself and how you like answers. Bro adds what you write to
171
- every explain, `/bro show`, `/bro btw`, `/bro elevate`, and Guided Review prompt as a labelled section,
171
+ every Explain, Show, `/bro btw`, `/bro elevate`, and Guided Review prompt as a labelled section,
172
172
  alongside its own instructions. It never replaces them: modes, **M**, and the
173
173
  source rules keep working. The advisor never receives your preferences; use
174
174
  `/bro advisor-steer` for it.
@@ -201,7 +201,7 @@ that is set):
201
201
  means no preferences, and Bro's prompts are then exactly the built-in ones.
202
202
  - **What preferences can change**: wording, tone, technical depth, length in
203
203
  BTW, and the answer language. If you name a language, code, commands, paths,
204
- names, and numbers still stay exactly as written. In `/bro show` and `/bro overthink`,
204
+ names, and numbers still stay exactly as written. In Show and `/bro overthink`,
205
205
  preferences only change wording/tone and language. Guided Review also receives preferences for explanation/answer wording; they do not override its evidence or review rules. A per-run choice (the mode,
206
206
  **M**, a Show steering query, or what a BTW/review question asks for) wins over a
207
207
  standing preference.
@@ -219,4 +219,4 @@ read. Move what you want to keep into `/bro preferences`, and choose
219
219
 
220
220
  ## Remember Me
221
221
 
222
- `/bro remember-me` manages approved personal memories in `bro-memories.json` in the same user agent directory. Each entry has a stable ID, a scan-first short statement, and optional scope, exceptions, uncertainty and source context in an expanded view. The agent-facing `about_user` tool reads them on demand. `/bro preferences` remains a separate legacy file; no automatic migration or duplicate injection occurs. See [Remember Me](../remember-me.md).
222
+ `/bro remember-me` manages approved personal memories in `bro-memories.json` in the same user agent directory. Each entry has a stable ID, a scan-first short statement, and optional scope, exceptions, uncertainty and source context in an expanded view. The agent-facing `about_user` tool reads them on demand. `/bro preferences` remains a separate legacy file; no automatic migration or duplicate injection occurs. See [Remember Me](../features/remember-me.md).
@@ -30,7 +30,7 @@ succeed.
30
30
 
31
31
  If an explanation fails, run `/bro doctor` first. If a webpage cannot be
32
32
  extracted, copy its content into a supported text file or save it as a PDF and
33
- use `/bro file`. If a PDF contains only scanned images, run OCR with another
33
+ use `/bro simplify file`. If a PDF contains only scanned images, run OCR with another
34
34
  tool before giving it to Bro.
35
35
 
36
36
  - An unsupported model, effort, or missing backend fails with that backend's
@@ -42,7 +42,7 @@ tool before giving it to Bro.
42
42
  blocked, paginated, and media-first pages are not supported.
43
43
  - Direct webpage fetching does not currently use `HTTP_PROXY`, `HTTPS_PROXY`,
44
44
  or other proxy environment variables.
45
- - `/bro elevate` is pre-execution only. It does not validate expert claims, run source research or keep a persistent thread. Invalid discovery JSON can be retried with the [Retry] button; if it recurs, choose another BTW backend/model in `/bro config`. See [Elevate](../elevate.md).
45
+ - `/bro elevate` is pre-execution only. It does not validate expert claims, run source research or keep a persistent thread. Invalid discovery JSON can be retried with the [Retry] button; if it recurs, choose another BTW backend/model in `/bro config`. See [Elevate](../features/elevate.md).
46
46
  - `/bro btw` threads are saved in the Pi session file and restored on reload/restart. With the Pi backend, the native side session is memory-only, so the first turn after a restart reseeds it from the saved transcript and shows an expiry notice.
47
47
  - The Agy advisor requires Agy CLI `>=1.1.15`.
48
48
  - Show captures only the conversation text of what already happened in the
@@ -53,7 +53,7 @@ tool before giving it to Bro.
53
53
  headless session with no display reports the failure instead of opening
54
54
  anything.
55
55
  - Explain keeps only the latest result in memory and does not export directly to files. Guided Review separately persists review records and captured source.
56
- - Guided Review is local-Pi interactive only, keeps its captured revision on reopen, and does not publish, review a branch or fetch later PR changes. See [review recovery and limits](../guided-review.md#if-something-goes-wrong).
56
+ - Guided Review is local-Pi interactive only, keeps its captured revision on reopen, and does not publish, review a branch or fetch later PR changes. See [review recovery and limits](../features/guided-review.md#if-something-goes-wrong).
57
57
  - Bro temporarily captures mouse input while its modal is open so mouse-wheel
58
58
  and trackpad scrolling work in regular and fullscreen modes. Native mouse
59
59
  selection may be unavailable or visually extend outside the Bro window;