manager-loop

A coordinator loop for handling many independent work items at the same time. Each worker uses its own Git worktree, branch, and pull request, while the coordinator tracks progress and reviews results.

In plain words
What is it for?
Running batches of independent tasks across files, projects, or pull requests, such as multi-repository updates or a large backlog.
Why use it?
It removes the need for a person to repeatedly dispatch, monitor, and merge separate tasks. It keeps unrelated work moving in parallel while checking whether each result is ready to merge.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/patrickserrano/lacquer/manager-loop
Any agent
npx skills add patrickserrano/lacquer --skill manager-loop
Clone the repo
git clone --depth 1 https://github.com/patrickserrano/lacquer

Made for: Claude Code, Codex.

Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,020 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00085 $0.01020
Opus 5 $0.00043 $0.00510
Sonnet 5 $0.00017 $0.00204
Haiku 4.5 $0.00009 $0.00102

Measured yesterday against content hash f131655e5b72, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

manager-loop 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 yesterday.

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.

core/skills/manager-loop/SKILL.md · 82 lines

How it starts

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

Manager Loop

One coordinator, many workers, a heartbeat instead of a human trigger between steps. The coordinator never implements — it dispatches, watches, routes feedback, and gates merges. Each worker gets its own git worktree, branch, and PR, and is told explicitly to keep going until the deliverable is actually mergeable, not just "implemented."

This is the outer loop that runs many evaluator-optimizer convergence loops in parallel (each worker converging its own PR against a pass/fail bar), with advisor-checkpoint as the review step when a worker's approach needs a second opinion before or after the work lands.

When to use it

Fits a batch with several genuinely independent units — files, projects, or PRs that don't depend on each other's outcome. Doesn't fit a single task with one thread of work (there's nothing to coordinate), or units so interdependent that running them one at a time, in order, with full context carried forward is actually required.

For a single feature-level task with several sequential subtasks (one branch, one PR, tasks that build on each other) rather than a batch of independent units, use superpowers:subagent-driven-development instead — same session, fresh subagent per subtask, code review between each. Reach for this skill only once the work is actually a multi-unit batch; standing up worktrees, branches, and PRs per subtask for what is really one feature is the heavier tool for the wrong job.

The shape

  1. Dispatch. For each unit of work, spin up a worker on its own worktree and branch — a background Agent call. Give it the deliverable, the acceptance bar (tests/build/lint that must pass), and an explicit directive: don't stop at "I implemented it" — keep going until the branch is actually mergeable (green build, green tests, PR open), and report back rather than declaring done if genuinely blocked. This is the fix for a worker that stops early at a plausible-looking first draft.
  2. Heartbeat instead of waiting on the human. Don't sit idle between a worker's completion notification and your next action. Use ScheduleWakeup to re-enter at an interval matched to how fast the batch actually moves — checking in-flight PRs, build status, and whether a worker is stuck, the same way you'd poll CI. This is what turns "dispatch one thing, wait for a message, dispatch the next" into a loop that keeps moving on its own between check-ins. When you report batch status at a heartbeat, ground it in what you actually checked this cycle (PR state, CI status, the worker's own report) — don't assert a unit is done or still on track without a result from this session backing that claim.
  3. Route feedback back to the worker, don't re-implement it yourself. When a PR needs a change (a review finding, a failed check), resume the same worker via SendMessage with the specific feedback, rather than fixing it in a fresh agent with no context or fixing it yourself in the coordinator's own thread. The worker already has the worktree and the history; re-dispatching loses both.
  4. Gate the merge. Require the objective checks (build, tests, lint) to pass before a worker's PR is mergeable — same rule as evaluator-optimizer. Then still read the diff yourself before merging. A green build proves the code compiles and the tests it wrote pass; it doesn't prove the approach was right, that nothing was overreached, or that a subtler failure mode was missed. The loop moves work forward — it doesn't replace the review.

Read the full file on GitHub · 82 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. yesterday First seen · 82 lines · 85 tokens per session scan A f131655e5b72

Subscribe to this mod's changes

manager-loop is a skill published in the GitHub repository patrickserrano/lacquer (3 stars, last pushed yesterday), licensed MIT. It adds 85 tokens to every session and 1,020 once invoked, about $0.0004 per session on Opus 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-31.

Related

Other skills, from other repositories

pad

Talk to your project. Natural-language project management — create items, check status, plan work, brainstorm ideas, and more.

PerpetualSoftware/pad · 27 tokens

loop-worker

Autonomously work a .pm workstream to completion — pick the next pending milestone, implement every task end to end, /ship it, then move to the next until none remain. Use when the user asks to "loop", drain, or work through a whole workstream's backlog (e.g. /loop-worker w1). Sequential, not interval-based; for a…

bex-co/bex · 86 tokens

miro-workflow

Compose Miro boards from natural-language requests by combining tools from miro-mcp-server. Use when the user asks to set up a sprint board, retrospective, brainstorming session, user story map, kanban, or any structured Miro layout. Do NOT use for single-tool calls (create one sticky), questions about Miro the…

olgasafonova/miro-mcp-server · 103 tokens

abo-feature

Implement focused Audiobook Organizer features across CLI, organizer core, TUI, web UI, or ABS workflows while following issue, branch, tests, docs, and changelog rules.

jeeftor/audiobook-organizer · 39 tokens

linctl

Use linctl as the Linear control surface for agent-safe issue, project, Cycle, ProjectMilestone, organization, user, team, search, release, initiative, customer, notification, attachment, comment, and metadata work. Prefer it over Linear MCP, raw GraphQL, or ad hoc API calls when linctl covers the operation; use…

KyaniteHQ/linctl · 80 tokens

bottleneck-map

Map the current "what is limiting us right now?" state across the running agent fleet and the live GitHub issue backlog. Runs fleet bottleneck detection plus issue triage, records the dominant system bottlenecks,...

anthony-chaudhary/fak · 48 tokens