local-swarm
Skill1 starsChanged 12 days agoMITView on GitHub
Fan out parallel review/analysis/summarization passes to on-device Ollama (claude-local) instead of cloud subagents, with the cloud session acting as orchestrator and verifier. Use when the user asks to "use local inference", "leverage claude-local / on-device Ollama", "run parallel agents locally", or when cloud session limits make spawning cloud subagents wasteful — especially for review passes, bulk classification, per-file summaries, and second-opinion scans.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jhonsferg/local-swarm-mcptheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- jhonsferg/local-swarm-mcp★ 1same 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 repository28 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- claude-md-auditSkill
- cloudflare-oneSkill
- cloudflareSkill
- component-factorySkill
- concurrency-probeSkill
- core-sampleSkill
- corroborateSkill
- decision-telemetrySkill
- disk-auditSkill
- engramSkill
- frontend-designSkill
- git-forensicsSkill
- high-signal-engineSkill
- model-inventorySkill
- muster-triageSkill
- precise-coding-assistantSkill
- preflightSkill
- pr-triageSkill
- read-arxiv-paperSkill
- run-mazze-leczzare-blogSkill
- session-journalSkill
- shipSkill
- stratum-project-initSkill
- touchstoneSkill
- transcript-handoffSkill
- web-perfSkill
- workspace-syncSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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 17
Cloud session: scoping, verification, and probes: Every local finding is verified against the actual code/data before it's reported.
- Distinctive: line 29
Use when the task benefits from tool use (reading files itself).
- Distinctive: line 54
Cloud-agent session death: If cloud subagents are used at all, keep the count minimal and design for partial loss: each agent's output must …
- Distinctive: line 83
When the artifact fits in one cloud pass anyway — orchestration overhead exceeds the savings.
≈ “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
local-swarm
Cloud Claude orchestrates and judges; the user's Mac does the parallel grunt work. Born 2026-07-16, when two of three cloud review agents died mid-flight on a session limit — burned budget, unrecoverable partial results — while the Ollama lane sat idle.
Division of labor (non-negotiable)
- Local model (gemma4/gpt-oss via Ollama): candidate generator only. It surfaces suspects, summaries, checklists. It never gets a verdict.
- Cloud session: scoping, verification, and probes. Every local finding is verified against the actual code/data before it's reported. A local "all clean" is weak evidence — accept it only when your own independent check agrees.
- Deterministic probes beat model reviews. In the founding session, two real bugs were found by concrete probes (run the binary, observe the numbers) after both local correctness passes returned nothing. Budget the probes first; the swarm is the supplement.
Two transports
claude-local -p "<prompt>"— full Claude Code harness on Ollama. Use when the task benefits from tool use (reading files itself). Slower per call (harness startup); one task per invocation.- Ollama API directly (
POST http://localhost:11434/api/generate,{"model":…,"prompt":…,"stream":false,"options":{"num_predict":N}}) — same engine, no harness overhead. Use for pure text-in/text-out passes (summaries, classification, checklist scans). Parallelize with backgrounded Bash jobs writing to separate output files.
Prompt discipline for small models
- Scope small. One file, one section, one question per call. A 688-line diff in one prompt produced silent empty output — twice.
- Crisp output contract in the prompt: "Output ONLY the list", a max item count, and a fixed line format. Small models fall apart on open-ended asks.
- Low temperature (≈0.2) for review/classification.
Failure modes (all observed live — check for every one)
- Silent empty output, exit 0. Oversized prompt → the model returns nothing, the CLI exits clean. ALWAYS validate the output file is non-empty and matches the requested format before using it; retry once with a smaller scope, then report the lane as failed — don't fabricate.
- Vacuous "all clean". An 8B model asked for rule violations tends to return clean-across-the-board. Treat as advisory; never let it close a review on its own.
- Cloud-agent session death. If cloud subagents are used at all, keep the count minimal and design for partial loss: each agent's output must be independently useful, and the orchestrator must be able to finish the job inline when an agent dies. Never make the verdict depend on all agents returning.
- World moves mid-review. The PR under review can merge while the swarm runs. Check the target's state before acting on results; deliver late findings as a follow-up PR (cherry-pick onto the squashed main — the original branch will conflict).
- Harness noise in output.
claude-localprepends warnings (connector notices) to stdout — strip known noise lines before parsing.
Orchestration pattern
# 1. Prepare N small, scoped prompt scripts writing to separate files
# 2. Launch in parallel as background jobs (Ollama queues requests itself)
# 3. Continue doing the highest-value work inline (probes!) while they run
# 4. On completion: validate non-empty + format, verify every candidate
# against the code, fold confirmed findings into the reportPair with /touchstone for the verification half: the swarm generates
candidates, touchstone probes decide.
When NOT to use
- Judgment-heavy single tasks (architecture review, subtle correctness) — the local model wastes time you'll spend re-doing the work.
- When the artifact fits in one cloud pass anyway — orchestration overhead exceeds the savings.
- Anything requiring the local output to be trusted unverified.
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.

