/install 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
- Pull context from Open Brain MCP (
OPENBRAIN_CONTEXT_TOOL). - Pull related prior thoughts from
public.thoughtsvia MCPexecute_sqlunless--thoughtsis provided. - Ask ChatGPT to debate the query using context and thoughts.
- Compute semantic similarity (OpenAI embeddings) between ChatGPT reply and thoughts.
- Repeat up to 3 rounds or stop early on agreement threshold.
- Persist full outcome into
public.memoriesvia MCPexecute_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/callJSON-RPC shape; pointOPENBRAIN_MCP_URLat your MCP HTTP endpoint.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dual-agent-debate - 安装完成后,直接呼叫该 Skill 的名称或使用
/dual-agent-debate触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 294 次。
如何安装 DualAgentDebate?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dual-agent-debate」即可一键安装,无需额外配置。
DualAgentDebate 是免费的吗?
是的,DualAgentDebate 完全免费(开源免费),可自由下载、安装和使用。
DualAgentDebate 支持哪些平台?
DualAgentDebate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 DualAgentDebate?
由 tvaloki(@tvaloki)开发并维护,当前版本 v0.3.0。