sdk/packages/README.md
This directory is the single documentation source for package-level responsibilities.
packages/README.md)ARCHITECTURE.md| Package | Primary responsibility | Typical consumers | Internal deps |
|---|---|---|---|
@cline/shared | Cross-package shared primitives (path resolution, session common types, indexing helpers) | @cline/agents, @cline/core, apps | None |
@cline/llms | Model catalog + provider settings schema + handler creation SDK | @cline/agents, @cline/core, apps | None |
@cline/agents | Stateless agent runtime loop (tools, hooks, extensions, teams, streaming) | @cline/core, apps | @cline/llms, @cline/shared |
@cline/core | Stateful runtime orchestration (runtime composition, session lifecycle/storage, local and hub runtime services, hub discovery and client helpers) | CLI/Desktop apps | @cline/agents, @cline/llms, @cline/shared |
@cline/llms defines model/provider capabilities and builds concrete handlers.@cline/agents runs the agent loop on top of those handlers and tool execution primitives.@cline/core composes runtime behavior with persistent sessions/storage and local or hub-backed runtime services.@cline/core hub services orchestrate scheduled runtime execution, execution history, and schedule command handling.@cline/core/hub exposes discovery, the detached hub daemon, and session-oriented client APIs (HubSessionClient, HubUIClient) when hosts need a shared daemon.@cline/shared provides the shared contracts and path/session primitives used across the stack.@cline/llms.@cline/agents.@cline/core.@cline/core hub services.@cline/core/hub.@cline/shared.@cline/shared/remote-config.@cline/core itself is now the Node/runtime-oriented entry point for host/session services.@cline/core no longer does.Nested package README.md and ARCHITECTURE.md files can be reduced or removed after references are updated to point here.