github-router 0.3.21 → 0.3.23
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 +34 -0
- package/dist/main.js +784 -332
- package/dist/main.js.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -75,6 +75,28 @@ Create `.claude/settings.json` in your project:
|
|
|
75
75
|
|
|
76
76
|
Then run `claude` as normal.
|
|
77
77
|
|
|
78
|
+
### Peer-MCP review subagents
|
|
79
|
+
|
|
80
|
+
`github-router claude` auto-wires four peer-model adversarial reviewers plus a coordinator into the spawned Claude Code session. No setup, no prior MCP config, no `.claude/agents/` files needed — they appear as Task `subagent_type` options the session can delegate to. Opt out with `--no-codex-mcp`.
|
|
81
|
+
|
|
82
|
+
Each persona is exposed both as a Claude Code subagent (callable via the `Task` tool) AND as an MCP tool at `mcp__gh-router-peers__<name>`. Personas are stateless: each invocation runs a fresh request against its model with a baked persona prompt — they have no access to your scrollback or project memory, so the lead must paste the artifact into the brief.
|
|
83
|
+
|
|
84
|
+
| Subagent | Model | Endpoint | Effort tiers (default) |
|
|
85
|
+
|---|---|---|---|
|
|
86
|
+
| `codex-critic` | gpt-5.5 | `/v1/responses` | low \| medium \| high \| xhigh (xhigh) |
|
|
87
|
+
| `codex-reviewer` | gpt-5.3-codex | `/v1/responses` | low \| medium \| high \| xhigh (xhigh) |
|
|
88
|
+
| `opus-critic` | claude-opus-4-7 | `/v1/messages` | low \| medium \| high \| xhigh (xhigh) |
|
|
89
|
+
| `gemini-critic` | gemini-3.1-pro-preview | `/v1/chat/completions` | low \| medium \| high (high) |
|
|
90
|
+
| `peer-review-coordinator` | (meta) | — | — |
|
|
91
|
+
|
|
92
|
+
`peer-review-coordinator` is a subagent (not an MCP tool) that fans out to the right combination of the four critics in parallel based on artifact type — plan, diff, single file, or long-context — and aggregates findings.
|
|
93
|
+
|
|
94
|
+
**Effort tiers** are exposed via the MCP tool's `effort` argument; subagents pass it through. All four tiers are accepted on every persona. `xhigh` routinely runs 60–90s; the proxy responds to `tools/call` requests with SSE-streamed responses (per MCP 2025-06-18 Streamable HTTP transport spec) so the connection stays open past the standard ~60s MCP per-tool-call ceiling and long calls complete transparently with no user setup.
|
|
95
|
+
|
|
96
|
+
`gemini-critic` only registers when `gemini-3.1-pro-preview` is present in your Copilot model catalog. If absent, the persona is silently dropped from both the MCP `tools/list` and the subagent set, and `peer-review-coordinator` skips it in routing decisions.
|
|
97
|
+
|
|
98
|
+
For codex-side write capability (a `codex-implementer` persona that can mutate files via Codex's tool-use sandbox), pass `--codex-cli`. Requires `codex` CLI 0.129+ on `PATH`; falls back to HTTP-only with a warning if codex is missing or older. Pass `--codex-mcp-only` to also pass `--strict-mcp-config` to Claude Code so only the proxy's MCP servers are loaded (hides any MCP servers in your existing `~/.claude/mcp.json`).
|
|
99
|
+
|
|
78
100
|
---
|
|
79
101
|
|
|
80
102
|
## Use with Codex CLI
|
|
@@ -223,6 +245,18 @@ Fallback chains fire only on the implicit-default path; explicit `-m`/`--model`
|
|
|
223
245
|
| `--show-token` | Print tokens to console | false |
|
|
224
246
|
| `--proxy-env` | Use HTTP_PROXY/HTTPS_PROXY env vars | false |
|
|
225
247
|
|
|
248
|
+
Additional flags accepted only by the `claude` subcommand:
|
|
249
|
+
|
|
250
|
+
| Flag | Description | Default |
|
|
251
|
+
|---|---|---|
|
|
252
|
+
| `--model, -m` | Override the default Claude model | claude-opus-4-7 |
|
|
253
|
+
| `--codex-mcp` / `--no-codex-mcp` | Wire peer-MCP review subagents (codex-critic / opus-critic / gemini-critic / codex-reviewer / peer-review-coordinator) into the spawned session | true |
|
|
254
|
+
| `--codex-cli` | Add a `codex mcp-server` stdio backend so `codex-implementer` can mutate files. Requires codex CLI 0.129+; falls back to HTTP-only if absent | false |
|
|
255
|
+
| `--codex-mcp-only` | Pass `--strict-mcp-config` to Claude Code so only the proxy's MCP servers load (hides any user MCP servers in `~/.claude/mcp.json`) | false |
|
|
256
|
+
| `--stealth` | Opt back into VS Code-only beta-header filtering. Loses leverage features (task budgets, token-efficient tools, prompt caching, etc.) but minimizes the wire-fingerprint diff from VS Code Copilot Chat | false |
|
|
257
|
+
| `--auto-update` / `--no-auto-update` | Check for and install latest Claude Code on launch (throttled to once per hour). Falls back gracefully if npm/network unavailable | true |
|
|
258
|
+
| `--update-check` / `--no-update-check` | Check the npm registry for a newer Claude Code version on launch and warn if stale (~500ms cost). `--no-update-check` implies no auto-install | true |
|
|
259
|
+
|
|
226
260
|
---
|
|
227
261
|
|
|
228
262
|
## Development
|