Skip to content

Reference ​

Every name each entry point exports, types included, read from its source. Anything not listed is internal and may change in any release.

These entries run in the backend, never in a window. A window imports @adecore/agent-contracts and @adecore/agents-react.

JSON entries ​

Six entries are JSON: the model catalogs @adecore/agents/providers/<kind>-models.json (claude, codex, grok, copilot, antigravity) and the bundled prices @adecore/agents/usage/prices-snapshot.json. Import them with with { type: 'json' } where the runtime asks for it. See Providers and Usage.

@adecore/agents ​

Files, processes, watching, serialization and errors, shared by the other entries. See Storage.

NameKindSource
CodedErrorclasscoded-error
setErrorStacksfunctionerror-text
errorTextfunctionerror-text
RecordDirectoryclassrecord-directory
runProcessfunctionrun-process
ProcessResulttyperun-process
cleanTitlefunctiontitle-file
readLinesfunctiontitle-file
DirectoryWatchertypewatch-seam
WatchSeamstypewatch-seam
supportsRecursivefunctionwatch-seam
SYSTEM_WATCHconstwatch-seam
Settledtypewatch-seam
settledfunctionwatch-seam
PerClientWatchesclasswatch-seam
Scheduletypewatch-seam

@adecore/agents/host ​

Serving the requests over a port or a wire of your own. See Host.

NameKindSource
AgentHostclasshost/agent-host
RUIMTE_SESSION_VARIABLESconsthost/environment
cliEnvironmentfunctionhost/environment
AgentHandlertypehost/handlers
AgentHandlerstypehost/handlers
chatHandlersfunctionhost/handlers
accountHandlersfunctionhost/handlers
usageHandlersfunctionhost/handlers
memoryPortPairfunctionhost/memory-port
AgentWiringtypehost/wiring
wireAgentsfunctionhost/wiring
ClientSinksclassclient-sinks
WatchedSinksclassclient-sinks
AgentEventtypeevents

@adecore/agents/chat ​

The core, a session per chat, the thread and what is written of it, and the backends. See Chats and turns.

spawnChatProcess calls onExit(code, signal), and ChatChild calls onExit(code, stderr, signal). The signal is null when none ended the process, and a custom SpawnChatProcess may omit it. Use it to tell a crash from a deliberate stop such as SIGTERM.

NameKindSource
AcpClientInfotypebackends/acp-backend
toolFileEditconstchat/index
ToolFileEdittypechat/index
ToolFileEditPiecetypechat/index
ApiHostToolstypechat/api-chat
ApiToolDefinitiontypechat/api-tools
AttachmentStoreclasschat/attachment-store
BackendChangetypebackends/backend
BackendLaunchtypebackends/backend
ChatMcpServertypebackends/backend
TurnInputtypebackends/backend
ApprovalDecisiontypebackends/backend
BackendEventtypebackends/backend
BackendHosttypebackends/backend
ChatBackendtypebackends/backend
runningInBackgroundfunctionchat/background-work
BookmarkStoreclasschat/bookmark-store
createChatCompletionsBackendfunctionchat/chat-completions-backend
ChatCompletionsUsagetypechat/chat-completions-backend
InterruptedRuntypechat/chat-core
ChatCoreOptionstypechat/chat-core
ChatCoreclasschat/chat-core
COMPACT_ABOVE_BYTESconstchat/chat-log
ChatSpawnOptionstypechat-process
SpawnChatProcesstypechat-process
spawnChatProcessfunctionchat-process
MAX_LINE_LENGTHconstchat-process
ChatChildclasschat-process
PromptNotestypechat/chat-session
ChatReferencestypechat/chat-session
ResumeWordstypechat/chat-session
ChatSessionclasschat/chat-session
ChatSendExtrastypechat/chat-session
ChatSidecartypechat/chat-sidecar
ForkKepttypechat/chat-sidecar
ChatRecordExtrastypechat/chat-store
ChatRecordtypechat/chat-store
ChatStoreclasschat/chat-store
buildTitlePromptfunctionchat/chat-title
parseTitlefunctionchat/chat-title
suggestChatTitlefunctionchat/chat-title
ChatTitleInputtypechat/chat-title
ClaudeTitleReaderclasschat/claude-title
claudeProjectSlugfunctionchat/claude-transcript
findClaudeSessionfunctionchat/claude-transcript
CodexClientInfotypebackends/codex-transport
ComposerPreferencetypechat/composer-preferences
ChatErrorCodetypechat-error
ChatErrorclasschat-error
SessionFstypechat/external-sessions
ExternalSessiontypechat/external-sessions
listClaudeSessionsfunctionchat/external-sessions
listCodexSessionsfunctionchat/external-sessions
nodeSessionFsfunctionchat/external-sessions
limitedTurnfunctionchat/limit-resume
limitResumeAtfunctionchat/limit-resume
LostWorktypechat/lost-work
readableAssistantTextfunctionreadable-text
searchThreadItemsfunctionchat/thread-search
ChatThreadclasschat/thread
ChatUiSourcetypechat/ui-queries
ChatUiHosttypechat/ui-queries
ChatUiRefusalclasschat/ui-queries
visualFileNamefunctionchat/visual-store
VisualStoreclasschat/visual-store
WakeChattypechat/wake-chat
chatOpenerfunctionchat/wake-chat

@adecore/agents/providers ​

The registry, the model catalogs, the runtime modes and the accounts of each CLI. See Providers and Accounts.

NameKindSource
AcpCatalogStoretypeproviders/acp-agent-state
createApiChatProviderfunctionproviders/api-chat-provider
createAcpProviderfunctionproviders/acp-provider
AcpVendorOptionstypeproviders/acp-vendors
agentDefaultCatalogfunctionproviders/acp-vendors
agentModelfunctionproviders/acp-vendors
antigravityDefaultHomefunctionproviders/acp-vendors
antigravityUsageDirectoryfunctionproviders/acp-vendors
copilotUsageDirectoryfunctionproviders/acp-vendors
createGrokProviderfunctionproviders/acp-vendors
createCopilotProviderfunctionproviders/acp-vendors
createAntigravityProviderfunctionproviders/acp-vendors
defaultAccountEnvfunctionproviders/accounts/accounts
chooseAccountfunctionproviders/accounts/choose
AccountUnusabletypeproviders/accounts/choose
ChosenAccounttypeproviders/accounts/choose
AccountErrorclassproviders/accounts/launch
AccountLaunchestypeproviders/accounts/launch
storedAccountfunctionproviders/accounts/launch
launchEnvfunctionproviders/accounts/launch
ProviderAccountsServiceclassproviders/accounts/service
ProviderAccountsOptionstypeproviders/accounts/service
AccountsHosttypeproviders/accounts/variables
variablesProblemfunctionproviders/accounts/variables
keychainServicefunctionproviders/accounts/variables
SecretStoretypeproviders/accounts/variables
ModelCatalogclassproviders/catalog
CliMcpServertypebackends/cli-mcp
cliMcpHeadersfunctionbackends/cli-mcp
createClaudeProviderfunctionproviders/claude-provider
createCodexProviderfunctionproviders/codex-provider
CodexRulestypeproviders/codex-rules
codexRulesTextfunctionproviders/codex-rules
codexRulesPathInfunctionproviders/codex-rules
defaultCodexHomefunctionproviders/codex-rules
codexThreadOptionsfunctionbackends/codex
codexServiceTierfunctionbackends/codex
CliDetectiontypeproviders/detect
detectClifunctionproviders/detect
ChatProvidertypeproviders/provider
ClaudeCodeRuntimetypeproviders/provider
LaunchDecoratortypeproviders/provider
ModelRefreshtypeproviders/provider
cliExecutablefunctionproviders/provider
nanoGptVendorOffunctionproviders/nanogpt-vendor
ProviderRegistryclassproviders/registry
ProviderRegistryOptionstypeproviders/registry
MODE_ORDERconstmodes
narrowerModefunctionmodes
ceilingForOpeningfunctionmodes
modeFieldconstmodes

@adecore/agents/usage ​

Transcripts, prices and plan limits. See Usage.

NameKindSource
usageAccountsOffunctionusage/accounts
usageRootsOffunctionusage/accounts
limitAccountsOffunctionusage/accounts
chatSessionAccountsfunctionusage/accounts
limitsFileInfunctionusage/limits/monitor
UsageMonitorclassusage/limits/monitor
ProbeEnvtypeusage/limits/monitor
LimitAccounttypeusage/limits/monitor
LimitAccountstypeusage/limits/monitor
UsageMonitorOptionstypeusage/limits/monitor
fractionfunctionbackends/limits
LimitsUpdatetypebackends/limits
ProbeResulttypebackends/limits-probe
LITELLM_URLconstusage/pricing
hostUsageLinefunctionhost-usage-line
claudeTranscriptRootfunctionusage/roots
UsageRootPathtypeusage/roots
usageRootsfunctionusage/roots
UsageServiceclassusage/usage-service

@adecore/agents/coordination ​

The outbox, tasks between chats, lineage and messages. See Coordination.

NameKindSource
Clocktypeclock
systemClockconstclock
OutboxEntryOftypeoutbox/outbox
OutboxStoreclassoutbox/outbox
RETRY_DELAYS_MSconstoutbox/outbox-worker
OutboxOutcometypeoutbox/outbox-worker
OutboxHandlerstypeoutbox/outbox-worker
OutboxWorkerclassoutbox/outbox-worker
ResumeRunWorkSchemaconsttasks/resume-run
ResumeRunEntrytypetasks/resume-run
OweResumeDepstypetasks/resume-run
ResumeRunDepstypetasks/resume-run
oweResumefunctiontasks/resume-run
resumeRunHandlerfunctiontasks/resume-run
resumeRunParkedfunctiontasks/resume-run
PendingPromptStoreclasstasks/pending-prompts
FirstPrompttypetasks/pending-prompts
restartBackgroundLimitsfunctiontasks/background-limit
EndChildrenWorkSchemaconsttasks/end-children
endChildrenfunctiontasks/end-children
EndChildrenEntrytypetasks/end-children
TaskCoordinatorDepstypetasks/task-coordinator
TaskCoordinatorclasstasks/task-coordinator
TaskStoreclasstasks/task-store
BackgroundLimitWorkSchemaconsttasks/task-work
WakeParentWorkSchemaconsttasks/task-work
GiveTaskWorkSchemaconsttasks/task-work
DeliverWaitingWorkSchemaconsttasks/task-work
answerQuestionfunctiontasks/answer-question
ChatRequeststypetasks/waiting-child
chatRequestsfunctiontasks/waiting-child
WAITING_GRACE_MSconsttasks/waiting-child
WaitingObserverclasstasks/waiting-child
RESULT_PREVIEW_BYTESconsttasks/wake-parent
wakePromptfunctiontasks/wake-parent
TaskVerbstypetasks/wiring
TaskWordstypetasks/wiring
wireTasksfunctiontasks/wiring
TaskWiringDepstypetasks/wiring
TaskWiringtypetasks/wiring
DeliverMessageWorkSchemaconstmessages/deliver-message
deliverMessageHandlerfunctionmessages/deliver-message
DeliverMessageEntrytypemessages/deliver-message
DeliverMessageDepstypemessages/deliver-message
MessageWordstypemessages/deliver-notice
ChatNoticeTargetstypemessages/deliver-notice
ChatDeliverytypemessages/deliver-notice
chatNoticeTargetsfunctionmessages/deliver-notice
steerNoticesfunctionmessages/deliver-notice
deliverToChatfunctionmessages/deliver-notice
showNoticesfunctionmessages/deliver-notice
NoticeChattypemessages/deliver-notice
MAX_MESSAGE_TURNSconstmessages/message-turns
MESSAGE_TURN_WINDOW_MSconstmessages/message-turns
messagesMayWakefunctionmessages/message-turns
messageTurnsfunctionmessages/message-turns
NoticeNotesclassmessages/notice-notes
unshownNotesfunctionmessages/notice-notes
MAX_NOTICESconstmessages/notice-store
NOTICE_MAX_AGE_MSconstmessages/notice-store
Noticetypemessages/notice-store
NoticeStoreclassmessages/notice-store
AgentLineageStoreclasslineage

@adecore/agents/context ​

Tools an agent calls back into, their input schemas and refusals. See Tools.

NameKindSource
fieldfunctioncontext/refusal
refusalBodyfunctioncontext/refusal
refusalRowsfunctioncontext/refusal
ParsedRefusaltypecontext/refusal
ToolRefusalclasscontext/tool
ToolAnnotationstypecontext/tool
ToolSpectypecontext/tool
Tooltypecontext/tool
Toolkittypecontext/tool
REVISION_FIELDconstcontext/tool
DRY_RUN_PREVIEWconstcontext/tool
defineToolfunctioncontext/tool
defineToolkitfunctioncontext/tool
parseToolInputfunctioncontext/tool
lengthOffunctioncontext/tool
requiredFieldfunctioncontext/tool
orNotefunctioncontext/tool
ToolInputSchematypecontext/tool-schema
toolInputSchemafunctioncontext/tool-schema
renderTranscriptfunctioncontext/transcript

@adecore/agents/testing ​

CLIs, a clock, a watcher and accounts for tests. See Testing.

Two more entries export nothing and run a fake as a process: start @adecore/agents/testing/bin/fake-claude or @adecore/agents/testing/bin/fake-codex with bun in place of the CLI. The captures the fakes follow are under @adecore/agents/testing/fixtures/.

NameKindSource
FakeIotypetesting/fake-cli
FakeClitypetesting/fake-cli
InProcessClitypetesting/fake-cli
inProcessfunctiontesting/fake-cli
FakeAcpOptionstypetesting/fake-acp
fakeAcpWithfunctiontesting/fake-acp
fakeClaudefunctiontesting/fake-claude
claudeStoppingOnResumefunctiontesting/fake-claude
FAKE_CHILD_STEPSconsttesting/fake-codex
fakeCodexForksconsttesting/fake-codex
fakeCodexWithfunctiontesting/fake-codex
fakeCodexconsttesting/fake-codex
testAccountsfunctiontesting/accounts
ManualClockclasstesting/manual-clock
FakeWatchclasstesting/watch
EventLogclasstesting/watch

Licenses and third-party notices are listed in each package.