pi-bro 0.38.1 → 0.40.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.
- package/CHANGELOG.md +23 -0
- package/README.md +4 -9
- package/docs/README.md +1 -1
- package/docs/feature-map.md +3 -3
- package/docs/features/architecture.md +1 -1
- package/docs/features/btw.md +1 -3
- package/docs/features/elevate.md +1 -1
- package/docs/features/grill-me.md +1 -1
- package/docs/features/guided-review.md +5 -5
- package/docs/features/overthink.md +36 -34
- package/docs/features/remember-me.md +0 -2
- package/docs/overthink.md +2 -2
- package/docs/reference/commands.md +2 -2
- package/docs/reference/data-and-permissions.md +7 -18
- package/docs/reference/settings.md +7 -5
- package/docs/reference/troubleshooting.md +0 -4
- package/package.json +1 -5
- package/src/advisor.ts +1 -1
- package/src/architecture.ts +2 -2
- package/src/backend.ts +12 -31
- package/src/backends/agy.ts +4 -4
- package/src/backends/cli-process.ts +5 -11
- package/src/backends/contract.ts +4 -7
- package/src/bro.ts +1 -1
- package/src/btw.ts +1 -1
- package/src/config-navigation-ui.ts +0 -2
- package/src/config-navigation.ts +3 -6
- package/src/config-ui.ts +34 -19
- package/src/doctor.ts +68 -34
- package/src/explain-modal.ts +2 -2
- package/src/grill.ts +1 -1
- package/src/overthink-state.ts +566 -140
- package/src/overthink.ts +338 -162
- package/src/remember-engine.ts +0 -4
- package/src/settings.ts +98 -81
- package/src/backends/grok.ts +0 -204
- package/src/backends/muse.ts +0 -173
- package/src/overthink-questions-ui.ts +0 -131
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to pi-bro are documented here.
|
|
4
4
|
|
|
5
|
+
## [0.40.0] - 2026-11-29
|
|
6
|
+
|
|
7
|
+
### Highlights
|
|
8
|
+
|
|
9
|
+
- Agy model discovery now groups any model name returned by `agy models` dynamically across `low`, `medium`, `high`, `xhigh`, and `max` efforts, and adds an **Agy · custom model ID…** fallback in `/bro config`.
|
|
10
|
+
- Codex model discovery now loads live choices from `$CODEX_HOME/models_cache.json` (default `~/.codex/models_cache.json`, omitting hidden entries) instead of hard-coded model names, adds `max` effort support, and keeps **Codex · custom model ID…** as fallback.
|
|
11
|
+
|
|
12
|
+
### Breaking
|
|
13
|
+
|
|
14
|
+
- Removed Grok and Muse backend support (`src/backends/grok.ts`, `src/backends/muse.ts`). Supported backends are now **Agy, Claude, Codex, and Pi**. If an existing `bro-settings.json` still references `grok` or `muse`, execution fails clearly while `/bro config` recovers in memory so you can pick a replacement backend and save.
|
|
15
|
+
|
|
16
|
+
## [0.39.0] - 2026-11-28
|
|
17
|
+
|
|
18
|
+
### Highlights
|
|
19
|
+
|
|
20
|
+
- Overthink now delivers one actionable private second look (or silence) per normally settled turn, sharing the exact finding and next move between the above-input preview and `/bro overthink`.
|
|
21
|
+
- Full `/bro overthink` view shows Situation, `[#n]`-resolved Evidence (explicitly tagging compacted/branch summaries and tool results), and Why it matters, while keeping the projected conversation prefix untouched for provider pairing and prompt-cache reuse.
|
|
22
|
+
- Keeps five distinct turn states (**Not checked**, **Checking**, **Checked — nothing material to flag**, **Check failed**, **Finding**) and raises the Overthink `maxTokens` budget to `8192` so reasoning models do not truncate before replying.
|
|
23
|
+
|
|
24
|
+
### Breaking
|
|
25
|
+
|
|
26
|
+
- Removed editable Overthink question lists (`Ctrl+E` and `/bro config` → Default questions) and forced four-question answers. Legacy global and per-branch empty question lists stay opted out without rewriting saved files or notes until explicitly re-enabled (global toggle in `/bro config`; press `A` in `/bro overthink` to allow an opted-out branch). Historical notes remain readable as legacy assessments.
|
|
27
|
+
|
|
5
28
|
## [0.38.1] - 2026-11-24
|
|
6
29
|
|
|
7
30
|
### Maintenance
|
package/README.md
CHANGED
|
@@ -65,10 +65,10 @@ File and webpage examples need your own real path or URL; see [how to explain th
|
|
|
65
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. |
|
|
66
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
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
|
|
68
|
+
| `/bro overthink` | **[Overthink](docs/features/overthink.md).** Get one actionable second look from the active Pi model, with inspectable evidence. Use Ctrl+R to check now; enable automatic checks in config if you want them. |
|
|
69
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. |
|
|
70
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. |
|
|
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
|
|
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 or Pi is recommended for untrusted PRs. |
|
|
72
72
|
| `/bro guided-review delete [PR]` | Choose a saved review and explicitly delete its record, questions and captured source after confirmation. No automatic cleanup. |
|
|
73
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). |
|
|
74
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. |
|
|
@@ -89,13 +89,11 @@ Guided Review has its own [guide](docs/features/guided-review.md).
|
|
|
89
89
|
| --- | --- | --- |
|
|
90
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. |
|
|
91
91
|
| [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | `claude` | Works for every feature; strict file-only inspection for Guided Review. |
|
|
92
|
-
| [Grok Build](https://docs.x.ai/build/overview) | `grok` | Guided Review uses its read-only sandbox (shell-enabled). |
|
|
93
92
|
| [Codex CLI](https://github.com/openai/codex) | `codex` | Guided Review uses its read-only sandbox (shell-enabled). |
|
|
94
|
-
| [Muse Code](https://dev.meta.ai/docs/muse-code) | `muse` | Works for every feature; strict file-only inspection for Guided Review. |
|
|
95
93
|
| **Pi** (in-process) | none | Runs a Pi SDK session inside this process using your Pi models and credentials. No extra install. Restricted features get no tools; Guided Review is file-only; the advisor and full-access BTW get workspace tools. |
|
|
96
94
|
|
|
97
95
|
- Guided Review also needs Git and an authenticated [`gh`](https://cli.github.com/).
|
|
98
|
-
Claude
|
|
96
|
+
Claude or Pi is recommended for untrusted PRs (strict file-only inspection); Codex and Agy run with shell available under their sandbox, with an advisory.
|
|
99
97
|
- [PiG](docs/pig-compatibility.md) support is experimental.
|
|
100
98
|
|
|
101
99
|
## What leaves your machine
|
|
@@ -112,7 +110,7 @@ which may keep it under their own policies. Paths below are under
|
|
|
112
110
|
| Show | User and assistant text from recent turns (no tool calls, tool results, reasoning or images), plus your preferences | Last result in the private Pi session, plus temporary diagram pages in `pi-bro-<uid>/` |
|
|
113
111
|
| Side questions | Your questions and up to the last 8 turns of conversation text, plus your preferences | Private Pi session entries with completed turns, mode and draft |
|
|
114
112
|
| Grill Me | Topic, interview turns, up to the last 8 main-session text turns and preferences; any workspace files the selected inspector reads | Private Pi session entries with the interview and brief |
|
|
115
|
-
| Overthink |
|
|
113
|
+
| Overthink | Untouched current session projection (including tool evidence and summaries), plus review prompt with appended numbered Source index and preferences, to the active Pi provider | Global opt-in in `bro-overthink-defaults.json`; latest private check, failure, and branch opt-out override in Pi session custom entries |
|
|
116
114
|
| Elevate | Your objective, selected findings, all current-branch user/assistant text; Full also includes tool-call arguments and text results, and preferences | Nothing; the workflow stays in memory |
|
|
117
115
|
| Guided Review | The PR description and diff, the files the backend reads, your questions, plus your preferences | Reviews and captured source in `bro-reviews/`, with no automatic cleanup |
|
|
118
116
|
| Advisor | The agent's system instructions, tool list and whole conversation, including tool calls and results (reasoning and images omitted), plus your steering | Steering in `bro-advisor.md` and the session file |
|
|
@@ -135,9 +133,6 @@ the agent as tool results.
|
|
|
135
133
|
> - **Grill Me `/access full`:** explicitly opts into unrestricted workspace permissions. The no-edits prompt is not an access control.
|
|
136
134
|
> - **BTW full-permission mode** (turned on with `/mode` inside BTW): it is
|
|
137
135
|
> meant to edit files and run commands.
|
|
138
|
-
> - **Grok:** its sandbox is off except during Guided Review, which uses the
|
|
139
|
-
> read-only sandbox. "Answer only from the supplied context" is only an
|
|
140
|
-
> instruction.
|
|
141
136
|
|
|
142
137
|
Details per backend:
|
|
143
138
|
[Backends: access and retention](docs/reference/data-and-permissions.md#backends-access-and-retention)
|
package/docs/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Start with what you want to do. The [README](../README.md) explains the product,
|
|
|
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
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
|
|
20
|
+
- [Review work quietly with Overthink](features/overthink.md) — one actionable same-model second look with inspectable evidence and optional automatic checks.
|
|
21
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
22
|
- [Improve a request before sending it](features/elevate.md) — Elevate: discover expert gaps, choose improvements, rewrite the task.
|
|
23
23
|
- [Investigate a PR](features/guided-review.md) — Guided Review.
|
package/docs/feature-map.md
CHANGED
|
@@ -9,7 +9,7 @@ These are **human intentions**, not modes. Run any feature directly. Bare `/bro`
|
|
|
9
9
|
| **Explore what could exist:** ask a side question | `/bro btw` | A flexible private conversation |
|
|
10
10
|
| Challenge a proposal or form a decision | `/bro grill-me` | Reasoned discussion and optional decision brief |
|
|
11
11
|
| **Get advice on existing work:** review a code change | `/bro guided-review` | Saved findings and code evidence |
|
|
12
|
-
| Reconsider
|
|
12
|
+
| Reconsider settled work automatically | `/bro overthink` | One actionable private alert (with evidence) when something material merits attention |
|
|
13
13
|
| Give the agent independent advice | `bro_advisor` (agent tool) | A second opinion returned to the agent |
|
|
14
14
|
| **Guide the agent:** improve the next assignment | `/bro elevate` | Revised request to copy, edit, and submit |
|
|
15
15
|
| Remember lasting personal facts/preferences | `/bro remember-me` | Approved memory available through the read-only `about_user` agent tool |
|
|
@@ -22,11 +22,11 @@ These are **human intentions**, not modes. Run any feature directly. Bare `/bro`
|
|
|
22
22
|
|
|
23
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
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
|
|
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.
|
|
26
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
27
|
- **Help / Close** share meanings, but a short viewer needs fewer controls than a review or interview.
|
|
28
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
|
|
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, and Remember Me approval/conflict resolution.
|
|
30
30
|
|
|
31
31
|
## Trust and acceptance
|
|
32
32
|
|
|
@@ -26,7 +26,7 @@ After a successful run, **O** opens the generated HTML using Bro's existing brow
|
|
|
26
26
|
|
|
27
27
|
Bro copies non-ignored, readable project files into a temporary working directory. It skips symlinks, obvious credential files, binaries and very large files. Existing architecture docs get priority in the snapshot budget. Bro separately records existing documentation hashes, including omitted assets and large generated HTML, so omission does not look like a concurrent new file. The displayed inventory and omitted-file list help the model avoid inventing what it could not inspect.
|
|
28
28
|
|
|
29
|
-
The selected backend inspects that **temporary source copy**. Claude
|
|
29
|
+
The selected backend inspects that **temporary source copy**. Claude and Pi use file-only inspection; Codex can run shell in a read-only sandbox; **Agy may write inside the temporary copy**. The temporary copy is not an operating-system sandbox; a CLI's broader local or network access is controlled by that CLI, not Bro.
|
|
30
30
|
|
|
31
31
|
The model only returns a JSON **proposal**. Bro validates paths, graph links, source references and generated HTML, then writes the resulting files under `docs/architecture/`. Markdown link checks ignore code examples and do not parse Mermaid as Markdown. Legitimate links to omitted images, PDFs and other files resolve against the original repo without copying their bytes into model context. References to temporary support files and symlink escapes are refused.
|
|
32
32
|
|
package/docs/features/btw.md
CHANGED
|
@@ -19,9 +19,7 @@ asked in.
|
|
|
19
19
|
back. The conversation is kept across switches. How conversation-only is
|
|
20
20
|
enforced depends on the backend — see
|
|
21
21
|
[Backends: access and retention](../reference/data-and-permissions.md#backends-access-and-retention).
|
|
22
|
-
**Conversation-only does not mean a hard sandbox on every backend:**
|
|
23
|
-
relies on an instruction; Codex and Muse can retain some read, shell, or
|
|
24
|
-
network abilities under their own restricted settings. Do not send secrets
|
|
22
|
+
**Conversation-only does not mean a hard sandbox on every backend:** Codex can retain some read, shell, or network abilities under its read-only sandbox, and Agy's sandbox does not guarantee zero writes. Do not send secrets
|
|
25
23
|
on the assumption that the model cannot access anything else.
|
|
26
24
|
- Every new or cleared thread is seeded with up to the last 8 turns of
|
|
27
25
|
main-session user/assistant conversation text (40,000 characters max, with a
|
package/docs/features/elevate.md
CHANGED
|
@@ -103,7 +103,7 @@ Elevate never writes to Pi's editor. It may use the unsent draft as its starting
|
|
|
103
103
|
|
|
104
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
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, **
|
|
106
|
+
- Requests use Bro's **restricted explain-style execution path**. Restrictions depend on the backend. For example, **Codex can have read tools** under its read-only sandbox, 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
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
108
|
|
|
109
109
|
## Troubleshooting
|
|
@@ -51,7 +51,7 @@ While Bro works, the footer shows the current stage and elapsed seconds. When th
|
|
|
51
51
|
|
|
52
52
|
## Access, privacy and limits
|
|
53
53
|
|
|
54
|
-
- Inspection uses the Guided Review backend path in your current workspace. Claude
|
|
54
|
+
- Inspection uses the Guided Review backend path in your current workspace. Claude and Pi have file-only tools. Codex has a read-only sandbox with shell access. **Agy inspection can still write project files.** No-edit prompts are not security controls.
|
|
55
55
|
- Full access can read, edit and execute commands. Bro instructs the model not to make changes, but cannot enforce that instruction. There is no automatic escalation.
|
|
56
56
|
- Each turn makes a fresh backend call replaying the complete interview. Long interviews cost more and may exceed context limits; there is no hidden truncation or fallback.
|
|
57
57
|
- The provider receives your topic, interview history, Bro preferences and up to eight recent main-session user/assistant text turns (40,000 characters). Captured context excludes tool calls/results, hidden reasoning and images. Backend tools can inspect additional workspace content.
|
|
@@ -6,7 +6,7 @@ The normal journey is: **open a PR → read and investigate → leave when satis
|
|
|
6
6
|
|
|
7
7
|
## Open a review
|
|
8
8
|
|
|
9
|
-
Requirements: local Pi interactive mode, Git, authenticated GitHub CLI (`gh`), and a configured review backend (Claude
|
|
9
|
+
Requirements: local Pi interactive mode, Git, authenticated GitHub CLI (`gh`), and a configured review backend (Claude 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
10
|
|
|
11
11
|
```text
|
|
12
12
|
/bro guided-review https://github.com/OWNER/REPO/pull/123
|
|
@@ -100,15 +100,15 @@ Deletion cannot be undone. There is no automatic cleanup.
|
|
|
100
100
|
|
|
101
101
|
## Access, privacy and storage
|
|
102
102
|
|
|
103
|
-
Review never runs with full-access or bypass flags. **Claude
|
|
103
|
+
Review never runs with full-access or bypass flags. **Claude 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; 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 or Pi.
|
|
104
104
|
|
|
105
|
-
**Codex
|
|
105
|
+
**Codex and Agy run with shell available inside their own sandbox**, and each sandbox is different: Codex applies a read-only sandbox (`codex exec --sandbox read-only --ephemeral`), while Agy's `--sandbox` only restricts terminal commands and still lets them write inside the project. Both inspect the captured checkout with a 10-minute review deadline, and **neither 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 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
106
|
|
|
107
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
108
|
|
|
109
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
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
|
|
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 and Codex disable native session persistence where their CLIs support it; backend/provider retention policies still apply.
|
|
112
112
|
|
|
113
113
|
Records, private text and captured source remain under:
|
|
114
114
|
|
|
@@ -131,7 +131,7 @@ One open writer per review is supported within a Pi process. Concurrent editing
|
|
|
131
131
|
| Problem | What to do |
|
|
132
132
|
| --- | --- |
|
|
133
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,
|
|
134
|
+
| Sandboxed shell review backend (Codex, Agy) | Advisory shown; choose Claude or Pi in `/bro config` for strict file-only inspection on untrusted PRs |
|
|
135
135
|
| Git/gh authentication or fetch error | Read the acquisition error; check Git/`gh auth status`; retry explicitly |
|
|
136
136
|
| Invalid/failed preparation | Changed files remain available; use Prepare guide to retry when ready for another call |
|
|
137
137
|
| Failed regeneration | Current guide is kept; retry only if you want another call |
|
|
@@ -1,66 +1,68 @@
|
|
|
1
1
|
# Overthink — private second look
|
|
2
2
|
|
|
3
|
-
Overthink gives Pi's
|
|
3
|
+
Overthink gives Pi's latest settled turn one private, skeptical second look. It asks one question: **Is there something the reply didn't make clear that should change what you do next?** It checks both the work and how the agent handled your direction, without spawning another agent or changing Pi's conversation. It is inspired by [pi-heads-up](https://github.com/Pringled/pi-extensions/tree/main/packages/pi-heads-up).
|
|
4
4
|
|
|
5
5
|
## Normal use
|
|
6
6
|
|
|
7
|
-
Automatic checks are **off by default**. To enable them, go to `/bro config` → Features → Overthink.
|
|
7
|
+
Automatic checks are **off by default**. To enable them, go to `/bro config` → Features → Overthink. While the pilot is active and automatic checks are on, after a **normally settled user turn** (including zero-tool decisions), Overthink makes one private background call to the **same active Pi model, at the same thinking level**. If there is one consequential thing that should change your next move, a short preview appears above the input:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
```text
|
|
10
|
+
◇ Overthink · Stalling
|
|
11
|
+
Pi stopped the local prototype over public traffic, but its listener
|
|
12
|
+
binds only to localhost. Build the local version as agreed.
|
|
13
|
+
/bro overthink for evidence
|
|
14
|
+
```
|
|
10
15
|
|
|
11
|
-
|
|
16
|
+
If nothing material merits attention, Overthink stays quiet. The preview clears as soon as you start a new turn or switch branches.
|
|
12
17
|
|
|
13
|
-
|
|
18
|
+
Run `/bro overthink` to **view** the evidence behind that same finding. Opening the modal makes **no model request**. Notes never enter Pi's user/assistant conversation and do not direct the agent to perform work.
|
|
14
19
|
|
|
15
|
-
|
|
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?
|
|
20
|
+
## What it checks
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
Overthink looks for one concrete, evidence-backed gap across the work and the working relationship, then optionally tags it with at most one plain label:
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
- **Sucking up** — endorsed your preference against known facts or dropped a supported objection without addressing the evidence.
|
|
25
|
+
- **Half-done** — agreed work is demonstrably unfinished yet presented as done or handed back early despite an available next step.
|
|
26
|
+
- **Overclaimed** — a material claim goes beyond or contradicts what was actually verified.
|
|
27
|
+
- **Overstepped** — an action actually crossed an explicit permission limit.
|
|
28
|
+
- **Stalling** — stopped authorized work over a concern the evidence shows does not apply or has a concrete authorized way forward.
|
|
29
|
+
- **Bloat** — proposed or added avoidable work, components, or decisions when a simpler path delivers the goal.
|
|
30
|
+
|
|
31
|
+
A wrong-goal finding can appear without a label. Silence after a completed check is not certification.
|
|
23
32
|
|
|
24
33
|
## Viewer
|
|
25
34
|
|
|
26
|
-
The
|
|
35
|
+
The full view shows the exact same finding and next move as the preview, plus **Situation**, **Evidence** (citing numbered `[#n]` items from the reviewed context, marking compacted or branch summaries as summaries), and **Why it matters**. It keeps five current-turn states distinct: **Not checked**, **Checking**, **Checked — nothing material to flag**, **Check failed**, and **Finding**. Earlier saved notes stay viewable as **OUTDATED**, and legacy four-question or plain-text notes stay readable as historical assessments without being reinterpreted as new findings.
|
|
27
36
|
|
|
28
37
|
In the modal:
|
|
29
38
|
|
|
30
|
-
- **Ctrl+R** —
|
|
31
|
-
- **
|
|
39
|
+
- **Ctrl+R** — recheck the current turn now (works even when automatic checks are off).
|
|
40
|
+
- **A** — allow automatic checks on this branch (shown only on branches with a legacy empty-question-list opt-out).
|
|
32
41
|
- **?** — show or hide help.
|
|
33
|
-
- **U** — show or hide
|
|
34
|
-
- **Ctrl+C** — copy the
|
|
42
|
+
- **U** — show or hide provider-reported token/cache/estimated-cost details (hidden by default).
|
|
43
|
+
- **Ctrl+C** — copy the displayed finding as Markdown.
|
|
35
44
|
- **Esc** — close or leave Help.
|
|
36
45
|
- **↑/↓** — scroll.
|
|
37
46
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
## Question editor
|
|
41
|
-
|
|
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 **Off** unless you previously saved it as 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
|
+
## Legacy opt-outs and settings
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
Automatic checks are toggled in `/bro config → Features → Overthink`. Editable question lists and forced four-question reports are removed from the new flow. Existing saved files and notes are left untouched:
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
- A legacy empty global question list in `bro-overthink-defaults.json` keeps automatic checks off until you explicitly toggle **Automatic checks** on in `/bro config`.
|
|
52
|
+
- A legacy empty session question list on a branch keeps automatic checks off on that branch even after global automatic checks are turned on; press **A** in `/bro overthink` to allow automatic checks on that branch (this has no effect while global automatic checks are off).
|
|
53
|
+
- Manual **Ctrl+R** checks work either way.
|
|
51
54
|
|
|
52
55
|
## Model, cache and privacy
|
|
53
56
|
|
|
54
|
-
Overthink **never** uses the BTW or Bro backend/model setting. It calls Pi's current `modelRegistry.streamSimple` using `buildSessionProjection()` plus
|
|
57
|
+
Overthink **never** uses the BTW or Bro backend/model setting. It calls Pi's current `modelRegistry.streamSimple` using the untouched `buildSessionProjection()` prefix plus one appended private review prompt containing a numbered `[#n]` Source index. Keeping the conversation prefix untouched preserves provider reasoning/tool-call pairing and supports prompt-cache reuse. It uses the active physical session model and reasoning level, **never executes tools**, and does not add results to the main model context. An unexpected `toolUse` response is rejected without executing the tool and recorded as **Check failed**. Saved [preferences](../reference/settings.md#preferences) (`bro-preferences.md`) can adjust tone or answer language without overriding `NONE`, JSON keys, label names, or review rules.
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
Prompt-cache reuse varies by provider, model, elapsed time, and context changes; measure it with **U** in the viewer rather than assuming a hit. **A cached prefix is not free:** high thinking effort can add reasoning tokens on top of visible output. Press **U** to show *provider-reported* input, cache-read, cache-write, output, reasoning tokens, and Pi-table **estimated cost** (not a provider-billed amount). A reported cache-read of **0** may mean either a miss or unsupported caching.
|
|
57
60
|
|
|
58
|
-
|
|
61
|
+
Overthink stores the global automatic opt-in in `getAgentDir()/bro-overthink-defaults.json` and private checks, failures, and branch opt-out overrides in Pi session `custom` entries (`bro-overthink`). Those entries stay outside LLM prompts. Each completed check or failure appends another session custom entry; keep that storage growth in mind for long sessions.
|
|
59
62
|
|
|
60
63
|
## Limits and verification
|
|
61
64
|
|
|
62
65
|
- 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
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
- Host events and cache accounting vary. See [manual qualification](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/TESTING.md) before claiming live TUI, PiG or cache-cost behavior.
|
|
66
|
+
- Automatic checks run at Pi's `agent_settled` lifecycle event (supported from Pi 1.3), not `agent_end`. Only a normal final settlement with no queued messages may start a check. A new turn, model change, compaction, or branch move cancels or invalidates stale checks.
|
|
67
|
+
- Running `pi-heads-up` and Overthink together causes **two extra calls** on overlapping turns. Disable one when evaluating attention cost or billing.
|
|
68
|
+
- Host events, provider compatibility with numbered review copies, and cache accounting vary. See [manual qualification](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/TESTING.md) and the [pilot evaluation plan](https://github.com/tranhoangnguyen03/pi-bro/blob/main/docs/plans/2026-11-25-overthink-replacement-eval.md).
|
|
@@ -68,8 +68,6 @@ Remember Me uses **the backend and model selected for BTW**. Every valid BTW bac
|
|
|
68
68
|
| Codex | `--sandbox read-only`, ephemeral execution and temporary working directory; read-only sandbox, **not** no-tools. |
|
|
69
69
|
| Claude | CLI tools disabled with `--tools ""`, strict empty MCP config, temporary working directory, no session persistence. |
|
|
70
70
|
| Pi | Fresh SDK session with no tools, extensions, skills, or project context files, using the **selected configured physical model**. |
|
|
71
|
-
| Muse | Write and shell disabled, approvals disabled, temporary working directory. Do not infer that all other abilities are disabled. |
|
|
72
|
-
| Grok | A restricted **prompt request**, but CLI sandbox off and permissions bypassed; it is **not** a technical tool/write boundary. |
|
|
73
71
|
|
|
74
72
|
The modal shows a backend-specific notice before sending data. Bro's `/save` gate controls **only writes to its approved memory store**. It does not prevent any action that the selected backend's own permissions might allow. See [execution configuration](../reference/settings.md) for backend details.
|
|
75
73
|
|
package/docs/overthink.md
CHANGED
|
@@ -8,7 +8,7 @@ This guide moved to [Overthink](features/overthink.md). The links below take you
|
|
|
8
8
|
|
|
9
9
|
## Four factory questions
|
|
10
10
|
|
|
11
|
-
[
|
|
11
|
+
[What it checks](features/overthink.md#what-it-checks)
|
|
12
12
|
|
|
13
13
|
## Viewer
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@ This guide moved to [Overthink](features/overthink.md). The links below take you
|
|
|
16
16
|
|
|
17
17
|
## Question editor
|
|
18
18
|
|
|
19
|
-
[
|
|
19
|
+
[Legacy opt-outs and settings](features/overthink.md#legacy-opt-outs-and-settings)
|
|
20
20
|
|
|
21
21
|
## Model, cache and privacy
|
|
22
22
|
|
|
@@ -31,13 +31,13 @@ Typing `/bro ` suggests `simplify`, `btw`, `guided-review`, `architecture`, `ele
|
|
|
31
31
|
| `/bro doctor` | Check Bro's settings, preferences, and each selected backend, with the effective backend/model/effort per feature. |
|
|
32
32
|
| `/bro mode [brief\|balanced\|faithful]` | View or choose the explanation mode. |
|
|
33
33
|
| `/bro preferences` | View or edit what Bro knows about you and how you like answers; see [Preferences](settings.md#preferences). |
|
|
34
|
-
| `/bro config` | Open Global (defaults, preferences and Doctor) or Features (per-feature overrides, BTW inheritance, Overthink automatic checks
|
|
34
|
+
| `/bro config` | Open Global (defaults, preferences and Doctor) or Features (per-feature overrides, BTW inheritance, Overthink automatic checks and Advisor steering). |
|
|
35
35
|
| `/bro architecture [focus]` | Read the current project and create or refresh `docs/architecture/` with Markdown, an editable graph and offline HTML. Inherits BTW backend settings. [Guide](../features/architecture.md). |
|
|
36
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. |
|
|
37
37
|
| `/bro guided-review` | List saved reviews; `resume` is an alias. |
|
|
38
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. |
|
|
39
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
|
|
40
|
+
| `/bro overthink` | View the latest private second look and evidence, without a model call. Ctrl+R recheck, U usage details, ? help, Ctrl+C copy. [Guide](../features/overthink.md). |
|
|
41
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
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). |
|
|
43
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. |
|
|
@@ -17,17 +17,9 @@ configured credentials, so it uses the same account route as your Pi session.
|
|
|
17
17
|
| --- | --- | --- | --- | --- | --- |
|
|
18
18
|
| **Agy** | Temporary directory, Agy sandbox | Temporary directory, Agy sandbox | Workspace, permissions bypassed | Fresh workspace process, permissions bypassed | Captured checkout, Agy sandbox (shell and in-project writes allowed; advisory) |
|
|
19
19
|
| **Claude Code** | Scratch directory, tools/MCP/skills disabled, no session persistence | Workspace, tools disabled | Workspace, permissions bypassed | Fresh workspace process, permissions bypassed | Restricted Read/Grep/Glob only; confined checkout, no persistence |
|
|
20
|
-
| **Grok** | Temporary directory, **prompt instruction only** | Workspace, **prompt instruction only** | Workspace, permissions bypassed | Fresh workspace process, permissions bypassed | Captured checkout, read-only sandbox (shell-enabled; advisory) |
|
|
21
20
|
| **Codex** | Scratch directory, read-only sandbox, ephemeral session | Workspace, read-only sandbox | Workspace, approvals and sandbox bypassed | Fresh workspace process, approvals and sandbox bypassed | Captured checkout, read-only sandbox, ephemeral (shell-enabled; advisory) |
|
|
22
|
-
| **Muse** | Scratch directory, approval/write/shell disabled, no session log | Workspace, approval/write/shell disabled | Workspace, permissions bypassed (`--yolo`) | Fresh workspace process, permissions bypassed (`--yolo`) | Captured checkout; writes/shell/web disabled, no session log |
|
|
23
21
|
| **Pi** | No tools at all (isolated in-process session) | No tools at all | Workspace, read/bash/edit/write (no nested delegation or MCP) | Workspace, read/bash/edit/write (no nested delegation or MCP) | Captured checkout, read/grep/find/ls only (no shell) |
|
|
24
22
|
|
|
25
|
-
- Grok always runs explain, show, btw and the advisor with its sandbox off and
|
|
26
|
-
permissions bypassed; its tools, hooks, skills, plugins, and MCP may remain
|
|
27
|
-
available. "Answer only from the supplied context" is a request, not an
|
|
28
|
-
enforced restriction. Guided Review is the exception: it runs with
|
|
29
|
-
`--sandbox read-only --permission-mode dontAsk` but still executes shell
|
|
30
|
-
commands inside that sandbox.
|
|
31
23
|
- Codex's read-only sandbox is not a tool-free mode: workspace reads and
|
|
32
24
|
sandboxed commands remain available, including for Guided Review. Bro does
|
|
33
25
|
not disable configured MCP servers or web search; their access is governed
|
|
@@ -35,14 +27,11 @@ configured credentials, so it uses the same account route as your Pi session.
|
|
|
35
27
|
- Agy's Guided Review runs under `--sandbox`, which restricts terminal
|
|
36
28
|
commands but still permits writes inside the project; it has no file-only
|
|
37
29
|
tool filter.
|
|
38
|
-
- Muse's restricted mode disables write and shell tools and approval prompts,
|
|
39
|
-
not all tools: workspace reads and web tools remain available without approval.
|
|
40
|
-
It is not a tool-free or network-isolated mode.
|
|
41
30
|
- Claude's restrictions are tool/configuration settings (with safe mode), not
|
|
42
31
|
an OS sandbox; built-in and managed Claude behavior can remain. Running a
|
|
43
32
|
permission-bypassing mode as root may be rejected by Claude.
|
|
44
|
-
- BTW continues natively: Agy by conversation ID, Claude
|
|
45
|
-
`--resume`, Codex by `resume
|
|
33
|
+
- BTW continues natively: Agy by conversation ID, Claude by
|
|
34
|
+
`--resume`, and Codex by `resume` of the same session,
|
|
46
35
|
including across `/mode` switches. An Agy conversation stays bound to the
|
|
47
36
|
workspace it started in, so after a `/mode` switch — or whenever a thread
|
|
48
37
|
has turns but no native session ID — Bro starts a fresh native session
|
|
@@ -86,7 +75,7 @@ When shaping an answer, each part has one owner:
|
|
|
86
75
|
|
|
87
76
|
`/bro architecture` inherits the BTW backend/model/effort selection but uses Guided Review's **restricted inspection execution** (fresh, non-continuing call), against a temporary copy of non-ignored project files. Model text, source files it reads, optional focus and preferences go to the selected provider. Bro does not automatically send the main Pi conversation.
|
|
88
77
|
|
|
89
|
-
Claude
|
|
78
|
+
Claude and Pi provide file-only inspection. Codex runs a shell-enabled read-only sandbox. Agy's inspection sandbox **can write inside the temporary project copy**. A temporary directory does not constrain a CLI's global filesystem/network access. Bro's own import writes only checked `docs/architecture/` files; this is not a blanket guarantee about backend side effects. Project content remains untrusted data.
|
|
90
79
|
|
|
91
80
|
Excluded/large/binary files are not in the snapshot; Bro validates graph paths and Markdown links and checks that source/target files did not change before import. Snapshot checks cannot prove semantic accuracy or guarantee multi-file atomicity across abrupt host shutdown. The temporary copy and the model proposal are removed when the operation completes. Files under `docs/architecture/` remain normal repo documents. No autonomous commits or background runs.
|
|
92
81
|
|
|
@@ -96,19 +85,19 @@ See [feature guide](../features/architecture.md).
|
|
|
96
85
|
|
|
97
86
|
- **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
87
|
|
|
99
|
-
- **Overthink requests:** when you trigger a manual check, or after a
|
|
88
|
+
- **Overthink requests:** when you trigger a manual check, or after a normally settled Pi turn if you opted into automatic checks, Bro makes one additional provider call using Pi's active model and the untouched current session projection (including exposed tool evidence and compaction/branch summaries), appending the Overthink review prompt with a numbered `[#n]` Source index and any saved `bro-preferences.md` (for tone and language only). Overthink never executes tool calls; a `toolUse` response is rejected without executing the tool and recorded as a check failure. The provider may retain input under its policy. Results, failures, and branch opt-out overrides are stored in private Pi session custom entries, not LLM turns; the global automatic setting uses `bro-overthink-defaults.json` in the agent home (preserving any legacy saved question list). Keeping the prefix untouched supports provider cache reuse, but 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
89
|
|
|
101
90
|
- **External requests**: Bro sends the latest completed assistant response,
|
|
102
91
|
pasted text, extracted document text, extracted webpage text, or recent
|
|
103
92
|
session conversation text (tool calls, tool results, reasoning, and images
|
|
104
93
|
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
|
|
94
|
+
- **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. 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
95
|
- **Side conversation requests**: `/bro btw` sends your side questions and the
|
|
107
96
|
seeded main-session conversation text (plus earlier turns when a native
|
|
108
97
|
session is reseeded) to the selected backend. In full permission mode the
|
|
109
98
|
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
|
|
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)
|
|
99
|
+
- **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 and Pi use file-only tools; Codex uses 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 a prompt instruction is not an enforced restriction. 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).
|
|
100
|
+
- **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) and Pi (`read/grep/find/ls` only, in-process) use strict file-only inspection and are recommended for untrusted PRs. Codex inspects the captured checkout under a read-only sandbox; Agy's `--sandbox` still allows in-project writes. Both 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
101
|
- **Preferences**: `bro-preferences.md` is sent with every explain, Show,
|
|
113
102
|
BTW, Elevate, Grill Me, Guided Review, and Overthink request. It is never sent to the advisor or
|
|
114
103
|
added to Pi's main conversation.
|
|
@@ -65,7 +65,7 @@ Settings live in this user-editable file, created when the extension loads
|
|
|
65
65
|
"showTurns": 1,
|
|
66
66
|
"overrides": {
|
|
67
67
|
"explain": { "backend": "claude", "model": "sonnet", "effort": "medium" },
|
|
68
|
-
"advisor": { "backend": "
|
|
68
|
+
"advisor": { "backend": "codex", "model": "gpt-6.1-sol", "effort": "high" },
|
|
69
69
|
"review": { "backend": "pi", "model": "anthropic/claude-sonnet-4-5", "effort": "high" }
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -78,10 +78,12 @@ Bro reads the file again before each request, so manual edits apply next time. I
|
|
|
78
78
|
happens to match it; select **Default** in `/bro config` to inherit again.
|
|
79
79
|
Omitted overrides inherit `default`.
|
|
80
80
|
- `effort` must be one the backend offers (`default` omits it and lets the
|
|
81
|
-
model decide). Agy
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
model decide). Agy models come live from `agy models` (with a custom model ID
|
|
82
|
+
fallback). Codex models come live from Codex's local `models_cache.json`
|
|
83
|
+
(respecting `CODEX_HOME`, with a custom model ID fallback). Claude accepts its
|
|
84
|
+
`sonnet`/`opus` aliases or any explicit model ID; a model/effort combination
|
|
85
|
+
the account does not support fails with the backend's own error instead of
|
|
86
|
+
silently falling back. **Pi** selections are a `"<provider>/<id>"` pair
|
|
85
87
|
from your Pi model catalog, chosen from your configured scoped models
|
|
86
88
|
(`enabledModels`, falling back to every model with configured credentials).
|
|
87
89
|
Explicit Pi efforts are clamped to the model's supported reasoning levels; the
|
|
@@ -11,11 +11,7 @@ feature. Failed checks explain what to fix.
|
|
|
11
11
|
|
|
12
12
|
- **Agy**: installed version, model catalog, and account access.
|
|
13
13
|
- **Claude Code**: installed version and configured authentication.
|
|
14
|
-
- **Grok**: installed version only; authentication and connectivity are not
|
|
15
|
-
verified.
|
|
16
14
|
- **Codex**: installed version and configured authentication.
|
|
17
|
-
- **Muse**: installed version only; authentication and connectivity are not
|
|
18
|
-
verified.
|
|
19
15
|
- **Pi**: physical model catalog, configured authentication, scope membership,
|
|
20
16
|
effective reasoning effort, and each feature's tool set. Uses the in-process
|
|
21
17
|
SDK with host registrations and runtime credentials plus current on-disk
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-bro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "A sidekick for you and your Pi agent: plain-language explanations, side questions, diagrams, PR review and second opinions, without cluttering the agent's context.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"advisor",
|
|
36
36
|
"second-opinion",
|
|
37
37
|
"codex",
|
|
38
|
-
"muse",
|
|
39
38
|
"coding-agent",
|
|
40
39
|
"ai-agents",
|
|
41
40
|
"cli",
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
"src/grill-engine.ts",
|
|
56
55
|
"src/overthink.ts",
|
|
57
56
|
"src/overthink-state.ts",
|
|
58
|
-
"src/overthink-questions-ui.ts",
|
|
59
57
|
"src/copy.ts",
|
|
60
58
|
"src/last-assistant.ts",
|
|
61
59
|
"src/remember-store.ts",
|
|
@@ -85,8 +83,6 @@
|
|
|
85
83
|
"src/backends/cli-process.ts",
|
|
86
84
|
"src/backends/codex.ts",
|
|
87
85
|
"src/backends/contract.ts",
|
|
88
|
-
"src/backends/grok.ts",
|
|
89
|
-
"src/backends/muse.ts",
|
|
90
86
|
"src/backends/pi.ts",
|
|
91
87
|
"src/cli-auth.ts",
|
|
92
88
|
"src/prompt.ts",
|
package/src/advisor.ts
CHANGED
|
@@ -373,7 +373,7 @@ export function advisorAttemptLabel(details: AdvisorToolDetails): string {
|
|
|
373
373
|
return `Bro advisor · ${details.model ?? "unknown model"} · ${Math.ceil((details.durationMs ?? details.elapsedMs) / 1_000)}s`;
|
|
374
374
|
}
|
|
375
375
|
const latest = details.activity?.at(-1);
|
|
376
|
-
const backendLabel = details.backend === "claude" ? "Claude" : details.backend === "
|
|
376
|
+
const backendLabel = details.backend === "claude" ? "Claude" : details.backend === "codex" ? "Codex" : details.backend === "pi" ? "Pi" : "Agy";
|
|
377
377
|
// "last reported" + freshness, never a claim about what the backend is doing right now and never
|
|
378
378
|
// "stalled" -- silence since lastActivityAt is not itself evidence of a stuck run.
|
|
379
379
|
const activityLabel = latest
|
package/src/architecture.ts
CHANGED
|
@@ -25,8 +25,8 @@ type ArchitecturePipeline = {
|
|
|
25
25
|
|
|
26
26
|
function inspectionNotice(backend: string): string {
|
|
27
27
|
if (backend === "agy") return "Agy can write inside the temporary project copy during inspection; Bro imports only checked architecture docs.";
|
|
28
|
-
if (backend === "codex"
|
|
29
|
-
if (backend === "claude" || backend === "
|
|
28
|
+
if (backend === "codex") return backend + " can use shell commands in a read-only sandbox during inspection.";
|
|
29
|
+
if (backend === "claude" || backend === "pi") return "Inspection uses file-reading tools only; Bro writes the verified output.";
|
|
30
30
|
return "Inspecting a temporary copy of the project.";
|
|
31
31
|
}
|
|
32
32
|
|