Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/langchain-ai/langgraphjs/multi-agentgit clone --depth 1 https://github.com/langchain-ai/langgraphjsWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.02694 |
| Opus 5 | $0.00000 | $0.01347 |
| Sonnet 5 | $0.00000 | $0.00539 |
| Haiku 4.5 | $0.00000 | $0.00269 |
Grade A, and why
multi-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 357 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Multi-agent
A single agent might struggle if it needs to specialize in multiple domains or manage many tools. To tackle this, you can break your agent into smaller, independent agents and composing them into a multi-agent system.
In multi-agent systems, agents need to communicate between each other. They do so via handoffs — a primitive that describes which agent to hand control to and the payload to send to that agent.
Two of the most popular multi-agent architectures are:
- supervisor — individual agents are coordinated by a central supervisor agent. The supervisor controls all communication flow and task delegation, making decisions about which agent to invoke based on the current context and task requirements.
- swarm — agents dynamically hand off control to one another based on their specializations. The system remembers which agent was last active, ensuring that on subsequent interactions, the conversation resumes with that agent.
Supervisor

Use langgraph-supervisor library to create a supervisor multi-agent system:
npm install @langchain/langgraph-supervisor
import { ChatOpenAI } from "@langchain/openai";
// highlight-next-line
import { createSupervisor } from "@langchain/langgraph-supervisor";
import { createReactAgent } from "@langchain/langgraph/prebuilt";
import { tool } from "@langchain/core/tools";
import { z } from "zod";
const bookHotel = tool(
async (input: { hotel_name: string }) => {
return `Successfully booked a stay at ${input.hotel_name}.`;
},
{
name: "book_hotel",
description: "Book a hotel",
schema: z.object({
hotel_name: z.string().describe("The name of the hotel to book"),
}),
}
);
const bookFlight = tool(
async (input: { from_airport: string; to_airport: string }) => {
return `Successfully booked a flight from ${input.from_airport} to ${input.to_airport}.`;
},
{
name: "book_flight",
description: "Book a flight",
schema: z.object({
from_airport: z.string().describe("The departure airport code"),
to_airport: z.string().describe("The arrival airport code"),
}),
}
);
const llm = new ChatOpenAI({ modelName: "gpt-4o" });
// Create specialized agents
const flightAssistant = createReactAgent({
llm,
tools: [bookFlight],
prompt: "You are a flight booking assistant",
// highlight-next-line
name: "flight_assistant",
});
const hotelAssistant = createReactAgent({
llm,
tools: [bookHotel],
prompt: "You are a hotel booking assistant",
// highlight-next-line
name: "hotel_assistant",
});
// highlight-next-line
const supervisor = createSupervisor({
agents: [flightAssistant, hotelAssistant],
llm,
prompt: "You manage a hotel booking assistant and a flight booking assistant. Assign work to them, one at a time.",
}).compile();
const stream = await supervisor.stream({
messages: [{
role: "user",
content: "first book a flight from BOS to JFK and then book a stay at McKittrick Hotel"
}]
});
for await (const chunk of stream) {
console.log(chunk);
console.log("\n");
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 357 lines · 0 tokens per session scan A cfd6d38f8b84
multi-agent is an agent published in the GitHub repository langchain-ai/langgraphjs (3,242 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,694 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
affaan-m-agentshield
Explain why this repository is useful for advanced web development, 3D frontend, animations, UI systems, or creative development.
akihirookuda95-openai-agents-sdk-tutorial
Agent "akihirookuda95-openai-agents-sdk-tutorial" from SAIRAMANALADI/vybe-intelligence-vault, covering akihirookuda95/openai-agents-sdk-tutorial, summary, why it matters, repository details and possible use cases.
alexpeclub-ai-coding-starter-kit
Explain why this repository is useful for advanced web development, 3D frontend, animations, UI systems, or creative development.
overview
The Agent Starter Pack follows a "bring your own agent" approach. It provides several production-ready agent templates designed to accelerate your development while offering the flexibility to use your preferred agent framework or pattern.
iteration
The iteration agent of /auto. Runs the /auto-iteration-loop skill — an autonomous review loop that consumes /auto-verify's four-state output (PASS / FAIL / INCONCLUSIVE / ZEROELIGIBLEVARIANTS) plus the orthogonal deferred bucket and routes each claim to the right back-edge (① variant-only fix / ② baseline-script fix /…
huyen-agents
Updated 2025: This is a summary of Chip Huyen's blog and book chapter on agents, with some added context to provide a comprehensive overview of their design, capabilities, and practical applications.