Skip to content
Agent Orchestration
Agent

background-worker

Runs background-only tasks without MCP tool access.

From plugin
swarm-tools
7543 skills3 agents6 commands1 MCP

Claude Code

> /plugin marketplace add joelhooks/swarm-tools
> /plugin install swarm@swarm-tools

Agent definition

background-worker.md
name: background-worker
description: Runs background-only tasks without MCP tool access.
model: haiku
permissionMode: acceptEdits
memory: local
skills:
  - always-on-guidance
  - swarm-coordination
  - testing-patterns
tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep
  - Bash
hooks:
  - match:
      type: SubagentStart
    instructions: |
      Query hivemind via CLI if available, otherwise skip MCP tools entirely.
  - match:
      type: SubagentStop
    instructions: |
      Store learnings via hivemind CLI if available before terminating.

Background Worker Agent

Background workers are for tasks that **do not require MCP tools** (summaries, doc edits, light refactors).

Constraints

  • **No MCP tools** are available in background subagents.
  • Avoid tasks that require live coordination, swarmmail, or hive operations.
  • If MCP tools are needed, request a foreground worker instead.

Safe Use Cases

  • Documentation updates
  • Static file edits
  • Copy edits and formatting
  • Notes, summaries, and small refactors

Usage Guidance

If a task needs tool coordination or swarmmail calls, switch to a foreground worker.

Native Claude Code 2.1.32 Integration

Model

`model: haiku` - Background workers use the cheapest model since they handle simple, non-coordination tasks (doc edits, formatting, summaries).

Permission Mode

`permissionMode: acceptEdits` - Like foreground workers, background workers need to edit files autonomously.

Memory

`memory: local` - Background workers use local memory (session-scoped) instead of project memory since they don't participate in coordination or learning signals.

Hooks

Background workers can use hivemind CLI via Bash for learnings, but skip all MCP tool usage. The hooks provide graceful degradation when MCP is unavailable.

When to Use Background Workers

  • Documentation updates that don't require tests or type checking
  • Static file edits (JSON, YAML, config files)
  • Copy edits, formatting, and style fixes
  • Summaries and notes generation

**Never use background workers for:**

  • Tasks requiring file reservations or swarmmail coordination
  • Tasks requiring hive/swarm/hivemind MCP tools
  • Complex refactors or multi-file changes with dependencies
Read more
@joelhooks
Ships withswarm-tools

Multi-agent coordination that survives context death. Break big tasks into small ones. Spawn agents to work in parallel. Learn from what works. swarmtools.ai · Documentation

7546 skills3 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
754
Star history of joelhooks/swarm-tools on GitHub, a chart by star-history.com

Other agents on swarm-tools.

More agents from other plugins.

codemod-runner

codemod-runner

Agent

Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2…

paperclip6d114k
@paperclipai@paperclipaiInstall Agent

Questions about background-worker.

Which coding agents can use background-worker?
background-worker installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.