[PR #477] [CLOSED] feat(deepagents): implement swarm for parallel task fan out #498

Closed
opened 2026-06-05 17:23:27 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/477
Author: @colifran
Created: 4/21/2026
Status: Closed

Base: mainHead: colifran/repl-swarm


📝 Commits (10+)

  • 1855c0f implement table parsing and interpolation utils
  • 6fdfa11 new types
  • 29dc062 implement executor and graph/factory injection logic
  • 5ba4d9c inject swarm as a foreign function for quickjs runtime
  • 02e0a86 bug fixes
  • 8a0fdec bug fixes, batching for better table semantics, prompt tuning
  • d092119 flatten structured responses into table
  • f5ddd2c revert flattening, fix wasteful prompt tokens
  • 7107fc1 implement task batching for better performance
  • 9502ca5 prompt tuning, bug fixes

📊 Changes

21 files changed (+4162 additions, -64 deletions)

View changed files

📝 libs/deepagents/src/agent.ts (+14 -0)
📝 libs/deepagents/src/index.ts (+36 -0)
📝 libs/deepagents/src/middleware/subagents.ts (+54 -50)
libs/deepagents/src/swarm/batching.ts (+414 -0)
libs/deepagents/src/swarm/executor.test.ts (+558 -0)
libs/deepagents/src/swarm/executor.ts (+756 -0)
libs/deepagents/src/swarm/filter.test.ts (+304 -0)
libs/deepagents/src/swarm/filter.ts (+137 -0)
libs/deepagents/src/swarm/index.ts (+22 -0)
libs/deepagents/src/swarm/interpolate.test.ts (+145 -0)
libs/deepagents/src/swarm/interpolate.ts (+66 -0)
libs/deepagents/src/swarm/parse.test.ts (+166 -0)
libs/deepagents/src/swarm/parse.ts (+66 -0)
libs/deepagents/src/swarm/table.test.ts (+284 -0)
libs/deepagents/src/swarm/table.ts (+127 -0)
libs/deepagents/src/swarm/types.ts (+221 -0)
libs/deepagents/src/symbols.ts (+114 -0)
📝 libs/providers/quickjs/src/middleware.ts (+194 -10)
📝 libs/providers/quickjs/src/session.test.ts (+188 -1)
📝 libs/providers/quickjs/src/session.ts (+274 -2)

...and 1 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/477 **Author:** [@colifran](https://github.com/colifran) **Created:** 4/21/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `colifran/repl-swarm` --- ### 📝 Commits (10+) - [`1855c0f`](https://github.com/langchain-ai/deepagentsjs/commit/1855c0ff4d2a0b8e0f687a319bfa6806b749638c) implement table parsing and interpolation utils - [`6fdfa11`](https://github.com/langchain-ai/deepagentsjs/commit/6fdfa113ca99d67dde5fcd732c5c25a95cf8ebb4) new types - [`29dc062`](https://github.com/langchain-ai/deepagentsjs/commit/29dc0623fd385e4a83f05e040669356f48401261) implement executor and graph/factory injection logic - [`5ba4d9c`](https://github.com/langchain-ai/deepagentsjs/commit/5ba4d9cbff97f503c9d58c98839709b84de01a64) inject swarm as a foreign function for quickjs runtime - [`02e0a86`](https://github.com/langchain-ai/deepagentsjs/commit/02e0a864ccb45bf39d83c30a0bb1f8a6b9baa30a) bug fixes - [`8a0fdec`](https://github.com/langchain-ai/deepagentsjs/commit/8a0fdec681e3276b0acac026b503efb42a8d926d) bug fixes, batching for better table semantics, prompt tuning - [`d092119`](https://github.com/langchain-ai/deepagentsjs/commit/d092119f4e46d712fc2c22d5aff1f307a09d6312) flatten structured responses into table - [`f5ddd2c`](https://github.com/langchain-ai/deepagentsjs/commit/f5ddd2c2b6db1d613dffa2af5144ae009ae1dc59) revert flattening, fix wasteful prompt tokens - [`7107fc1`](https://github.com/langchain-ai/deepagentsjs/commit/7107fc14748b44d6e60f0df23846895cb6d6e73e) implement task batching for better performance - [`9502ca5`](https://github.com/langchain-ai/deepagentsjs/commit/9502ca53e8d8a8229f9fbb055826daa9a11bbec7) prompt tuning, bug fixes ### 📊 Changes **21 files changed** (+4162 additions, -64 deletions) <details> <summary>View changed files</summary> 📝 `libs/deepagents/src/agent.ts` (+14 -0) 📝 `libs/deepagents/src/index.ts` (+36 -0) 📝 `libs/deepagents/src/middleware/subagents.ts` (+54 -50) ➕ `libs/deepagents/src/swarm/batching.ts` (+414 -0) ➕ `libs/deepagents/src/swarm/executor.test.ts` (+558 -0) ➕ `libs/deepagents/src/swarm/executor.ts` (+756 -0) ➕ `libs/deepagents/src/swarm/filter.test.ts` (+304 -0) ➕ `libs/deepagents/src/swarm/filter.ts` (+137 -0) ➕ `libs/deepagents/src/swarm/index.ts` (+22 -0) ➕ `libs/deepagents/src/swarm/interpolate.test.ts` (+145 -0) ➕ `libs/deepagents/src/swarm/interpolate.ts` (+66 -0) ➕ `libs/deepagents/src/swarm/parse.test.ts` (+166 -0) ➕ `libs/deepagents/src/swarm/parse.ts` (+66 -0) ➕ `libs/deepagents/src/swarm/table.test.ts` (+284 -0) ➕ `libs/deepagents/src/swarm/table.ts` (+127 -0) ➕ `libs/deepagents/src/swarm/types.ts` (+221 -0) ➕ `libs/deepagents/src/symbols.ts` (+114 -0) 📝 `libs/providers/quickjs/src/middleware.ts` (+194 -10) 📝 `libs/providers/quickjs/src/session.test.ts` (+188 -1) 📝 `libs/providers/quickjs/src/session.ts` (+274 -2) _...and 1 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 17:23:27 -04:00
yindo closed this issue 2026-06-05 17:23:27 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#498