当前位置: 首页 > Skill >

Roundtable Adaptive

Roundtable Adaptive

Roundtable Adaptive

自适应多模型AI圆桌论坛。可配置最多4个AI模型,进行2轮辩论,包含交叉批评和正式共识评分,需要配置。

2.9.1 2026.11.16 663
获取Skill文件查看使用说明
作 者:顾禾 许可证: 更新时间:2026.11.16
本文目录展开

Roundtable v2 — Adaptive Multi-Model Orchestrator

Trigger: roundtable [--mode] [prompt] from any channel your agent monitors. Output: Posted to your configured output channel (set ROUNDTABLE_OUTPUT_CHANNEL in your OpenClaw config, or results are posted back to the triggering channel). Panel agents: Persistent sessions (mode="session", thread=true) — stay alive in the Discord thread for follow-up questions. Meta-panel analysts and synthesis agent are one-shot (mode="run").

The orchestrator = COORDINATOR ONLY. Uses your default model unless overridden in panels.json. Never argues a position, never joins the panel.

Core principle: the Meta-Panel (4 premium models) designs the optimal WORKFLOW for the task — parallel debate, sequential pipeline, or hybrid — then the right agents execute it.

Configuration

Before using, set your output channel in panels.json (or the triggering channel is used):

{
  "output": {
    "channel": "discord",
    "target": "YOUR_CHANNEL_ID_HERE"
  }
}

If using Discord threads (optional — creates one thread per roundtable for clean organization):

{
  "output": {
    "channel": "discord",
    "target": "YOUR_CHANNEL_ID_HERE",
    "useThreads": true
  }
}

Without this config, results are posted directly to the channel where the command was issued.

Cost transparency

Component Cost per full run
Claude Opus (OAuth) Free
GPT-5.3 Codex (OAuth) Free
Gemini 3.1 Pro (Blockrun) ~$0.05
Grok 4 (Blockrun) ~$0.08
Total (full panel) ~$0.13–$0.50
Degraded mode (Claude only) Free

--quick flag halves cost (1 round only).

Setup

Minimum (degraded mode — free):

  1. Configure anthropic provider in openclaw.json (OAuth or API key)
  2. Optionally add openai-codex for GPT-5.3 Codex
  3. Done — Grok/Gemini slots fall back to Claude Sonnet

Full panel (adds Grok 4 + Gemini 3.1 Pro via Blockrun):

  1. Install Blockrun: openclaw plugins install @blockrun/clawrouter then openclaw gateway restart
  2. Fund the Blockrun wallet with USDC on Base (~$5-10). Address shown during install.
  3. Full panel costs ~$0.13–$0.50/run; Claude and GPT slots remain free via OAuth.

Results are saved to {workspace}/memory/roundtables/YYYY-MM-DD-slug.json (created automatically).

Trigger Patterns

Optional: auto-trigger a dedicated channel

You can configure a Discord channel as a roundtable-only channel in your AGENTS.md:

Any message in channel [YOUR_CHANNEL_ID] → treat as a roundtable topic automatically.
No prefix needed. Message → auto-detect mode → create thread → spawn orchestrator.

This is entirely optional — the explicit roundtable command works from any channel.

Explicit trigger (any channel)

Explicit trigger (any channel)

  • roundtable [prompt] — auto-detect mode, full flow
  • roundtable --debate [prompt] — force parallel debate mode
  • roundtable --build [prompt] — force build/coding mode
  • roundtable --redteam [prompt] — force adversarial mode
  • roundtable --vote [prompt] — force decision mode
  • roundtable --quick [prompt] — skip meta-panel, use default panel for mode, 1 round only
  • roundtable --panel model1,model2,model3 [prompt] — manual panel override, skip meta-panel
  • roundtable --validate [prompt] — add Round 3 agent validation of synthesis
  • roundtable --no-search [prompt] — skip web search (use only for purely theoretical/abstract topics)

Step -1: Create a Thread (FIRST ACTION)

Before anything else, create a thread in your configured channel and save the thread ID.

-1a) Dedup check (REQUIRED)

Avoid double-spawn if the same topic is triggered twice.

  1. Normalize topic string:
    • lowercase
    • trim
    • collapse multiple spaces
    • remove trailing punctuation
  2. List recent threads in the target channel:
message(action='thread-list', channel='discord', channelId='[CHANNEL_ID]', limit=25)
  1. If an existing active thread title matches normalized topic (+ same mode tag like [[DEBATE]]) created in last 24h:
    • reuse that thread (THREAD_ID = existing_thread_id)
    • post: ♻️ Duplicate topic detected — reusing existing thread.
    • do NOT spawn a new orchestrator/panel
  2. If no match: create a new thread.

-1b) Create thread (if no dedup hit)

message(
  action = 'thread-create',
  channel = '[your configured channel]',
  channelId = '[CHANNEL_ID from user config]',
  threadName = '🎯 [topic — max 8 words] [[MODE]]',
  message = '**Panel:** [model list]n**Mode:** [mode] | **Rounds:** [N]n⏳ Analysis in progress...'
)

Save the returned thread ID as THREAD_ID.

All subsequent message() calls use target = THREAD_ID, NOT the channel ID.

If thread creation fails or channel is not configured: fall back to posting directly in the active channel.

Step 0: Web Search Grounding (always first)

Run a web search on the topic before anything else — meta-panel and all agents will have current context.

web_search(query = prompt, count = 5)

Timeout policy: If web_search returns no result or errors within ~10s, do NOT block — continue immediately with CURRENT_CONTEXT = "No real-time data available (search failed or timed out).". The roundtable proceeds on model knowledge only.

Caching: If re-running the same topic within the same session, reuse the prior CURRENT_CONTEXT block — do not re-search.

Summarize results into a CURRENT_CONTEXT block (max 250 words):

  • Key facts, recent developments, relevant data points
  • Date of search
  • If no useful results found: note "No relevant real-time data found" and continue

This block is injected into:

  1. The meta-panel prompt (so they design the workflow with current context)
  2. Every Round 1 agent prompt (so all panelists argue from the same updated baseline)

Step 0b: Meta-Panel — Workflow Design

Skip if: --panel flag used, OR --quick flag used.

Spawn 4 premium meta-analysts in parallel

Read panels.json → meta.models. For each:

sessions_spawn(
  task = filled prompts/meta-panel.md,
  model = model_id,
  mode = "run",
  label = "rt-meta-[A/B/C/D]",
  runTimeoutSeconds = 90
)

0b. Synthesize workflow from 4 recommendations

After collecting all meta responses, the orchestrator synthesizes the final workflow:

  1. Workflow type: majority vote among 4 recommendations

    • Tie → prefer hybrid (more flexible)
  2. Stage composition: tally model recommendations per stage

    • For each stage position, pick the most-recommended model
    • If a model is not in agents.defaults.models allowlist → skip, use next
    • If a model is your orchestrator's model → skip (reserved for the orchestrator, never a panelist)
  3. Rounds: median of recommendations (round up if tie) — hard cap at 3 max, always

  4. Synthesis model: most-recommended premium model not on the main panel

  5. Log the decision (include in output header):

    "Meta-panel designed workflow: [type]. Stages: [N]. Panel: [models]. Synthesis: [model]."

0c. Workflow types explained

parallel_debate — classic roundtable

  • All agents in Stage 1 work independently, same prompt
  • Round 2: cross-critique
  • Best for: debates, opinions, risk analysis, decision-making

sequential — output chains between stages

  • Stage 1 agents produce outputs (drafts, code, research)
  • Stage 2 agents receive Stage 1 outputs and review/validate/improve
  • Best for: coding (write → review), research (collect → synthesize), creative (draft → refine)
  • Round 2 within Stage 1 still possible; Stage 2 is a separate pass

hybrid — parallel within stages, sequential between

  • Stage 1: N agents work in parallel on different aspects
  • Stage 2: 1-2 premium agents receive ALL Stage 1 outputs and produce integrated output
  • Best for: complex analysis (parallel research → premium synthesis)

0d. Panel degradation rule

If any agent fails and fallback is SAME MODEL FAMILY → log: ⚠️ PANEL DEGRADED — [role] substituted [original] with [fallback] (same family: [family])

Always surface this in META section of final output with actionable guidance:

  • If degraded due to missing blockrun → "Action: Start Blockrun at localhost:8402 for full panel, or use --panel budget for stable 2-model run"
  • If degraded due to model not in allowlist → "Action: Add [model] to agents.defaults.models in openclaw.json"
  • If degraded due to API error → "Action: Check provider API key / quota, then retry"

Step 1: Detect Mode (if no flag given)

Mode Keywords
debate pros/cons, tradeoff, should we, ethics, compare, opinion, better
build implement, code, architecture, build, design, develop, create
redteam attack, vulnerability, failure, risk, break, threat, exploit
vote choose, decide, which one, best option, select, recommend between
default anything else

Step 2: Execute Workflow

parallel_debate (standard)

Round 1: Spawn all panel agents in parallel as persistent thread-bound sessions.

sessions_spawn(
  task = filled prompts/round1.md,
  model = model_id,
  mode = "session",        ← persistent — stays alive in the thread
  label = "rt-[role]",
  thread = true            ← bound to the thread from Step -1
)
  • Save session keys: { "attacker": sessionKey, "defender": sessionKey, ... }
  • Each agent writes their full response + SELF-DIGEST (last section)
  • Collect all self-digests
  • ⚠️ Agents stay alive — users can address them directly for follow-up questions

Round 2 (if rounds ≥ 2): Send cross-critique prompt to each existing session via sessions_send.

  • Do NOT re-spawn — reuse session keys from Round 1
  • [SELF_DIGEST] = this agent's own digest from Round 1
  • [PEER_DIGESTS] = other agents' digests (labeled with role)
  • Extract AGREEMENT SCORES from each response

Round 3 (if --validate): See Step 4.

sequential

Stage 1: Spawn agents in parallel as persistent sessions (mode="session", thread=true).

  • Use standard prompts/round1.md.
  • Round 2 cross-critique via sessions_send to existing sessions (no re-spawn).
  • Collect full Stage 1 outputs for Stage 2.

Stage 2: Spawn new persistent sessions (mode="session", thread=true).

  • Build prompt: prompts/round1.md base + prepend Stage 1 outputs as context
  • Label: "STAGE 1 OUTPUT from [Role]: [full output]"
  • Stage 2 agents review/validate/improve Stage 1 work and write SELF-DIGESTs

hybrid

Stage 1: Parallel persistent sessions (mode="session", thread=true), each with a different sub-task.

  • Customize Round 1 prompt to specify each agent's sub-task:

    "Your specific task for this stage: [task from workflow design]"

  • Agents write SELF-DIGESTs

Stage 2: 1-2 new persistent sessions (mode="session", thread=true) with all Stage 1 outputs embedded.

  • Build prompt: prompts/round1.md base + "You are integrating and synthesizing the work of multiple agents. Their outputs: [all Stage 1 outputs]"
  • Stage 2 produces the integrated output

Step 3: Consensus Scoring

After Round 2 (parallel_debate) or Stage 2 (sequential/hybrid):

Extract AGREEMENT SCORES from each agent's Round 2 response. Build score matrix: { agent_role: { peer_role: score_1_to_5 } } Consensus % = (sum of all scores / (n_scores × 5)) × 100 If no Round 2 scores (quick mode / sequential): omit consensus %, mark as "N/A"

Note on Round 3: Round 3 validation uses ACCURATE/PARTIALLY/INACCURATE — this is a separate metric from consensus %. Round 3 checks synthesis fidelity, not inter-agent agreement. Do NOT mix these two metrics. Consensus % comes only from Round 2 scores; Round 3 result appears separately in the META block as Validated: yes/no/partial.

Step 4: Round 3 — Validation (--validate flag only)

When to recommend --validate to the user:

  • Consensus % < 40% (high disagreement — synthesis risks distortion)
  • Redteam mode (adversarial stakes — synthesis must be bulletproof)
  • Build mode with 3+ Stage 2 models (complex integration, easy to misrepresent)
  • User explicitly mentions "high-stakes", "final decision", or "publishing this"

When NOT to use it: Quick mode, debate on subjective topics, or when time matters more than precision.

Draft synthesis first (Step 5 below), but do NOT post.

Spawn validation agents:

sessions_spawn(
  task = filled prompts/round3-validation.md,
  model = original agent model,
  label = "rt-r3-validate-[role]",
  runTimeoutSeconds = 60
)

Tally:

  • 2+ INACCURATE → rewrite synthesis incorporating corrections
  • 1 INACCURATE → note in META: ⚠️ [Role] flagged misrepresentation: [correction summary]
  • All ACCURATE/PARTIAL → mark Validated: yes or Validated: partial in META

Step 5: Synthesis — Spawned Neutral Model

Never write synthesis yourself.

sessions_spawn(
  task = filled prompts/final-synthesis.md,
  model = [synthesis model from meta-panel recommendation, or anthropic/claude-opus-4-6 as default],
  label = "rt-synthesis",
  mode = "run",
  runTimeoutSeconds = 180
)

Fill prompts/final-synthesis.md placeholders:

  • [ROUND1_SUMMARIES] → all self-digests: "[ROLE] ([model]): [digest]"
  • [ROUND2_SUMMARIES] → critiques: "[ROLE] criticized [peer]'s [claim] because [reason]"
  • [CONSENSUS_SCORES] → full score matrix + calculated %
  • [DISCORD_THREAD_ID] → the THREAD_ID from Step -1 (synthesis agent posts here)

Post to Discord using THREAD_ID from Step -1 (not the channel ID). All round outputs and the final synthesis go into the same thread.

Step 6: Persist Results

Save to {workspace}/memory/roundtables/YYYY-MM-DD-[topic-slug].json:

{
  "date": "YYYY-MM-DD",
  "topic": "[prompt]",
  "mode": "[mode]",
  "workflow_type": "parallel_debate|sequential|hybrid",
  "stages": [{ "model": "...", "role": "...", "task": "..." }],
  "meta_panel_recommendation": "[summary of meta votes]",
  "panel_degraded": false,
  "panel_degradation_notes": "",
  "consensus_pct": "XX% or N/A",
  "synthesis_model": "[model]",
  "validated": "yes|no|partial",
  "elapsed_time_sec": 0,
  "synthesis": "[final synthesis text]"
}

Also append one JSONL line to {workspace}/memory/roundtables/scorecard.jsonl with: ts, topic, mode, workflow_type, elapsed_time_sec, consensus_pct, validated, panel_degraded.

Edge Cases

Situation Action
Web search fails Continue with note "No real-time context available" in all prompts
--no-search flag Skip Step 0 web search entirely
Meta-panel all fail Use default panel for detected mode, log warning
--quick Skip meta-panel + round 2. Always uses parallel_debate workflow. Spawns default panel for detected mode (3 models). Synthesizes after round 1 only.
--panel override Skip meta-panel, use specified models, default to parallel_debate
Fallback = same family Continue + log PANEL DEGRADED warning in META
Both model and fallback fail Skip agent, note in META — do not wait, do not block
No blockrun configured Warn user: "Blockrun not available. Using budget panel. Full panel requires Blockrun at localhost:8402." Auto-switch to budget profile from panels.json.
Agent timeout (any round) FAIL-CONTINUE: treat as absent, mark [TIMEOUT] in META, proceed with surviving agents
Agent fails mid-Round 2 Use its Round 1 digest as final position, omit its scores from consensus calculation
Synthesis agent fails Orchestrator writes synthesis, note: "Synthesis by orchestrator (bias risk — no neutral model available)"
Stage 2 agent fails Note in META, synthesize with Stage 1 only
0 agents respond Report failure, suggest retry
1 agent responds Skip Round 2 (no peers), synthesize from Round 1 only, mark consensus "N/A"
--context-from SLUG Load {workspace}/memory/roundtables/[slug].json, extract synthesis field, prepend to CURRENT_CONTEXT as "PRIOR ROUNDTABLE CONTEXT: [synthesis]". If file not found: warn and continue without prior context.

Placeholder Contract

When filling prompt templates, apply this rule for every [PLACEHOLDER]:

Placeholder If missing/failed Action
[CURRENT_CONTEXT] Web search failed Insert: "No real-time context available."
[SELF_DIGEST] Agent timed out R1 Skip agent entirely from R2
[PEER_DIGESTS] All peers failed Skip R2, go to synthesis directly
[ROUND1_SUMMARIES] No R1 outputs Abort with error: "0 agents responded"
[ROUND2_SUMMARIES] Quick mode / no R2 Insert: "No cross-critique (quick mode or single round)"
[CONSENSUS_SCORES] No scores extracted Insert: "N/A — scores not available"
[SYNTHESIS_DRAFT] Synthesis failed Skip R3, note in META

Never leave a [PLACEHOLDER] unfilled in a prompt. Unfilled placeholders confuse models and produce garbage output.

Score Parsing (Round 2)

Agents write scores in free text. Extract scores with this heuristic:

  1. Look for the SCORES: block
  2. Match pattern: - [Role]: X/5 — extract integer X (1–5)
  3. If no clean integer found, scan for digit 1–5 nearest to the role name
  4. If still ambiguous → assign 3 (neutral) and note [SCORE INFERRED] in META Do NOT crash the workflow on a malformed score block.

Quick Reference: Default Panels (fallback if meta-panel fails)

debate:  [opus-4.6, gpt-5.3-codex, gemini-3.1-pro, grok-4] → Advocate / Devil's Advocate / Analyst / Contrarian
build:   [opus-4.6, gemini-3.1-pro, grok-4, gpt-5.3-codex] → Architect / Reviewer / Engineer / Implementer
redteam: [opus-4.6, gemini-3.1-pro, grok-4, gpt-5.3-codex] → Defender / Analyst / Attacker / Red Teamer
vote:    [opus-4.6, gemini-3.1-pro, grok-4, gpt-5.3-codex]  → 4-way vote panel
(all via blockrun/ prefix — see panels.json for exact model IDs and fallbacks)

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Roundtable v2 — Adaptive Multi-Model Orchestrator
    • Configuration
    • Cost transparency
    • Setup
    • Trigger Patterns
      • Optional: auto-trigger a dedicated channel
      • Explicit trigger (any channel)
      • Explicit trigger (any channel)
    • Step -1: Create a Thread (FIRST ACTION)
      • -1a) Dedup check (REQUIRED)
      • -1b) Create thread (if no dedup hit)
    • Step 0: Web Search Grounding (always first)
    • Step 0b: Meta-Panel — Workflow Design
      • Spawn 4 premium meta-analysts in parallel
      • 0b. Synthesize workflow from 4 recommendations
      • 0c. Workflow types explained
      • 0d. Panel degradation rule
    • Step 1: Detect Mode (if no flag given)
    • Step 2: Execute Workflow
      • parallel_debate (standard)
      • sequential
      • hybrid
    • Step 3: Consensus Scoring
    • Step 4: Round 3 — Validation (--validate flag only)
    • Step 5: Synthesis — Spawned Neutral Model
    • Step 6: Persist Results
    • Edge Cases
      • Placeholder Contract
      • Score Parsing (Round 2)
    • Quick Reference: Default Panels (fallback if meta-panel fails)
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期