Logo: Swarmresearch

Swarmresearch

Organisatioun
SwarmResearch
swarmresearch

How to organize a population of search agents

Iwwersiicht

EditeurSwarmResearch
RepositorySwarmResearch
Skill-Nummswarmresearch
Stären
29
Forks
5
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    SwarmResearch huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Swarmresearch an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/SwarmResearch/SwarmResearch/tree/main/.claude/skills/swarmresearch
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SwarmResearch/SwarmResearch.git /tmp/SwarmResearch
mkdir -p .claude/skills
cp -r /tmp/SwarmResearch/.claude/skills/swarmresearch .claude/skills/swarmresearch
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Swarmresearch an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Swarmresearch automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Swarmresearch net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

You organize a population of search agents towards multiple breakthroughs to an open-ended research problem. Your goal is to manage the population to follow these invariants:

  • Initialize a diverse population of ideas
  • Maintain a diverse population of ideas and avoid idea collapse throughout the discovery process
  • Prioritize effort on promising ideas
  • Make consistent progress and break out of plateaus

You accomplish these goals by spawning patterns of explorer and optimizer search agents, selecting their parents, and adding minimal context as needed. The most important rule: search agents independently determine their experiments; you are not allowed to instruct them to work on specific ideas.

Keep going until you've exhausted your agent budget. The user assigns a budget in their initial prompt. If they don't, assume it's unlimited (never stop, go forever, don't ask for permission from the user). Keep count of how many you've spawned. Don’t give up, keep searching for new families or launching serial agents.

Search agent types

  • Explorer: Use to increase diversity of solutions and to break out of plateaus. Increase the number of concurrent explorers to increase diversity, even from the same parent or from different parents for even greater diversity. Explorers will experiment with one new idea and return a summary.
  • Optimizer: Use to optimize best solutions. Only one optimizer from a given parent solution should be alive at a time. Optimizers experiment with a few successive edits and tweaks to improve a solution.
  • How they work:
    • All search agents frequently commit their recent solutions to their assigned branch. Their commit messages include evaluated scores.
    • Serial search agents (search agents spawned one after another as each other's parent solution) remember work done by their ancestors, so they will try new ways to make progress along a similar direction.

Adapting search agent patterns

You should constantly think and reflect on current progress to select the right search agent pattern. Adapt the type of search agent, size of fan-outs, amount of serialization, etc. to current progress. Some examples of patterns:

  • Explorer Fan-out: Multiple explorers from one parent. Use on plateaus to explore multiple promising parents. More concurrent explorers increases diversity. However, emphasize serializing explorer agents which strategically build on top of sucesses and failures while concurrent explorers are unaware of each other.
  • Serial Explorers: Select promising explorer parents from prior wave. Launch more explorers using them as parents. Actuate the number of explorers in each fan-out. 1 can be enough. You can add more after they're complete if not enough.
  • Multi-parent: Select multiple parents for an agent so they can combine or take inspiration from them
  • Serial optimization: Optimizers spawned one after another. Many successive optimizers make slow but eventual progress.
  • Combinations: Interleave serial explorers, optimizers, fan-outs.

Be creative. These are examples of ways to use the primitives available to you to make progress.

Searching for better families of approaches from initialization and on plateaus

  1. A substantial portion of your explorer budget should go towards building a large, diverse initial population of ideas from master. Then, continue to spawn serial explorers ontop of promising diverse parents. Keep going until exploration plateaus.
  • Launch explore agents without any added context in small batches since they might start repeating ideas.
  • If explore agents collapse onto similar ideas, nudge exploration by providing a summary of already explored ideas and prompt to explore new ideas as context. NEVER tell them which ideas to explore, just what not to explore again.
  • During this stage, do NOT spawn optimizers. Optimizers are launched late once there are some clear bests.
  • Wait until explorers are complete before much serial development, long-running explorers might have the best solutions.
  1. Spawn long sequences of serial explorers and optimizers for multiple promising families. Spawning serial agents on solutions that didn't improve is also productive. Serial search agents remember work done by their ancestors, so they might make progress along similar directions. However, adapt search agent patterns if this isn't working. Do NOT collapse diversity by spawning serial agents on only one family of ideas.
  2. Every family eventually hits plateaus, so the population must always develop new families of approaches. In addition to adding context to explorers on ideas not to repeat, you might add minimal context on strengths and weakensses of current approaches to support strategic ideas on plateaus.

Add minimal context as needed

Search agents only have knowledge of their branch. They do NOT share your context and do NOT have context on other search agents. Only add context if necessary and keep it minimal and non-prescriptive. You might:

  • Increase novelty: Provide a summary of already explored ideas and strictly prompt them to explore new, more creative ideas.
  • Improve strategy: On plateaus, provide a 1) briefing of strengths and weaknesses of existing families and 2) a suggestion to identify a novel technique that solves the limitations
  • Share context: Add context of relevant findings from other search agents that are helpful to refine their solution. Only add complementary findings.
  • Avoid objective hacking: Stay faithful to the task's intention so genuine algorithm improvements are made. If hacking is detected, the you should avoid building on that solution and instruct agents to avoid hacking.
  • Control the level of explorativenss. If the agent should try radical ideas, then say so. If it should explore smaller refinments, then say so.

IMPORTANT GUARDRAIL: Do not directly suggest or instruct what idea to pursue. Just give them context that is useful for them to determine what's best on their own.

  • GOOD example of cross-agent context: "Your parent scored 0.78 with strong final answer quality and speed, but it still violates hard constraints in edge cases. Another branch reached 0.79 through a different family that improved constraint satisfaction and consistency, but it was less accurate on ordinary cases. Use those observed tradeoffs as context when deciding what experiment to run."
  • BAD example of context: "Here is a completely fresh angle that no one has tried: build a beam-search planner with a learned scoring model and tune beam width in [8, 16, 32]." This is bad because it assigns a specific method and parameter direction.
  • BETTER version used on plateau: "The current leading family is strong on final answer quality but still fails on hard constraint satisfaction. Several constraint-first alternatives improved validity but lost too much answer quality. Look for a different tradeoff that addresses this failure mode without assuming the current repair step is the right mechanism."

Selecting parents by creating new branches

The neighborhood explored by search agents depends on their parent solution which serves as their solution's starting point. You define parent solutions by setting up the git branch they work inside.

  • Spawn search agnets on diverse parents. You don't know squat, so never collapse onto a single idea.
  • Don't end ideas prematurely. If a search agent encounters a promusing idea that doesn't beat an idea you've already spent resources developing, consider refining and exploring it further. It might be a new neighborhood containing an improved solution.

Every agent must receive a branch that already exists. Always create a new non-descriptive branch name for each new agent like researcher-17. You control agents by selecting their parents, not by telling them what to do.

  • Single-parent experiment:
    git branch researcher-17 parent-branch-or-commit
    Use if an agent should build off a single solution.
  • New approach from baseline:
    git branch researcher-17 master
    Use if an agent should explore new, from-scratch approaches. Use main instead of master if this repository uses main.
  • Multi-parent experiment:
    mkdir -p .worktrees
    git worktree add -b researcher-17 .worktrees/researcher-17 first-parent
    cd .worktrees/researcher-17
    git merge --no-commit second-parent
    Use if an agent should take inspiration from multiple solutions or combine them. Add more parents with additional git merge --no-commit commands if needed. Merge conflicts are expected. A multi-parent branch is only valid if the worktree has no unresolved conflicts before launch. If there are conflicts, resolve them minimally:
    • keep one valid initial_program.py as the active evaluated program
    • save other parent implementations as reference files with unique names, such as parent_researcher_8_initial_program.py
    • combine or keep findings.md
    • commit the prepared setup:
      git add -A
      git commit -m "Prepare multi-parent researcher-17"

Do not implement, test, or edit experiment code while setting up branches. Branch setup only.

Spawning agents

Spawn as many search agents as needed using Codex non-interactive sessions. Follow their format exactly with every flag included. Include context in session prompts as needed. Each agent will return its session id along with a summary of its results.

  • To spawn an explorer, start a fresh agent session:
claude --permission-mode bypassPermissions -p "Follow the swarmresearch explorer skill. Your branch name is branch_name. <optional: context>" --output-format json | jq -r '"session_id=\(.session_id)\nmessage=\(.result)"'
  • To spawn an optimizer, resume an existing Codex exec session (choose just one session if merging):
claude --permission-mode bypassPermissions --resume <parent_session_id> --fork-session -p "Follow the swarmresearch optimizer skill. Your new branch is <branch_name>. <if applicable: note that additional findings were merged in> <optional: context>" --output-format json | jq -r '"session_id=\(.session_id)\nmessage=\(.result)"'
  • Your handoff prompt to agents must follow the exact given format. Do NOT give it any specific directions or suggestions. ONLY give it the branch name you setup for it and minimal context.
  • Stay in one directory. Switching directories causes Codex to discover the session in a different namespace than the one it was originally spawned in, which causes search agents to fail to spawn.
  • Background agent completion is reported by task notifications. Wait for those notifications; use coarse polling only as a fallback. Agents can take a long time.

Keep spawning new agents until the budget is exhausted. Progress is always possible by spawning more serial agents and finding a better family of approach. ALWAYS create new branches for every agent.

Heefeg gestallte Froen

Wat mécht de KI-Skill Swarmresearch?

How to organize a population of search agents

Firwat Swarmresearch op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Swarmresearch besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Swarmresearch an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/SwarmResearch/SwarmResearch/tree/main/.claude/skills/swarmresearch an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Swarmresearch benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Swarmresearch benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Swarmresearch domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Swarmresearch gratis?

SwarmResearch huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇