Scan your whole stack
From OX Research Newsroom
Are you using @deepagents/agent?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v7.54.1
@deepagents/agent was last scanned on 27 Nov 2026 at version 7.54.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 7.54.1 LATEST | 27 Nov 2026 | No rules fired |
| 7.54.0 | 27 Nov 2026 | Not shown |
| 7.53.0 | 27 Nov 2026 | Not shown |
| 7.52.3 | 27 Nov 2026 | Not shown |
| 7.52.2 | 27 Nov 2026 | Not shown |
Findings for v7.54.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 7.54.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A framework for building multi-agent AI systems with TypeScript. Create agents that use tools, coordinate through handoffs, and work together to solve complex tasks.
npm install @deepagents/agent
Requires Node.js LTS and a zod peer dependency.
import { openai } from '@ai-sdk/openai';
import { agent, execute, user } from '@deepagents/agent';
const assistant = agent({
name: 'assistant',
model: openai('gpt-4o'),
prompt: 'You are a helpful assistant.',
});
const stream = execute(assistant, 'Hello!', {});
for await (const chunk of stream.textStream) {
process.stdout.write(chunk);
}
import { openai } from '@ai-sdk/openai';
import { tool } from 'ai';
import { z } from 'zod';
import { agent, execute } from '@deepagents/agent';
const weatherTool = tool({
description: 'Get weather for a location',
parameters: z.object({
location: z.string(),
}),
execute: async ({ location }) => {
return { temperature: 72, condition: 'sunny', location };
},
});
const weatherAgent = agent({
name: 'weather_agent',
model: openai('gpt-4o'),
prompt: 'You help users check the weather.',
tools: { weather: weatherTool },
});
const stream = execute(weatherAgent, 'What is the weather in Tokyo?', {});
console.log(await stream.text);
import { openai } from '@ai-sdk/openai';
import { agent, instructions, swarm } from '@deepagents/agent';
const researcher = agent({
name: 'researcher',
model: openai('gpt-4o'),
prompt: 'You research topics and provide detailed information.',
handoffDescription: 'Handles research and fact-finding tasks',
tools: {/* research tools */},
});
const writer = agent({
name: 'writer',
model: openai('gpt-4o'),
prompt: 'You write clear, engaging content based on research.',
handoffDescription: 'Handles writing and content creation',
});
const coordinator = agent({
name: 'coordinator',
model: openai('gpt-4o'),
prompt: instructions({
purpose: ['Coordinate research and writing tasks'],
routine: [
'Analyze the request',
'Use transfer_to_researcher for fact-finding',
'Use transfer_to_writer for content creation',
],
}),
handoffs: [researcher, writer],
});
// Agents automatically transfer control via transfer_to_<agent_name> tools
const stream = swarm(coordinator, 'Write a blog post about AI agents', {});
import { openai } from '@ai-sdk/openai';
import { z } from 'zod';
import { agent, generate } from '@deepagents/agent';
const analyzer = agent({
name: 'analyzer',
model: openai('gpt-4o'),
prompt: 'Analyze the sentiment of the given text.',
output: z.object({
sentiment: z.enum(['positive', 'negative', 'neutral']),
confidence: z.number(),
keywords: z.array(z.string()),
}),
});
const result = await generate(analyzer, 'I love this product!', {});
console.log(result.output);
// { sentiment: 'positive', confidence: 0.95, keywords: ['love', 'product'] }
Share state between agents and tools:
import { type ToolExecutionOptions, tool } from 'ai';
import { z } from 'zod';
import { agent, execute } from '@deepagents/agent';
// A `type`, not an `interface`: the AI SDK requires a tool context to
// extend Record<string, unknown>, which an interface does not.
type AppContext = {
userId: string;
preferences: Record<string, string>;
};
const preferenceTool = tool({
description: 'Save user preference',
inputSchema: z.object({
key: z.string(),
value: z.string(),
}),
execute: async (
{ key, value },
{ context }: ToolExecutionOptions<AppContext>,
) => {
context.preferences[key] = value;
return `Saved ${key}=${value}`;
},
});
const assistant = agent<unknown, AppContext>({
name: 'assistant',
model: openai('gpt-4o'),
prompt: (ctx) => `Help user ${ctx?.userId} manage their preferences.`,
tools: { savePreference: preferenceTool },
});
const context: AppContext = { userId: 'user123', preferences: {} };
const stream = execute(assistant, 'Set my theme to dark', context);
await stream.text;
console.log(context.preferences); // { theme: 'dark' }
agent(config)Creates a new agent:
agent<Output, ContextIn, ContextOut>({
name: string; // Agent identifier (required)
model: LanguageModel; // AI SDK model (required)
prompt: string | string[] | ((ctx?) => string); // Instructions
tools?: ToolSet; // Available tools
handoffs?: Agent[]; // Agents to delegate to
handoffDescription?: string; // When to use this agent
output?: z.Schema<Output>; // Structured output schema
temperature?: number; // LLM temperature
toolChoice?: ToolChoice; // 'auto' | 'none' | 'required'
})
instructions({ purpose, routine })Helper for structured prompts:
instructions({
purpose: string | string[], // Agent's role
routine: string[], // Step-by-step workflow
})
// For swarm coordination
instructions.swarm({ purpose, routine })
// Streaming execution
execute(agent, messages, context, config?)
stream(agent, messages, context, config?) // alias
// Non-streaming execution
generate(agent, messages, context, config?)
// High-level UI streaming with handoff support
swarm(agent, messages, context, abortSignal?)
// Create user message
user(message: string): UIMessage
// Extract structured output
toOutput<T>(result): Promise<T>
Works with any model provider supported by the Vercel AI SDK:
import { anthropic } from '@ai-sdk/anthropic';
import { google } from '@ai-sdk/google';
import { groq } from '@ai-sdk/groq';
import { openai } from '@ai-sdk/openai';
const agent1 = agent({ model: openai('gpt-4o') /* ... */ });
const agent2 = agent({
model: anthropic('claude-sonnet-4-20250514') /* ... */,
});
const agent3 = agent({ model: google('gemini-1.5-pro') /* ... */ });
Full documentation available at januarylabs.github.io/deepagents.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.