
Research
/Security News
77 Firefox Extensions Linked to Crypto Wallet and Credential Theft
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.
@agentskit/core
Advanced tools
Portable AgentsKit runtime for chat orchestration, tools, memory, and retrieval.
The zero-dependency foundation that every AgentsKit package builds on — 5 KB gzipped, edge-ready, works everywhere JavaScript runs.
Tags: ai · agents · llm · agentskit · typescript · orchestration · streaming · chat
Adapter, Tool, Skill, Memory, Retriever, Runtime) make every package interchangeablecreateChatController handles streaming, abort, and message history so you never implement that loop yourselfnpm install @agentskit/core
import { createChatController, createInMemoryMemory } from '@agentskit/core'
import { anthropic } from '@agentskit/adapters'
const controller = createChatController({
adapter: anthropic({ apiKey: process.env.ANTHROPIC_API_KEY, model: 'claude-sonnet-4-6' }),
memory: createInMemoryMemory(),
})
await controller.send('Hello!')
console.log(controller.getState().messages)
createChatController — streaming-capable chat state machine with abort supportcreateInMemoryMemory — zero-config in-process memory for prototypingToolDefinition, SkillDefinition, AgentEvent, Adapter, Memory, Retriever, RuntimeResultAgentEvent streams — observability hooks attach hereanyAgentsKit ships a didactic error system inspired by the Rust compiler. Every error includes a code, a hint for the fix, and a docsUrl — no more vague "Something went wrong" messages.
import {
AgentsKitError,
AdapterError,
ToolError,
MemoryError,
ConfigError,
ErrorCodes,
} from '@agentskit/core'
try {
await runtime.run(task)
} catch (err) {
if (err instanceof ToolError) {
// err.code → 'AK_TOOL_EXEC_FAILED'
// err.hint → actionable suggestion
// err.docsUrl → https://www.agentskit.io/docs/tools
console.error(err.toString())
// error[AK_TOOL_EXEC_FAILED]: ...
// --> Hint: ...
// --> Docs: https://www.agentskit.io/docs/tools
}
}
Available error codes (via ErrorCodes):
| Code | Thrown by |
|---|---|
AK_ADAPTER_MISSING | adapter not provided to the controller |
AK_ADAPTER_STREAM_FAILED | streaming call to the provider fails |
AK_TOOL_NOT_FOUND | requested tool name is not registered |
AK_TOOL_EXEC_FAILED | execute() throws |
AK_MEMORY_LOAD_FAILED | memory.load() fails |
AK_MEMORY_SAVE_FAILED | memory.save() fails |
AK_MEMORY_DESERIALIZE_FAILED | persisted state is corrupt |
AK_CONFIG_INVALID | required config is missing or wrong type |
defineTooldefineTool infers the TypeScript type of execute's args parameter from the JSON Schema — no manual casting.
import { defineTool } from '@agentskit/core'
const greet = defineTool({
name: 'greet',
schema: {
type: 'object',
properties: { name: { type: 'string' } },
required: ['name'],
} as const, // as const is required for inference
execute(args) {
// args.name → string (inferred, not cast)
return `Hello, ${args.name}!`
},
})
Use InferSchemaType<typeof schema> to reference the inferred type elsewhere in your codebase.
| Package | Role |
|---|---|
| @agentskit/adapters | LLM chat + embedding providers |
| @agentskit/runtime | createRuntime — agents without UI |
| @agentskit/react | useChat, headless chat components |
| @agentskit/tools | Executable tools |
MIT — see LICENSE.
FAQs
Portable AgentsKit runtime for chat orchestration, tools, memory, and retrieval.
The npm package @agentskit/core receives a total of 4,093 weekly downloads. As such, @agentskit/core popularity was classified as popular.
We found that @agentskit/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.

Security News
NIST disclosed an unreleased AI tool called V-etalon and opened a broad inquiry into NVD modernization after years of automation plans produced no public enrichment system.

Security News
In his AI Council 2026 talk, Feross Aboukhadijeh covers recent package compromises, vulnerability discovery, and a more automated security model.