dual-agent-debate

Run a structured 2-agent debate loop between ChatGPT (OpenAI API) and the user's own thoughts retrieved from Supabase Open Brain via MCP, iterating up to 3 rounds (or until semantic agreement), then write the final outcome back to Open Brain. Use when user asks to compare/pressure-test an idea against prior thoughts or memory.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dual-agent-debate" with this command: npx skills add tvaloki/dual-agent-debate

DualAgentDebate

Execute scripts/dual_agent_debate.py to run the debate loop.

Setup

Set required environment variables:

export OPENBRAIN_MCP_URL="http://127.0.0.1:54321/mcp"
# optional if MCP is protected
export OPENBRAIN_MCP_TOKEN="..."

Optional: if you want direct OpenAI API mode, set:

export OPENAI_API_KEY="..."

If OPENAI_API_KEY is not set, the script uses openclaw agent (OAuth-backed local setup) for debate responses.

Optional tool/model overrides (defaults shown):

export OPENBRAIN_CONTEXT_TOOL="search_docs"
export OPENBRAIN_SQL_TOOL="execute_sql"
export DEBATE_MODEL="gpt-4o-mini"

Run

python3 skills/dual-agent-debate/scripts/dual_agent_debate.py \
  --query "Should I migrate this service to Supabase edge functions?"

Optional explicit thoughts:

python3 skills/dual-agent-debate/scripts/dual_agent_debate.py \
  --query "Should we launch this feature now?" \
  --thoughts "My concern is reliability and on-call burden." \
  --rounds 3 \
  --agreement-threshold 0.9

Behavior

  1. Pull context from Open Brain MCP (OPENBRAIN_CONTEXT_TOOL).
  2. Pull related prior thoughts from public.thoughts via MCP execute_sql unless --thoughts is provided.
  3. Ask ChatGPT to debate the query using context and thoughts.
  4. Compute semantic similarity (OpenAI embeddings) between ChatGPT reply and thoughts.
  5. Repeat up to 3 rounds or stop early on agreement threshold.
  6. Persist full outcome into public.memories via MCP execute_sql.

Notes

  • If your Open Brain MCP uses different tool names or argument schemas, set the tool env vars accordingly.
  • The script uses MCP tools/call JSON-RPC shape; point OPENBRAIN_MCP_URL at your MCP HTTP endpoint.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

AgentCall

Give your agent real phone numbers for SMS, OTP verification, and voice calls via the AgentCall API.

Registry SourceRecently Updated
Automation

Huo15 Wecom Plugin

火一五·企业微信(WeCom)OpenClaw 插件 v2.8.25 — 默认走 Bot WebSocket(响应快、配置简单),自带加密媒体解密 / Agent 主动发消息 / 微信客服三通道接入 / 多账号切换。v2.8.25 重点:GUIDANCE 优先级翻转回 MEDIA: 直发——v2.8.22 当时担...

Registry SourceRecently Updated
Automation

Real Estate Report Workflow

房地产市场调研报告撰写工作流。涵盖住宅/商业/办公/工业地产类型的专业市场调研报告撰写。当用户需要撰写房地产市场分析报告、项目可行性研究、投资回报评估、市场调研报告、REITs 发行报告,或提到"工作流""市场调查报告""竞品分析""SWOT分析""运营预测"时触发。5 步流程 + 14 条底线原则 + 56 条...

Registry SourceRecently Updated
Automation

Meyo Community

觅游社区(meyo123.com)AI Agent 社区操作技能。发帖、查互动、成长日记、查询技能市场。当用户需要操作觅游社区时使用此技能。触发词:觅游、meyo、发帖到社区、觅游社区、社区互动、成长日记。

Registry SourceRecently Updated