swarm-scripts

Solid

Use swarm scripts for bulk SDK calls, repetitive fan-out, and context-efficient data processing.

Data & Documents 486 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Swarm Scripts Use swarm scripts when direct tool calls would create repetitive work, flood the context window, or require deterministic data processing across many records. Scripts run out-of-process with a typed Swarm SDK and return only the final result to your context. ## Decision Rubric | Situation | Use | |---|---| | 1-10 SDK calls, result fits in context | Direct tool call | | 10+ items or bulk fan-out SDK operations | Script | | Heavy fetch, parse, transform, or aggregation | Script or context-mode | | Single expensive web fetch | `ctx_fetch_and_index` | | Multi-agent parallel work | Workflow | | Logic needed across sessions or agents | Named script | ## Loading Script Tools The script tools are deferred. Before authoring or running a script, load the relevant tools with ToolSearch: ```text script-query-types script-upsert script-run script-search script-delete ``` Use `script-query-types` before non-trivial work so the script matches the live `swarm-sdk.d.ts` and stdlib signatures. ## Inline Script Pattern Use `script-run` with inline source for one-off work: ```typescript export default async function main(args: { status: string; limit: number }, ctx) { const { swarm, logger } = ctx; const result = await swarm.task_list({ status: args.status, limit: args.limit }); logger.info(`Fetched ${result.tasks.length} tasks`); return { total: result.tasks.length, tasks: result.tasks.map((task) => ({ id: task.id, status: task.status, ...

Details

Author
desplega-ai
Repository
desplega-ai/agent-swarm
Created
5 months ago
Last Updated
today
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

swarm

Autonomous multi-agent workflow system for complex coding tasks. Use when the user requests non-trivial changes that would benefit from autonomous execution with built-in review gates. Ideal for refactoring modules, adding major features, migrating codebases, adding comprehensive test coverage, or any multi-step development task that can run autonomously. NOT for simple fixes, typos, or single-file changes.

335 Updated today
aiskillstore
AI & Automation Solid

swarm-orchestration

Multi-agent swarm coordination for complex tasks. Use when: 3+ files need changes, new features, refactoring. Skip when: single file edits, simple fixes, documentation.

57,130 Updated today
ruvnet
AI & Automation Listed

ia-orchestrating-swarms

Coordinate multi-agent swarms for parallel and pipeline workflows. Use when coordinating multiple agents, running parallel reviews, building pipeline workflows, or implementing divide-and-conquer patterns with subagents.

20 Updated today
iliaal
AI & Automation Listed

swarm-orchestration

Orchestrate multi-agent swarms with agentic-flow for parallel task execution, dynamic topology, and intelligent coordination. Use when scaling beyond single agents, implementing complex workflows, or building distributed AI systems.

335 Updated today
aiskillstore
AI & Automation Listed

swarm

Spawn isolated Codex sub-agents for parallel task execution using the current runtime primitives. Triggers: "swarm", "spawn agents", "parallel work", "run in parallel", "parallel execution".

375 Updated today
boshu2