بنقرة واحدة
swarm-join
Join an existing swarm team as a worker agent
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Join an existing swarm team as a worker agent
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Argus — all-in-one information gathering & reconnaissance toolkit. 135 modules covering network infrastructure, web app analysis, and security/threat intelligence. Use for domain recon, subdomain enum, SSL analysis, tech stack detection, vulnerability scanning, and OSINT.
Manage secrets via Bitwarden CLI (bw). Use when pulling secrets into a shell session, creating/updating Secure Notes from .env files, listing vault items, or setting up Bitwarden on a new machine. Secrets live in Bitwarden, get loaded into memory on demand, and die with the shell session — no files on disk.
Develop a thorough, step-by-step specification for a given idea
Set up a recurring build tracker cron job for any GitHub repo. Runs a zero-LLM shell script to detect stale PRs, stale assigned issues, and phase progress, then posts to a Discord channel only when there's something actionable. Use when asked to "track this build every N hours", "prod agents on a project", "set up a build monitor", "watch this repo for stale work", or similar. The tracker is cheap to run — script does all the work, the agent only speaks when findings exist.
Run long-running coding tasks in cloud environments (Claude Code or Codex), with session teleporting and automatic PR creation.
Delegate coding tasks to subagents or run Claude Code/Codex in tmux sessions. Use the Task tool for focused multi-step coding work. Use tmux for long-running interactive sessions, parallel worktree-based fixes, and PR reviews. NOT for simple single-file edits — do those directly.
| name | swarm-join |
| description | Join an existing swarm team as a worker agent |
| user-invocable | true |
Join an existing swarm team as a worker agent.
/swarm-join <team-id> --as <agent-name>
| Argument | Required | Description |
|---|---|---|
<team-id> | Yes | The swarm team ID to join (e.g., swarm-1738585396) |
--as | Yes | Agent name to use (e.g., agent-3) |
When you receive this command:
Parse Arguments
TEAM_ID="$1" # First positional argument
AGENT_NAME="$2" # Value after --as
Validate Team Exists
source ~/.claude/utils/swarm-lib.sh
if ! swarm_get_team "$TEAM_ID" > /dev/null 2>&1; then
echo "Error: Team $TEAM_ID not found"
echo "Available teams:"
swarm_list_teams
exit 1
fi
Check Capacity
TEAM_JSON=$(swarm_get_team "$TEAM_ID")
MAX_MEMBERS=$(echo "$TEAM_JSON" | jq -r '.config.max_members')
CURRENT_COUNT=$(echo "$TEAM_JSON" | jq -r '.members | length')
if [ "$CURRENT_COUNT" -ge "$MAX_MEMBERS" ]; then
echo "Error: Team at max capacity ($MAX_MEMBERS members)"
exit 1
fi
Check Name Availability
if echo "$TEAM_JSON" | jq -e ".members[] | select(.name == \"$AGENT_NAME\")" > /dev/null; then
echo "Error: Agent name '$AGENT_NAME' already in use"
exit 1
fi
Spawn Agent
AGENT_SESSION=$(swarm_spawn_agent "$TEAM_ID" "$AGENT_NAME")
echo "Joined team as: $AGENT_NAME"
echo "Session: $AGENT_SESSION"
Notify Leader
swarm_send_message "$TEAM_ID" "$AGENT_NAME" "leader" "status" \
'{"event": "joined", "message": "Agent '"$AGENT_NAME"' joined the team"}'
Report
echo ""
echo "========================================"
echo "Joined Swarm: $TEAM_ID"
echo "========================================"
echo "Agent Name: $AGENT_NAME"
echo "Session: $AGENT_SESSION"
echo ""
echo "Your inbox: ~/.claude/swarm/$TEAM_ID/inbox/$AGENT_NAME.jsonl"
echo ""
echo "Commands:"
echo " Check inbox: /swarm-inbox"
echo " Send to leader: /swarm-inbox --to leader --msg \"message\""
echo " Team status: /swarm-status $TEAM_ID"
echo "========================================"
# Join an existing team as agent-3
/swarm-join swarm-1738585396 --as agent-3
# List available teams first
~/.claude/utils/swarm-lib.sh list-teams
After joining, the agent should:
As a team member, you must:
Monitor Your Inbox
# Your inbox location
~/.claude/swarm/{team-id}/inbox/{agent-name}.jsonl
Execute Assigned Tasks
taskbd update <task-id> --assignee <agent-name> --status in_progressReport Progress
/swarm-inbox --to leader --msg "..." or library functionHandle Completion
bd close <task-id> --reason "Done"| Error | Resolution |
|---|---|
| Team not found | Check team ID with swarm_list_teams |
| At max capacity | Wait for a slot or increase max_members in team.json |
| Name already used | Choose a different agent name |
| Session conflict | An agent with this name may still be running |