← 返回
沟通协作 中文

DualAgentDebate

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 r...
在 ChatGPT (OpenAI API) 与通过 MCP 从 Supabase Open Brain 获取的用户自身思考之间运行结构化的2代理辩论循环,最多迭代3轮...
tvaloki
沟通协作 clawhub v0.3.0 1 版本 99819.2 Key: 无需
★ 0
Stars
📥 552
下载
💾 14
安装
1
版本
#latest

概述

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.

版本历史

共 1 个版本

  • v0.3.0 当前
    2026-03-30 15:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,680
ai-intelligence

DualAgentSolver

tvaloki
运行双代理协作问题解决工作流,其中一个代理是主要求解器,第二个代理质疑假设、审查逻辑并提供替代观点,以增强解决方案质量。
★ 1 📥 504
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,421