Collective is one month of work: 327 commits between November 2 and December 1, 2026, across 326 files, +18,820 / −15,908 lines. swarms/ grew by +10,136 / −6,646 as five large features landed, while examples/ lost a net 7,170 lines of scripts that no longer ran. tests/ grew by +7,582 / −969, and the suite went from 1,130 test functions to 1,301.
Zena (v14) made the framework observable. Akira (v15) made it honest. Overclock (v16) made it measurable and fast. InterLink (v17) made it connected and lean. Collective makes it cooperative: agents that organize themselves, talk across machines and protocols, and report exactly what they cost.
The name comes from the mission the README now states: to build and scale collective superintelligence, the bet that many agents working together will outthink any one model.
Five threads run through this release.
The first is agents that coordinate on their own. SelfOrganizingSwarm is a leaderless team of identical agents with no roles and no turn order: they message each other, go idle when they have nothing to say, and are scored as one team. MessageBoard is a forum backed by SQLite where agents open, read, reply to and label threads through five tools. And A2AServer and A2AClient put any agent or swarm on the A2A 1.0 protocol, so a Swarms agent can be discovered and called by any A2A agent, and can hand work off to one.
The second is native async. Agent.arun used to wrap the blocking run in a thread. It now awaits the model call, token streaming, MCP tools and planning on the event loop. ConcurrentWorkflow runs on top of it: a 1,000-agent fan-out that held 1,002 threads now holds 2, and its overhead fell from 140 ms to 64 ms. Eight more thread pools stopped sizing themselves by CPU count, MixtureOfAgents.arun joins MajorityVoting.arun, and closing a stream now stops the run instead of paying for every remaining loop.
The third is typed and measured. Agent(output_schema=Report).run(...) returns a validated Report. Every one of 24 multi-agent structures, and every reasoning agent behind ReasoningAgentRouter, now has a usage property with the same five keys as Agent.usage. And a benchmark now runs Swarms against eight other frameworks on the same stubbed workload, with results published, including the rows where Swarms is behind.
The fourth is requests that do what they say. Seven structures that only work when the model answers with a specific tool call (HierarchicalSwarm's director and judge, PlannerWorkerSwarm's planner and judge, HeavySwarm, GroupChat, TreeOfThoughts, AutoAgentBuilder, HybridHierarchicalClusterSwarm) sent tool_choice="auto" and failed whenever the model answered in prose. They now force the call. Agent.run(task, img=...) never actually sent the image on any agent run; it does now, and caches it. And seven structures that sent the same task or answer two or three times in one request now send it once.
The fifth is honest defaults and clean runs. Telemetry is now off by default and opt-in. max_tokens and context_length have fixed defaults, so building an agent no longer looks the model up, and importing Swarms and building the first Agent takes half the time. Context compression is on only for autonomous agents. Eight more structures start every run from a clean history, six places now reject two agents that share a name instead of silently running the wrong one, and import swarms no longer deletes your application's logging handlers.
Highlights
SelfOrganizingSwarm: leaderless teams. N identical agents with no roles and no turn order coordinate only by messaging each other, and are scored as one team; communication=False gives the matched baseline so you can measure what coordination bought. More
- A2A in and out.
A2AServer puts any agent or swarm on the A2A 1.0 protocol with a public agent card, and A2AClient lets a local agent hand work to any remote A2A agent with no change to Agent. More
- Native async agents.
Agent.arun now awaits model calls, streaming and MCP tools on the event loop, and ConcurrentWorkflow runs on it: a 1,000-agent fan-out went from 1,002 threads to 2 and from 140 ms to 64 ms of overhead. More
- Typed output.
Agent(output_schema=Report).run(...) returns a validated Pydantic Report, or raises AgentOutputSchemaError with the raw reply attached. More
- Token usage on every structure. All 24 multi-agent structures,
LLMCouncil, the six reasoning agents and ReasoningAgentRouter now report .usage with the same five keys as Agent.usage. More
- Images actually reach the model.
Agent.run(task, img=...) silently dropped the image on every run; it is now sent, placed where providers can cache it, and passed through MajorityVoting and HierarchicalSwarm. More
This post covers all of it. New features and improvements first, then a day-by-day, commit-by-commit record of the entire release.
Getting the Update
# pip
pip install -U swarms
# with RouteHub and rustworkx, the two optional speedups
pip install -U "swarms[fast]"
# uv
uv pip install -U swarms
# uv, in a project managed by uv
uv add swarms --upgrade
# poetry
poetry add swarms@latest
# Docker: the official image, on Python 3.13
docker pull swarmscorp/swarms:latest
Pin it if you want reproducible installs:
pip install "swarms==18.0.0"
uv pip install "swarms==18.0.0"
Confirm what you got:
python -c "import swarms; print(swarms.__version__)"
swarms --version
If you are coming from v17, read Breaking Changes first. Telemetry is now off unless you turn it on, max_tokens defaults to 16,384 instead of the model's own limit, integer-loop agents no longer compress their context unless asked, SwarmRouter.concurrent_run is merged into batch_run, several structures now raise where they used to run the wrong agent, and star_swarm, mesh_swarm, pyramid_swarm, Agent.to_toml and the toml dependency are gone.
New Features
SelfOrganizingSwarm: a leaderless team that coordinates by message
The headline capability of Collective (#3306). Every other structure in Swarms decides who speaks: a sequence, a director, a router, a bid. SelfOrganizingSwarm decides nothing. It starts N identical agents on one model, gives each a random public name, a shuffled list of teammates and three messaging tools, and lets them work out the rest.
It is an inference-only port of the harness from s³, "Simple Scaling of Swarms via Cooperative Multi-agent RL" (Jha, Faria, Li, Geng et al., 2026). The paper trains the coordination with reinforcement learning. Swarms keeps the harness and the shared objective and leaves the training out, so any tool-calling model can run in it.
import json
from swarms import SelfOrganizingSwarm
numbers = [7, 42, 19]
def is_correct(answer: str) -> bool:
try:
return json.loads(answer) == sorted(numbers)
except Exception:
return False
swarm = SelfOrganizingSwarm(
num_agents=3,
model_name="gpt-5.4",
max_tokens_per_agent=2048,
timeout=120.0,
)
result = swarm.run(
task=(
"Each agent has one private number. Share yours, collect every "
"number, and submit them sorted. Final format: #### [1, 2, 3]"
),
private_inputs=[f"Your private number is {n}." for n in numbers],
verifier=is_correct,
)
print(result["answer"], result["success"], result["team_reward"])
No single agent can solve that task: each one holds a third of the input, and the only way to the answer is to talk.
How a run works:
| Piece | Behaviour |
|---|
| Members | N fresh Agents of one model, rebuilt every run(). Each has its own history, an optional private input, and an optional private copy of task tools |
message(to, text) | Sends to one teammate, or to "all" |
read_messages() | Returns up to 16 unread messages |
check_notifications() | Returns unread counts by sender |
| Asynchrony | Each member runs in its own thread. When mail arrives, a notice with the unread counts (never the contents) is added between that member's model calls |
| Idle | A member that ends a response without a tool call goes idle, spends nothing, and wakes on new mail |
| Termination | An answer passes the verifier, a task tool calls solve(), every member is idle, or the token allowance or timeout runs out. Members without an answer are then asked once for a final one |
| Team answer | The first verified answer, otherwise the most common submitted answer |
Every prompt says the team is scored as one, and run() reports the paper's team reward, S * (1 - λ * min(1, Σ tokens / (N·L))), which rewards solving the task and penalizes spending tokens to do it. communication=False gives the matched best-of-N baseline: the same prompts with the messaging tools removed, so you can measure what talking actually bought you.
The result is a dict with the answer, success, solved_by, each member's answer, the team reward, output tokens per member and in total, the full message log, and the number of direct messages and broadcasts. The 27 tests in tests/structs/test_self_organize.py run offline in 0.2 s against a scripted stand-in for Agent.
A comms channel from v17 holds one conversation. MessageBoard (#3739) holds many, like a forum. A board has a name, a description and an id, and every board, thread and message is a row in SQLite (:memory: by default). One file can hold many boards.
Only agents start threads. They work the board through five tools, and every agent can be given the same list:
from swarms import Agent, MessageBoard
board = MessageBoard(name="bugs", description="Bug triage", db_path="runs/bugs.db")
inbox = "1. /login times out after 5 s on slow networks.\n2. 'José' exports as 'Jos?'."
triager = Agent(
agent_name="Triager",
system_prompt="Open one thread per bug with labels kind=bug, status=open.",
model_name="gpt-5.4",
max_loops=2,
tools=board.agent_tools,
)
triager.run(f"Open a thread for each bug in this inbox:\n{inbox}")
for thread in board.threads({"kind": "bug", "status": "open"}):
fixer = Agent(
agent_name="Fixer",
system_prompt="Reply with the cause and a fix, then label the thread status=fixed.",
model_name="gpt-5.4",
max_loops=4,
tools=board.agent_tools,
)
fixer.run(f"Work on thread {thread['id']}.")
| Tool | What it does |
|---|
create_thread(title, content, labels="") | Starts a thread with an opening post |
list_threads(labels="") | Lists threads, most recent activity first, filtered by labels |
read_thread(thread_id) | Returns the title, labels and every message |
reply_to_thread(thread_id, content) | Posts a reply |
label_thread(thread_id, labels) | Sets labels such as status=fixed; key= removes one |
Each post is signed with the name of the agent that made it, with no name passed. That comes from a small hook in ToolManager.setup_tools: a tool with a bind_agent method is swapped for the version bound to the agent using it. People and code read and reply through threads(), thread(), reply() and set_labels(), and board.channel(thread_id) returns a regular CommsChannel, so a whole swarm can work inside a thread an agent opened. MessageBoard.load(db_path, board_id) reopens a board, and every read goes to the database, so other processes see posts at once. The tests post 200 concurrent replies and lose none, and #3850 made label changes a single UPDATE so two connections changing one thread's labels at once no longer overwrite each other.
Four runnable scripts ship in examples/channel_examples/message_board/, and the channel examples are now grouped one folder per channel, each with its own README (#3740, #3741).
A2A: serve any agent on the protocol, and hand off to any A2A agent
MCPDeployer could serve an agent as an MCP tool, but nothing in Swarms answered the A2A protocol, so a remote A2A agent had no way to discover a Swarms agent or send it a task. Three PRs fix that (#3373, #3365, #3375).
A2AServer serves one Agent, or any structure with run(task), over A2A 1.0.0 with the JSON-RPC binding:
from swarms import A2AServer, Agent
researcher = Agent(
agent_name="Researcher",
agent_description="Answers research questions in a short paragraph.",
model_name="gpt-5.4-mini",
max_loops=1,
)
A2AServer(researcher, api_keys=["demo-key"], host="127.0.0.1", port=8000).run()
It exposes the public agent card at GET /.well-known/agent-card.json and the SendMessage endpoint at POST /a2a, which takes the API key as x-api-key or Authorization: Bearer. A2AServer is an MCPDeployer, so the same process also serves the agent as an MCP tool. The card path, RPC path, protocol version, agent version, capabilities, input and output modes and skills are all settable.
A2AClient reads a remote agent's card and calls it:
from swarms import A2AClient, Agent
remote = A2AClient("https://agents.example.com", api_key="...")
print(remote.agent_name, remote.agent_description)
print(remote.run("What is the A2A protocol used for?"))
coordinator = Agent(
agent_name="Coordinator",
model_name="gpt-5.4-mini",
handoffs=[remote],
max_loops=2,
)
coordinator.run("Find out what the A2A protocol is used for.")
The handoff needs no change to Agent. The handoff path reads only a target's agent_name, agent_description and run(task), and A2AClient fills all three from the remote card, so a local agent sees the remote one as just another teammate. Both classes are exported from swarms, examples/a2a/ has a server, a client, a combined script and a handoff example, and A2AServer loads starlette only when a server is built, not on import swarms (#3851). Mounted under a path prefix, or behind a proxy with --root-path, the agent card and health check now stay public as they should (#3542).
Agent.arun runs natively on the event loop
Until this release Agent.arun was asyncio.to_thread(self.run, ...): an awaitable that held a thread for the whole run. #3354 rebuilt it.
- Awaited on the loop: model calls (
litellm.acompletion), token streaming, MCP tool calls and planning.
- Same behaviour as
run: the loop, tool calls, handoffs, fallback models, retries, the streaming panel, the telemetry span and errors are mirrored. arun now also takes imgs, streaming_callback and messages.
- Real streaming:
streaming_callback may be sync or async and receives each token as the provider sends it. arun_stream yields from the same path, and closing the generator cancels the run.
- Still on worker threads, so they never stall the loop: the autonomous loop, callable Python tools and handoffs, context compression, channel reads and posts, and an
llm object with no arun.
import asyncio
from swarms import Agent
agents = [
Agent(agent_name=f"Analyst-{i}", model_name="gpt-5.4-mini", max_loops=1)
for i in range(20)
]
async def main():
answers = await asyncio.gather(
*(a.arun(f"Give one risk of rate hikes for sector {i}.") for i, a in enumerate(agents))
)
async for token in agents[0].arun_stream("Explain the yield curve in two lines."):
print(token, end="", flush=True)
asyncio.run(main())
In the PR's smoke test, 20 concurrent streaming agents added no threads. The example moved to examples/single_agent/capabilities/async_runs/arun_example.py (#3390).
ConcurrentWorkflow.run() now uses it (#3414). It awaits every agent's arun on one event loop behind a semaphore sized by max_workers, and keeps the thread path for the dashboard, for an already running event loop, and for any agent that is not a plain Agent. On the cross-framework benchmark, stubbed model with a 0.2 s delay:
| v17 | v18 | AutoGen | Agno |
|---|
| Overhead over the model delay, 100 agents | 14 ms | 6 ms | 7 ms | 16 ms |
| Overhead over the model delay, 1,000 agents | 140 ms | 64 ms | 42 ms | 78 ms |
| Peak threads, 1,000 agents | 1,002 | 2 | 1 | 1 |
| Peak memory, 1,000 agents | 18.9 MB | 15.6 MB | 10.0 MB | 16.8 MB |
MixtureOfAgents.arun (#3146) joins MajorityVoting.arun from v17: layers run in order, workers within a layer run under max_concurrency, and the output matches run.
output_schema: run returns a validated Pydantic object
Agent had no way to return structured output. Each structure that needed it wired up response_format and the parsing on its own. #3356 adds one parameter:
from pydantic import BaseModel
from swarms import Agent, AgentOutputSchemaError
class Report(BaseModel):
title: str
score: float
agent = Agent(agent_name="Analyst", model_name="gpt-5.4", output_schema=Report)
try:
report = agent.run("Rate this launch plan from 0 to 1.") # a Report
print(report.title, report.score)
except AgentOutputSchemaError as error:
print("did not validate:", error.raw_output, error.validation_error)
The class is sent as the request's response_format, which litellm and RouteHub both turn into a json_schema format. The last reply is parsed once with model_validate_json, and a reply that does not validate raises AgentOutputSchemaError, which subclasses AgentError and ValueError and carries raw_output and validation_error. run and arun both go through it. output_schema with max_loops="auto" raises at construction, because the autonomous loop returns a summary rather than the model's reply. And the error now survives pickling, so a process pool can raise it back to the caller (#3763).
Token usage on every structure
v16 gave Agent a usage property, and v17 added it to a handful of structures. #3236 gives it to the other 24 in one PR:
SequentialWorkflow, ConcurrentWorkflow, AgentRearrange, MixtureOfAgents, HierarchicalSwarm, GroupChat, MajorityVoting, CouncilAsAJudge, DebateWithJudge, RoundRobinSwarm, PlannerWorkerSwarm, WorkerPool, MultiAgentRouter, AdvisorSwarm, SelfMoASeq, PlannerGeneratorEvaluator, HybridHierarchicalClusterSwarm, SpreadSheetSwarm, SocialAlgorithms, BatchedGridWorkflow, ForestSwarm, AuctionSwarm, OneOnOneDebate and ExpertPanelDiscussion.
workflow = SequentialWorkflow(agents=[researcher, writer])
workflow.run("Write a short brief on solid-state batteries.")
print(workflow.usage)
# {'input_tokens': ..., 'output_tokens': ..., 'cached_tokens': ..., 'reasoning_tokens': ..., 'total_tokens': ...}
Every one of them is the same line, return total_usage(self). The new swarms/structs/usage_utils.py walks the structure's attributes and adds every distinct Agent it finds (in an attribute, a list, a dict or a nested swarm) and every usage-shaped dict, each counted once, so a structure's own directors, judges and aggregators are found the same way as the agents you passed in. The walk descends only into Swarms classes, never into thread pools or HTTP clients, and takes under 0.1 ms. PlannerWorkerSwarm, which builds and drops a planner and judge on every call, now folds their usage in before dropping them. LLMCouncil.usage landed the same day (#3235), and #3323 stopped a stored copy of a total from being counted on top of the counter it came from, which made a SequentialWorkflow holding a PhasedFanOutWorkflow report 105 tokens when 60 were spent.
The reasoning agents followed: ReasoningDuo (#3696), SelfConsistencyAgent (#3697), ReflexionAgent (#3698), GKPAgent (#3699), IterativeReflectiveExpansion (#3707) and AgentJudge (#3708). With all six in place, ReasoningAgentRouter.usage returns the usage of the swarm its latest run built (#3718), which closes #2342.
Benchmarks against eight other frameworks
v17 had one benchmark, GraphWorkflow against LangGraph. Collective adds two more, both runnable with no API key (#3363, #3399, #3404, #3424).
PYTHONPATH=. python tests/benchmark.py
python tests/benchmark_agent_rearrange.py --sizes 8,32 --frameworks swarms,langgraph
tests/benchmark.py builds N of each framework's own agents around one shared stub model and runs them all at once, each framework in a fresh process. Results from the PR, 100 agents, 0.2 s model delay, Apple M3 Pro, before the event-loop change above:
| swarms | langgraph | langchain | crewai | autogen | openai-agents | pydantic-ai | llamaindex | agno |
|---|
| Cold import (s) | 0.286 | 0.293 | 0.033 | 1.931 | 0.263 | 1.022 | 0.456 | 0.707 | 0.349 |
| Fan-out wall minus model delay (s) | 0.019 | 0.028 | 0.056 | 0.625 | 0.010 | 0.049 | 0.098 | 0.473 | 0.021 |
| Memory per agent (KB) | 10.4 | 3.8 | 6.6 | 5.6 | 1.8 | 2.1 | 6.2 | 4.0 | 3.9 |
| Fan-out peak threads | 102 | 101 | 101 | 212 | 1 | 1 | 1 | 17 | 1 |
The PR says it plainly: Swarms was the heaviest column per agent, at 10.4 KB and 0.18 ms. That finding drove the construction work below, which built four helpers lazily, stopped building the autonomous loop for agents that never use it, and stopped calling os.getcwd() for every conversation. The thread count drove #3414.
tests/benchmark_agent_rearrange.py measures workflows with structure: chain, fan-out, diamond and layered, at 8 to 512 agents, against LangGraph (function nodes and agent nodes), LangChain LCEL, AutoGen GraphFlow, Agno Workflow and CrewAI Crew. Orchestration overhead at 512 agents, in ms:
| Chain | Fan-out | Diamond | Layered |
|---|
| AgentRearrange | 887 | 37 | 42 | 991 |
| LangGraph (functions) | 186 | 92 | 105 | 192 |
| LangGraph (agents) | 2,246 | 355 | 372 | 1,556 |
| LangChain LCEL | 901 | 117 | 121 | 231 |
| AutoGen GraphFlow | 6,432 | 5,970 | 6,174 | 6,486 |
| Agno Workflow | 558 | 40 | 35 | 100 |
| CrewAI Crew | 4,240 | n/a | 3,380 | n/a |
Wide workflows are where AgentRearrange wins, at 2.5 times cheaper than LangGraph with function nodes. Deep ones are where it loses: it renders the whole shared conversation for every agent, so a run does work proportional to the square of its depth. Both numbers are in the PR, and the second is now on the list in What's Next.
Smaller additions
GraphWorkflow(on_error=...) (#3147): "continue" (the default, unchanged), "skip_descendants" (a failed node's descendants do not run and map to None), or "raise" (no new nodes start, running ones finish, then the original exception is raised). A layer with a failed node is not checkpointed, so a rerun retries it instead of replaying an [ERROR] string as an answer.
GroupChat(score_only_bids=True) (#3543): every agent used to write the full reply it would post just to bid, so a turn with N agents cost N replies to post one. With the option on, bids carry a score only and the winner writes once: on the PR's 4-agent repro, 28 full replies became 7. It is off by default because it adds one call of latency per turn.
AgentMailChannel(backend="resend") (#3226) runs the same email thread on Resend from a domain you already verified there, with no AgentMail account, using RESEND_API_KEY. It was checked live: Resend replaces a custom Message-ID, so the channel threads posts through a root id in References, which Gmail groups into one conversation.
DecisionModel on Google's gemini-decision-1 (#3387), next to TypeSafe, Cloudflare and OpenAI, at $0.10 per million input tokens, with a one-question example and a return-request example that approves automatically only above confidence thresholds (#3389, #3388).
LLMCouncil(council_models=[...]) and DEFAULT_COUNCIL_MODELS (#3819, #3822) swap the four default councillors' models without building agents yourself. The defaults are now the providers' low-cost models: gpt-6-luna, gemini/gemini-3.5-flash-lite, anthropic/claude-haiku-5-5 and xai/grok-4.3.
SelfConsistencyAgent(preset_agents=False, aggregator_agent=...) (#3702) votes with your own agent, reset before each vote, and ReasoningAgentRouter passes both through as self_reflexion_preset_agents and aggregator_agent (#3711, #3720).
SwarmRouter(model_name=...) (#3578, #3587) now reaches the agents seven swarm types build for themselves: the MultiAgentRouter routing agent, the MajorityVoting consensus agent, the PlannerWorkerSwarm planner and judge, the HierarchicalSwarm feedback director and judge, the CouncilAsAJudge aggregator, HeavySwarm's agents and the LLMCouncil chairman. It used to fall into **kwargs and vanish.
MixtureOfAgents.batch_run (#3935) runs a task list one after another, so SwarmRouter.batch_run can hand it the whole list.
Agent(description=...) (#3209) is accepted as another name for agent_description; it used to be dropped silently.
ModelRouter routes to GLM 5.3 Flash (#3312), Z.ai's low-cost model, through OpenRouter.
SWARMS_GLOBAL_LOGGER_ON=False (#3456) turns every Swarms log off, console and files. It is on by default. .env.example is now grouped into framework settings, model keys, comms channels and cloud providers (#3457).
- The CLI gets
swarms --version, prints the banner and help with no arguments instead of exiting 2 (#3313), exits 1 when a command fails (#3291), and generates --help from the parser, which restores two missing commands and nine missing flags (#3310). swarms setup-check now recognises every provider key swarms init offers, not four of nine (#3808).
- Claude Code sub-agent files load as written (#3352):
AgentLoader resolves model: sonnet, opus and haiku to current model ids and inherit to the default, and reads frontmatter that is not strict YAML.
- Every swarm type is tested end to end (#3560): one parametrized test builds all 14
SwarmRouter types against a stubbed model and checks the answer reaches the output.
Improvements
Nine places in Swarms can only continue if the model answers with one particular tool call: a director's OrderBatch, a planner's PlannerTaskSpec, a bid's respond. Every one of them sent tool_choice="auto", because LLMManager.build overwrote any tool_choice with "auto" whenever an agent had tools. So the model was free to answer in prose, and when it did, the run failed or went quietly wrong (#3468).
#3481 made a tool_choice passed through llm_args stick, and a new helper, forced_tool_choice in swarms/tools/tool_choice.py (#3485), builds the forced choice everywhere. It returns "auto" when reasoning_effort or reasoning_enabled is set, because Anthropic rejects a forced choice while extended thinking is on.
| Structure | What a prose answer did before | PR |
|---|
HierarchicalSwarm director | ValueError: Director output is not valid JSON | #3482 |
HierarchicalSwarm judge | Prose recorded as the JudgeReport with no error | #3500 |
PlannerWorkerSwarm planner | ValueError: Unable to parse output as PlannerTaskSpec | #3483 |
PlannerWorkerSwarm cycle judge | Verdict "incomplete" with quality 0, so a finished run went round again | #3498 |
HeavySwarm question generator | Question generator returned no research_question | #3480 |
GroupChat bids | Every agent read as silent and run() returned "" | #3472 |
TreeOfThoughts propose, rate and vote | Candidates dropped, so the search ran with fewer thoughts | #3499 |
AutoAgentBuilder | ValueError from the builder | #3491 |
HybridHierarchicalClusterSwarm router | ValueError and the run lost | #3501 |
Images reach the model, and are cached
Agent.run(task, img=...) never sent the image (#3460, closing #2359). LiteLLM._prepare_messages attached images only when it built the request from a task string, and Agent._run always passes a prebuilt messages list, so every agent run took the early return. The model answered as if nothing was attached, and nothing raised. Recorded at the litellm.completion boundary:
| Call | v17 request | v18 request |
|---|
img= | user: text | user: text, image_url |
imgs=[a, b] | user: text | user: text, image_url, image_url |
img=, max_loops=2, both calls | user: text | user: text, image_url |
Four follow-ups finished the path. When the catalog says a model has no vision, Swarms now warns and sends the image anyway instead of raising, because the catalog is often wrong: openrouter/openai/gpt-4o was refused (#3461). A raw base64 PNG, GIF or WebP is labelled with its real format instead of always image/jpeg, which Anthropic rejects (#3648). MajorityVoting passes img to every voter instead of dropping it in **kwargs (#3586), and HierarchicalSwarm passes it to workers (#3455).
Then #3588 made them cheap. A structure that runs an agent on a shared transcript put the image on the newest turn, after a history that changes every call, so the provider could never cache it and every loop paid full price for the image again. The image now goes on the transcript's task turn, early and stable in every request, ahead of its text as Anthropic recommends, and with prompt_caching=True it gets its own cache_control breakpoint within Anthropic's limit of four.
Each piece of text sent once
Seven structures sent the same text more than once in a single request, in eight places. Each copy is billed, and a long task, such as a pasted document, was billed two or three times per call.
| Structure | What was duplicated | PR |
|---|
CouncilAsAJudge | The task, three times in every one of six judge requests | #3471 |
LLMCouncil | The chairman got each member's whole transcript, so the task once per member plus its own copy | #3479 |
HierarchicalSwarm | The task twice per director call; from loop 2, each worker output twice | #3655 |
HierarchicalSwarm workers | Every worker got the director's orders to every worker, then its own order again | #3652 |
DebateWithJudge | The judge's previous synthesis, twice from loop 2 on | #3569 |
PlannerWorkerSwarm cycle judge | The goal and every worker result, twice | #3570 |
GroupChat bids | The latest message, quoted in the prompt and already the last turn of the history | #3657 |
HeavySwarm | The task in the question model's system prompt and user message; the previous synthesis twice | #3856 |
HeavySwarm workers also stopped carrying the whole autonomous-loop toolset, about 9.7k characters of tool schemas per call including shell and sub-agent tools no research worker uses: they now get the loop-control tools and worker_tools (#3534). And DebateWithJudge and OneOnOneDebate dropped the role-introduction calls they made and threw away before every debate: a one-round DebateWithJudge makes 3 calls instead of 6 (#3285, #3495).
Every run starts clean, again
v16 reset the structures' conversations and v17 reset the agents behind five more. Collective found eight structures still sending a reused instance's earlier runs to the model. Agent.reset() is the fix in each, and #3355 put all 15 call sites behind one helper, reset_agents.
| Structure | What carried over | PR |
|---|
HierarchicalSwarm | The director, planning director, feedback director and judge kept every earlier task and order | #3136 |
ReflexionAgent | The actor, evaluator and reflector re-sent every earlier prompt and reply on every call | #3135 |
ConcurrentWorkflow | Every agent's second request held the first run's task and answer; each task in a batch_run carried every task before it | #3284 |
LLMCouncil | Members and chairman carried the first question, answer and ranking | #3283 |
DebateWithJudge, OneOnOneDebate | All six requests of a second debate held the first debate | #3285, #3495 |
BatchedGridWorkflow | Each agent's request carried every earlier run | #3336 |
MixtureOfAgents | Reset once per run, so a worker in layer 3 was sent layers 1 and 2 as chat turns on top of the synthesis that already carried them | #3443 |
Two leaks were inside a single run. LLMCouncil's ranking round reused each member's history, so the member's own answer sat in context next to the "anonymous" responses it was ranking, which undid the anonymity (#3562). And SwarmRouter.concurrent_run ran every task on one cached swarm and one conversation: with three tasks, AgentRearrange returned task C's answer for all three (#3463). Each task now runs on its own swarm.
One agent name, one agent
Swarms finds agents by name in many places, and Agent gives every unnamed agent the same default, swarm-worker-01. When two different agents shared a name, the lookup took the first or the last and said nothing. Six places now raise instead:
| Where | What happened with a shared name | PR |
|---|
BaseTool | The model was shown the first tool and the last one ran | #3141 |
SequentialWorkflow | The first agent ran twice and the second never ran | #3497 |
AgentRearrange | "Writer -> Writer" ran the first Writer both times | #3600 |
MajorityVoting | One voter's answer was counted for both; on the PR's repro the minority won two runs in three | #3598 |
Agent(handoffs=[...]) | All but the last handoff target were dropped | #3895 |
one_to_three | Each receiver was sent the others' replies as its own | #3914 |
AgentRearrange also checks every name in the flow before the first agent runs, so a typo no longer lets the earlier steps make their paid calls first (#3846), and a stray arrow such as "A -> B ->" raises ValueError at construction instead of IndexError in run (#3572).
Building an agent: no lookups, half the time
max_tokens and context_length defaulted to None, so every new Agent asked the model registry for both. On RouteHub that downloaded OpenRouter's catalog on the first agent in a process. #3215 gives them fixed defaults, 16,384 and 128,000, and looks the model up only when you pass None. Measured for this post (macOS, Python 3.12, median of nine fresh processes, each version on its own defaults, which means telemetry on for v17 and off for v18):
| v17 | v18 |
|---|
import swarms | 0.249 s | 0.257 s |
import swarms + first Agent(...) | 0.479 s | 0.254 s |
Four more PRs cut the cost of each agent after the first. The autonomous loop, and the second Conversation it builds, are created on first use instead of for every agent, which saved about 18 µs and 1.9 KB per agent (#3412). BaseTool, MCPManager, SkillsManager and AgentMarketplaceHandler are built on first access, since a plain agent reads none of them (#3421). The default state file is named with one secrets.token_hex call instead of 32 secrets.choice calls, 33 µs of a 79 µs construction (#3411). And Conversation computes its save path when it saves, not with an os.getcwd() on every construction (#3415).
Context compression now turns on by default only for max_loops="auto" (#3589), because integer-loop agents rarely approach 90% of their window, yet every one of them built a ContextCompressor and measured its history on every loop. When it does run, compression now keeps the history if the summarizer returns nothing, where it used to replace the whole conversation with an empty summary (#3228), and sends the agent's own base URL and API key, so it works on custom endpoints (#3185).
Thread pools sized by the work
v17 uncapped ConcurrentWorkflow and GraphWorkflow. Collective found nine more pools sized by CPU count. Every one of them runs model calls that spend their time waiting on the network, so on a 2-core container they ran one or two agents at a time.
| Pool | v17 default | v18 default | PR |
|---|
HierarchicalSwarm orders | 95% of cores | One thread per order | #3401 |
Agent.run_concurrent_tasks, talk_to_multiple_agents | os.cpu_count() | One per task or agent | #3432 |
WorkerPool (PlannerWorkerSwarm) | min(agents, cores) | One per agent | #3438 |
batch_agent_execution | 90% of cores, computed at import | One per agent | #3440 |
run_concurrently | os.cpu_count() | One per task | #3447 |
AgentRearrange.batch_run | Each batch capped at cores | batch_size only, one pool, no batch-boundary stalls | #3446, #3860 |
run_agents_concurrently, batched_grid_agent_execution | 95% of cores | One per agent | #3450 |
batch_agent_execution also computed its default in the signature at import, so where os.cpu_count() returned None, import swarms raised TypeError. An explicit max_workers still caps every one of them.
Streams that stop when you stop reading
Agent.run_stream and AgentRearrange.run_stream ran on a background thread. When the reader closed the stream early, nothing told that thread, so it went on making every remaining model and tool call, and paying for them, with nobody reading. With max_loops=4, closing after the first token still made four calls. Both now stop at the next token (#3775, #3629), and SequentialWorkflow.run_stream gets the fix through AgentRearrange.
In the same spirit, ConcurrentWorkflow(on_error="raise") now raises the first failure without waiting for every other agent to finish its paid call (#3802), and a stream that fails mid-answer now raises after showing the error instead of returning the cut-off text as a complete answer, which also lets fallback_models run (#3429).
Failures that reach the caller
v17 made failed swarms raise. Collective found the remaining places that returned something that looked like an answer:
| Where | Before | PR |
|---|
LLMCouncil | A failed member's exception was ranked by every member and synthesized by the chairman | #3217 |
Autonomous loop, max_loops="auto" | A model failure was retried for the whole subtask budget (20 calls), then run() returned the summary prompt as the answer; fallback_models never ran | #3445 |
SwarmRouter with a ConcurrentWorkflow and fallback_swarms | A failed agent's error was stored as its output, so the fallback never fired | #3204 |
HeavySwarm | Missing questions ran every worker on "" and returned the synthesis as a normal result | #3183 |
SpreadSheetSwarm | A failed agent counted as completed, its exception written to the CSV as the result, then export_to_json raised TypeError | #3181 |
HierarchicalSwarm | output_type="final" returned --- Loop 2/2 completed ---; a failed loop was skipped silently | #3452, #3817 |
HierarchicalSwarm feedback | A worker that failed in loop 2 was shown to the director with its loop-1 reply | #3537 |
CronJob.run_many | An invalid second entry raised, but the first job kept running with no handle to stop it | #3182 |
MultiAgentRouter | An empty handoff list raised IndexError; a prose reply raised a bare JSONDecodeError | #3839, #3900 |
GKPAgent | A coordinator that quoted the Explanation: label made run return "" | #3622 |
Conversation | An unreadable save file was overwritten with an empty history; a missing file loaded nothing with no error | #3219, #3881 |
Structures record each agent's answer
v17 fixed seven structures that recorded an agent's whole conversation where they meant its reply. Five more:
| Structure | Before | PR |
|---|
GraphWorkflow | In a five-node chain the last node's input read Delta: Charlie: Bravo: Alpha: ..., and every later run nested the earlier ones | #3527 |
OneOnOneDebate | Each message carried the previous turn's transcript nested inside it | #2817 |
SocialAlgorithms | From an agent's second call, communication_history held its whole conversation | #3691 |
pyramid_swarm | Each row held the earlier answer and task too (then the topology was removed) | #3706 |
AgentMarketplaceHandler.publish | Published the agent's timestamped conversation, including any task text and keys in it, as the listing's prompt | #3624 |
Telemetry: off by default, and redacted when on
Telemetry is now opt-in (#3915). Set SWARMS_TELEMETRY_ON=true (or 1, yes, on, enable, enabled) before importing swarms to emit spans. Unset, @trace_run leaves methods undecorated and no opentelemetry module is imported.
When it is on, more is redacted. Credentials inside URLs (?api_key=, ?token=, https://user:password@host) in MCP server addresses and anywhere else are scrubbed (#3490), as are passwords in database, Redis, AMQP, FTP and SMTP URLs and the token after Authorization: Token (#3512). With SWARMS_LOG_FILES on, logged exceptions no longer write each traceback frame's local variables, keys included, into log files (#3149).
MCP, OAuth and model order
MCPOAuthConfig.client_id and client_secret are now used for a server without dynamic client registration; before, every authorization tried to register a new client (#3223).
- A token cache file is read only by the server it was written for, so a shared
token_storage_path no longer hands one server's OAuth token to another (#3234).
client_credentials discovery reads a listed authorization server's OpenID configuration, the way Microsoft Entra ID publishes it (#3804).
- Explicit
model_name is now called first, with fallback_models after it; it used to be overwritten by fallback_models[0] and never called (#3205).
- Each tool parameter's
description now comes from its Args: entry, and only the docstring summary is sent as the function description. Before, every parameter was described by its own name, and the whole raw docstring went to the model (#3563).
*args and **kwargs are left out of a function tool's schema; one broke the agent at construction and the other produced a schema the model could not satisfy (#3858).
- A bad
tool_search call (cut off by max_tokens, malformed, or missing its query) is answered with its error instead of failing the run (#3427).
- A second autonomous run no longer sends every tool the first run loaded twice (#3859).
glob returns paths read_file can open when a search path is given (#3577).
ToolStorage(tools=[...]) registers the tools it is given (#3933), and a rejected duplicate stays out of its schema (#3168).
DynamicSkillsLoader names a skill after its folder when SKILL.md sets no name (#3211) and no longer loads skills that share only stopwords such as "the" and "for" with the task (#3660).
BaseTool lost its validate, log and re-raise wrappers across nine methods, finishing item 3 of #1833: base_tool.py went from 1,695 to 1,399 lines (#3442, #3448, #3473, #3494, #3585, #3656).
Claude 5 and the models that retired
Anthropic retired Claude Sonnet 4 on June 15, 2026 and retires claude-sonnet-4-5 on November 30, 2026, and OpenAI shut down o3-mini, o4-mini and gpt-4.1-nano on October 23. Five defaults still named them:
| Default | Was | Now | PR |
|---|
MixtureOfAgents aggregator | claude-sonnet-4-20250514 | claude-sonnet-5-5 | #3274 |
LLMCouncil Claude member, SequentialWorkflow drift judge | claude-sonnet-4-5 | claude-sonnet-5-5 | #3426 |
LLMCouncil Gemini member | gemini-2.5-flash, sent to Vertex AI | gemini/gemini-3.5-flash-lite on the Gemini API | #3416 |
random_models_on pool | 8 of 12 entries no longer worked | Each provider's named replacement | #3430 |
Claude 5 models reject a request that carries temperature, and five structures still sent one: MajorityVoting's consensus agent and CouncilAsAJudge's judges (#3202, #3237) with dynamic_temperature_enabled=True, SpreadSheetSwarm's CSV agents (#3353), HierarchicalSwarm's director with 0.7 and top_p=0.9 (#3320), and LLMCouncil's chairman and councillors (#3819). None of them sends a temperature now unless you set one. The tests moved to gpt-5.4, gpt-5.4-mini and claude-sonnet-5-5 (#3757), and swarms[fast] now requires RouteHub 0.4.0, which resolves provider-prefixed ids such as groq/llama-3.3-70b-versatile (#3259).
HierarchicalSwarm
Beyond the forced director call, the reset, the deduplicated prompts and the final output above, #3455 fixed five problems on one code path: with planning_enabled=True the director received History: (no new messages), with no roster and no plan; batched_run(max_workers=2) ran every task on one swarm; two orders to the same worker in one step ran at once on the same agent; workers never received img; and an order for an agent that does not exist was retried before being reported. Orders are now grouped by agent, with different agents in parallel and one agent's orders in sequence, and an unknown agent goes straight back to the director as [UNKNOWN AGENT] with the valid names.
SwarmRouter
- One batch method (#3906).
batch_run ran tasks one after another and sent the whole imgs list to every task; concurrent_run ran them in parallel and paired images by position. Now there is only batch_run: it hands the list to the swarm's own batch_run when there is one, and otherwise runs each task in parallel on its own copy of the router. imgs pairs with tasks, and max_workers caps the pool.
- The swarm cache notices new agents (#3474). It was keyed by agent name, so replacing
router.agents with new agents of the same names kept running the old ones.
- Mistakes are visible. Unknown constructor arguments are named in a warning instead of dropped, so
swarm_typ="GroupChat" no longer silently runs a SequentialWorkflow (#3801). DebateWithJudge requires exactly 3 agents, and HeavySwarm and CouncilAsAJudge warn that they ignore yours (#3553).
- Cheaper when quiet. With
verbose off, the router no longer formats every task and traceback into log messages it then throws away (#3884). swarm_router.py went from 1,233 to 1,158 lines after 21 single-use message helpers were inlined (#3868).
Persistence and conversations
Agent.save() now writes the conversation, and Agent.load() restores it. Before, short_memory was left out of the state file, so a loaded agent had an empty history (#3571).
Agent.save and WorkspaceManager.save_text give each save its own temp file, so concurrent runs of one agent, or concurrent autosaves from SwarmRouter, no longer fail with FileNotFoundError or corrupt the JSON (#3519, #3444).
Conversation.truncate_memory_with_tokenizer keeps the newest messages instead of the oldest (#3796).
Conversation.return_dict_final() returns the final message as a dict, not a tuple of its content twice (#2617).
import_conversation explains that a text export cannot be read back, instead of raising JSONDecodeError (#3568).
AgentRearrange records timestamps and message ids on every conversation (#3860), and sends the "Agent ahead / Agent behind" awareness line only when team_awareness is set, as its docstring always said (#3094).
import swarms leaves your logging alone
import swarms ran disable_logging(), which called logging.basicConfig, deleted every handler on the application's root logger and installed its own at ERROR. Any program using the standard logging module stopped logging after the import, silently (#3489). It now raises the level of a few noisy third-party loggers and touches nothing else.
Surface reduction
Collective removes code that did nothing, or did the wrong thing. The largest pieces: three topologies (star_swarm, mesh_swarm, pyramid_swarm) (#3487, #3710); swarms/cli/main.py split from 2,341 lines into a 173-line entry point plus parser, errors and commands modules, moving every definition unchanged (#3310); 15 test suites under examples/ that pytest never collected, 5,893 lines (#3156); 19 example scripts that failed on their first import or no longer did what they showed, and three duplicates; ape_agent.py, swarm_id.py and func_to_str.py; the SocialAlgorithms timeout, which used SIGALRM and failed off the main thread; and methods that slept once per character or printed nothing (print_panel_token_by_token, stream_response, showcase_config). The toml package is no longer a dependency. The full list is in Breaking Changes.
Breaking Changes
Read this section before upgrading. Some removed keyword arguments land in a **kwargs that is never read, so they are silently ignored rather than raising. Search your code for the names below.
Changed defaults and behaviour:
| Change | What to do | PR |
|---|
| Telemetry is off by default | Set SWARMS_TELEMETRY_ON=true to emit spans | #3915 |
max_tokens defaults to 16,384 and context_length to 128,000, with no model lookup | Pass max_tokens=None for the model's own output limit; pass a lower value for models capped at 8,192 output tokens | #3215 |
context_compression defaults to None: on for max_loops="auto", off for integer max_loops | Pass context_compression=True for a long integer-loop run | #3589 |
An explicit model_name runs first, then fallback_models; model_name defaults to None | Nothing, unless you relied on fallback_models[0] replacing it | #3205 |
Images are sent. img and imgs used to be dropped on every agent run | Expect larger requests; a model the catalog lists without vision gets a warning and the image | #3460, #3461 |
Shared agent names raise in BaseTool, SequentialWorkflow, AgentRearrange, MajorityVoting, Agent(handoffs=...) and one_to_three | Give every agent its own agent_name | #3141, #3497, #3600, #3598, #3895, #3914 |
AgentRearrange checks the whole flow before running, and rejects an empty step at construction | Fix the flow string; agents added with add_agents still work | #3846, #3572 |
LLMCouncil raises when a member fails; default members are named GPT-Councilor, Gemini-Councilor, Claude-Councilor, Grok-Councilor on new default models | Catch the error; pass council_models for other models | #3217, #3815, #3822 |
SwarmRouter.batch_run runs in parallel, pairs imgs with tasks, and raises the task's own error instead of RuntimeError | max_workers=1 for one at a time | #3906 |
SwarmRouter DebateWithJudge needs exactly 3 agents | Pass pro, con and judge | #3553 |
ConcurrentWorkflow runs agents on an event loop: streaming callbacks run on the caller's thread, and code that stubs only LiteLLM.run no longer intercepts its calls | Stub LiteLLM.arun too | #3414 |
GraphWorkflow passes on and returns each agent's answer, not its history | Nothing, unless you parsed the history | #3527 |
SocialAlgorithms.run() returns the formatted conversation, not a SocialAlgorithmResult | Read the output through output_type | #3922 |
Conversation raises on an unreadable save file and on a missing file in load_from_json / load_from_yaml; return_dict_final() returns a dict | Handle FileNotFoundError; read the dict | #3219, #3881, #2617 |
HierarchicalSwarm writes no loop-completed markers; a failed loop adds [LOOP FAILED]; the plan is under a Planner role; extra run() kwargs reach workers | Nothing, unless you parsed the markers | #3452, #3454, #3817, #3455 |
SpreadSheetSwarm CSVs are read by AgentLoader: no model_name column now gets the Agent default instead of openai/gpt-4o | Add a model_name column | #3367 |
CLI: swarms agent requires --task; failed commands exit 1 | Use swarms chat for an interactive agent | #3316, #3291 |
Dependencies: toml is no longer installed; swarms[fast] needs routehub>=0.4.0 | Install toml yourself if your code imports it | #3855, #3259 |
Removed functions, classes and modules:
| Removed | Use instead | PR |
|---|
star_swarm, mesh_swarm, pyramid_swarm | ConcurrentWorkflow, GroupChat, or GraphWorkflow for a custom shape | #3487, #3710 |
rearrange() helper | AgentRearrange(...).run(task) | #3484 |
SwarmRouter.concurrent_run | SwarmRouter.batch_run | #3906 |
MixtureOfAgents.run_concurrently, MajorityVoting.run_concurrently | batch_run; their concurrent tasks shared the same agents | #3935, #3945 |
Agent.to_toml, Agent.stream_response, Agent.showcase_config | to_json / to_yaml; nothing for the other two | #3855, #3516, #3599 |
Formatter.print_panel_token_by_token | print_streaming_panel for real streams | #3596 |
Conversation.search_keyword_in_conversation, get_visible_messages, add_tool_output_to_agent | search(keyword), add(role, output) | #3037 |
SocialAlgorithmResult | The formatted conversation run() returns | #3922 |
BaseTool.function_to_dict, BaseTool.detect_tool_input_type | func_to_dict | #3442, #3428 |
swarms/agents/ape_agent.py (auto_generate_prompt), swarms/structs/swarm_id.py, swarms/tools/func_to_str.py | Agent(auto_generate_prompt=True); generate_id("swarm") | #3923, #3212, #3175 |
CronJobScheduleError, AggregationError, AgentJudgeInitializationError | Nothing raised them: CronJobConfigError / CronJobExecutionError, EvaluationError, AgentJudgeExecutionError | #3167, #3164, #3189 |
get_handoffs_instruction_prompt, check_if_workspace_dir_exists, stop_when_repeats, serialize_to_str, add_multiple_tools_to_log, check_if_model_name_uses_anthropic, create_spinner | Nothing called them | #3190, #3193, #3282, #3177, #3334 |
Prompt.save_to_storage, load_from_storage and the auto_generate_prompt, parent_folder and llm fields | They raised NotImplementedError or were never read | #3216 |
swarms check-login | swarms setup-check, which now shows whether SWARMS_API_KEY is set | #3317 |
Removed parameters and attributes:
| Removed | Behaviour now | PR |
|---|
SwarmRouter.run(tasks=...) | Forwarded to the swarm through **kwargs; use batch_run | #3594 |
HeavySwarm(timeout=...), SwarmRouter(heavy_swarm_timeout=...) | Removed; it never fired | #3814 |
SocialAlgorithms(max_execution_time=...) | Absorbed by **kwargs | #3922 |
AgentRearrange(time_enabled=..., message_id_on=...) | Both always on | #3860 |
ConcurrentWorkflow(auto_save=...) | TypeError; autosave is the real flag | #3705 |
Conversation(save_as_yaml_on=..., save_as_json_bool=...) | TypeError; pass later options by keyword | #3037 |
SelfMoASeq(additional_kwargs=..., enable_logging=..., log_level=...) | TypeError | #3154, #3437 |
SelfConsistencyAgent(max_loops=..., random_models_on=...) | Forwarded to each sample Agent | #3702 |
AgentRouter(n_agents=...), AgentRegistry(return_json=..., auto_save=...), ModelRouter(api_key=...) | Ignored, as they always were | #3420, #3419, #3520 |
generate_swarm_config(file_name=...) | model_name is now the second parameter; pass it by keyword | #3152 |
str_to_dict(retries=...), print_streaming_panel(collect_chunks=...) | TypeError | #3567, #3517 |
ReasoningAgentRouter's empty model_name check | No longer raises | #3711 |
Agent.task, _mcp_tools_deferred, current_subtask_index, the stored fallback_model_name; SwarmRouter.logs; RoundRobinSwarm.index; AutoSwarmBuilder.agents_pool; ModelRouter.model_output | AttributeError; nothing read them | #3413, #3886, #3602, #3195 |
The Full Changelog, Day by Day
Every commit, in order. Dates are when each commit landed on master. Eight PRs from this month (#3175, #3177, #3185, #3202, #3204, #3205, #3228 and #3234) are no longer reachable on GitHub, so their entries carry the commit and its number without a link.
Monday, November 2
cedf380 · #3153 · test(test_agent_registry): delete the manual runner that pytest never uses: the __main__ runner and an unused pytest import go; --collect-only lists the same 18 tests.
d1a4cca · #3154 · fix(SelfMoASeq.__init__): store name and description and remove the unread additional_kwargs: SelfMoASeq(name="x") dropped both values, so seq.name raised AttributeError. additional_kwargs promised to reach the agents and never did; passing it now raises TypeError.
fa0693f · #3151 · chore(ma_blocks, autonomous_loop_utils): delete unused constants and the stale cache docstring: three constants nothing read, and a find_agent_by_name docstring that promised an O(1) cached index for what is a linear search.
c92ba66 · #3152 · refactor(generate_swarm_config): remove the ignored file_name parameter: it was documented as the output YAML file, but the function writes no file. model_name becomes the second parameter.
9720305 · #3150 · fix(SelfConsistencyAgent.run): aggregate on the configured model and majority_voting_prompt
run called aggregation_agent(responses) with nothing else, so the vote always ran on gpt-5.4 with the built-in prompt, whatever the agent was configured with. Both are now passed, and a None prompt, ReasoningAgentRouter's default, falls back to the built-in one.
d5127e4 · #3149 · fix(initialize_logger): turn off diagnose on file sinks so local variables and keys are not written to logs
With SWARMS_LOG_FILES on, a logged exception wrote the local variables of every traceback frame, API keys included, into the log files. diagnose is now off on both file sinks; the console keeps it only when SWARMS_VERBOSE_GLOBAL=true.
a7ada54 · #3136 · fix(HierarchicalSwarm.run): start the director and the swarm's own agents fresh on each run
A reused swarm sent the director every earlier task and the orders it gave for them, so cost grew with every call and the director planned the new task with the old ones in front of it. SwarmRouter caches its swarm, so every router.run() after the first hit this. The director, planning director, feedback director and judge are now reset at the start of each run; memory still carries across max_loops within one run.
d0fb284 · #3147 · feat(GraphWorkflow): add an on_error policy: continue, skip_descendants or raise: see Smaller additions. Eleven new cases, one of them an 8-row policy table; the file goes from 75 to 86 passing tests.
f003203 · #3141 · fix(BaseTool): raise when two different tools share a name instead of showing the model one and running the other
With tools=[WebSearch().search, CustomerDB().search], ToolManager showed the model the first search and BaseTool's function map ran the last. The model asked for a web search and got a customer database lookup. Two different callables with one name now raise at construction; the same callable passed twice is still fine.
647d5a7 · #3135 · fix(ReflexionAgent): reset each agent before every call so one task's turns stop reaching the next: the actor, evaluator and reflector were built once and never cleared, so with two tasks the actor's fourth request carried four prompts, including the first task's.
05a6eed · #3156 · chore(examples): delete the test suites and test scripts kept under examples
testpaths = ["tests"] means pytest never collects examples/, so fifteen test files there never ran in CI, and several no longer worked: the Stagehand suites imported a package that does not exist, and the alternate-debates suite called OpenAI live. 5,893 lines.
Tuesday, November 3
3aae880 · #3146 · feat(MixtureOfAgents.arun): await each worker's arun on the event loop under a settable max_concurrency: layers in order, workers within a layer under max_concurrency (default max_workers, or every worker), output identical to run. A failing worker's error is recorded as its answer and a failing aggregator raises, as in run.
4bf4f5c · #3167 · chore(CronJobScheduleError): delete the exception class that is never raised: an invalid interval raises CronJobConfigError and a scheduling failure CronJobExecutionError, so an except CronJobScheduleError could never run.
1b600b5 · #3164 · chore(AggregationError): delete the exception class that is never raised: an aggregator failure in CouncilAsAJudge surfaces as EvaluationError. A scan found no other never-raised exception classes in swarms/.
6758dd4 · #3163 · fix(label-ai-generated.yml): match Codex links and OpenAI co-author trailers: the ai-generated labeler only knew a chatgpt.com/codex link, so Codex's default disclosures (an openai.com/codex link, a Co-Authored-By: Codex trailer, noreply@openai.com) matched nothing.
2e47bfa · #3185 · fix(ContextCompressor._summarize): send the agent's base URL and API key with the summary call so compression works on custom endpoints: with no summarizer_model, the summary call used the agent's model name but not its llm_base_url or llm_api_key, so an agent on a self-hosted or proxied endpoint could not compress.
e5428d8 · #3177 · chore(serialize_to_str, add_multiple_tools_to_log, check_if_model_name_uses_anthropic): delete three helpers that have no caller
94b70f3 · #3182 · fix(CronJob.run_many): leave no job running when an entry is invalid or fails to start
run_many checked, built and started each entry in one loop. A typo in the second entry's interval ("fortnights") raised, but the first job was already running on its own scheduler thread, and the exception threw away the list stop_many needed. The caller was told the schedule failed while the first agent kept being called once a second. Every entry is now validated and built before any starts, and a start failure stops the ones already running.
13699e3 · #3181 · fix(SpreadSheetSwarm._track_output): record a failed agent as an error instead of its answer: one provider error was counted as a completed task, stored as the agent's message, written to the CSV as its result, and then made export_to_json raise TypeError after every agent had finished.
b19e7ac · #3175 · chore(func_to_str): delete the module, whose functions_to_str has no caller
5172a9d · #3183 · fix(HeavySwarm.execute_question_generation): report missing questions as an error instead of running workers on empty tasks: a decomposer that answered in prose returned {}, every worker ran on "", and the synthesis came back as a normal result, which also defeated fallback_swarms. (#3480 later forced the tool call itself.)
Wednesday, November 4
c3ca126 · #3189 · chore(AgentJudgeInitializationError): delete the exception class that is never raised
100621c · #3194 · test(test_async_subagent): delete the manual runner that pytest never uses: its banner also named gpt-4.1-nano while the file uses gpt-5.4.
f41a5dd · #3190 · chore(get_handoffs_instruction_prompt): delete the uncalled prompt helper: its sibling get_handoffs_prompt, which the tool manager and autonomous loop call, stays.
7c314fc · #3192 · fix(ReasoningDuo.__init__): pass agent_description to both agents under the name Agent reads: it passed description=, which Agent dropped into **kwargs, so both agents kept the generic default and ReasoningAgentRouter's own description was lost the same way.
3c8ccf4 · #3193 · chore(check_if_workspace_dir_exists): delete the helper that nothing calls: its docstring promised a ValueError that it never raised.
628800e · #3195 · chore(AutoSwarmBuilder, ModelRouter): delete the write-only agents_pool and model_output attributes
cb0c0c6 · #3191 · refactor(create_spinner): remove the ignored text parameter: the spinner rendered its task description, so the strings both callers passed were never shown.
ac171cb · #3202 · fix(default_consensus_agent): leave dynamic_temperature_enabled off so Claude consensus agents run and the kwarg can be passed
The hard-coded dynamic_temperature_enabled=True put a random temperature on every MajorityVoting consensus request, which current Claude models reject. Passing it, max_loops or dynamic_context_window through additional_consensus_agent_kwargs also raised TypeError; the three now fall back to Agent's defaults.
0023748 · #3209 · feat(Agent.__init__): accept description as another name for agent_description: Agent(description="Checks tax math.") kept the generic default description, and so did every structure that passed description= through.
1590b01 · #3204 · fix(SwarmRouter._create_concurrent_workflow): raise agent failures when fallback_swarms is set so the fallback runs: ConcurrentWorkflow stores a failed agent's error as its output by default, so the router saw a normal return. When a fallback follows it in the chain, the router now builds it with on_error="raise" unless you pass on_error yourself.
Thursday, November 5
6eec3ac · #3215 · feat(Agent.__init__): default max_tokens to 16384 and context_length to 128000, look up the model only on None
See Building an agent. In the PR's measurement the first Agent in a fresh process built in 49 to 62 ms with the new defaults, against 235 to 257 ms with the lookup, and building one now works offline. 0 or a negative value for either now raises AgentInitializationError.
9200680 · #3214 · test(test_output_str_fix): delete the test that cannot fail and the manual runner: it caught every exception and returned False, and pytest ignores return values.
7945125 · #3212 · chore(swarm_id): delete the deprecated module that nothing imports
9933796 · #3213 · fix(Prompt.id): give each prompt its own default id
The default was uuid.uuid4().hex, which Python ran once when the class body was defined. Every Prompt created without an id had the same one, so with autosave=True the second prompt overwrote the first's file. It now uses default_factory.
d2b66cd · #3216 · refactor(Prompt): remove the unread fields and the storage methods that only raise: auto_generate_prompt, parent_folder and llm were never read, and save_to_storage / load_from_storage were one line each, raise NotImplementedError. Old saved JSON still loads.
736678c · #3235 · feat(LLMCouncil.usage): sum provider token usage over the members and the chairman
1fe4408 · #3236 · feat(structs): give every multi-agent structure a usage property: 24 structures through one helper, total_usage. See Token usage on every structure.
2fe7dcf · #3237 · fix(CouncilAsAJudge): leave dynamic_temperature_enabled off so Claude judges and the aggregator run: a council on a Claude model failed at its first judge with HTTP 400. The same defect as #3202, in another structure.
6891b09 · #3219 · fix(Conversation.setup_file_path): raise when a saved conversation cannot be loaded instead of overwriting it
An autosave interrupted mid-write leaves partial JSON. The constructor logged the parse error, started an empty history, and with autosave=True saved that empty history over the file. The saved conversation was erased with only a log line to show for it. It now raises.
66d7756 · #3205 · fix(Agent.__init__): call an explicit model_name first and try fallback_models after it: an explicit model_name was overwritten by fallback_models[0] and never called. model_name now defaults to None so an explicit one can be told apart; it runs first, then each differing fallback_models entry in order.
c53be4e · #3168 · fix(ToolStorage.add_tool): keep a rejected duplicate out of tool_storage_schema: adding a tool twice raised ValueError as documented, but still left a second entry in the schema list_tools() returns.
c56b5a1 · #3228 · fix(ContextCompressor._summarize): keep the history when the summarizer returns no text: an empty or None summary replaced the whole conversation, so the agent lost its history and was told nothing had been compressed. An empty reply now raises inside _summarize, and maybe_compress keeps the history and logs the failure.
ba5a737 · #3226 · feat(AgentMailChannel): add a backend option to run the email thread on AgentMail or Resend: see Smaller additions. Quote stripping moved into a shared strip_quoted() that SmtpChannel also uses.
130ed86 · #3223 · fix(MCPManager._build_oauth_provider): use the configured client_id and client_secret instead of registering a new client: the MCP SDK registers whenever its token storage has no client info, and MCPManager never gave it the configured client, so a server without dynamic registration could not be authorized at all.
311291e · #3234 · fix(MCPFileTokenStorage._read): ignore a token cache written for another server instead of sending its token: a shared token_storage_path, or a colliding default file name, handed one server's OAuth token to another.
Friday, November 6
3d6a591 · #3259 · chore(pyproject.toml): require routehub 0.4.0 so provider-prefixed models resolve: with RouteHub 0.2 or 0.3 already installed, pip kept it, and ids such as groq/llama-3.3-70b-versatile got a 16,000-token limit and "may not be supported" warnings.
d1d19b0 · #3256 · chore(examples/models): import the vLLM wrapper that ships beside vllm_example and delete llama_4: both imported swarms.utils.vllm_wrapper, removed in July 2025.
ae0e57e · #3248 · chore(examples): delete the deep_research_swarm, bell_labs and swarms_api examples, whose modules are gone
994c8a4 · #3249 · chore(examples/utils/misc): delete the swarm_matcher and visualizer examples, whose modules are gone
747070b · #3217 · fix(LLMCouncil.run): raise when a council member fails instead of ranking its error as an answer
run_agents_concurrently returns a failed agent's exception as its result, and LLMCouncil used it as the member's response. Every member ranked a rate-limit error, and the chairman wrote a final answer from it. run now re-raises the member's AgentLLMError, whose message names the member, and the chairman does not run.
Saturday, November 7
316f98b · #3282 · chore(stop_when_repeats): delete the module-level helper that only tests use: despite its name, it returned true when a response contained the word "stop".
59232ec · #3284 · fix(ConcurrentWorkflow.run): start each agent from a clean history so a reused workflow doesn't resend earlier runs
e5e7ce2 · #3283 · fix(LLMCouncil.run): start the members and the chairman from a clean history so a reused council doesn't resend earlier runs
9770846 · #3306 · feat(SelfOrganizingSwarm): add a leaderless swarm that coordinates through asynchronous messages
The headline feature: an inference-only port of the s³ harness, 1,388 lines with its prompts, an example and 27 offline tests. See SelfOrganizingSwarm. Members are built with reasoning_prompt_on=False, persistent_memory=False and tool_retry_attempts=1, because a retry re-runs every call in the turn and would deliver messages twice.
35bea93 · #3255 · fix(swarms.structs): export PlannerWorkerSwarm so from swarms import PlannerWorkerSwarm works: the import CLAUDE.md showed failed with ImportError.
9ee86ac · #3285 · fix(DebateWithJudge.run): start each debate from a clean history and drop the three setup calls: a one-round debate now makes 3 model calls instead of 6, and the role introductions open each agent's first-round prompt instead of costing a call each.
1514a4a · #3291 · fix(cli.main): exit with status 1 when a command fails: every handler caught its own exception and printed a red panel, then the process exited 0, so scripts, CI jobs and Docker entrypoints read a failure as success.
4ec8726 · #3310 · refactor(cli.main): split main.py into parser, errors and commands modules, and generate --help from the parser
main.py was 2,345 lines; it is now 173, with parser.py, errors.py and commands.py beside it. An AST comparison finds all 25 top-level definitions exactly once and unchanged, and 13 commands print byte-identical output. The hand-written help screen had drifted: it left out tips and models, nine flags, and showed --model-name defaulting to gpt-4. It is now generated from the parser.
eb07b83 · #2817 · fix(OneOnOneDebate.run): pass on each speaker's latest reply by running the shared one_on_one_debate loop: each turn carried the previous speaker's whole transcript nested inside it.
a433b82 · #3305 · fix(fresh_agent): copy an agent with its system prompt and tool list as they are instead of appending them again
PhasedFanOutWorkflow runs every worker on a copy made by fresh_agent, which read each constructor value back off the live agent. The system_prompt already held the init-time additions (the reasoning prompt, SAFETY_PROMPT, the handoffs prompt), so every copy appended them a second time, and tools_list_dictionary was the same list object, so the copy's tool loading grew the original's list.
Sunday, November 8
b76de99 · #3312 · feat(ModelRouter): offer GLM 5.3 Flash as the low-cost GLM route: asked for on Discord. Adds z-ai/glm-5.3-flash to the routing table and an OpenRouter example.
8353acd · #3313 · feat(cli.main): add --version and show the banner and help when swarms runs with no arguments
22e0d09 · #3315 · chore(cli): route onboarding to the setup-check handler and delete two unreachable branches
d46ee9a · #3316 · fix(cli.handle_agent): require --task for swarms agent instead of reporting success when nothing ran: without --task it built an agent, never ran it, printed "executed successfully!" and exited 0. It now exits 1 and points to swarms chat.
00bae6a · #3320 · fix(HierarchicalSwarm.__init__): send the director temperature and top_p only when they are set: the defaults 0.7 and 0.9 went out on every director call; gpt-5.5 rejects top_p and Claude 5 rejects temperature, so a swarm with either as director failed on its first call. Both now default to None.
3db4358 · #3317 · fix(cli.check_login): remove check-login, which reports a login without checking any credentials: it printed "✓ Login successful!" for anyone and contacted nothing. swarms setup-check gains a Swarms API Key row.
Monday, November 9
aeedf87 · #3333 · refactor(cli.commands): print each command's result through one helper
fa1cf18 · #3334 · chore(cli.get_api_key): remove the one-second fake delay and the spinner only it used
97ac7d2 · #3353 · fix(SpreadSheetSwarm): leave dynamic_temperature_enabled off so CSV-loaded agents run on Claude
9ebefe4 · #3354 · feat(Agent.arun): run natively on the event loop with real token streaming
+1,908 / −504. See Agent.arun runs natively on the event loop. trace_run gained an async wrapper, and Formatter.print_streaming_panel was rebuilt on a streaming_panel context manager the async path shares. Tests that patched only the sync completion to intercept arun need to stub acompletion too.
be625d0 · #3336 · fix(BatchedGridWorkflow.run): start each run's agents from a clean history so a reused workflow doesn't resend earlier runs
1b9cab0 · #3352 · fix(AgentLoader.parse_markdown_file): resolve Claude Code model aliases and inherit, and read frontmatter that is not strict YAML: model: sonnet became model_name="sonnet", which built fine and failed on its first call with an unknown provider. It now resolves to claude-sonnet-5-5.
22a8f39 · #3355 · refactor(reset_agents): reset agents in every structure through one helper: 15 hand-written resets in 12 structures. The reset stays in the structures, not in Agent.run, because a structure resets once and then calls each agent several times.
Tuesday, November 10
229172d · #3363 · feat(benchmark.py): measure import time, Agent construction and a 100-agent fan-out against a stubbed model
9baccbf · #3361 · fix(SpreadSheetSwarm): load agents from a CSV without passing agents, and read max_loops from it as a number: the constructor raised "No agents are provided" before reading the CSV, and csv.DictReader handed "1" to max_loops, which stopped the loader at that row.
00bb5c5 · #3367 · refactor(SpreadSheetSwarm._load_from_csv): build the CSV's agents with AgentLoader instead of a second CSV reader: AgentConfig gains stopping_token so that column keeps working. A CSV with no model_name column now gets the Agent default instead of openai/gpt-4o.
7ae2824 · #3357 · chore(examples): delete the communication, caching and agent_grpo example folders, whose modules were removed: eight scripts, 811 lines, each raising ModuleNotFoundError on its first import.
3f610e2 · #3373 · feat(A2AServer): serve an agent over A2A 1.0 with an agent card and SendMessage
6ab38fc · #3365 · feat(A2AAgent): call a remote A2A agent as a handoff: zero lines in Agent, because the handoff path reads only agent_name, agent_description and run(task).
b71c9d8 · #3375 · refactor(A2AServer, A2AClient): split both into named steps, add init options with defaults, and rename A2AAgent to A2AClient: both exported from swarms, with four examples in examples/a2a/ and an A2A row in the README. The rename landed a day after A2AAgent, before any release.
3da3c11 · #3376 · test(A2AClient, A2AServer): merge the client and server tests into one file
94b4323 · #3377 · docs(README): remove comments from the architecture examples and shorten the SwarmRouter example
32060e2 · #3378 · docs(README): shorten the GraphWorkflow example to agents, edges and run: 22 lines to 13, using add_nodes([...]) and add_edge(researcher, writer).
a3ffc9c · #3379 · docs(README): shorten the architecture descriptions and the coding-assistant section
b7e465c · #3356 · feat(Agent): add output_schema so run returns a validated Pydantic instance: see output_schema. An early version re-asked the model on an invalid reply; that was removed before merge, because the schema already goes to the provider as response_format.
Wednesday, November 11
0dbd74e · #3385 · chore(examples/hierarchical_swarm): delete the five streaming examples written for the per-agent callback HierarchicalSwarm dropped: the callback never fired, and a worker that got it would have raised TypeError on its three-argument signature. 695 lines.
314c22f · #3383 · refactor(ConcurrentWorkflow.run_with_dashboard): run through _run with the dashboard as a per-agent hook: the two copies had drifted, so with show_dashboard=True a failed agent was recorded under a different role. 704 to 620 lines.
92ca914 · #3386 · docs(CLAUDE.md, AGENTS.md): ask agents for docstrings, type hints, readable spacing and few comments
547b84f · #3243 · fix(structs): remove duplicate GroupChat entry from all
f43775b · #3274 · fix(structs/mixture_of_agents): replace the retired claude-sonnet-4-20250514 aggregator default with claude-sonnet-5-5: a MixtureOfAgents built without an aggregator failed when the aggregator was called.
8b7aa80 · #3211 · fix(DynamicSkillsLoader): name a skill after its folder when SKILL.md sets no name, as the static loader does: the model received a skills section with an empty ## heading.
47b128c · #3323 · fix(total_usage): skip stored copies of a usage total so a nested PhasedFanOutWorkflow or TreeOfThoughts is counted once: 105 tokens reported where 60 were spent.
fbdbe76 · #2799 · fix(ModelRouter.step): cap the routed call's max_tokens at the router's max_tokens: the routed call used whatever the routing model put in its reply, so ModelRouter(max_tokens=500) sent 64,000.
3b7f056 · #2617 · fix(Conversation.return_dict_final): return the final message as a dict: it returned ('x', 'x').
bb0acb1 · #3245 · fix(prompts): remove unused uuid import
d74cb28 · #3300 · fix(structs): remove redundant try-except and bind loop variable in consensus callback
fdabb1e · #3088 · refactor(GraphWorkflow._successors_map): remove the write-only successors cache
5a230b6 · #3387 · feat(DecisionModel): add Google's gemini-decision-1 as a provider: any model name starting gemini-decision goes to Gemini's Decisions API with GEMINI_API_KEY.
4ac99e2 · #3389 · docs(DecisionModel): add a one-question Gemini example
726e654 · #3390 · chore(arun_example): move the async agent example into the examples folder
dfd2c1a · #3393 · refactor(HeavySwarm.get_questions_only, get_questions_as_list): read the roster from the question schema instead of three hard-coded lists: changing a roster meant editing both methods and the schema; now only the schema.
ac2473d · #3395 · docs(CLAUDE.md, AGENTS.md): add a rule against backticks in docstrings: docstrings are read as plain text in editors, in help() and in tool schemas sent to a model. Seven cleanup PRs followed this month.
Thursday, November 12
de6161c · #3401 · perf(HierarchicalSwarm): size the order pool by the number of orders, not the CPU count: on a 2-core runner every order ran one after another.
d99097b · #3403 · chore(docstrings): write names as plain words in 16 modules no open PR touches
f20f843 · #3398 · refactor(GraphWorkflow): merge the set_entry_points/set_end_points and save/save_to_file pairs: each pair was the same body with one word swapped.
6a9d184 · #3388 · docs(DecisionModel): add a Gemini return request example: four questions in one request, automatic approval only above confidence thresholds, a photo check, and the cost printed.
7362e09 · #3399 · feat(benchmark.py): add a LangGraph column and measure every framework in a fresh process
4e85ed5 · #3404 · feat(benchmark.py): add LangChain, CrewAI, AutoGen, OpenAI Agents, Pydantic AI, LlamaIndex and Agno columns: see Benchmarks. Each column builds that framework's own agents and runs them the way it does natively, and a "model calls per fan-out" row shows every column did the same work.
db7ecfd · #3411 · perf(Agent.__init__): name the default state file with generate_id instead of generate_api_key: 33 µs of a 79 µs construction.
162ae31 · #3412 · perf(Agent.autonomous_loop): build the autonomous loop on first use, not for every agent
c00c686 · #3414 · perf(ConcurrentWorkflow.run): await agents on one event loop instead of holding a thread per agent: 1,000 agents, 1,002 peak threads to 2.
0bd0654 · #3415 · perf(Conversation.setup_file_path): compute the default save path when saving, not with os.getcwd at construction: os.getcwd() was about 7 µs, most of a Conversation's construction time.
293a5c7 · #3413 · refactor(Agent): remove four attributes nothing reads: task, _mcp_tools_deferred, current_subtask_index and the stored copy of fallback_model_name. The parameter itself is still folded into fallback_models.
Friday, November 13
fb38f5c · #3420 · refactor(AgentRouter): remove the n_agents parameter that nothing reads: n_agents=3 returned one agent, with no error.
81a4ee0 · #3418 · chore(docstrings): write names as plain words in tree_of_thoughts and loguru_logger
1ff2300 · #3419 · refactor(AgentRegistry): remove the return_json and auto_save parameters that do nothing
ad79779 · #3421 · perf(Agent.__init__): build BaseTool, MCPManager, SkillsManager and AgentMarketplaceHandler on first access
aabfa8c · #3416 · fix(LLMCouncil._create_default_council): send the default Gemini councillor to the Gemini API and replace retired Gemini names: a bare gemini-2.5-flash went to Vertex AI, which needs google-auth and Google Cloud credentials Swarms does not install.
8ba2c8e · #3424 · test(benchmark_agent_rearrange): add a workflow benchmark for AgentRearrange against LangGraph, LangChain, AutoGen, Agno and CrewAI: see Benchmarks, including where AgentRearrange loses.
cb677db · #3426 · fix(LLMCouncil, SequentialWorkflow): move the Claude defaults off the retiring claude-sonnet-4-5 to claude-sonnet-5-5: on the PR author's key both names already returned 404, so LLMCouncil() and swarms llm-council failed.
4c2f73e · clean up comment on llm council
7a6f7e3 · #3430 · fix(ma_utils.models): replace the shut-down models random_models_on picks from with their providers' named replacements: 8 of 12 entries failed when called.
fdad11d · #3429 · fix(Formatter.streaming_panel): raise a mid-stream error after showing it instead of returning the cut-off reply: with the default streaming_on=True, print_on=True, a stream that failed mid-answer returned the partial text as the answer and skipped fallback_models.
ae3c740 · #3427 · fix(ToolManager._run_tool_search_calls): answer a bad tool_search call with its error instead of failing the run
3b64d0b · #3432 · perf(Agent.run_concurrent_tasks): size the thread pool by task count, not os.cpu_count: 20 tasks on 4 cores took about five times the wall time they needed.
Saturday, November 14
1e4479a · #3431 · fix(PhasedFanOutWorkflow._parse_json): parse a valid JSON reply whose strings hold a code fence: a lazy fence regex ran before json.loads, so a reply whose string value mentioned a fenced block was cut between the inner fences and rejected on every retry.
e1f4c3b · #3437 · refactor(SelfMoASeq): remove the enable_logging and log_level parameters that nothing reads: recreated from #3435 by alisamadzadeh46 so its docs PR could be opened alongside.
16b3a6e · #3438 · perf(WorkerPool): run one worker per agent by default instead of capping at the CPU count
728ee4b · #3440 · perf(batch_agent_execution): size the pool by the number of agents, not 90% of the CPU count: the default was computed at import, so where os.cpu_count() returned None, import swarms raised TypeError.
5b90a8e · #3441 · refactor(ToolStorage): remove the thread pool nothing uses: every ToolStorage built a ThreadPoolExecutor that nothing read or shut down.
0dd3555 · #3428 · refactor(BaseTool.detect_tool_input_type): delete the input-type check nothing in the framework calls
9b14e80 · #3445 · fix(AutonomousAgentLoop, Agent._generate_final_summary): raise a failed model call so fallback_models run instead of returning the summary prompt
With max_loops="auto", two generic handlers caught AgentLLMError. The subtask loop called the same failing model again for its whole budget, 20 calls by default, and then _generate_final_summary returned the conversation whose last row was the summary prompt it had just added. fallback_models never ran in auto mode, and run() returned the framework's own prompt as a successful answer.
e4f7f46 · #3444 · fix(WorkspaceManager.save_text): give each save its own temp file so concurrent runs stop dropping and corrupting autosaves
deb8aea · #3442 · refactor(BaseTool.func_to_dict): build the schema directly instead of forwarding to a duplicate function_to_dict: func_to_dict is the name the docs and the v17 migration guide point to, so it stays and the duplicate goes.
Sunday, November 15
e603940 · #3447 · perf(run_concurrently): default to one thread per task instead of the CPU count: also fixes HybridHierarchicalClusterSwarm.batched_run, which passed os.cpu_count() * 2 and raised where that was None.
734583b · #3446 · perf(AgentRearrange.batch_run): run every task in a batch at once instead of capping at the CPU count
d8ac70a · #3452 · fix(HierarchicalSwarm.run): return the last answer for output_type final instead of the loop marker: every successful run ended with a --- Loop N/M completed --- system turn, so final, last, list-final and dict-final returned the marker. A nested HierarchicalSwarm reported the marker to its parent.
a21de6a · #3454 · refactor(HierarchicalSwarm.run): stop writing a failed-loop marker into the conversation: (#3817 later records a failed loop as [LOOP FAILED], so it is no longer silent.)
f8eab93 · #3455 · fix(HierarchicalSwarm): give the director its plan and roster, pass img to workers, and isolate concurrent tasks and same-agent orders: five fixes on one path. See HierarchicalSwarm.
56fea11 · #3456 · feat(loguru_logger): add SWARMS_GLOBAL_LOGGER_ON to turn every Swarms log off
428d518 · #3457 · chore(.env.example): group the variables into framework, model keys, comms channels and cloud providers, and drop the tool keys: seven tool keys nothing in swarms/ reads are gone.
9558c1e · #3450 · perf(run_agents_concurrently, batched_grid_agent_execution): size the pool by the number of agents, not 95% of the CPU count: LLMCouncil, AuctionSwarm, MixtureOfAgents, SpreadSheetSwarm and BatchedGridWorkflow all reach these with no cap set.
56f5b80 · #3460 · fix(LiteLLM._prepare_messages): send img and imgs to the model on every Agent run
The image never left the process. See Images reach the model. The first commit is Ayaan Gazali's fix from #2363, cherry-picked with its authorship; the second covers a last user turn that already has content parts, and a body with no user turn at all. A new suite, tests/structs/test_agent_images.py, checks the request every path sends.
557172c · #3461 · fix(LiteLLM.check_if_model_supports_vision): warn and send the image when vision support cannot be confirmed, instead of raising
7feadce · v17.0.3: bumps the version to 17.0.3, the month's point release.
8e28479 · #3463 · fix(SwarmRouter.concurrent_run): run each task on its own swarm so tasks stop sharing one conversation: with three tasks, AgentRearrange, MajorityVoting and RoundRobin returned task C's answer for all three.
Monday, November 16
dc68622 · #3474 · fix(SwarmRouter._compute_swarm_cache_key): rebuild the cached swarm when the agents or a factory setting change, instead of reusing it by agent name: a sweep of one team across models, with the same agent names, kept running the first model.
efa28f5 · #3473 · refactor(BaseTool.convert_funcs_into_tools): drop the log wrappers and the second exception wrap from the function schema methods
61a6a96 · #3448 · *refactor(BaseTool.base_model_to_dict): drop the log wrappers, the dead args and the second exception wrap from the Pydantic schema methods
9ce1541 · #3484 · refactor(AgentRearrange): drop the rearrange helper and strip docstring markup
7d1a104 · #3479 · perf(LLMCouncil.run): give the chairman each member's evaluation, not its whole transcript: with three members the chairman's request carried the task four times and every answer once per evaluator.
c8bdedf · #3481 · fix(LLMManager.build): keep a tool_choice passed through llm_args instead of overwriting it with auto: the setting the next ten forced-tool PRs build on.
0ee309c · #3482 · fix(HierarchicalSwarm.setup_director): force the director's OrderBatch tool call instead of sending tool_choice auto
adb6eb2 · #3483 · fix(PlannerWorkerSwarm._create_planner_agent): force the planner's PlannerTaskSpec tool call instead of sending tool_choice auto: sub-planners are built by the same method, so they get it too.
16fb600 · #3480 · fix(HeavySwarm.execute_question_generation): force the question tool call instead of sending tool_choice auto
5af5802 · #3472 · fix(GroupChat): force the respond tool call on bids instead of auto, and log each bid under verbose: the docstring, CLAUDE.md and the docs all called the bid "forced"; nothing forced it. A prose bid read as silence, and a chat could end with "".
9855f9b · #3485 · refactor(forced_tool_choice): build every forced tool_choice through one shared helper
d8ed7db · #3487 · refactor(swarming_architectures): remove star_swarm and mesh_swarm: 195 lines, with their tests and examples.
bd479e6 · #3489 · fix(disable_logging): leave the application's root logger alone on import swarms: see import swarms leaves your logging alone.
e5ae031 · #3488 · fix(AgentRegistry): stamp time_added and time_registry_creatd when each is created, not when the module is imported: every agent in every registry carried the module's import time.
2d690fc · #3471 · perf(CouncilAsAJudge): send the task once per judge request instead of three times: build_judge_prompt(dim, task, task) put the task in both the task and response blocks, and a third copy followed the prompt; six judges per run.
6654b1b · #3490 · fix(otel._sanitize): redact credentials carried inside URLs before sending telemetry: redaction went by dict key only, so mcp_url="https://host/mcp?api_key=..." was sent as written.
2319354 · #3491 · fix(AutoAgentBuilder._builder_agent): force the build_agents tool call instead of sending tool_choice auto: a structure #3468 did not list, found by the same check.
Tuesday, November 17
939d4ba · #3501 · fix(HybridHierarchicalClusterSwarm): force the router agent's tool call instead of sending tool_choice auto
0f8c45a · #3500 · fix(HierarchicalSwarm._get_judge_agent): force the judge's JudgeReport tool call instead of sending tool_choice auto
c7e66bf · #3497 · fix(SequentialWorkflow.sequential_flow): reject two different agents that share a name instead of running the first one twice: the common way to hit it was agents built without agent_name, which all default to swarm-worker-01.
987798e · #3498 · fix(PlannerWorkerSwarm._run_judge): force the judge's CycleVerdict tool call instead of sending tool_choice auto
4a81d57 · #3502 · fix(DebateWithJudge.run): record the task first so the default output keeps the Pro argument: the default output_type drops the first message, and the first message was Pro's opening argument, so readers got the rebuttal and the verdict but not the argument they answer.
c7d85bf · #3503 · fix(AgentLoader.load_agents_from_markdown): skip every file over max_file_size_mb and leave the caller's list alone: removing items from the list while iterating it skipped the second of two oversized files, and changed the caller's list.
3452a59 · #3499 · fix(TreeOfThoughts): force each role's tool call instead of sending tool_choice auto
bc53cea · #3495 · fix(OneOnOneDebate.run, one_on_one_debate): start each debate from a clean history and drop the two setup calls
90d4807 · #3494 · refactor(BaseTool.convert_tool_into_openai_schema): drop the log wrappers, the dead check branches and the unreachable empty-result branch
Wednesday, November 18
6aabce2 · #3520 · refactor(ModelRouter): remove the api_key parameter that nothing reads: neither LLM call received it; keys come from the provider's environment variables.
2cb115d · #3518 · chore(docstrings): write names as plain words in six swarms.structs modules
125ff9b · #3519 · fix(Agent.save): give each save its own temp file so concurrent runs of one agent stop failing: Agent(autosave=True).run_concurrent_tasks([...]) failed with FileNotFoundError.
87f8e63 · #3516 · refactor(Agent.stream_response): remove the method that sleeps once per word and prints nothing: its print was removed in September 2025 and the sleep was kept.
161d1d7 · #3513 · fix(KnowledgeGenerator): give the generator agent the description passed in instead of a fixed one
98ac660 · #3521 · chore(comments): cut eleven multi-line comment blocks to one line in six files
22e6b06 · #3512 · fix(otel._scrub): redact passwords in database URLs and the token after Authorization: Token: postgresql://admin:S3cretPass99@db.internal:5432/prod reached the collector unchanged, and Authorization: Token S3cretPass99 came out with the word "Token" redacted and the token kept.
0545e9b · #3443 · fix(MixtureOfAgents.run, arun): reset workers before every layer instead of once per run: with layers=3, a worker's requests held 1, 3 and then 5 turns.
ab60344 · #3527 · fix(GraphWorkflow.run): pass on and return each agent node's answer, not its history
3b10904 · #3528 · docs(README): shorten the MCP Integration and MCPDeployer sections
b9817bf · #3534 · fix(heavy_swarm_agents._build_agent): give workers only the loop-control tools and worker_tools: about 9.7k characters of unused tool schemas per worker call, including run_bash.
b158a70 · #3560 · test(SwarmRouter): run every swarm type end to end against a stubbed model: a swarm type added to SwarmType without a test case now fails with KeyError.
5936cc4 · #3553 · fix(SwarmRouter.reliability_check): require 3 agents for DebateWithJudge and warn when HeavySwarm or CouncilAsAJudge ignore agents: with 5 agents the last two were dropped and the third became the judge; with 2 the run failed with list index out of range.
76c5e34 · #3540 · fix(RustworkxBackend): keep one edge per node pair so a predecessor output reaches its target once: on rustworkx, a duplicate edge sent A's output to B twice and reported in_degree 3 instead of 2.
cf89bb1 · #3563 · fix(get_parameter_json_schema.type2description): describe each tool parameter from its Args entry and send only the docstring summary
b4a2823 · #3543 · perf(GroupChat): add score_only_bids so agents bid with a score and only the winner writes a reply
77d6838 · #3542 · fix(_AuthMiddleware): keep public paths public when the server is mounted under a prefix: the health check and the A2A agent card, which clients must fetch without a key, returned 401.
010c4e9 · #3517 · refactor(Formatter.print_streaming_panel): remove the collect_chunks parameter that nothing reads
Thursday, November 19
1733823 · #3567 · chore(str_to_dict): remove the retry loop that re-parses the same string: the string never changes between tries, and with retries=0 a valid string returned None.
4b04f22 · #3568 · fix(Conversation.import_conversation): raise a clear error for a text export instead of a JSONDecodeError
4793a4c · #3571 · fix(Agent.save, Agent.load): save the conversation and restore it on load: a file saved before this change still loads, with an empty history as before.
40fcfcd · #3572 · fix(AgentRearrange.reliability_check): reject a stray arrow in the flow with ValueError at construction instead of IndexError in run
2315a07 · #3578 · fix(SwarmRouter): add a model_name setting that reaches the agents four swarm types build for themselves
0ca4c03 · #3586 · fix(MajorityVoting.run): send img to every voter instead of dropping it in kwargs
3cfa616 · #3587 · fix(SwarmRouter): let model_name reach the CouncilAsAJudge, HeavySwarm and LLMCouncil agents
17c7ab5 · #3589 · fix(Agent.__init__): turn context compression on by default only when max_loops is auto: dynamic_loops=True, which switches to "auto", still turns it on, because the compressor is now built after setup_config().
d337e6f · #3588 · perf(Agent, LiteLLM, messages_for): send images on the task turn so providers can cache them across loops
c50c1c2 · #3570 · perf(PlannerWorkerSwarm._run_judge): send the cycle judge each worker result and the goal once
3a8e2bf · #3577 · fix(glob_tool): return paths read_file can open when a search path is given: glob("*.py", path="src") returned app.py, and read_file("app.py") then failed.
5af4c34 · #3585 · refactor(BaseTool.execute_tool_by_name): drop the log wrappers and the ToolExecutionError branch that cannot run
01d1a2c · #3581 · fix(SwarmRouter.run): run each task in tasks instead of passing tasks to a swarm that has no such parameter: no swarm type accepted it, so every run(tasks=[...]) raised TypeError.
6e52dd8 · #3594 · refactor(SwarmRouter.run): remove the tasks parameter; batch_run runs a task list
Friday, November 20
8c4da22 · #3595 · chore(docstrings): write names as plain words in five more modules
32ec05a · #3596 · refactor(Formatter.print_panel_token_by_token): remove the method that sleeps once per character to replay finished text: 500 characters took 5.34 s to show.
cb0e6ea · #3599 · refactor(Agent.showcase_config): remove the method that prints each config value one character per line: gpt-5.4 printed as seven rows, and the table ran to about 890 lines.
d1f0712 · #3602 · refactor(RoundRobinSwarm): remove the index attribute that is written every turn and never read
52a6adc · #3598 · fix(MajorityVoting.reliability_check): reject two voters that share a name instead of counting one voter's answer for both: three voters named "Voter" answering yes, no and no showed the consensus agent "Voter: yes" three times in two runs of three.
4a00910 · #3603 · refactor(MajorityVoting): move the unique voter name check into its own method and sort imports
811ce3c · #3600 · fix(AgentRearrange.reliability_check): reject two different agents that share a name instead of running the first one for both
Saturday, November 21
6ea905d · #3624 · fix(AgentMarketplaceHandler.publish): publish the agent's system prompt instead of its timestamped conversation transcript
Agent(publish_to_marketplace=True) sent the agent's conversation as the listing's prompt. In the PR's repro, a task containing sk-123 was posted to the marketplace. It now publishes the system prompt.
70fdefc · #3632 · refactor(HeavySwarm.run): drop tasks and imgs from the trace_run input_params
00b2f50 · #3635 · refactor(GroupChat.run): drop tasks, img and imgs from the trace_run input_params
9a5fc57 · #3638 · refactor(MultiAgentRouter.run): drop tasks, img and imgs from the trace_run input_params
d86baa7 · #3637 · refactor(RoundRobinSwarm.run): drop tasks, img and imgs from the trace_run input_params
d612c31 · #3639 · refactor(HierarchicalSwarm.run): drop tasks and imgs from the trace_run input_params
d27e048 · #3633 · refactor(LLMCouncil.run): drop tasks, img and imgs from the trace_run input_params
9d5ce08 · #3640 · refactor(AgentRearrange.run): drop tasks and imgs from the trace_run input_params
ec36572 · #3636 · refactor(CouncilAsAJudge.run): drop tasks, img and imgs from the trace_run input_params
ed983ca · #3641 · refactor(MixtureOfAgents.run): drop tasks and imgs from the trace_run input_params
ca46ed9 · #3634 · refactor(GraphWorkflow.run): drop tasks and imgs from the trace_run input_params: the ten PRs above share one cause. trace_run records a listed name only when it is a bound argument, so names a method does not take were never recorded; they only suggested parameters that do not exist. Spans record the same inputs as before.
4dcbded · #3648 · fix(get_image_base64): label a raw base64 image with its real format instead of always JPEG
bbcb9c6 · #3646 · fix(set_random_models_for_agents): rebuild each agent's client so it calls the model it was assigned: agent.model_name said gpt-4o-mini while the request still went to gpt-5.4, including in two shipped demos.
77cf53e · #3650 · refactor(BatchedGridWorkflow.run): drop task, img and imgs from the trace_run input_params
2fd8e14 · #3562 · fix(LLMCouncil.run): reset the members before ranking so their own answer is not in context
88f6f3f · #3622 · fix(GKPAgent._coordinate_answers, Reasoner.reason_and_answer): find each reply section after the one before it: a reply that opened with Answer: also raised ValueError from min(), failing the whole query.
955651e · #3652 · fix(HierarchicalSwarm._worker_run_payload): stop sending each worker the director's orders to every worker
537ee21 · #3569 · perf(DebateWithJudge._create_judge_prompt): send the judge its previous synthesis once from loop 2 on
5a1de28 · #3655 · fix(HierarchicalSwarm.run): send the director the task and each worker output once
Sunday, November 22
6b00866 · #3657 · perf(GroupChat._decide_sync): stop quoting the latest message the bid history already ends with: on round 1 that message is the user's task, which can be a pasted document, sent twice in every bid.
Monday, November 23
04e7e0a · #3691 · fix(SocialAlgorithms._recorded_run): record each agent's answer instead of its whole transcript
ea514b2 · #3696 · feat(ReasoningDuo.usage): report provider token usage summed over reasoning_agent and main_agent
afea445 · #3700 · docs(README): state the mission as building collective superintelligence: "We believe that multi-agent collaboration at scale will be vastly more intelligent than AGI and ASI." The name of this release comes from here.
cf266a6 · #3701 · docs(CLAUDE.md, AGENTS.md): require a framework docs PR for every public parameter or method change: a framework PR without its docs PR will not be merged.
364af63 · #3699 · feat(GKPAgent.usage): report provider token usage across the knowledge generator, reasoner and coordinator
b3c5092 · #3698 · feat(ReflexionAgent.usage): report provider token usage summed over the actor, evaluator and reflector
08f9fe8 · #3697 · feat(SelfConsistencyAgent.usage): report provider token usage summed over the sample and aggregation agents: the sample agents are built per run and dropped, so their usage is added as each finishes.
62d2b7c · #3702 · feat(SelfConsistencyAgent): vote with a caller's aggregator_agent behind preset_agents, and drop max_loops and random_models_on: mismatched settings raise ValueError at construction, and the prompts moved to swarms/prompts/self_consistency_prompts.py.
659ec8f · #3708 · feat(AgentJudge.usage): report provider token usage for the judge agent
ee59d78 · #3705 · refactor(ConcurrentWorkflow): remove the auto_save parameter that nothing reads: it defaulted to True, which read as "saving is on", while only autosave did anything.
fd0e044 · #3704 · chore(execution_utils): write names as plain words in the batched_run and run_concurrently docstrings
da7dc16 · #3706 · fix(pyramid_swarm): record each agent's answer instead of its whole transcript
72ad537 · #3710 · refactor(pyramid_swarm): remove the pyramid swarm topology: after this, git grep -i pyramid finds nothing in the repo.
1dd14ac · #3707 · feat(IterativeReflectiveExpansion.usage): report provider token usage for the IRE agent
8187803 · #3668 · fix(ReasoningAgentRouter.batched_run, run): pass extra arguments on to the selected agent's run as the docstrings say: batched_run(tasks, include_intermediates=True) dropped the argument, and run("a", True) passed the task twice.
0efccf4 · #3711 · feat(ReasoningAgentRouter): add self_reflexion_preset_agents and drop the model_name check
4934e73 · #3537 · fix(HierarchicalSwarm._format_worker_responses): stop handing the feedback director a failed worker's output from an earlier loop
bc8c979 · #3619 · fix(SelfMoASeq.run): report each run's sample and aggregation counts instead of a running total
3dc3569 · #3660 · fix(DynamicSkillsLoader): stop loading skills that share only stopwords with the task: "the", "a", "and" and "for" made up most of the similarity, so any ordinary sentence cleared the 0.3 threshold for unrelated skills.
9170bc0 · #3656 · refactor(BaseTool.check_str_for_functions_valid, find_function_name, check_func_if_have_*): drop the log wrappers and the nested branches: the last four methods of item 3 in #1833.
Tuesday, November 24
cdb5e0e · #3720 · fix(ReasoningAgentRouter): accept an aggregator_agent so self_reflexion_preset_agents=False can run: the day before, the option raised ValueError on every self-consistency run, because the router had no way to pass the agent it required.
cdef574 · #3718 · feat(ReasoningAgentRouter.usage): return the usage of the swarm the latest run built: covers the latest run only, and after batched_run the last task, because each run builds a new swarm. Closes #2342.
7ecee3a · #3629 · fix(AgentRearrange.run_stream): stop the running agents when the consumer closes the stream
1148915 · #3739 · feat(MessageBoard): add a SQLite message board whose threads agents start and work through tools: see MessageBoard.
e6b5edf · #3740 · chore(examples/channel_examples): group the channel examples into one folder per channel: 23 scripts moved, none renamed.
d7a8447 · #3741 · docs(examples/channel_examples): add a README with an index of the examples to each channel folder
294a38d · #3742 · fix(KnowledgeGenerator.generate_knowledge): return only the knowledge the model generated instead of padding with empty strings: a model that returned two facts cost four extra reasoner calls on empty knowledge, and those four paths then outvoted the two real ones.
5fa37c1 · #3717 · chore(ReasoningDuo): add the missing type hints and docstring, and write names in docstrings as plain words
4c9f29a · #3732 · fix(SelfConsistencyAgent.check_responses_for_answer): match the expected answer as a whole word or number, not as a substring: with answer="4", "2 + 2 = 14" and "42" both counted as finding it.
Wednesday, November 25
2015e08 · #3746 · chore(examples): remove the duplicate Groq and council judge examples
b7906db · #3747 · test(AutoSwarmBuilder): remove the integration test that is always skipped: it had an unconditional @pytest.mark.skip.
e14b3ce · #3750 · chore(examples): remove 4o_mini_demo.py, a copy of the medical coder demo
a517562 · #3748 · test(test_prompt_caching): run the 18 offline cache_config checks under pytest: the file was a script with no test_ function, so CI had never run them.
f16ab49 · #3757 · test(tests): replace older model names with gpt-5.4, gpt-5.4-mini and claude-sonnet-5-5: 28 test files.
Thursday, November 26
679ced4 · #3768 · test(LiteLLM._output_token_key): cover the Azure, OpenRouter, xAI, DeepSeek, Cerebras, Ollama and vLLM models the docs list
b14ff05 · #3773 · test(LiteLLM._should_use_direct_url): check that a local endpoint gets image URLs as base64
4446930 · #3769 · test(LiteLLM._supports_prompt_caching): check that by default only Claude models get cache markers, across providers: markers break Gemini requests, and no test had checked Gemini, xAI, DeepSeek, Groq, Ollama or Claude through OpenRouter.
7444a6f · #3796 · fix(Conversation.truncate_memory_with_tokenizer): keep the newest messages instead of the oldest: five messages into a six-token budget kept messages 1 and 2; it now keeps 4 and 5.
79507de · #3797 · docs(CLAUDE.md): describe RoundRobinSwarm and AutoSwarmBuilder the way they run
2f19bd4 · #3763 · fix(AgentOutputSchemaError): rebuild with raw_output and validation_error when unpickled
3ec1708 · #3800 · fix(broadcast): run the agents in a worker thread so awaiting broadcast does not block the event loop: two gathered broadcasts took 2.02 s, all four agent calls in a row, and froze everything else on the loop.
c1fac1b · #3801 · fix(SwarmRouter.__init__): warn with the names of unknown constructor arguments instead of dropping them silently
d9cbe18 · #3799 · fix(run_single_agent, get_agents_info): pass task positionally and drop the None team header: any extra positional argument made run_single_agent raise "got multiple values for argument 'task'".
3c0cfad · #3759 · fix(CouncilAsAJudge._configure_caching): stop rewriting the module's prompt builders on every construction: each construction rewrapped three module-level functions for the whole process, cache_size never took effect, and inspect.signature on them raised "wrapper loop".
6141775 · #3774 · refactor(GraphWorkflow): merge auto_set_entry_points and auto_set_end_points into one helper
e848d24 · #3737 · fix(Prompt.add_tools): append the tool schema as a recorded edit: it did self.content += dict and raised TypeError on every call.
4051d71 · #3775 · fix(Agent.run_stream): stop the run when the consumer closes the stream instead of running every loop
d2a7bc0 · #3802 · fix(ConcurrentWorkflow._run, _arun): raise the first agent failure under on_error="raise" without waiting for the rest
d7988b6 · #3804 · fix(_discover_token_endpoint): look up the token endpoint in a listed authorization server's OpenID configuration
Friday, November 27
0ee069d · #3808 · fix(check_api_keys): accept every provider key swarms init offers instead of four: a project with only a Groq, Mistral, Together, xAI or OpenRouter key failed swarms setup-check with "No API keys found".
0d2070f · #3815 · fix(LLMCouncil._create_default_council): name the default members without model versions: Claude-Sonnet-4.5-Councilor ran claude-sonnet-5-5, and the chairman used the names to map answers back to members.
c04cd3a · #3813 · fix(GroupChat._extract_args): treat a NaN or infinite bid score as no bid instead of the top bid: max(0.0, min(1.0, nan)) is 1.0, because every comparison with NaN is false.
9f0a5b4 · #3819 · feat(LLMCouncil): add DEFAULT_COUNCIL_MODELS and council_models, remove preset temperature
1e31077 · #3822 · chore(LLMCouncil): update DEFAULT_COUNCIL_MODELS to latest low-cost provider models
04f83ef · #3817 · fix(HierarchicalSwarm.run): record a failed loop in the conversation instead of skipping it silently
d4913a9 · #3820 · fix(HeavySwarm.execute_question_generation): give the medium variant's question prompt the workers' real roles: the question prompt described Harper as a storyteller while Harper's own system prompt asked for research.
c9d7d45 · #3814 · refactor(HeavySwarm): remove the timeout setting that never fires, and SwarmRouter's heavy_swarm_timeout: each result was read inside as_completed, so the timeout applied to futures that had already finished. A running thread cannot be stopped from outside, so the setting is removed rather than made to work.
1ff2459 · #3841 · docs(CLAUDE.md, AGENTS.md): require a category, area and authorship label on every PR
bb443b7 · #3839 · fix(MultiAgentRouter.handle_single_handoff): raise a clear error when the boss picks no agent instead of an IndexError
Saturday, November 28
7105381 · #3855 · refactor(Agent.to_toml): delete the unused method and the toml dependency that only it needs
2850f8c · #3851 · perf(A2AServer): import starlette when a server is built instead of on import swarms: 18 to 25 ms of a 250 to 287 ms import, and a v17 test that guarded exactly this was failing on master because of A2AServer.
ab704ae · #3858 · **fix(get_typed_signature): leave *args and kwargs out of a function tool's schema
850f02d · #3846 · fix(AgentRearrange.run): check every flow name before the first agent runs: replaces #3753, merged by mistake on November 27 and taken back out when master was reset; same branch and commits.
1103a68 · #3859 · fix(ToolManager.setup_dynamic_tools): stop carrying the previous run's loaded tools into a new loader: replaces #3812, the same way.
c9e30c3 · #3860 · refactor(AgentRearrange): simplify batch_run to a single pool and enable timestamps and message IDs by default: a freed worker now starts the next task at once instead of waiting for the slowest task in its chunk.
a36101e · #3868 · refactor(SwarmRouter): inline message helpers and remove docstring backticks: 21 single-use _msg_* helpers, every message string unchanged.
84eb1b6 · #3850 · fix(MessageBoard.set_labels): apply label changes in one UPDATE so concurrent changes are not lost: replaces #3761, merged by mistake and reverted with the same reset.
3ec7c66 · #3854 · fix(AuctionSwarm._extract_bid): treat a NaN or infinite confidence or cost as a no-confidence bid instead of a high-scoring one: {"confidence": 0.9, "estimated_cost": NaN} scored 900,000 against an honest bid's 0.45. The check moved into a shared swarms/utils/finite_float.py that GroupChat also uses.
ab0c893 · #3856 · perf(HeavySwarm): send the question model the task once and later loops the previous synthesis once
Sunday, November 29
0aee316 · #3878 · fix(AgentRearrange.run_async): remove redundant _catch_error wrapper: each failure was logged twice. Edward Yang's first contribution.
beed2b7 · #3886 · refactor(SwarmRouter, SwarmRouterConfig): remove the unused logs attribute and the Pydantic v1 Config class
fe94021 · #3882 · refactor(agent_rearrange): remove the module-level logger that nothing in the file uses
b907b06 · #3896 · perf(find_agent_by_name): replace generator scan and strip allocation with direct loop and isspace: about 1.3 to 2.0 times faster on typical swarm sizes.
c0b858c · #3881 · fix(Conversation.load_from_json, load_from_yaml): raise FileNotFoundError for a missing file instead of loading nothing
e7bc152 · #3897 · refactor(find_agent_by_name): consolidate agent name lookups across structs using find_agent_by_name: it now resolves nested swarms by name as well as agents by agent_name.
ff16c6b · #3884 · perf(SwarmRouter): skip formatting tasks and tracebacks for logs when verbose is off
c40db22 · #3895 · fix(ToolManager.get_agent_registry): reject handoff agents that share a name instead of silently dropping all but the last
14982fc · #3883 · refactor(AgentRearrange.reliability_check): remove the max_loops == 0 check that init never lets fire
Monday, November 30
a835283 · #3902 · fix(Agent.__call__): handle a failed run once instead of twice: agent(task) logged the error twice and, with autosave=True, saved twice. It now behaves exactly like agent.run(task).
571ad50 · #3903 · docs(agent_rearrange.py): shorten the long docstrings to a summary line with Args, Returns and Raises: docstrings were 415 of 1,327 lines, and several were wrong about what the methods do.
c8ca321 · #3900 · fix(MultiAgentRouter.route_task): raise an error naming the boss model and its reply when the reply isn't JSON instead of a bare JSONDecodeError
c135de5 · #3906 · refactor(SwarmRouter.batch_run): merge concurrent_run into batch_run and use the swarm's own batch_run when it has one: see SwarmRouter.
ebc19a9 · #3912 · docs(SwarmRouter): trim redundant init docstring and Raises blocks
d2aabd6 · #3915 · feat(telemetry_on): turn telemetry off by default and require explicit opt-in
0741e95 · #3914 · fix(one_to_three): reject two different agents that share an agent_name instead of sending each one the other's replies as its own
0cbd05b · #3920 · refactor(_check_receivers): simplify duplicate agent name check in one_to_three
963751c · #3037 · refactor(Conversation): remove redundant helpers and unused save flags: search_keyword_in_conversation missed rows that search() found and raised on an int; get_visible_messages raised KeyError on any conversation built with add().
93aed7f · #3094 · fix(AgentRearrange._run_sequential_workflow): send sequential awareness only when team_awareness is set: every default AgentRearrange and SequentialWorkflow run sent a system turn the caller never asked for.
84a0288 · #2241 · fix(SocialAlgorithms._execute_with_timeout): time out with a joined thread, not SIGALRM: signal.signal raises off the main thread, and the timeout was on by default, so run() from any worker thread failed before the algorithm started.
96a69be · #3922 · refactor(SocialAlgorithms): remove timeout logic and SocialAlgorithmResult, return history_output_formatter: later the same day, the timeout went entirely, and run() returns the formatted conversation like the other structures.
cbb7abb · #3923 · refactor(Agent.check_if_no_prompt_then_autogenerate): remove ape_agent.py and inline prompt generation
Tuesday, December 1
dbf0044 · #3935 · refactor(MixtureOfAgents): remove run_concurrently and add batch_run: each concurrent run replaced self.conversation and reused the same agents, so tasks could overwrite each other's state.
4d18aea · #3939 · chore(file_processing): remove stale TODO comment and sort imports
660a37e · #3933 · fix(ToolStorage.__init__): register the tools passed to the constructor instead of ignoring them: ToolStorage(tools=[add]).get_tool("add") raised "No tool found".
ccabb66 · #3945 · refactor(MajorityVoting): remove run_concurrently, whose tasks share the voter agents: overlapping tasks could put one task's turns in another's request; #3466 measured up to 1 mixed request in 12.
By the Numbers
| |
|---|
| Commits | 327 |
| Files changed | 326 |
| Lines | +18,820 / −15,908 |
swarms/ | 124 files, +10,136 / −6,646 (net +3,490) |
tests/ | 85 files, +7,582 / −969, 12 new test files |
| Test functions | 1,130 → 1,301 |
examples/ | 109 files, +915 / −8,085 (net −7,170); 22 files added, 40 deleted |
| New modules | 12: self_organize, message_board, a2a_server, a2a_client, usage_utils, tool_choice, finite_float, self_organize_prompts, self_consistency_prompts, and the CLI's parser, errors and commands |
| Modules removed | 3: ape_agent, swarm_id, func_to_str; plus star_swarm, mesh_swarm, pyramid_swarm and rearrange |
Structures with a usage property | 24 added in one PR, plus LLMCouncil, 6 reasoning agents and ReasoningAgentRouter |
| Structures that now force their tool call | 7, in 9 places |
swarms/cli/main.py | 2,341 → 173 lines |
base_tool.py | 1,695 → 1,399 lines |
agent.py | 2,931 → 3,499 lines (the native async path) |
import swarms + first Agent | 0.48 s → 0.25 s |
ConcurrentWorkflow, 1,000 agents, peak threads | 1,002 → 2 |
| Contributors | 11 |
| Point releases along the way | 17.0.3 |
Khalil Peguero landed 142 commits: output_schema, the AgentMail Resend backend, GraphWorkflow's on_error, MixtureOfAgents.arun, the forced tool calls for the director, planner, judges and TreeOfThoughts, the CLI repairs, the pool sizing across six helpers, Agent.save that keeps the conversation, ReasoningAgentRouter.usage, half the deduplicated prompts, and most of the dead parameters, methods and examples this release removes. Kye Gomez's 70 brought SelfOrganizingSwarm, MessageBoard, native Agent.arun, ConcurrentWorkflow on the event loop, usage on every structure, the eight-framework benchmark, the image fixes, the HierarchicalSwarm overhaul and opt-in telemetry. Ayaan Gazali's 52 brought the A2A server and client, score_only_bids, the first benchmark, the HierarchicalSwarm and ReflexionAgent resets, the CronJob, AgentLoader and conversation-safety fixes, and three of the reasoning agents' usage. GrandhiShryuk's 28 fixed images, telemetry redaction, glob, marketplace publishing and a long run of silent wrong-answer bugs; Steve-Dusty's 16 finished the BaseTool cleanup of #1833 and fixed tool schemas; ShryukGrandhi's 8 fixed fallbacks, compression and OAuth token isolation; Shivam Mahajan replaced the retired model defaults; and Sahal Hussain, John Carl, alexcastgonz and Edward Yang each landed fixes.
Upgrade Notes
- Turn telemetry on if you want it. It is now off unless
SWARMS_TELEMETRY_ON=true is set before import swarms.
- Check
max_tokens on small-output models. The default is now 16,384. Models capped at 8,192 output tokens need a lower value or max_tokens=None, which looks the limit up as v17 did.
- Ask for compression on long integer-loop runs.
context_compression is on by default only for max_loops="auto"; pass context_compression=True otherwise.
- Give every agent its own name.
SequentialWorkflow, AgentRearrange, MajorityVoting, handoffs, one_to_three and tool lists now raise on two different objects with one name, which includes two agents left on the default swarm-worker-01.
- Replace
SwarmRouter.concurrent_run with batch_run, and run(tasks=...) with batch_run(tasks). batch_run now runs in parallel; pass max_workers=1 for the old order.
- Expect images to be sent. Agents given
img or imgs now actually send them, so requests are larger and image-capable models behave differently. Check structures that hand one image to several agents.
- Replace removed topologies and helpers.
star_swarm, mesh_swarm and pyramid_swarm are gone, as are rearrange, MixtureOfAgents.run_concurrently, MajorityVoting.run_concurrently, Agent.to_toml, SocialAlgorithmResult and swarms check-login. Install toml yourself if you used it through Swarms.
- Update tests that stub the sync model call.
ConcurrentWorkflow and Agent.arun now go through LiteLLM.arun and litellm.acompletion.
- Read
GraphWorkflow and SocialAlgorithms results again. GraphWorkflow now returns each node's answer, not its history, and SocialAlgorithms.run() returns the formatted conversation.
- Try the new pieces.
output_schema for typed results, .usage on any structure for cost, A2AServer to put an agent on the network, and SelfOrganizingSwarm with communication=False beside it to measure what coordination buys on your task.
What's Next
The open threads are written down rather than implied:
- Deep workflows in
AgentRearrange. The benchmark shows it renders the whole shared conversation for every agent, so a 512-agent chain takes 887 ms of overhead and 52 MB against 186 ms and 2.4 MB for LangGraph with function nodes. Passing each step only what it needs is the next large speedup for chains.
- Per-agent weight. At 10.4 KB and 0.18 ms per agent, Swarms was the heaviest column in the fan-out benchmark. This release built four helpers lazily; the rest of the gap is in
Agent.__init__ itself.
Agent.clone() (#3433). Concurrent tasks on one SwarmRouter or HierarchicalSwarm now get their own swarm and transcript, but still share the Agent objects, so a request can carry another task's turns. A real per-task copy closes that.
- Structured output in the structures.
MultiAgentRouter, ModelRouter, AutoSwarmBuilder and PhasedFanOutWorkflow each still wire response_format by hand; moving them onto output_schema, with a tool-call fallback for models without native structured output, is the rest of #3347.
SelfOrganizingSwarm in SwarmRouter and a usage property for it. Its run() takes private_inputs, a verifier and task_tools, which the router has no way to pass yet, and its members are rebuilt every run, so tokens are reported in the result instead.
score_only_bids by default. It cuts a GroupChat turn from N full replies to one, at the cost of one extra call's latency. Whether to flip the default needs live token measurements, which the PR did not have.
ReasoningAgentRouter(random_models_on=...) now has no effect, since self-consistency was its only use. Removing it is a follow-up.
- A2A streaming and tasks.
A2AServer answers SendMessage with a single reply. The protocol's streaming and long-running task methods are not served yet.
Learn more: Documentation · GitHub · Examples · Discord