From multi-ai-reviewer
Discuss a topic with Codex to brainstorm and converge on a solution
How this command is triggered — by the user, by Claude, or both
Slash command
/multi-ai-reviewer:discuss-with-codex <topic or question>This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
## Discuss with Codex Have a multi-turn discussion with Codex CLI to brainstorm, debate, and converge on a solution. Use this during planning phases when you need another AI brain to hash out ideas. Communicate with the user EXCLUSIVELY in 繁體中文 (台灣用語). Communicate with Codex in English. The discussion topic comes from `$ARGUMENTS`. If empty, ask the user what they want to discuss. ### STEP 1: Frame the Discussion Read relevant files if the topic references specific code or architecture. Build enough context to have an informed discussion. Formulate an opening prompt for Codex. The pro...
Have a multi-turn discussion with Codex CLI to brainstorm, debate, and converge on a solution. Use this during planning phases when you need another AI brain to hash out ideas.
Communicate with the user EXCLUSIVELY in 繁體中文 (台灣用語). Communicate with Codex in English.
The discussion topic comes from $ARGUMENTS. If empty, ask the user what they want to discuss.
Read relevant files if the topic references specific code or architecture. Build enough context to have an informed discussion.
Formulate an opening prompt for Codex. The prompt should:
Send the opening prompt to Codex:
codex exec "TOPIC_CONTEXT_AND_QUESTION" --json 2>/dev/null | jq -rs '
"=== CODEX REASONING ===\n"
+ ([.[] | select(.item.type == "reasoning") | .item.text] | unique | join("\n"))
+ "\n\n=== CODEX RESPONSE ===\n"
+ ([.[] | select(.item.type == "agent_message")] | last | .item.text)
'
Use timeout of 300000ms.
This creates a resumable session for follow-up rounds.
After receiving Codex's response:
Resume the Codex session with your follow-up:
codex exec resume --last "YOUR_FOLLOW_UP_RESPONSE" --json 2>/dev/null | jq -rs '
"=== CODEX REASONING ===\n"
+ ([.[] | select(.item.type == "reasoning") | .item.text] | unique | join("\n"))
+ "\n\n=== CODEX RESPONSE ===\n"
+ ([.[] | select(.item.type == "agent_message")] | last | .item.text)
'
Use timeout of 300000ms.
After each round, assess whether the discussion has converged:
Target 2-5 rounds total. After 5 rounds, force convergence — synthesize the best ideas from both sides even if disagreements remain.
Present the discussion results to the user in 繁體中文:
## 🧠 討論結論
### 討論主題
[原始問題/主題]
### 討論過程摘要
- 共進行 N 輪討論
- [1-2 句話描述討論如何演進]
### 共識
[Claude 和 Codex 都同意的觀點和方案]
### 分歧
[兩方有不同看法的地方,以及各自的理由]
### 建議方案
[綜合兩方意見後的最終建議,包含:]
- **方案描述**: [具體做法]
- **為什麼選這個方案**: [關鍵理由]
- **需要注意的風險/取捨**: [重要的 trade-offs]
### 替代方案
[如果有值得考慮的替代方案,列出來]
After presenting, ask the user if they want to:
--json 2>/dev/null | jq ... to extract output. Never use plain 2>/dev/null alone.codex exec resume --last to maintain conversation context.agent_message (final response) and reasoning (thinking summaries, deduplicated via unique).npx claudepluginhub appleternity/multi-ai-reviewer --plugin multi-ai-reviewer