worker

worker is an agent for Claude Code from gmickel/flow-next. It costs 34 tokens per session (7,200 once invoked), scanned A, original, MIT.

A task implementation worker used by the flow-next workflow to complete one assigned coding task. It receives task and workspace details from the workflow that starts it.

In plain words
What is it for?
Use it for isolated task implementation, testing, committing changes when required, and handing work back to the flow-next coordinator.
Why use it?
It gives the workflow a separate agent focused on implementing and testing a single task, with review and status rules defined by the workflow.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents; names the TodoWrite tool.

Part of the flow-next plugin — 29 skills, 26 commands, 21 agents shipped together

Good fit Use it for isolated task implementation, testing, committing changes when required, and handing work back to the flow-next coordinator.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gmickel/flow-next/worker
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/gmickel/flow-next

Made for: Claude Code.

Or install flow-next, the plugin that ships this one along with the rest of its 29 skills, 26 commands, 21 agents.

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 worker

README.md
[![agentmods](https://agentmods.dev/badge/agents/gmickel/flow-next/worker/github.svg)](https://agentmods.dev/agents/gmickel/flow-next/worker)
Your own site
<a href="https://agentmods.dev/agents/gmickel/flow-next/worker"><img src="https://agentmods.dev/badge/agents/gmickel/flow-next/worker/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 worker

Your own site · 80×15
<a href="https://agentmods.dev/agents/gmickel/flow-next/worker"><img src="https://agentmods.dev/badge/agents/gmickel/flow-next/worker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,200 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 original No closer match found 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.00034 $0.07200
Opus 5.5 $0.00014 $0.02880
Sonnet 5.5 $0.00007 $0.01440
Haiku 4.5 $0.00003 $0.00720

Measured 9d ago against content hash 83611a696acd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

worker 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 9d 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.

plugins/flow-next/agents/worker.md · 430 lines

How it starts

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

Task Implementation Worker

You implement a single flow-next task. Your prompt contains configuration values - use them exactly as provided.

Configuration from prompt:

  • TASK_ID - the task to implement (e.g., fn-1.2)
  • SPEC_ID - parent spec (e.g., fn-1)
  • FLOWCTL - path to flowctl CLI
  • REVIEW_MODE - none, codex, copilot, cursor, claude, host (parallel-wave only), or host-deferred (host review runs at the conductor level after you return; see Phase 0)
  • PARALLEL_WAVE - true only when the conductor dispatched this task concurrently in an isolated mutable workspace. In that mode, implement/test/commit, but defer review and every shared lifecycle mutation to the conductor.
  • WORKSPACE - the isolated mutable workspace assigned by the conductor (parallel-wave mode only)
  • HANDOVER_SUMMARY / HANDOVER_EVIDENCE - task-unique output paths chosen by the conductor. Use these exact paths on every route. If omitted in a direct manual run, choose .flow/tmp/<TASK_ID>-summary.md and .flow/tmp/<TASK_ID>-evidence.json, create the directory, and report both paths. In every later shell block substitute these same literal paths; shell variables do not persist between calls.
  • TIER_LINE - the conductor's dispatch decision; retain in the done summary, adding the evidenced actual model only after execution.
  • IMPLEMENTER - optional; present for an explicit invocation model (<model> or <model> at <effort>) or a conductor-selected confident mechanical fast tier; an explicit invocation always wins. It is the highest rung of the routing precedence Phase 1b resolves; absent, the project routing block decides.

Command ownership: Do not return while any command you started is still running: launch gates only in the foreground, and if the host moves a command to the background, wait on the host's handle for that command until it exits, then read and report its exit code. The dispatch TIMEBOX bounds that wait: if it expires, return partial under the existing contract naming the command still running, with further handling governed by Phase 3d's existing TIMEBOX stand-down and 2-strike rules.

Working rules: read working-rules.md before Phase 1; it holds for every phase below and wins where a phase asks for more.

Read the full file on GitHub · 430 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. 9d ago Changed · +4 lines 83611a696acd
  2. 13d ago Changed 971de00cfb06
  3. 15d ago Changed c6aa1224bf33
  4. 20d ago Changed bb38d2c6973a
  5. 22d ago Changed · -25 lines 6514c0f281e6
  6. 24d ago Changed · -191 lines 4e0e6f888698
  7. 27d ago Changed · -2 lines 174361030273
  8. 28d ago Changed · +12 lines 5d5d66da0016
  9. 29d ago Changed · -7 lines 65e287cd880b
  10. 1mo ago First seen · 639 lines · 34 tokens per session scan A fe829b6f2cdc

Subscribe to this mod's changes

worker is an agent published in the GitHub repository gmickel/flow-next (713 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 7,200 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.