Skip to content
PluginStats

@ai-sdk-tools/agents weekly downloads statistics

By ai-sdk-tools (5 listings) · npm · AI SDKs

Multi-agent orchestration system built on AI SDK v5 - handoffs, routing, and coordination for any AI provider

View on npm Fresh · Dec 6, 2026

@ai-sdk-tools/agents has 8,964 recorded weekly downloads on npm, an increase of 60.3% over the past 30 days, ranking #1315 of 3,247 tracked listings.

Weekly downloads
8,964
Official API · Dec 5, 2026
7-day growth
+139%
+5.2K weekly downloads
30-day growth
+60.3%
+3.4K weekly downloads
90-day growth
+4.7%
+405 weekly downloads
Rank
#1315
▲ 270 in 7 days

About @ai-sdk-tools/agents

@ai-sdk-tools/agents

npm version

Multi-agent orchestration for AI SDK v5. Build intelligent workflows with specialized agents, automatic handoffs, and seamless coordination. Works with any AI provider.

npm install @ai-sdk-tools/agents ai zod

Why Multi-Agent Systems?

Complex tasks benefit from specialized expertise. Instead of a single model handling everything, break work into focused agents:

Customer Support: Triage → Technical Support → Billing
Content Pipeline: Research → Writing → Editing → Publishing
Code Development: Planning → Implementation → Testing → Documentation
Data Analysis: Collection → Processing → Visualization → Insights

Benefits
  • Specialization - Each agent focuses on its domain with optimized instructions and tools
  • Context Preservation - Full conversation history maintained across handoffs
  • Provider Flexibility - Use different models for different tasks (GPT-4 for analysis, Claude for writing)
  • Programmatic Routing - Pattern matching and automatic agent selection
  • Production Ready - Built on AI SDK v5 with streaming, error handling, and observability
When to Use Agents

Use multi-agent systems when:

  • Tasks require distinct expertise (technical vs. creative vs. analytical)
  • Workflow has clear stages that could be handled independently
  • Different models excel at different parts of the task
  • You need better control over specialized behavior

Use single model when:

  • Task is straightforward and can be handled by general instructions
  • No clear separation of concerns
  • Response time is critical (multi-agent adds orchestration overhead)

Core Concepts

Agent

An AI with specialized instructions, tools, and optional context. Each agent is configured with a language model and system prompt tailored to its role.

Memory & Conversation History

Agents automatically load conversation history from storage when memory is enabled. This creates a clean separation of concerns:

  • Frontend: Sends only the new user message
  • Backend: Loads conversation history from storage
  • Storage: Single source of truth for all conversations

This approach:

  • Reduces network payload (no need to send full history)
  • Provides consistent context across requests
  • Enables server-side control of context window size via lastMessages config
  • Integrates seamlessly with @ai-sdk-tools/memory providers
Handoffs

Agents can transfer control to other agents while preserving conversation context. Handoffs include the reason for transfer and any relevant context.

Enhanced Context Management: The system now supports OpenAI-style context filtering during handoffs, allowing you to control exactly what information is passed between agents using HandoffInputFilter functions.

Orchestration

Automatic routing between agents based on:

  • Programmatic matching: Pattern-based routing with matchOn
  • LLM-based routing: The orchestrator agent decides which specialist to invoke
  • Hybrid: Combine both for optimal performance

Enhanced Features (v0.3.0+)

Context Management & Handoff Filtering

The package now includes OpenAI-style context management with AgentRunContext and HandoffInputFilter support:

import { Agent, handoff, removeAllTools, keepLastNMessages } from '@ai-sdk-tools/agents';

// Configure handoffs with context filtering
const specialist = new Agent({
  name: 'Specialist',
  model: openai('gpt-4o'),
  instructions: 'Specialized instructions...',
});

const orchestrator = new Agent({
  name: 'Orchestrator',
  model: openai('gpt-4o'),
  instructions: 'Route to specialists...',
  handoffs: [
    // Remove all tool calls when handing off
    handoff(specialist, {
      inputFilter: removeAllTools,
      onHandoff: async (runContext) => {
        console.log('Handing off to specialist');
      },
    }),
    // Keep only last 10 messages for context windowing
    handoff(anotherSpecialist, {
      inputFilter: keepLastNMessages(10),
    }),
  ],
});
Agent Communication During Handoffs

Agents automatically share context through conversationMessages during handoffs. No separate tools needed.

Working Memory

Working memory automatically loads and provides update capability when enabled:

const agent = createAgent({
  memory: {
    workingMemory: { 
      enabled: true,
      scope: 'user', // Persists across all chats for this user
      template: 'Custom template...'
    }
  }
});

When enabled:

  • Working memory loads automatically into system instructions
  • Agent gets updateWorkingMemory tool to update preferences/context
  • Updates persist in storage via the memory provider
Pre-built Handoff Filters
  • removeAllTools() - Remove all tool-related messages
  • keepLastNMessages(n) - Keep only the last N messages for context windowing

Quick Start

Basic: Single Agent
import { Agent } from '@ai-sdk-tools/agents';
import { openai } from '@ai-sdk/openai';

const agent = new Agent({
  name: 'Assistant',
  model: openai('gpt-4o'),
  instructions: 'You are a helpful assistant.',
});

// Generate response
const result = await agent.generate({
  prompt: 'What is 2+2?',
});

console.log(result.text); // "4"
Handoffs: Two Specialists
import { Agent } from '@ai-sdk-tools/agents';
import { openai } from '@ai-sdk/openai';

// Create specialized agents
const mathAgent = new Agent({
  name: 'Math Tutor',
  model: openai('gpt-4o'),
  instructions: 'You help with math problems. Show step-by-step solutions.',
});

const historyAgent = new Agent({
  name: 'History Tutor',
  model: openai('gpt-4o'),
  instructions: 'You help with history questions. Provide context and dates.',
});…

Description from the npm listing.

  • ai
  • ai-sdk
  • agents
  • multi-agent
  • orchestration
  • handoff
  • routing
  • llm
  • openai
  • anthropic
  • google
  • claude

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@ai-sdk-tools/agents weekly downloads on npm, last 90 days: 8,964 weekly downloads as of Dec 5, 2026, +4.7% over 90 days.@ai-sdk-tools/agentsWeekly downloads on npm · Last 90 days8,964downloads / week+4.7% over 90 days02K4K6K8K10K12KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@ai-sdk-tools/agents weekly downloads on npm, last 90 days: 8,964 weekly downloads as of Dec 5, 2026, +4.7% over 90 days.

7/30/90-day growth

@ai-sdk-tools/agents weekly downloads growth on npm: +139% over 7 days, +60.3% over 30 days, +4.7% over 90 days.@ai-sdk-tools/agentsWeekly downloads growth on npm8,964downloads / week now7-day growth+5,216 weekly downloads+139%30-day growth+3,371 weekly downloads+60.3%90-day growth+405 weekly downloads+4.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@ai-sdk-tools/agents weekly downloads growth on npm: +139% over 7 days, +60.3% over 30 days, +4.7% over 90 days.

Ranking history

@ai-sdk-tools/agents npm ranking history: currently #1315 (by weekly downloads).@ai-sdk-tools/agentsnpm ranking · by weekly downloads · Last 90 days#1315current rank#1100#1200#1300#1400#1500#1600Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@ai-sdk-tools/agents npm ranking history: currently #1315 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 66, #15 (overall #1,315)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 5, #11 (overall #91)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @ai-sdk-tools/agents
Date (UTC)Weekly downloadsChange vs. previous
8,964+138
8,826+555
8,271+458
7,813+2.5K
5,355+330
5,025+755
4,270+522
3,748-943
4,691-1.3K
5,950-2.7K
8,635-1.7K
10,299+805
9,494-449
9,943—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@ai-sdk-tools/agents. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.