fanout
Skill1 starsChanged 17 days agoApache-2.0View on GitHub
Split a job across several Runlease machines and collect the results. Use for test shards, a matrix of versions or configurations, or independent tasks that can run at the same time.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- NickolasBenakis/agent-playbooktheir own version, first seen Nov 15, 2026
- ansvisor/ansvisortheir own version, first seen Nov 8, 2026
- Breadstick-Crumbs/fanouttheir own version, first seen Oct 25, 2026
- dtiger1889-ops/claude-harness-toolboxtheir own version, first seen Oct 12, 2026
- linearuncle/linearuncleskillstheir own version, first seen Aug 29, 2026
- weg-9000/Orange-pmtheir own version, first seen Jul 11, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- ansvisor/ansvisor★ 260same name
- dtiger1889-ops/claude-harness-toolbox★ 37same name
- linearuncle/linearuncleskills★ 8same name
- Breadstick-Crumbs/fanout★ 5same name
- NickolasBenakis/agent-playbook★ 5same name
- weg-9000/Orange-pm★ 0same name
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.
In this repository6 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- machineSkill
- sandboxSkill
- setupSkill
- troubleshootSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Every machine carries its own lease, so there is no cleanup job to write.
“Common” is measured: kept by at least 6 in 10 of the 5 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.
Files
Fan out, then let them all end
Every machine carries its own lease, so there is no cleanup job to write. There is still a bill: decide the number of machines from the work, and tell the person the count and the size before launching more than two.
Before launching
runlease whoami # the relay's limit: "N of M machines in use"The free public relay allows two machines at once. Asking for a third fails before anything is created. On the person's own relay the limit is theirs.
Pattern
N=2
for i in $(seq 1 $N); do runlease up -p gcp -n shard-$i --ttl 1h -d; done
# wait until each answers (30-60s after launch); give up on one after 3 minutes
for i in $(seq 1 $N); do
for try in $(seq 1 18); do
runlease exec shard-$i -- true 2>/dev/null && break
[ "$try" -eq 18 ] && echo "shard-$i never answered: see the troubleshoot skill" >&2
sleep 10
done
done
# send the work, run the shards at the same time, each writing its own result file
for i in $(seq 1 $N); do
runlease push shard-$i /tmp/src.tar.gz /tmp/src.tar.gz
runlease exec shard-$i -- bash -c "mkdir -p ~/src && tar -xzf /tmp/src.tar.gz -C ~/src && cd ~/src && SHARD=$i TOTAL=$N ./test.sh > ~/shard.log 2>&1; echo exit=\$? >> ~/shard.log" &
done
wait
for i in $(seq 1 $N); do runlease pull shard-$i /home/runlease-agent/shard.log ./shard-$i.log; done
for i in $(seq 1 $N); do runlease down shard-$i --yes; doneRules
- Name machines by role and index (
shard-1,py311), never reuse one name for two machines. - One launch that fails must not strand the others: after any failure, run
runlease listand take down what was created. - Pull each result before deleting its machine. A spot machine can also disappear on its own, so a missing shard is a result to report, not a reason to rerun everything.
- Report the outcome per machine: passed, failed, or lost.
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.

