/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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install dual-agent-debate - After installation, invoke the skill by name or use
/dual-agent-debate - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 294 downloads so far.
How do I install DualAgentDebate?
Run "/install dual-agent-debate" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is DualAgentDebate free?
Yes, DualAgentDebate is completely free (open-source). You can download, install and use it at no cost.
Which platforms does DualAgentDebate support?
DualAgentDebate is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created DualAgentDebate?
It is built and maintained by tvaloki (@tvaloki); the current version is v0.3.0.