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.
| Name | Kind | Source |
|---|---|---|
CodedError | class | coded-error |
setErrorStacks | function | error-text |
errorText | function | error-text |
RecordDirectory | class | record-directory |
runProcess | function | run-process |
ProcessResult | type | run-process |
cleanTitle | function | title-file |
readLines | function | title-file |
DirectoryWatcher | type | watch-seam |
WatchSeams | type | watch-seam |
supportsRecursive | function | watch-seam |
SYSTEM_WATCH | const | watch-seam |
Settled | type | watch-seam |
settled | function | watch-seam |
PerClientWatches | class | watch-seam |
Schedule | type | watch-seam |
@adecore/agents/host
Serving the requests over a port or a wire of your own. See Host.
| Name | Kind | Source |
|---|---|---|
AgentHost | class | host/agent-host |
RUIMTE_SESSION_VARIABLES | const | host/environment |
cliEnvironment | function | host/environment |
AgentHandler | type | host/handlers |
AgentHandlers | type | host/handlers |
chatHandlers | function | host/handlers |
accountHandlers | function | host/handlers |
usageHandlers | function | host/handlers |
memoryPortPair | function | host/memory-port |
AgentWiring | type | host/wiring |
wireAgents | function | host/wiring |
ClientSinks | class | client-sinks |
WatchedSinks | class | client-sinks |
AgentEvent | type | events |
@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.
@adecore/agents/providers
The registry, the model catalogs, the runtime modes and the accounts of each CLI. See Providers and Accounts.
@adecore/agents/usage
Transcripts, prices and plan limits. See Usage.
@adecore/agents/coordination
The outbox, tasks between chats, lineage and messages. See Coordination.
@adecore/agents/context
Tools an agent calls back into, their input schemas and refusals. See Tools.
| Name | Kind | Source |
|---|---|---|
field | function | context/refusal |
refusalBody | function | context/refusal |
refusalRows | function | context/refusal |
ParsedRefusal | type | context/refusal |
ToolRefusal | class | context/tool |
ToolAnnotations | type | context/tool |
ToolSpec | type | context/tool |
Tool | type | context/tool |
Toolkit | type | context/tool |
REVISION_FIELD | const | context/tool |
DRY_RUN_PREVIEW | const | context/tool |
defineTool | function | context/tool |
defineToolkit | function | context/tool |
parseToolInput | function | context/tool |
lengthOf | function | context/tool |
requiredField | function | context/tool |
orNote | function | context/tool |
ToolInputSchema | type | context/tool-schema |
toolInputSchema | function | context/tool-schema |
renderTranscript | function | context/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/.