Repository navigation
v0.2.2
·
476 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
What's changed
Added
- Agent titles: an optional short label per agent (at most 60 characters, such as
EL,PM,Eng: board view), separate from the role and display only. Set it with a[swarm title: ...]line in a subagent's prompt,swarm join --titleorswarm title --job J (--as NAME | --key K) "text"(empty text clears it);who,statusandwatchshow it (a TITLE field inwho, a TITLE column in the agents table when any agent has one,Name (title)in compactwatch), board messages do not. A supervisor replacement or resumed agent keeps its title. Codex spawn messages are encrypted, so a Codex agent usesswarm title. - The engineering-team plugin tags every seat with its title (
EL,PM,Product,QA,Judge,Build,Reviewer,Verifier,Eng, optionallyEng: scope), including the review pipeline's judge, fix worker and integrator;swarm team --showlists them and the skill tells the EL to keep them current. - External events (schema 21):
swarm event post|list|ack|waitrecord "something happened outside the board" for the orchestrator, a role or an agent. Posts are idempotent per job, kind and key;event waitblocks until one is pending (PostgresLISTEN, a one-second poll elsewhere; exit 124 on timeout). Pending events show in the hook context, a compact line each, until acked. Python API:Board.post_event,events,pending_events,ack_events,wait_event. swarm events serve: an HTTP listener for external event sources that plugins register withapi.register_event_source(routes,verifybefore parse,handle, optionalpoll). Signature checked on the raw body, body size capped, nothing of a request logged. Off by default ([events] enabled);swarm supervisekeeps it running.- Event sources can declare helper processes (e.g.
gh webhook forward): the listener keeps them running with backoff and aforwarder-downalert; source polls have a 600 s floor ([events] min_poll_interval_s) unless the source's config lowers it. - Safety-net checks in the supervisor pass and
swarm events check: listener up, orchestratorevent waitarmed, job stalled, events or messages for the orchestrator unacked too long. OneSWARM-ALERTper job; an optional Haiku summary uses[events] model, never the orchestrator's. - CI event sources (
ciplugin, no core change; configured under[ci.github]/[ci.gitea]inconfig.toml, aCI-GREENevent per green commit):giteaandgithubregister through the event-source interface and raiseNEEDS-REVIEW,REVIEW-CHANGES,CI-FAILEDandREADY-TO-LAND(verdict and CI success must agree on the exact current head sha; keykind:N@sha);BRANCH READYboard posts becomeBRANCH-READYevents. The GitHub source is callback-first: it works from pushedworkflow_run,check_suite,pull_requestand review webhooks with no API call (delivered by a supervisedgh webhook forwardwhen[ci.github] forward = true); API polling is a fallback no faster than every 600 s. Gitea CI is polled from the commit status. The PM's per-event procedure is in the skill.[land] strategy = "rebase-ff" | "squash-ff"inteam.toml(defaultrebase-ff) sets how a PR lands. swarm ci status|wait --repo OWNER/REPO --sha SHA(newciplugin, skills/ci): the CI state of an exact SHA that every agent on a box shares, so agents stop runninggh run watchand exhausting the GitHub API budget. One cached poller per box, at most one CI host call per repo per 60 s (backoff 60/120/300 s on queued runs, 10 min under 500 calls left, public-API fallback on a 403), and a CI event for the SHA ends the wait without polling.waitexits 0 green, 1 failed (failing jobs and log tail), 124 on timeout. GitHub and Gitea ([ci] kind). The engineering-team skill, its briefs andswarm team --showtell agents to use it.- New
ciplugin (skills/ci): everything that talks to a CI or repo host.swarm ci status|waitand the shared poller live there; core Swarm and engineering-team do not. - Model policy per role in
team.toml:[models.claude]/[models.codex]mapwatcher,reviewer,engineer,qa,judge,engineering_lead,product_managerto a model, and spawns pick it from config (config.toml's[models]wins; a role left out gets the session default).
Changed
- Schema 20 (applied automatically on first use, on every backend): a nullable
agents.titleand a lasttitlecolumn of theagent_statusview. Boards stay readable by the previous release, which shows no titles; as always, upgrade every host sharing a board together.swarm whogains a TITLE field after the role (empty without one). - engineering-team is now process only (PM, reviewer and integrator steps per CI event,
[land] strategy, models per role, seat titles). It waits withswarm ci wait, reacts to theciskill's events (includingCI-GREEN), and makes no CI host call of its own; the integrator's evidence check usesswarm ci wait. A test fails if the retired word returns outside the rename line. - The old
[forge]name is gone, with no alias: theteam.tomlsection is[ci]([repositories."p".ci]for overrides), theswarm ci --kindoption replaces the old host flag, and event-source state files, modules and docs say CI host.swarm upgradeandswarm initrewrite an existing[forge]section to[ci]once, keepingteam.toml.baknext to it and saying so. - CI: tag and release-branch pushes no longer re-run the full test matrix (the Release workflow tests the tag).
Fixed
- The launchers (
bin/swarm,bin/swarm.cmdvialib/swarm/winlaunch.py) reinstall requirements whenpsycopgorzstandardis missing from the venv, even when the requirements stamp matches. Before, swarm crashed on import until the venv was deleted by hand. - Judges can record a verdict again with no
joinand no--as. A judge spawned with[swarm title: Judge]was seated as a plain worker, and the shell fast path then skipped the hook that rewritesswarm join --keyto the caller's own identity, sojoin --judgemade a second identity that--ascould not (rightly) use. Now[swarm title: Judge]seats the judge like[swarm role: judge](a live judge is never displaced; a finished or dead one is replaced),swarm join/swarm verdictcalls always reach the hook, andswarm verdictwith no--asruns as the caller.swarm joinwithout--keysays so and points judges atswarm verdict --job J met .... swarm watchno longer crashes withAttributeError: 'SnapshotBoard' object has no attribute 'last_post'(0.2.1, PostgreSQL boards): the watch snapshot now carries each idle or dead agent's last post, fetched in the same single statement.swarm upgrade --forcereinstalls the plugin from the tip of main (or the current release) even when the version is unchanged, and reports the installed commit before and after; without it, a main-channel install that is behind the tip at the same version says so instead of "up to date".
Full changelog: https://github.com/fcarucci/Swarm/blob/main/CHANGELOG.md
Install
curl -fsSL https://raw.githubusercontent.com/fcarucci/Swarm/main/install.sh | bash
Upgrade every host that shares a board together (swarm upgrade); see README.md, Upgrading.