Repository navigation
feat(openclaw): add broadcast groups with multi-model agents #817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d279f7d
8eb9ba5
301b2d5
47f2368
ac3981e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -196,9 +196,166 @@ | |
| { | ||
| "id": "main", | ||
| "default": true | ||
| }, | ||
| { | ||
| "id": "code-reviewer-opus", | ||
| "name": "Code Reviewer (Opus)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/claude-opus-4-6", | ||
| "fallbacks": [ | ||
| "cliproxy/glm-4.7" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "code-reviewer-sonnet", | ||
| "name": "Code Reviewer (Sonnet)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/claude-sonnet-4-5-20250929", | ||
| "fallbacks": [ | ||
| "cliproxy/glm-4.7" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "code-reviewer-glm", | ||
| "name": "Code Reviewer (GLM)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/glm-4.7" | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "code-reviewer-gpt-codex", | ||
| "name": "Code Reviewer (GPT Codex)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/gpt-5.3-codex", | ||
| "fallbacks": [ | ||
| "cliproxy/glm-4.7" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "code-reviewer-gemini", | ||
| "name": "Code Reviewer (Gemini Pro)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/gemini-3-pro-preview", | ||
| "fallbacks": [ | ||
| "cliproxy/glm-4.7" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
|
Comment on lines
+200
to
+281
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Five code-reviewer agents share the same workspace while running in parallel — potential file conflicts. All five Consider giving each agent a distinct workspace (e.g., Example diff for unique workspaces {
"id": "code-reviewer-opus",
"name": "Code Reviewer (Opus)",
- "workspace": "__HOME__/agents/code-review",
+ "workspace": "__HOME__/agents/code-review/opus",
...
},
{
"id": "code-reviewer-sonnet",
"name": "Code Reviewer (Sonnet)",
- "workspace": "__HOME__/agents/code-review",
+ "workspace": "__HOME__/agents/code-review/sonnet",
...
},Apply the same pattern for 🤖 Prompt for AI Agents |
||
| { | ||
| "id": "code-formatter", | ||
| "name": "Code Formatter", | ||
| "workspace": "__HOME__/agents/formatter", | ||
| "model": { | ||
| "primary": "cliproxy/glm-4.7" | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "write" | ||
| ] | ||
| } | ||
| }, | ||
|
Comment on lines
+282
to
+295
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Consider either:
Also applies to: 345-358 🤖 Prompt for AI Agents |
||
| { | ||
| "id": "security-scanner", | ||
| "name": "Security Scanner", | ||
| "workspace": "__HOME__/agents/security", | ||
| "model": { | ||
| "primary": "cliproxy/claude-opus-4-6", | ||
| "fallbacks": [ | ||
| "cliproxy/claude-sonnet-4-5-20250929" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "test-coverage", | ||
| "name": "Test Coverage", | ||
| "workspace": "__HOME__/agents/testing", | ||
| "model": { | ||
| "primary": "cliproxy/glm-4.7" | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "docs-checker", | ||
| "name": "Docs Checker", | ||
| "workspace": "__HOME__/agents/docs", | ||
| "model": { | ||
| "primary": "cliproxy/claude-sonnet-4-5-20250929", | ||
| "fallbacks": [ | ||
| "cliproxy/glm-4.7" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read" | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "broadcast": { | ||
| "strategy": "parallel", | ||
| "120363425148909388@g.us": [ | ||
| "code-reviewer-opus", | ||
| "code-reviewer-sonnet", | ||
| "code-reviewer-glm", | ||
| "code-reviewer-gpt-codex", | ||
| "code-reviewer-gemini", | ||
| "code-formatter", | ||
| "security-scanner", | ||
| "test-coverage", | ||
| "docs-checker" | ||
| ] | ||
| }, | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| "messages": { | ||
| "queue": { | ||
| "mode": "interrupt" | ||
|
|
@@ -249,7 +406,7 @@ | |
| }, | ||
| "sendReadReceipts": true, | ||
| "ackReaction": { | ||
| "emoji": "\ud83d\udc40", | ||
| "emoji": "👀", | ||
| "direct": true, | ||
| "group": "mentions" | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -196,9 +196,166 @@ | |
| { | ||
| "id": "main", | ||
| "default": true | ||
| }, | ||
| { | ||
| "id": "code-reviewer-opus", | ||
| "name": "Code Reviewer (Opus)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/__CLAUDE_OPUS__", | ||
| "fallbacks": [ | ||
| "cliproxy/__GLM__" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "code-reviewer-sonnet", | ||
| "name": "Code Reviewer (Sonnet)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/__CLAUDE_SONNET__", | ||
| "fallbacks": [ | ||
| "cliproxy/__GLM__" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "code-reviewer-glm", | ||
| "name": "Code Reviewer (GLM)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/__GLM__" | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "code-reviewer-gpt-codex", | ||
| "name": "Code Reviewer (GPT Codex)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/__GPT_CODEX__", | ||
| "fallbacks": [ | ||
| "cliproxy/__GLM__" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "code-reviewer-gemini", | ||
| "name": "Code Reviewer (Gemini Pro)", | ||
| "workspace": "__HOME__/agents/code-review", | ||
| "model": { | ||
| "primary": "cliproxy/__GEMINI_PRO__", | ||
| "fallbacks": [ | ||
| "cliproxy/__GLM__" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
|
Comment on lines
+200
to
+281
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same shared-workspace concern applies here — give each parallel code-reviewer a distinct workspace. All five 🤖 Prompt for AI Agents |
||
| { | ||
| "id": "code-formatter", | ||
| "name": "Code Formatter", | ||
| "workspace": "__HOME__/agents/formatter", | ||
| "model": { | ||
| "primary": "cliproxy/__GLM__" | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "write" | ||
| ] | ||
| } | ||
| }, | ||
|
Comment on lines
+282
to
+295
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This agent can modify files while 8 other agents concurrently read or exec against the same codebase. Either sequence Also applies to: 345-358 🤖 Prompt for AI Agents |
||
| { | ||
| "id": "security-scanner", | ||
| "name": "Security Scanner", | ||
| "workspace": "__HOME__/agents/security", | ||
| "model": { | ||
| "primary": "cliproxy/__CLAUDE_OPUS__", | ||
| "fallbacks": [ | ||
| "cliproxy/__CLAUDE_SONNET__" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "test-coverage", | ||
| "name": "Test Coverage", | ||
| "workspace": "__HOME__/agents/testing", | ||
| "model": { | ||
| "primary": "cliproxy/__GLM__" | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read", | ||
| "exec" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "id": "docs-checker", | ||
| "name": "Docs Checker", | ||
| "workspace": "__HOME__/agents/docs", | ||
| "model": { | ||
| "primary": "cliproxy/__CLAUDE_SONNET__", | ||
| "fallbacks": [ | ||
| "cliproxy/__GLM__" | ||
| ] | ||
| }, | ||
| "tools": { | ||
| "allow": [ | ||
| "read" | ||
| ] | ||
| } | ||
| } | ||
|
Comment on lines
+199
to
342
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New agents may lose default fallbacks; The
Consider explicitly setting 🤖 Prompt for AI Agents |
||
| ] | ||
| }, | ||
| "broadcast": { | ||
| "strategy": "parallel", | ||
| "120363425148909388@g.us": [ | ||
| "code-reviewer-opus", | ||
| "code-reviewer-sonnet", | ||
| "code-reviewer-glm", | ||
| "code-reviewer-gpt-codex", | ||
| "code-reviewer-gemini", | ||
| "code-formatter", | ||
| "security-scanner", | ||
| "test-coverage", | ||
| "docs-checker" | ||
| ] | ||
| }, | ||
|
Comment on lines
+345
to
+358
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: In OpenClaw, these three pieces interact like this:
Implication: with broadcast-parallel + Sources: Broadcast Groups docs [1], Queue/Command Queue docs [2]. 🏁 Script executed: # Check if there's OpenClaw documentation or README in the repo
find . -type f -name "*.md" | head -20Repository: shunkakinoki/dotfiles Length of output: 269 🏁 Script executed: # Look for any OpenClaw-related code or documentation
git ls-files | grep -i openclaw | head -30Repository: shunkakinoki/dotfiles Length of output: 264 🏁 Script executed: # Check the actual configuration file for context around lines 214-221
head -250 config/openclaw/openclaw.tpl.json | tail -40Repository: shunkakinoki/dotfiles Length of output: 816 🏁 Script executed: # Search for documentation or code about broadcast strategy and queue modes
rg -i "broadcast|queue.*mode" --type json -A 2 -B 2 | head -100Repository: shunkakinoki/dotfiles Length of output: 610 Parallel broadcast with Every message in group
🤖 Prompt for AI Agents |
||
| "messages": { | ||
| "queue": { | ||
| "mode": "interrupt" | ||
|
|
@@ -249,7 +406,7 @@ | |
| }, | ||
| "sendReadReceipts": true, | ||
| "ackReaction": { | ||
| "emoji": "\ud83d\udc40", | ||
| "emoji": "👀", | ||
| "direct": true, | ||
| "group": "mentions" | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GLM-as-primary agents have no fallback — if GLM is down, these agents fail outright.
code-reviewer-glm,code-formatter, andtest-coverageall setcliproxy/glm-4.7asprimarywithout specifyingfallbacks. Depending on how OpenClaw merges partialmodeloverrides withagents.defaults.model:fallbacks: ["cliproxy/glm-4.7"]from defaults — self-referential and useless.Add an explicit non-self-referential fallback (e.g., Sonnet or Haiku) for these agents.
Example fix for code-reviewer-glm
{ "id": "code-reviewer-glm", "name": "Code Reviewer (GLM)", "workspace": "__HOME__/agents/code-review", "model": { - "primary": "cliproxy/glm-4.7" + "primary": "cliproxy/glm-4.7", + "fallbacks": ["cliproxy/claude-sonnet-4-5-20250929"] }, "tools": { "allow": ["read", "exec"] } },Apply similarly to
code-formatterandtest-coverage.Also applies to: 249-257, 268-276
🤖 Prompt for AI Agents