finds.dev← search

// the find

Mintplex-Labs/openai-assistant-swarm

★ 615 · TypeScript · MIT · updated Nov 2023

Introducing the Assistant Swarm. An extension to the OpenAI Node SDK to automatically delegate work to any assistant you create in OpenAi through one united interface and manager. Now you can delegate work to a swarm of assistant all specialized with specific tasks you define.

A Node.js library that wraps the OpenAI Assistants API to let a single 'manager' assistant automatically route tasks to specialized sub-assistants in parallel. Targets TypeScript/Node developers who already have multiple OpenAI assistants set up and want to orchestrate them without writing their own dispatch layer. Built in late 2023 when the Assistants API first shipped.

The event emitter model for parent/child completion events is the right call — it lets callers handle the manager response and sub-agent tool calls independently without blocking. Auto-pagination for listing all assistants is a genuine quality-of-life fix over raw SDK usage. The SDK extension pattern (monkey-patching `beta.assistants`) keeps the API surface familiar for existing OpenAI SDK users. Narrowing delegation to a subset of assistant IDs via the second argument to `delegateWithPrompt` is a practical escape hatch.

Last commit was November 2023 — this predates every major shift in the Assistants API and the broader agent tooling ecosystem; it is likely bitrotted against current OpenAI SDK versions. The routing intelligence is entirely dependent on the manager assistant's LLM reasoning, which is non-deterministic and untestable — if the manager picks the wrong sub-agent, you have no hook to correct it without prompt engineering. No streaming support as of the last commit (their own README admits this), which is a significant gap for any user-facing flow. The library has no retry or error recovery logic for failed sub-runs, so a single child failure silently falls through.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →