增加了superMode#75
Open
whoiswei114514 wants to merge 1 commit into
Open
Conversation
whoiswei114514
commented
Jun 17, 2026
- New toggle on Codex Enable page enables debate before execution
- Two debater instances (proposer + challenger) discuss the best plan
- Third instance (arbitrator LLM) judges whether consensus is reached
- No round limit — debate continues until arbitrator declares consensus
- Debate transcript excluded from executor context; only consensus injected
- Setting: codex.superMode in admin settings DB
- It can make AI output more effectively, but at the cost of several times the consumption and time. It is recommended to pair it with Mimo Ultraspeed
- API: GET/PUT /admin/api/super-mode
- i18n: zh-CN + en-US translations
- New toggle on Codex Enable page enables debate before execution - Two debater instances (proposer + challenger) discuss the best plan - Third instance (arbitrator LLM) judges whether consensus is reached - No round limit — debate continues until arbitrator declares consensus - Debate transcript excluded from executor context; only consensus injected - Setting: codex.superMode in admin settings DB - API: GET/PUT /admin/api/super-mode - i18n: zh-CN + en-US translations
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds an admin-controlled “Super Mode” that runs a multi-agent debate (two debaters + an arbitrator) before executing requests, plus UI/API support to toggle it.
Changes:
- Add “Super Mode” toggle UI with i18n strings.
- Add admin API endpoints and web client methods for reading/updating the toggle.
- Introduce server-side debate runner and inject consensus summary into request context when enabled.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| web/src/pages/codex/CodexEnable.tsx | Adds Super Mode state, loading/saving, and UI card with toggle + warning. |
| web/src/i18n/locales/zh-CN/codexEnable.json | Adds zh-CN strings for Super Mode UI. |
| web/src/i18n/locales/en-US/codexEnable.json | Adds en-US strings for Super Mode UI. |
| web/src/api/client.ts | Adds client calls for GET/PUT /super-mode. |
| src/upstream/debate.ts | New debate runner that produces a consensus summary (or fallback). |
| src/server.ts | Runs debate when enabled and injects consensus into chat messages. |
| src/admin/router.ts | Adds GET/PUT /admin/api/super-mode setting endpoint. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
106
to
127
| @@ -119,6 +123,7 @@ export function CodexEnable() { | |||
| } else { | |||
| setVisionFallbackEnabled(false); | |||
| } | |||
| setSuperModeEnabled(sm?.enabled ?? false); | |||
| } catch (err) { | |||
Comment on lines
+53
to
+54
| const DEBATER1_SYSTEM = [ | ||
| "You are Debater 1 (Mimo-v2.5-pro1) in a strategy debate.", |
Comment on lines
+67
to
+68
| const DEBATER2_SYSTEM = [ | ||
| "You are Debater 2 (Mimo-v2.5-pro2) in a strategy debate.", |
Comment on lines
+81
to
+82
| const ARBITRATOR_SYSTEM = [ | ||
| "You are the Arbitrator (Mimo-v2.5-pro3) in a strategy debate.", |
Comment on lines
+182
to
+189
| const parsed = extractJsonBlock<ArbitratorJudgment>(content); | ||
| if (parsed && typeof parsed.consensus === "boolean") { | ||
| log.info("debate round " + round + ": arbitrator judgment", { | ||
| consensus: parsed.consensus, | ||
| summaryLen: (parsed.summary ?? "").length, | ||
| }); | ||
| return parsed; | ||
| } |
Comment on lines
+192
to
+194
| log.warn("debate round " + round + ": arbitrator returned unparseable output, treating as no consensus", { | ||
| preview: content.slice(0, 200), | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.