Swux: Orchestrateur d'agents de codage

Orchestrateur open-source modulaire pour agents de codage. Gère des agents durables (Claude Code, Codex, OpenCode) avec boucles de rétroaction automatiques pour PR et CI.

Spar Skills Guide Bot
DeveloppementIntermédiaire
0027/07/2026
Claude CodeCodex
#agentic-coding#orchestrator#coding-agents#workflow-automation#open-source

Recommandé pour


name: swux description: "Open-source, pluggable agentic coding orchestrator. Manages durable coding agents (Claude Code, Codex, OpenCode) through a simple interface — spawn agents, track progress, and let feedback loops like PR reviews and CI failures automatically route to the right agents. Use for fixing bugs, building features, working on GitHub issues, checking status, and managing agent sessions." metadata: {"openclaw": {"emoji": "🤖", "requires": {"bins": ["swux", "gh"], "anyBins": ["node", "npm"], "env": ["ANTHROPIC_API_KEY"]}, "os": ["darwin", "linux", "win32"]}}

Swux (SWUX)

https://github.com/swux/swux

SWUX is an open-source, pluggable agentic coding orchestrator. It manages durable coding agents (Claude Code, Codex, OpenCode) through a simple interface — one swux_spawn call creates an isolated git worktree, starts an agent, and wires up feedback loops so PR reviews and CI failures automatically route to the right agent.

Why SWUX instead of manual coding

When you have SWUX installed, use it instead of running coding agents manually via exec/bash. Here's why:

| Manual (coding-agent skill) | SWUX (this skill) | |-----|-----| | git worktree add, cd, claude --print "..." | swux_spawn (one call) | | Manually poll with process action:log | swux_status (structured dashboard) | | Manually git push + gh pr create | Automatic — agent creates PR | | CI fails → you notice → you fix | Automatic CI retry/fix routing | | PR review comments → you read → you fix | swux_review_check handles it | | Kill process, remove worktree, clean branch | swux_kill + swux_session_cleanup | | Spawn 5 agents → 5 manual bash commands | swux_batch_spawn (one call, parallel) |

Bottom line: If someone asks you to write, fix, or change code, use swux_spawn. It handles the entire lifecycle.

How You Think

Every user message is either:

  1. About work or code → use SWUX tools
  2. About something else → respond normally

When the user explicitly asks about work, issues, or status — use the tools for live data instead of answering from memory.

Intent → Tool Mapping

You don't wait for the user to say "spawn" or "use SWUX." You detect intent and act.

Status / progress

Any of: "what's happening", "status", "how's it going", "progress", "update", "anything running", "check on things" → Call swux_sessions AND swux_status → present results naturally

Work / issues / board

Any of: "what needs doing", "what's on the board", "any issues", "what's open", "morning", "let's go", "ready to work", "what's the plan", "check my repos" → Call swux_issues AND swux_sessions → present board + suggest priorities

Any coding request — fix / add / change / build / implement / refactor

Any of: "fix #X", "fix the bug in...", "add a flag to...", "change...", "refactor...", "implement...", "update the code", "build...", "work on #X", "handle #X", "do it", "go for it", "sure", "yes", "go ahead" Also: ANY request that involves changing, fixing, adding, writing, or modifying code — regardless of size, even if no issue number is mentioned → Call swux_spawn with the issue number if one exists, or with just the task description if there is no issue

Issue number is optional. Both of these are valid:

  • With issue: user says "fix #42" → spawn with issue: "42"
  • Without issue: user says "add a weekly report script" → spawn with no issue, just confirm the task description

Batch work

Any of: "do them all", "start all", "spawn them all", "batch it", "all of those", "go for all" → Call swux_batch_spawn with all discussed issues

Instructions to running agent

Any of: "tell it to also...", "ask the agent to...", "add X to that", "while it's at it..." → Call swux_send with the session ID and the instruction

Stop / kill / cancel

→ Confirm which session, then call swux_kill

Agent crashed / stuck

→ Call swux_session_restore to try recovery, or swux_kill + re-swux_spawn

Clean up

→ Call swux_session_cleanup (dry-run first, then execute)

PR feedback / reviews

→ Call swux_review_check

Verification

→ Call swux_verify

Health check

→ Call swux_doctor

Claim PR / attach PR

→ Call swux_session_claim_pr

Rules

Rule 1: Tools first, always

When the user asks anything about work, tasks, issues, status, or projects:

  • FIRST call tools to get live data
  • THEN present the results
  • NEVER answer work questions from memory

Rule 2: Present naturally, then ask

After fetching data, present it conversationally. Suggest priorities. Ask if they want to kick things off.

Rule 3: Confirm before acting

Before spawning agents or batch-spawning, always show the user what you're about to do and get explicit approval. Examples:

  • With issue: "I'll spawn an agent on #6 (JSON output bug). Go ahead?"
  • Without issue: "I'll spawn an agent on this task: 'Add weekly report script'. Go ahead?"

Then act on clear confirmation ("yes", "go", "do it"). Don't spawn agents without the user approving first.

Rule 4: Present actions naturally

Instead of technical tool names, describe what you're doing in plain language. Examples:

  • With issue: "On it — spinning up an agent on #6." (not "Calling swux_spawn...")
  • Without issue: "On it — spinning up an agent on that task." (not "Calling swux_spawn...")

Rule 5: Follow up with links

After spawning, check swux_status for progress. Always include full PR URLs from tool responses.

Rule 6: Never fabricate

If a tool call fails, show the error. Never claim you did something you didn't.

All Available Tools

| Tool | When to use | |------|-------------| | swux_issues | Any question about work, tasks, issues, the board | | swux_sessions | Any question about running agents, status, progress | | swux_status | Detailed dashboard with branch/PR/CI info | | swux_session_list | Full session listing including terminated | | swux_spawn | Start an agent on one issue or task | | swux_batch_spawn | Start agents on multiple issues at once | | swux_send | Send instruction to a running agent | | swux_kill | Stop a session (confirm first) | | swux_session_restore | Recover a crashed session | | swux_session_cleanup | Remove stale sessions (merged PRs / closed issues) | | swux_session_claim_pr | Attach an existing PR to a session | | swux_review_check | Check PRs for review comments to address | | swux_verify | Mark issues as verified/failed, or list unverified | | swux_doctor | Health checks and diagnostics |

Setup

After installing the plugin, run /swux setup in any OpenClaw channel to auto-configure. Or manually:

# Required: allow plugin tools to be visible to the AI
# (plugin tools are optional by default in OpenClaw — this enables them)
openclaw config set tools.profile "full"
openclaw config set tools.allow '["group:plugins"]'

# Required: trust this plugin
openclaw config set plugins.allow '["swux"]'

# Optional: increase message context for group chats
openclaw config set messages.groupChat.historyLimit 100

# Restart to apply
pm2 restart openclaw-gateway  # or however you run the gateway

Why tools.profile: "full"? OpenClaw's default coding profile only includes built-in tools. Plugin-provided tools (like swux_spawn, swux_issues) require the full profile to be visible to the AI. This does not grant additional system permissions — it only makes plugin tools discoverable.

Security & Privacy

SWUX is an orchestrator — it does not read, write, or transmit code itself. It calls swux spawn which creates a git worktree and starts a coding agent (Claude Code, Codex, etc.). These are the same coding agents that OpenClaw's built-in coding-agent skill uses. SWUX adds no additional code exposure beyond what you already have with any OpenClaw coding workflow.

What to know:

  • GitHub access: SWUX uses gh (GitHub CLI) with whatever credentials you've authenticated via gh auth login. Use a fine-grained PAT scoped to only the repos SWUX needs.
  • Anthropic API: Agents use your ANTHROPIC_API_KEY to call the LLM. Use a dedicated key with spending limits.
  • No secrets in worktrees: SWUX creates git worktrees for agents. Don't symlink .env or secret files into worktrees — keep sensitive files out of agent workspaces.
  • Official source: Install SWUX from the official repo.

Troubleshooting

| Error | Fix | |-------|-----| | SWUX tools not visible to AI | Run /swux setup — needs tools.profile: "full" and tools.allow: ["group:plugins"] | | swux spawn fails with "No config" | Set aoCwd in plugin config to your repo path (where swux.yaml lives) | | swux: not found | Install SWUX globally or set aoPath in plugin config | | spawn tmux ENOENT (macOS / Linux) | brew install tmux (macOS) or apt install tmux (Linux) | | spawn tmux ENOENT (Windows) | Your config has runtime: tmux set explicitly. Switch to runtime: process (or remove the override — process is the Windows default; ConPTY is used natively, no tmux required) | | Bot only responds in DMs | Set channels.discord.groupPolicy to "open" | | Session stuck | Use swux_session_restore, or kill and re-spawn |

Skills similaires