Add swarm sessions: durable agent pools, scoped messaging, and Modal-backed workers - #1105
Merged
Merged
Conversation
16francej
force-pushed
the
feat/swarm-sessions
branch
2 times, most recently
from
September 12, 2026 08:11
3c51680 to
aedfc6c
Compare
Co-authored-by: Leonid Krashanoff <leo@ycombinator.com>
16francej
force-pushed
the
feat/swarm-sessions
branch
from
September 14, 2026 04:54
aedfc6c to
e13dd5c
Compare
16francej
marked this pull request as ready for review
September 14, 2026 04:57
16francej
force-pushed
the
feat/swarm-sessions
branch
from
September 14, 2026 06:44
67bae7f to
d1baec8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements swarm sessions per Leo's design doc: durable agent pools ("swarms") rooted in a session, scoped worker messaging, and Modal-backed private worker sandboxes. Explicitly excludes the filesystem snapshot/copy/restore portion of the design.
What's included
src/swarms/— swarm service, durable store, and lifecycle (reserve → provision → ready → deliver → cleanup) with bounded reconciliation sweeps, separate resource/delivery pools, and per-swarm advisory locking.src/api/routes/swarms.tswith action-specific field allowlists; agent operations require an active capability run (matching thread, actor, scope, unexpired lease).sandboxId(no silent fallback to the scope default).docs/swarms.md.Validation
git diff --checkclean.QA status
Slack/dev-instance QA is blocked: no dev Slack pool credentials, no Modal tokens, and dev-instance boot failed on missing model creds. Live end-to-end QA on a dev instance should happen before merge.
Draft until live QA and human review.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.