agentleFS
bloodfeastbloodfeast/atlas/skills/orchestrate/SKILL.md

orchestrate

Skill146 starsChanged 13 days agoApache-2.0View on GitHub

Run a large piece of work as an orchestrator - split it into lanes, delegate each lane to a subagent with a lean brief, keep within atlas's per-kind agent caps and context limits, verify before merging, and start a fresh agent from the handoff whenever one reaches its limit. Use when work is bigger than one agent's context, when the user asks to delegate, orchestrate, parallelise or "have agents do it", or when an atlas agent-cap or context-limit message appears.

186 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use define-requirements, orchestrate-plan and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • sson0-erSkill

    define-requirements

    Work with the user, one question at a time, to complete the requirements document (docs/claudex/<slug>/01-requirements.md). Run by the orchestrator (parent). Stays out of design and implementation.

    Also in 3 projects that use this

  • EternallLightSkill

    orchestrate-plan

    Use when executing a locked, reviewed PLAN.md by delegating the implementation to visible worker agents in Orca, herdr, or cmux ONE PHASE at a time — splitting the plan into context-window-sized phases, giving every phase a pristine worker context, and (when the plan touches INDEPENDENT repos) running one worker per repo IN PARALLEL. Triggers on "run the plan with a worker", "execute the plan in the other pane", "split the plan into phases and build it with workers", "build the backend and frontend in parallel panes". Not for edits you can finish inline; outside Orca, herdr, or cmux use tgc-skills:orchestrate.

    Also in 3 projects that use this

  • sson0-erSkill

    record-evidence

    How to record external facts (docs, command output, codebase findings) as evidence and design choices as decisions. Used by the researcher, designer and reviewer agents.

    Also in 3 projects that use this

  • PinkneyJiangSkill

    improve-architecture

    扫描代码库中的架构摩擦点,识别浅模块并挖掘深模块演进机会。生成可视化交互式 HTML 诊断报告,并在用户确认后闭环实施深度重构。

    Also in 6 projects that use this

  • koaeraserSkill

    house-style

    Exemplar-based house voice for LaTeX manuscripts: a reader-first standard judged against an approved exemplar, a house-voice rewrite that never changes meaning, numbers, citations, or defined terms, and advisory style metrics (sentence length, paragraph length, first-person plural, semicolons, numbers in prose) printed beside the exemplar's values. The exemplar can be replaced with your own via --ref. Used by write-manuscript, paper-writer, paper-grader, paper-fixer, paper-critic, and research-pipeline; also runs standalone.

    Also in 3 projects that use this

  • JaxsbrSkill

    spec-author

    Defines product specifications and build phases — takes ideas through the pipeline to produce phase specs the build-loop can execute and verify

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 9

    Distinctive

    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. Distinctive:

    Never resume an agent past its handoff: Start a fresh one from the handoff.

    line 18
  2. Very specific:

    Declare a lane: before its first launch: a brief journal entry in the lane with Kind, Lane, Priority and Uses lines, the same lines the …

    line 20
  3. Distinctive:

    Every agent has a kind:

    line 36
  4. Distinctive:

    Keep it lean. A brief is a work order, not a copy of the rulebook.

    line 56
  5. Distinctive:

    read a brief or a review once in full, then only the item in hand.

    line 115
  6. Distinctive:

    stop new work before the handoff point and finish the item in hand.

    line 117
  7. Very specific:

    When such an agent finishes, atlas tells you to start a fresh agent from its handoff.

    line 135
  8. Distinctive:

    Do not take a report's word for a result: Run the verification yourself, or read its output: test counts, eval lines, the diff.

    line 150
  9. Distinctive:

    When a lane completes:

    line 164
  10. Distinctive:

    remove its worktree and its build target.

    line 166
  11. Distinctive:

    Ask the user design questions as multiple choice, with the recommended option first.

    line 170

“Common” is measured: kept by at least 6 in 10 of the 165 edited versions of this file we could read. “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

Orchestrating with atlas

The main session plans, delegates, verifies and merges. Subagents do the work. atlas holds the state between them: lane journals, handoffs and recall. No agent has to carry another agent's context.

Lanes

  • A lane is one stream of work with an id, for example PARSER-2. Each agent works in exactly one lane, and journals under it with the atlas journal tool: its brief, its decisions, its measurements, its commits, any questions, and what is next.
  • An agent that stops writes a handoff for its lane with the atlas handoff tool. The next agent starts from recall lane=<id>, so nothing is lost when an agent ends.
  • Never resume an agent past its handoff. Start a fresh one from the handoff. A short reply to an agent that is mid-task and below its handoff point is fine.
  • Declare a lane before its first launch: a brief journal entry in the lane with Kind, Lane, Priority and Uses lines, the same lines the launch prompt carries (see the brief, step 2). For example:

    Kind: builder
    Lane: FEATURE-1
    Priority: normal
    Uses: compile, worktree:feature-1

    Kind stays a property of each launch: the same lane later runs reviewers with Kind: reviewer and Uses: read-only. A builder launched with no Lane: line is let through, and atlas reminds you to declare its lane.

Kinds and caps

Every agent has a kind:

  • builder writes and compiles code;
  • reviewer reads and reviews, and does not build;
  • research researches or designs, and does not build.

With agent caps on (atlas settings orchestrate asks for them), atlas denies a launch past its kind's cap. Setup derives the caps from the machine unless you answer them: compile slots of one per 16 hardware threads (at least 1, at most 4) and 1 gpu slot, then builders equal to the compile slots, as many reviewers, and half as many research agents (at least 1). A configured value always wins. When a launch is denied, do not retry it: atlas queues it (the reason names its key), and a task-notification lists what waits when an agent finishes. Then launch the next one whose kind has a free slot, with the same description and brief (recall KEY reads it); that removes it from the queue. atlas queue lists the queue, and atlas queue drop KEY removes a launch you no longer want.

The kind comes from a Kind: line in the first 40 lines of the Agent launch prompt itself; a brief file the prompt names is not read. Without one, Explore and Plan agents count as research, an agent in its own worktree counts as a builder, and anything else gets the configured default kind (builder). So write the line.

The brief

Keep it lean. A brief is a work order, not a copy of the rulebook.

  1. Who and what: the lane id, the goal in one or two sentences, and the deliverable (a branch, a PR, or a report).
  2. Kind: builder (or reviewer, or research), and the work queue's lines: Lane: <id>, Priority: urgent, normal or background, and Uses: with the exclusive resources it needs (gpu, compile, worktree:<name>, one port or database such as sqlport 15126) or read-only for an agent that shares its lane. Never list repositories: each agent works in its own worktree. Only gpu, compile, worktree:* and the resources the configuration lists can hold a launch back; any other word (blender, unless it is configured) only adds a note when a running agent uses it too. atlas schedules on declared lines; it only warns on what it infers. A planned item's brief adds Queue: <key> so its launch takes it off the queue. With the task judge's classifier on, a builder's brief is a file: write it to a BRIEF_<NAME>.md file and name its rooted path in the launch prompt; the launch is denied otherwise (orchestrate.judge.require_brief), even with a Judge: brandon-named line (that exempts the model pick only). note op=judge reads and scores that file (and any brief its Builds on: line names), so judge the launch prompt before the launch. With orchestrate.judge.require_header on, the brief also carries the judge header: Acceptance: (the named tests, or none named), Deliverables: N, Captures: yes/no, Art: yes/no, and optionally Builds on: <brief>. Give every builder launch a Kind: line: the brief rule and the enforced judge hold a launch that is a builder by its Kind: line, its agent type or a worktree, never one that is a builder only by the default kind. In enforced mode an explore launch names its pair: Judge: explore <model>/<effort> (any valid pair but the pick, up, down or sideways, when due; one every orchestrate.judge.explore_every routed launches, default 5). A fix-round climb after a failed run says Judge: climb <model>/<effort>: allowed only at exactly one rung above the lane's last dogfood row on the ladder haiku/medium < sonnet/medium < sonnet/high < opus/medium < opus/high < fable/medium < fable/high (after a failed explore below the pick, or a failed continue of one: back at the pick, at most fable/high; a brandon-named row is a base like any other), logged as a climb, never counted, so a due explore stays due; the launch needs a Lane: line and a prior row for the lane. fable/high is the top: fable/max and any xhigh/max effort are Brandon's call, never a climb or an explore. When the judge suggests one, ask Brandon (multiple choice), then launch with Judge: brandon-named <model>/<effort>. A continuation after a context-cap or infra stop (not a failure) says Judge: continue (optionally after <run>) and is re-judged: the brief is the leftover work, the classifier scores it, and the launch runs at that pick, below, at or above the continued run's pair (fable/high the cap; a user-tier pick still needs Judge: brandon-named). It needs a prior row for the lane, is never an explore and never counted, and a failed continuation climbs one rung from its own pair (back to the pick when it continues an explore below the pick and ran below it too); its row logs continue true plus continued_pair and continued_run. With the classifier unavailable a continuation runs only at the continued run's pair. Outside a continuation, a move down or sideways is a due explore or brandon-named. A marker whose pair does not parse is denied.
  3. The rulings that apply, named by their recall key, a heading or a line hint, never pasted whole. "Read the whole rulebook" costs tens of thousands of tokens before any work starts. The agent pulls exactly what it needs with recall, lookup or search. Write the brief as compact Gherkin: a Context line, Given lines with the facts, a Scenario per acceptance criterion (its Then lines each a test that fails first), a Spike per research question (its Then names the answer: a table, a verdict against a bar, a number with its unit), one Rules line. Declare each key as a tag, in full every time (@journal:LANE:0012, pinned @journal:LANE:0012#a1b2c3d4), above Feature or above the scenario it serves; the agent's start lists each by key and title. Not 0012, 0013 after a key, nor 0140 onward.
  4. Scope: the files or modules it owns, what it must not touch, and what it is safe to do without asking.
  5. Verification: the exact command that proves the work, and the numbers it must match.
  6. Journal and limits: "Journal to lane <id>. From your handoff point, wrap up at the next clean stopping point and write your handoff; you must hand off by your hard limit. Journal pr:N head:SHA when you open a PR and again on each push that moves its head. Before ending a turn to wait on a background job of your own, journal a note whose first line is waiting: <job> (<your worktree or branch>)."
  7. Work lean: the habits that keep an agent's context for the work. Every turn re-reads the whole context, so what an agent reads once it pays for again on each later turn:
    • find before you read: atlas symbol, lookup, grep and section first, then read about 150 lines around the hit; a whole file only when it is small; never re-read what you just edited or already read;
    • small edits: the smallest unique anchor; new tests in their own small file or appended at the end; large files written in parts;
    • logs go to a file: read its tail and a grep for failures; cite the path, never paste the log;
    • downscale or crop an image before reading it;
    • read a brief or a review once in full, then only the item in hand;
    • prefix every file in a shared scratch folder with the lane or PR;
    • stop new work before the handoff point and finish the item in hand.
  8. The report: hand back the digest form. Lead with the outcome (PR, branch, merge, verdict) in the first lines, then the numbers, every open question under a ## Questions heading, and every risk (a denied action, an unverified claim, a failure left open). File anything longer (the full notes, tables, logs) as a journal entry and cite its key. The report stays in the orchestrator's context for every later turn, so a line that changes nothing it does is a cost. A report over 28,000 bytes is sent back once: atlas files it whole and asks for the digest form.

Context limits

atlas reads each agent's real context size from its transcript and applies its kind's limits. The defaults on a 1M window are a handoff point at 285k and a hard limit at 450k, and both scale with the window.

  • Past the handoff point, the agent is told to wrap up: finish the step, commit, push, and write the handoff.
  • Past the hard limit (in enforced mode), every tool except handoff is denied, and so is a SendMessage to that agent.

When such an agent finishes, atlas tells you to start a fresh agent from its handoff. Depending on the fresh setting, it tells you to start it or to ask the user first. The fresh agent's brief names the lane and says to start from recall lane=<id>.

A parked agent is left alone. A completion that lacks the brief's report items, or whose note says it waits on its own background work (its own newest entry is waiting: <job> (<worktree or branch>)), is parked, not finished: do not read its transcript or message it; wait for the next notification on the same task id. An entry is the agent's own when it names the agent's worktree or branch; on a lane no other agent shares, any entry since its launch is.

The main session follows the same rule. Near your own limit, journal and hand off, and offer the user a compaction point.

Verify, then merge

  • Do not take a report's word for a result. Run the verification yourself, or read its output: test counts, eval lines, the diff.
  • Review independently when it matters. Give the reviewer the code and the claim, not your conclusion. Name reviewers by job (simplicity, cost), never by person.
  • File each review as a journal entry review with meta role:, pr:, head: (the sha it read), verdict: and report:. The verdict is one of pass, merge, merge with follow-ups or request changes (any case, - or _ for spaces); GitHub's approve/approved is filed as pass, and request_changes/changes_requested/changes as request changes. pr: and head: take comma lists: the review then counts for each listed PR at each listed head. With orchestrate.reviews set, gh pr merge waits for every role's review of the PR's current head.
  • Merge only what passed. Then record the merge commit in the lane journal.

Finish cleanly

When a lane completes:

  • remove its worktree and its build target;
  • close the lane with its handoff;
  • say what moved, which questions wait on the user, and what is next.

Ask the user design questions as multiple choice, with the recommended option first.

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.