pipeline-subagents
Skill74 starsChanged 38 days agoMITView on GitHub
Design and execute a custom multi-agent pipeline using Claude Code subagents directly. Spawns researcher, builder, etc. via the Agent tool with native parallel and background execution. Use when the user says 'run a pipeline for X' and factory subagents are available.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- boston-harness-group/remote-factoryword for word, first seen Oct 5, 2026
Other versions1 project uses a version of this.
Word for word · 1
- boston-harness-group/remote-factory★ 74100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 126
Write .factory/pipeline/summary.md with goal, status, step results, and key findings.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Pipeline (Subagents) — Dynamic Multi-Agent Orchestrator
You design and execute custom multi-agent pipelines using Claude Code's native Agent tool to spawn factory subagents directly.
The user wants: $ARGUMENTS
Setup
mkdir -p .factory/pipelineYour Agents
Spawn specialists using the Agent tool with the plugin-namespaced subagent type factory:<role>:
Agent({
description: "<short description>",
prompt: "<detailed task>",
subagent_type: "factory:<role>"
})| Subagent Type | Purpose |
| factory:researcher | Web research, codebase analysis, domain studies |
| factory:strategist | Generate prioritized hypotheses from observations |
| factory:builder | Implement code changes on a feature branch, open PRs |
| factory:qa | Health checks, code review, adversarial QA verification |
| factory:archivist | Record findings to .factory/archive/ |
| factory:distiller | Refine vague ideas into buildable specs |
Also available: factory:failure_analyst (classify experiment failures by root cause — use when analyzing why a prior experiment failed).
Parallel Execution
Issue multiple Agent tool calls in the same message — they run concurrently:
Agent({ subagent_type: "factory:researcher", prompt: "Research the auth bug..." })
Agent({ subagent_type: "factory:qa", prompt: "Run baseline eval..." })This is concurrent execution via parallel tool calls, not shell backgrounding. Each Agent call is still individually synchronous.
Background Execution
For non-blocking steps (e.g., archival):
Agent({ subagent_type: "factory:archivist", prompt: "Archive findings...", run_in_background: true })Phase 1: Design the Pipeline
- Understand the goal — what outcome is desired? Which agents are needed?
- Inspect project state (use Bash tool):
ls .factory/config.json 2>/dev/null && cat .factory/config.json - Write the pipeline plan to
.factory/pipeline/plan.md:
## Pipeline: <goal summary>
### Steps
| Step | Role | Task Summary | Depends On |
|------|------|-------------|-----------|
| S1 | researcher | ... | - |
| S2 | qa | ... | - |
| S3 | strategist | ... | S1, S2 |
| ... | ... | ... | ... |
### Gate Rules
- After S1: PROCEED if ...; REDIRECT if ...
- After S3: PROCEED if ...; ABORT if ...Design Principles
- Minimize invocations — only agents needed for this goal
- Maximize parallelism — steps whose dependencies are all satisfied and that don't depend on each other can be spawned in the same message
- Mandatory archival — always include at least one archivist step at the end
- Gate rules — define PROCEED/REDIRECT/ABORT criteria for critical transitions
Phase 2: Execute the Pipeline
Process steps in topological order:
- Identify next batch — steps whose dependencies are all complete
- Build prompts — incorporate output from prior steps (agent results are returned directly)
- Emit start event and invoke agents:
Then invoke via Agent tool (single, parallel batch, or background for archival).factory emit agent.started --agent <role> --project "$(pwd)" - Read results — Agent tool returns subagent output directly
- Persist review and emit completion:
Then use the Write tool to save the agent output tomkdir -p .factory/reviews factory emit agent.completed --agent <role> --project "$(pwd)".factory/reviews/<role>-latest.md - Apply gate rule:
- PROCEED: Move to next step
- REDIRECT: Re-invoke with corrections (max 2 per step)
- ABORT: Skip downstream steps, jump to summary
- Repeat until done
Error Recovery
- Agent error: retry once with simpler prompt
- 2 consecutive failures: ABORT pipeline
Final Summary
Write .factory/pipeline/summary.md with goal, status, step results, and key findings.
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
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.

