@in-the-loop-labs/pair-review 5.0.3 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -3
- package/package.json +4 -3
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
- package/plugin-pair-loop/.claude-plugin/plugin.json +1 -1
- package/plugin-pair-loop/skills/loop/SKILL.md +21 -6
- package/public/css/pr.css +2 -2
- package/public/js/vendor/pierre-diffs-worker.js +3446 -5992
- package/public/js/vendor/pierre-diffs.js +731 -1047
- package/src/ai/abort-signal-wiring.js +91 -46
- package/src/ai/analyzer.js +191 -27
- package/src/ai/antigravity-provider.js +31 -5
- package/src/ai/claude-cli.js +8 -2
- package/src/ai/claude-provider.js +34 -5
- package/src/ai/codex-provider.js +31 -5
- package/src/ai/copilot-provider.js +28 -4
- package/src/ai/cursor-agent-provider.js +32 -5
- package/src/ai/executable-provider.js +8 -2
- package/src/ai/index.js +1 -0
- package/src/ai/muse-provider.js +1224 -0
- package/src/ai/opencode-provider.js +31 -5
- package/src/ai/pi-provider.js +29 -4
- package/src/ai/provider.js +111 -28
- package/src/ai/stream-parser.js +71 -0
- package/src/config.js +35 -2
- package/src/database.js +96 -16
- package/src/git/fetch-helpers.js +48 -0
- package/src/git/pack-cleanup.js +120 -0
- package/src/git/worktree.js +65 -43
- package/src/main.js +176 -27
- package/src/routes/analyses.js +6 -2
- package/src/routes/local.js +6 -5
- package/src/routes/mcp.js +5 -2
- package/src/routes/pr.js +8 -7
- package/src/routes/shared.js +27 -0
- package/src/routes/stack-analysis.js +4 -1
- package/src/utils/json-extractor.js +162 -41
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ pair-review is a local web application for keeping humans in the loop with AI co
|
|
|
67
67
|
- **Local-First**: All data and processing happens on your machine - no cloud dependencies
|
|
68
68
|
- **GitHub-Familiar UI**: Interface feels instantly familiar to GitHub users
|
|
69
69
|
- **Human-in-the-Loop**: AI suggests, you decide
|
|
70
|
-
- **Multiple AI Providers**: Support for Claude, Antigravity, Codex, Copilot, OpenCode, Cursor, and
|
|
70
|
+
- **Multiple AI Providers**: Support for Claude, Antigravity, Codex, Copilot, OpenCode, Cursor, Pi, and Muse. Use your existing subscription!
|
|
71
71
|
- **Progressive**: Start simple with manual review, add AI analysis when you need it
|
|
72
72
|
|
|
73
73
|
## Workflows
|
|
@@ -578,6 +578,7 @@ pair-review supports several environment variables for customizing behavior:
|
|
|
578
578
|
| `PAIR_REVIEW_OPENCODE_CMD` | Custom command to invoke OpenCode CLI | `opencode` |
|
|
579
579
|
| `PAIR_REVIEW_CURSOR_AGENT_CMD` | Custom command to invoke Cursor Agent CLI | `agent` |
|
|
580
580
|
| `PAIR_REVIEW_PI_CMD` | Custom command to invoke Pi CLI | `pi` |
|
|
581
|
+
| `PAIR_REVIEW_MUSE_CMD` | Custom command to invoke Muse Code CLI | `muse` |
|
|
581
582
|
|
|
582
583
|
**Note:** `GITHUB_TOKEN` is the standard environment variable used by many GitHub tools (gh CLI, GitHub Actions, etc.). When set, it takes precedence over the `github_token` field in the config file.
|
|
583
584
|
|
|
@@ -635,12 +636,32 @@ pair-review integrates with AI providers via their CLI tools:
|
|
|
635
636
|
- **OpenCode**: Uses OpenCode CLI (requires model configuration)
|
|
636
637
|
- **Cursor**: Uses Cursor Agent CLI (streaming output with sandbox mode)
|
|
637
638
|
- **Pi**: Uses Pi coding agent CLI (requires model configuration)
|
|
639
|
+
- **Muse**: Uses Meta's Muse Code CLI (`muse`), a terminal coding agent released in beta in August 2026 and powered by the Muse Spark 1.2 model. Install it with the single shell command from Meta's Muse Code install instructions (macOS/Linux), then authenticate once with `muse login` (credentials are stored in `~/.config/muse/auth.json`). pair-review drives it headlessly via `muse exec --json`. Within pair-review, Muse is analysis-only: the CLI exposes no ACP server mode, so there is no Muse chat provider.
|
|
638
640
|
|
|
639
641
|
You can select your preferred provider and model in the repository settings UI.
|
|
640
642
|
|
|
641
643
|
#### Built-in vs. Configurable Providers
|
|
642
644
|
|
|
643
|
-
Most providers (Claude, Antigravity, Codex, Copilot) come with built-in model definitions. **OpenCode and Pi are different** - they have no built-in models and require you to configure which models to use.
|
|
645
|
+
Most providers (Claude, Antigravity, Codex, Copilot, Muse) come with built-in model definitions. **OpenCode and Pi are different** - they have no built-in models and require you to configure which models to use.
|
|
646
|
+
|
|
647
|
+
##### Muse models and the contributor tradeoff
|
|
648
|
+
|
|
649
|
+
Muse exposes its built-in models as reasoning-effort variants over two underlying CLI models:
|
|
650
|
+
|
|
651
|
+
| Model ID | Tier | Underlying CLI model |
|
|
652
|
+
|----------|------|----------------------|
|
|
653
|
+
| `muse-spark-1.2-ultra` | thorough | `muse-spark-1.2` |
|
|
654
|
+
| `muse-spark-1.2-contributor-ultra` | thorough | `muse-spark-1.2-contributor` |
|
|
655
|
+
| `muse-spark-1.2-xhigh` | thorough | `muse-spark-1.2` |
|
|
656
|
+
| `muse-spark-1.2-contributor-xhigh` | thorough | `muse-spark-1.2-contributor` |
|
|
657
|
+
| `muse-spark-1.2-high` | balanced (**default**) | `muse-spark-1.2` |
|
|
658
|
+
| `muse-spark-1.2-contributor-high` | balanced | `muse-spark-1.2-contributor` |
|
|
659
|
+
| `muse-spark-1.2-low` | fast | `muse-spark-1.2` |
|
|
660
|
+
| `muse-spark-1.2-contributor-low` | fast | `muse-spark-1.2-contributor` |
|
|
661
|
+
|
|
662
|
+
`muse-spark-1.2` and `muse-spark` are convenience aliases for `muse-spark-1.2-high`. `muse-spark-1.2-contributor` is likewise an alias for `muse-spark-1.2-contributor-high` — worth knowing because it is the bare CLI model name, so `--model muse-spark-1.2-contributor` selects the data-sharing tier described below rather than erroring out.
|
|
663
|
+
|
|
664
|
+
The `-contributor` models are substantially cheaper ($0.10/M input, $0.20/M output versus $1.25/M and $4.25/M) **because Meta may use their content for product improvement**. Since a code review sends your diff and surrounding source to the model, pair-review deliberately defaults to the non-contributor `muse-spark-1.2-high` — opting into data sharing is always an explicit choice you make by selecting a `-contributor` model, whether by its full ID or by that alias.
|
|
644
665
|
|
|
645
666
|
#### Configuring Custom Models
|
|
646
667
|
|
|
@@ -822,7 +843,7 @@ Configure your preferred models in `providers.pi.models` — see [AI Provider Co
|
|
|
822
843
|
}
|
|
823
844
|
```
|
|
824
845
|
|
|
825
|
-
Available chat provider IDs: `pi`, `claude`, `codex`, `copilot-acp`, `opencode-acp`, `cursor-acp`. Each supports `command`, `args` (replaces defaults), `extra_args` (appends), and `env` overrides. Codex chat also supports `sandbox`: use `workspace-write` by default, or `read-only` for discussion-only sessions. (Antigravity
|
|
846
|
+
Available chat provider IDs: `pi`, `claude`, `codex`, `copilot-acp`, `opencode-acp`, `cursor-acp`. Each supports `command`, `args` (replaces defaults), `extra_args` (appends), and `env` overrides. Codex chat also supports `sandbox`: use `workspace-write` by default, or `read-only` for discussion-only sessions. (Antigravity and Muse are analysis-only providers — neither CLI has an ACP mode, so there are no Antigravity or Muse chat providers.)
|
|
826
847
|
|
|
827
848
|
**Keyboard shortcut:** Press `p` then `c` to toggle the chat panel.
|
|
828
849
|
|
|
@@ -967,6 +988,8 @@ An implement→review→fix loop with pair-review as the review oracle. The agen
|
|
|
967
988
|
|-------|-------------|
|
|
968
989
|
| `/pair-loop:loop` | Implement, review with pair-review councils, triage, fix, and repeat until clean |
|
|
969
990
|
|
|
991
|
+
**Run the loop in your agent's main session — do not delegate it to a subagent.** Each council round is a 15–40 minute external process owned by the session that started it, so a subagent's exit kills the round mid-flight and the work is discarded. Delegating the implementation or fix work *within* a round is fine; delegating the loop itself is not.
|
|
992
|
+
|
|
970
993
|
### code-critic — Standalone Analysis
|
|
971
994
|
|
|
972
995
|
AI-powered code review analysis that works without any server or MCP dependency. Install this plugin for three-level AI analysis directly in your coding agent.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@in-the-loop-labs/pair-review",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Your AI-powered code review partner - Close the feedback loop with AI coding agents",
|
|
5
5
|
"main": "src/server.js",
|
|
6
6
|
"bin": {
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"cursor",
|
|
52
52
|
"copilot",
|
|
53
53
|
"codex",
|
|
54
|
-
"antigravity"
|
|
54
|
+
"antigravity",
|
|
55
|
+
"muse"
|
|
55
56
|
],
|
|
56
57
|
"author": "Tim Perkins",
|
|
57
58
|
"license": "Apache-2.0",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"@agentclientprotocol/sdk": "^0.14.1",
|
|
68
69
|
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
69
70
|
"@octokit/rest": "^19.0.11",
|
|
70
|
-
"@pierre/diffs": "^1.
|
|
71
|
+
"@pierre/diffs": "^1.2.12",
|
|
71
72
|
"better-sqlite3": "^12.11.1",
|
|
72
73
|
"express": "^4.18.2",
|
|
73
74
|
"glob": "^13.0.6",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pair-review",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "pair-review app integration — Open PRs and local changes in the pair-review web UI, run server-side AI analysis, and address review feedback. Requires the pair-review MCP server.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "in-the-loop-labs",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pair-loop",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Agent-orchestrated review loop — implement, review with pair-review multi-model councils via the headless CLI, triage, fix, and repeat until a final review returns no blockers. MCP-independent.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "in-the-loop-labs",
|
|
@@ -49,11 +49,19 @@ These are not judgment calls:
|
|
|
49
49
|
3. **Sequence strictly: fix → write triage back → then run the next round.**
|
|
50
50
|
4. **One review at a time.** Never run two reviews concurrently for the same
|
|
51
51
|
repo.
|
|
52
|
-
5. **
|
|
52
|
+
5. **Drive the loop from the session that owns it — never delegate a review
|
|
53
|
+
round to a subagent.** A round is a 15–40 minute external process, and a
|
|
54
|
+
background process is killed when the session that spawned it ends. A
|
|
55
|
+
subagent's session ends the moment it returns, so a round launched inside
|
|
56
|
+
one dies mid-flight and the run is lost. If you are reading this from
|
|
57
|
+
inside a subagent, do not start a round — hand the loop back to the main
|
|
58
|
+
session. (Subagents are still fine for work that *finishes inside the
|
|
59
|
+
agent*: implementing the objective, applying a batch of fixes.)
|
|
60
|
+
6. **Do not commit or push.** Leave changes in the working tree. New
|
|
53
61
|
(untracked) files are included automatically whenever the review scope ends
|
|
54
62
|
at `untracked` — which the default scope (`unstaged..untracked`) does — so
|
|
55
63
|
no `git add -N` (intent-to-add) is needed.
|
|
56
|
-
|
|
64
|
+
7. **Report failures faithfully.** A failed run (`"ok": false`, non-zero
|
|
57
65
|
exit) is reported as what it is — never papered over as "no findings".
|
|
58
66
|
|
|
59
67
|
## Phase: Setup
|
|
@@ -69,8 +77,10 @@ These are not judgment calls:
|
|
|
69
77
|
call. An unknown handle → show the available names and ask the user.
|
|
70
78
|
4. If an objective was given and the working tree has no relevant changes
|
|
71
79
|
yet, implement the objective first (directly or via a Task agent — your
|
|
72
|
-
call based on size
|
|
73
|
-
before
|
|
80
|
+
call based on size; delegation is safe here because the agent's work
|
|
81
|
+
finishes before it returns, unlike a review round — hard rule 5). Verify
|
|
82
|
+
with `git status --short` that changes exist before the first review
|
|
83
|
+
round; if none, tell the user and stop.
|
|
74
84
|
|
|
75
85
|
## Running a review round
|
|
76
86
|
|
|
@@ -94,6 +104,10 @@ pair-review --local --headless --json --council <handle> [--scope <range>] --ins
|
|
|
94
104
|
Run the command in the background (or with a timeout of at least 45
|
|
95
105
|
minutes) and wait for it to exit. Do not abandon or kill it early; do not
|
|
96
106
|
start a second review while one is running (hard rule 4).
|
|
107
|
+
- **Launch it from the loop's own session, not from a subagent.** The
|
|
108
|
+
background process belongs to the session that spawned it, so a round
|
|
109
|
+
started inside a subagent is killed the moment that agent returns — the
|
|
110
|
+
council work is thrown away and the JSON never arrives (hard rule 5).
|
|
97
111
|
- stdout is exactly one JSON document (logs go to stderr):
|
|
98
112
|
- success: `{"ok": true, "mode": "local", "run": {...}, "suggestions":
|
|
99
113
|
[...], "count": N}` — exit code 0. **Zero suggestions is still
|
|
@@ -141,8 +155,9 @@ fresh.
|
|
|
141
155
|
## Fix
|
|
142
156
|
|
|
143
157
|
Apply the fixes (directly or via a Task agent for large batches — your
|
|
144
|
-
call
|
|
145
|
-
|
|
158
|
+
call; delegation is safe here for the same reason as in Setup — the agent's
|
|
159
|
+
edits and test runs complete before it returns). Run the project's relevant
|
|
160
|
+
tests for the changed code. A fix that breaks tests is not a fix.
|
|
146
161
|
|
|
147
162
|
## Write triage back (optional, needs the server)
|
|
148
163
|
|
package/public/css/pr.css
CHANGED
|
@@ -5225,8 +5225,8 @@ div.external-comment-row {
|
|
|
5225
5225
|
border: 1px solid #d1d9e0;
|
|
5226
5226
|
border-radius: 6px;
|
|
5227
5227
|
resize: vertical;
|
|
5228
|
-
min-height:
|
|
5229
|
-
max-height:
|
|
5228
|
+
min-height: 90px;
|
|
5229
|
+
max-height: 60vh;
|
|
5230
5230
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
|
5231
5231
|
}
|
|
5232
5232
|
|