Install
openclaw skills install dual-agent-debateRun 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...
openclaw skills install dual-agent-debateExecute scripts/dual_agent_debate.py to run the debate loop.
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"
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
OPENBRAIN_CONTEXT_TOOL).public.thoughts via MCP execute_sql unless --thoughts is provided.public.memories via MCP execute_sql.tools/call JSON-RPC shape; point OPENBRAIN_MCP_URL at your MCP HTTP endpoint.