Yolk SDK
Reference

Packages

Package roles and explicit public subpaths.

PackageUse for
@yolk-sdk/agentagent protocol, loop, runtime, client, React, tools, providers, OAuth, skillset, voice
@yolk-sdk/mcpMCP v2 full-core client/server, protocol schemas, and Yolk tool adapters
@yolk-sdk/knowledgeknowledge documents, pinned context, search, ingestion, lookup/manage tools
@yolk-sdk/connectorsexternal API actions, credentials, connector-to-agent-tool adapter
@yolk-sdk/sandboxsandbox execution plane, Vercel and Cloudflare Containers adapters, agent sandbox tool
@yolk-sdk/codemodecode mode tool: scripts that call the resolved tools, classifier tool, Node pi and Cloudflare Dynamic Worker executors
@yolk-sdk/extractorsbounded text extraction (PDF, DOCX, XLSX, PPTX, text) and a knowledge extractor adapter
@yolk-sdk/filesfile claim check: object-storage file store and tools that move captured files by fileId
@yolk-sdk/poolsubscription account pools: several accounts of one provider as one LLMProvider
@yolk-sdk/vercel-workflowsdurable Workflow orchestration contracts, and a Workflow-compatible runtime on Cloudflare Durable Objects
@yolk-sdk/harnessrun lifecycle: coordinator, store, inbox, and pluggable drivers (not the agent loop)
@yolk-sdk/conformanceexperimental: record, replay, and fault-inject HTTP wire fixtures; port fixtures; run conformance cases
@yolk-sdk/emulatorsexperimental: service emulators and HttpClient routing to them for tests

Package roots stay tiny. Import feature APIs from explicit subpaths.

@yolk-sdk/agent

SubpathPurpose
@yolk-sdk/agent/protocolwire messages, events, content, tools, usage, HITL
@yolk-sdk/agent/loopstateless LLM/tool loop and services
@yolk-sdk/agent/loop/testingfaux provider and test tool executor
@yolk-sdk/agent/runtimetranscript and append-backed runtime orchestration
@yolk-sdk/agent/clientHTTP/NDJSON transport and client reducer helpers
@yolk-sdk/agent/compactionbudgets, token estimates, checkpoints, formatting, overflow retry
@yolk-sdk/agent/classificationclassifier model contract: typed questions, answers, usage, errors, classify
@yolk-sdk/agent/toolstool registry, makeTool, makeInputTool, makeInteractionTool, question/subagent modules, tool ledger
@yolk-sdk/agent/chatchat projection, reducer, render model and their Schemas, without React
@yolk-sdk/agent/reactheadless chat hook; re-exports @yolk-sdk/agent/chat
@yolk-sdk/agent/oauthprovider-neutral access-token and broker contracts
@yolk-sdk/agent/providers/openaiCodex OAuth and token broker helpers
@yolk-sdk/agent/providers/openai/codexCodex request and auth helpers
@yolk-sdk/agent/providers/openai/codex-usageCodex subscription-allowance snapshots
@yolk-sdk/agent/providers/openai/codex-providerCodex LLM provider factory
@yolk-sdk/agent/providers/openai/providerOpenAI-compatible LLM provider factory
@yolk-sdk/agent/providers/openai/conformanceOpenAI chat, Codex Responses, and Codex usage fixtures (synthetic placeholders) and their conformance cases
@yolk-sdk/agent/providers/openai/realtimeOpenAI Realtime session config and event codecs
@yolk-sdk/agent/providers/openai/speechOpenAI text-to-speech and transcription adapters
@yolk-sdk/agent/providers/vercel/ai-gateway-providerVercel AI Gateway Chat Completions provider factory
@yolk-sdk/agent/providers/vercel/ai-gateway-classifierVercel AI Gateway classifier (/v1/evaluate) layer
@yolk-sdk/agent/providers/vercel/conformanceVercel AI Gateway wire fixtures (verified chat recordings, synthetic classifier placeholders) and their cases
@yolk-sdk/agent/providers/opencode/go-providerOpenCode Go Chat Completions, Messages, and Responses provider
@yolk-sdk/agent/providers/opencode/usageOpenCode Go subscription-allowance snapshots
@yolk-sdk/agent/providers/opencode/conformanceOpenCode Go wire fixtures (synthetic placeholders) and the conformance cases they back
@yolk-sdk/agent/providers/anthropicClaude OAuth and token broker helpers
@yolk-sdk/agent/providers/anthropic/claudeClaude request and auth helpers
@yolk-sdk/agent/providers/anthropic/usageClaude subscription-allowance snapshots
@yolk-sdk/agent/providers/anthropic/claude-providerClaude LLM provider factory
@yolk-sdk/agent/providers/anthropic/conformanceAnthropic Messages wire fixtures (synthetic placeholders) and the conformance cases they back
@yolk-sdk/agent/providers/xaiGrok subscription OAuth and broker helpers
@yolk-sdk/agent/providers/xai/grokGrok subscription request and auth helpers
@yolk-sdk/agent/providers/xai/grok-providerGrok subscription LLM provider factory
@yolk-sdk/agent/providers/xai/usageGrok subscription-allowance snapshots
@yolk-sdk/agent/providers/xai/conformanceGrok Responses wire fixtures (synthetic placeholders) and the conformance cases they back
@yolk-sdk/agent/providers/subscription-usageShared allowance snapshot and safe error schemas
@yolk-sdk/agent/skillsetportable skills and slash-command parsing
@yolk-sdk/agent/voicevoice protocol, controller, tool handler, projection, speech contracts
@yolk-sdk/agent/voice/browserbrowser WebRTC voice transport
@yolk-sdk/agent/voice/reactheadless useYolkVoice React hook

Other public subpaths

PackageSubpaths
@yolk-sdk/mcpclient, client/node, conformance (experimental), core, protocol, server, server/node
@yolk-sdk/knowledgeagent, context, store, search, documents, files, chunking, embeddings, errors, extraction, ingestion, summarization
@yolk-sdk/connectorsagent, afloat, afloat/conformance (experimental), conformance (experimental), dropbox, dropbox/conformance (experimental), email, email/conformance (experimental), figma, figma/conformance (experimental), fortnox, fortnox/conformance (experimental), github, github/conformance (experimental), google, google/conformance (experimental), kie, kie/conformance (experimental), linkedin-search, linkedin-search/conformance (experimental), microsoft, microsoft/conformance (experimental), notion, notion/conformance (experimental), r2-storage, r2-storage/conformance (experimental), telegram, telegram/conformance (experimental), todoist, todoist/conformance (experimental)
@yolk-sdk/sandboxagent, vercel, cloudflare, testing
@yolk-sdk/codemoderoot, node, cloudflare
@yolk-sdk/extractorsroot, node, knowledge, node/extraction-worker (worker entry; not imported directly)
@yolk-sdk/filesroot
@yolk-sdk/poolroot, store
@yolk-sdk/vercel-workflowsroot, workflow, effect, testing, cloudflare, cloudflare/workflow, cloudflare/api, cloudflare/directives, cloudflare/vite
@yolk-sdk/harnesscoordinator, store, inbox, driver, driver/memory, driver/durable-object, outcome
@yolk-sdk/conformancefixture, replay, record, case, runner (no root export)
@yolk-sdk/emulatorsrouter, gateway, openai, anthropic, codex, xai, opencode, email, r2, node, fortnox, microsoft, dropbox, notion, todoist, telegram, github, google, linkedin-search, mcp, kie (no root export)

Import rule

Prefer the narrowest subpath:

import { runRuntime } from '@yolk-sdk/agent/runtime'
import { makeTool } from '@yolk-sdk/agent/tools'
import { listRemoteMcpServerTools } from '@yolk-sdk/mcp/client'

See the package pages for deeper API notes:

On this page