agentleFS
HighwayofLifeHighwayofLife/agent-kaizen/skills/batch-wakeups/SKILL.md

batch-wakeups

Skill1 starsChanged 32 days agoMITView on GitHub

Cut main-session turns by batching agent completions through a swarm lead and merged reviews.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Not in Claude Code?: Read docs/hosts.md in the plugin root first.

    line 11
  2. Very specific:

    Use the usage audit (docs/kaizen/) to find where the main session spawns many small agents: one per finding to verify, one per file to …

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Batch the wake-ups

Plugin root: ${CLAUDE_PLUGIN_ROOT}. If that is still a ${...} placeholder, use the folder that contains skills/ (this file is skills/<name>/SKILL.md), and substitute that path, in quotes, wherever this skill uses CLAUDE_PLUGIN_ROOT. Not in Claude Code? Read docs/hosts.md in the plugin root first. Skip steps that only work in Claude Code, and follow its propose-only rule before changing any host configuration.

Each time a subagent finishes, the main session takes a full turn with its whole context. Ten small agents mean ten expensive turns. A lead agent can gather the results first and wake the main session once.

Changes: agent definitions and routing rows, after you approve.

Autonomy: follow ${CLAUDE_PLUGIN_ROOT}/docs/autonomy.md. The mode comes from the skill argument (propose, safe, auto or yolo), else docs/kaizen/config.json, else agent-kaizen.json in your Claude config dir ($CLAUDE_CONFIG_DIR or ~/.claude), else propose. In safe and auto, read every "wait for my OK" below as: apply it yourself if the mode allows (backup, verify, roll back on failure, ledger row), otherwise list it as a proposal. Hard stops always ask. At most maxChangesPerRun changes (default 3). End with a summary of what was applied, skipped and rolled back.

Task

Use the usage audit (docs/kaizen/) to find where the main session spawns many small agents: one per finding to verify, one per file to read, one per URL, and so on. Also find pairs of agents that always run back to back, such as a code verifier followed by a second-model review.

Propose:

  1. A "swarm lead" agent: it takes N items plus the per-item question and output shape, spawns one cheap worker per item in parallel, does no item itself, waits for all of them, writes full results to a file, and returns ONE merged table.
  2. Merged reviews: the verifier starts the second review (for example a Codex diff review script) in the background itself and merges its findings, so the main session wakes once.
  3. A rule in CLAUDE.md: "handle each completion in one response: integrate, update the plan, launch every next task", and "wait for notifications, never poll".

Estimate main-session turns saved per week from the audit numbers. Show diffs, wait for my OK. Add a ledger row.

Bundled resources

Templates: ${CLAUDE_PLUGIN_ROOT}/templates/agents/swarm-lead.md, ${CLAUDE_PLUGIN_ROOT}/templates/agents/judge.md, ${CLAUDE_PLUGIN_ROOT}/templates/agents/scout.md, ${CLAUDE_PLUGIN_ROOT}/templates/agents/verifier.md.

Done when

fewer main-session turns per unit of work. The next audit shows this as a lower turn count at a similar context size.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.