{{NAME}}

{{NAME}} is an agent for Claude Code from friedbotstudio/baseline. It costs 8 tokens per session (1,377 once invoked), scanned A, a copy of swarm-worker, Apache-2.0.

A specialised subagent configuration that defines what an assisting agent may receive, do, and change. It follows fixed instructions and works in an isolated copy of the project.

In plain words
What is it for?
Use it when splitting planned test-writing or implementation work between controlled subagents.
Why use it?
It limits an assisting agent to an agreed procedure and set of files, reducing unexpected changes to the main project.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

Good fit Use it when splitting planned test-writing or implementation work between controlled subagents.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/friedbotstudio/baseline/swarm-worker.template
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/friedbotstudio/baseline

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for {{NAME}}

README.md
[![agentmods](https://agentmods.dev/badge/agents/friedbotstudio/baseline/swarm-worker.template/github.svg)](https://agentmods.dev/agents/friedbotstudio/baseline/swarm-worker.template)
Your own site
<a href="https://agentmods.dev/agents/friedbotstudio/baseline/swarm-worker.template"><img src="https://agentmods.dev/badge/agents/friedbotstudio/baseline/swarm-worker.template/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for {{NAME}}

Your own site · 80×15
<a href="https://agentmods.dev/agents/friedbotstudio/baseline/swarm-worker.template"><img src="https://agentmods.dev/badge/agents/friedbotstudio/baseline/swarm-worker.template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00008 $0.01377
Opus 5.5 $0.00003 $0.00551
Sonnet 5.5 $0.00002 $0.00275
Haiku 4.5 $0.00001 $0.00138

Measured 1mo ago against content hash c347e00cd010, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

{{NAME}} scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to swarm-worker — 9 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

src/agents/swarm-worker.template.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{{ROLE_LINE}}

This subagent operates under the In-Session Constitution (CLAUDE.md) and the Genesis Prompt (docs/init/seed.md). Article II of the constitution scopes your authority: Decisions live in main context; subagents only execute pre-decided recipes. You SHALL NOT exceed that scope.

Operating envelope

Your worktree is physically isolated from the rest of the repo (Art. IV phase 6c, swarm worktree mode). Files you write are merged back to main only if they fall inside your declared write_set. Anything outside SHALL fail the merge audit and your task SHALL be marked failed. The orchestrator preserves the worktree on audit failure for inspection.

Inputs (provided by the caller)

The caller's prompt SHALL contain two recipes and the swarm metadata. You SHALL execute against them verbatim — you SHALL NOT improvise, expand, or substitute.

  1. Scenario recipe — the list of failing tests to write. Each entry has name, covers, assertion, fixtures. The recipe also names an out-of-scope list and a test target paths field.
  2. Implementation contract — the failing test paths (after step 1 produces them), the write_set (exact source paths you may touch), the behavior contract (spec excerpts), and project conventions.
  3. Swarm metadata — task_id, slug, the AC list this task covers, the relevant spec excerpt.

Method (mandatory sequence)

  1. Invoke Skill(scenario) with the scenario recipe + test target paths + style anchors from the caller's prompt. Capture the test files written and the per-test verdict (RED, PASS_UNEXPECTEDLY, ERROR).
  2. Halt condition. If any test in step 1 returned PASS_UNEXPECTEDLY or ERROR, you SHALL stop. Set status to failed and put the test name + reason in note. SHALL NOT proceed to implementation.
  3. Invoke Skill(implement) with the failing test paths from step 1, the write_set, the behavior contract, and the project conventions — verbatim from the caller's prompt. The skill runs the RALPH loop (capped at 5) and returns GREEN, RED, or BLOCKED. During the loop, run ONLY your own test file (node --test <your test target paths>), never the full suite — sibling workers run concurrently, and a full-suite run races the live-objtemplate-rebuild-races landmine (concurrent readers vs a build-template.sh/obj/template rebuild). The full suite runs once, later, at /integrate.
  4. Report JSON as your final output line — exactly this shape, nothing else after it:

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 64 lines · 8 tokens per session scan A c347e00cd010

Subscribe to this mod's changes

{{NAME}} is an agent published in the GitHub repository friedbotstudio/baseline (14 stars, last pushed 8d ago), licensed Apache-2.0. It adds 8 tokens to every session and 1,377 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to swarm-worker, differing in 9 lines, and is treated as a copy.

Related

Other agents, from other repositories

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

product-analytics-specialist

PostHog, Mixpanel, Amplitude event tracking, funnels, cohorts, and A/B testing specialist. Use when implementing analytics, designing event schemas, or setting up experimentation. Trigger phrases: analytics, tracking, PostHog, Mixpanel, Amplitude, Segment, events, funnel, cohort, A/B test, feature flag, conversion…

travisjneuman/.claude · 80 tokens

monetization-expert

Expert in revenue models, pricing strategy, and business monetization.

travisjneuman/.claude · 18 tokens

tribunal-lens-reviewer

Dispatched by the tribunal deep-audit lane to review one lens or independently verify a candidate. Reads its mandate under {{IF:claude}}skills{{ELSE}}routines{{END}}/tribunal/references/lenses/. Never dispatch directly.

arbiterForge/codeArbiter · 58 tokens

Agent Governance Reviewer

AI agent governance expert that reviews code for safety issues, missing governance controls, and helps implement policy enforcement, trust scoring, and audit trails in agent systems.

agentrust-io/awesome-ai-governance · 35 tokens

account-executive

An account executive who manages the full sales cycle — from qualification through close — with consultative selling, pipeline management, and deal strategy grounded in understanding customer business outcomes. Use for deal strategy, pipeline management, qualification frameworks, and negotiation planning.

The-AI-Directory-Company/agents-and-skills · 53 tokens