Skip to content

增加了superMode#75

Open
whoiswei114514 wants to merge 1 commit into
7as0nch:mainfrom
whoiswei114514:main
Open

增加了superMode#75
whoiswei114514 wants to merge 1 commit into
7as0nch:mainfrom
whoiswei114514:main

Conversation

@whoiswei114514

Copy link
Copy Markdown
  • 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
Copilot AI review requested due to automatic review settings June 17, 2026 07:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 thread src/upstream/debate.ts
Comment thread src/upstream/debate.ts
Comment thread src/upstream/debate.ts
Comment thread src/upstream/debate.ts
Comment thread src/upstream/debate.ts
Comment on lines +53 to +54
const DEBATER1_SYSTEM = [
"You are Debater 1 (Mimo-v2.5-pro1) in a strategy debate.",
Comment thread src/upstream/debate.ts
Comment on lines +67 to +68
const DEBATER2_SYSTEM = [
"You are Debater 2 (Mimo-v2.5-pro2) in a strategy debate.",
Comment thread src/upstream/debate.ts
Comment on lines +81 to +82
const ARBITRATOR_SYSTEM = [
"You are the Arbitrator (Mimo-v2.5-pro3) in a strategy debate.",
Comment thread src/upstream/debate.ts
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 thread src/upstream/debate.ts
Comment on lines +192 to +194
log.warn("debate round " + round + ": arbitrator returned unparseable output, treating as no consensus", {
preview: content.slice(0, 200),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants