Learning resourcesReviewed · Cline

ClineCore runtime guide

The ClineCore guide explains Cline's programmable AI-agent runtime for developers, but leaves installation requirements and several operating details unspecified. It introduces built-in tools, persistent sessions, approval controls and local or hub execution, then compares the full runtime with the lighter Agent interface.

Researched 14 Nov 2026

In short.

The ClineCore guide introduces Cline's programmable AI-agent runtime for developers building agent applications, but does not provide a complete setup or deployment guide. Its examples explain session creation, tool approvals and the choice between ClineCore and Agent. Pricing, licensing, package versions and operational guarantees remain unknown, and no runtime behavior was tested.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied page at [https://docs.cline.bot/sdk/clinecore.md], including its examples, method tables, backend descriptions, Agent comparison and Mintlify hosting notice. Linked pages, package contents and external provider information are excluded. Nothing was executed; runtime behavior, compatibility, performance and reliability remain untested.

The overview

Identity

This documentation page introduces ClineCore, the application runtime exported by @cline/sdk. ClineCore combines the Agent execution loop with tools, session persistence, approval callbacks and backend management. The resource is available at [https://docs.cline.bot/sdk/clinecore.md].

Assessment

The guide is useful for deciding whether an application needs ClineCore's packaged session and tool features or the smaller Agent interface. Concrete TypeScript examples make that distinction actionable. Adoption still requires further documentation: installation commands, dependency requirements and detailed API signatures are absent.

Users

The main audience is developers embedding AI agents in applications, particularly where conversations must persist or tools need approval controls. Developers considering hub execution, scheduling or multi-agent teams also get an initial orientation, although those features are only outlined. Beginners will need familiarity with imports, asynchronous calls, environment variables and model-provider credentials.

Capabilities

ClineCore is documented as providing tools for files, shell commands, search and web access; session manifests and message history; approval callbacks; local, hub and remote backends; scheduling and automation APIs; and plugin support. Multi-agent teams are listed as a reason to choose ClineCore, without an implementation example.

The method overview covers starting and continuing sessions, subscribing to events, listing sessions, reading metadata and messages, obtaining accumulated usage, aborting work, stopping or deleting sessions, and disposing of runtime resources.

Using it

Requirements

The examples import @cline/sdk and use process.env or process.cwd(), assuming an environment that supplies those Node-style globals. They configure an Anthropic provider, the model identifier claude-sonnet-4-6 and an API key read from ANTHROPIC_API_KEY. Supported runtime versions, operating systems and package dependencies are unspecified.

Hub mode requires a compatible WebSocket hub, while remote mode requires a configured remote hub. Compatibility and authentication requirements are not explained. Browser compatibility is explicitly associated with Agent; this page does not establish browser support for ClineCore.

Mechanism

ClineCore wraps Agent from @cline/agents. Agent repeatedly requests model output, executes requested tools and returns their results until completion. ClineCore adds application features around that loop and stores session manifests and messages as files.

Backend mode determines execution placement. Auto prefers a compatible local hub and otherwise executes locally; local always uses in-process execution and local storage. Hub requires a compatible WebSocket hub, while remote connects to a configured remote hub.

Setup

The demonstrated sequence imports ClineCore, awaits ClineCore.create() with a client name and backend mode, then awaits start() with a prompt and configuration. Configuration includes provider and model identifiers, credentials, a system prompt, working-directory paths and tool or agent-team switches.

The page shows toolPolicies for per-tool approval settings and requestToolApproval for application-defined decisions. It supplies no package installation command, version pin or complete hub setup procedure.

Example

One example starts a session that asks the agent to configure GitHub Actions for a repository. It enables tools, disables spawned agents and teams, and reads the resulting session identifier and optional finish reason. No resulting repository changes or successful execution are shown.

A separate repository-audit example automatically approves read_files and search_codebase while setting automatic approval to false for run_commands and editor. The dynamic callback example approves every tool except run_commands; applications requiring a narrower allowlist would need different logic.

Assessment & evidence

Limitations

The page does not explain tool isolation, default approval behavior, remote authentication, retry handling, storage retention or failure recovery. Scheduling, automation, plugins and teams receive no working examples here. Detailed method signatures are deferred to linked references.

Although Agent is described as stateless, the page also says AgentRuntime retains message state internally. Persistence guarantees need careful interpretation: continue() uses internal history, while restore(messages) supports externally saved history. No installation, tool operation, persistence behavior or hub connection was tested.

Reasoning

ClineCore's clearest fit is an application that needs both agent execution and session-management features. Its documented APIs could reduce the amount of tool wiring and history management the application must implement. That is an architectural inference from the feature list, not a measured development-time saving.

Approval controls are particularly relevant because the available tools include shell commands and editing. The examples demonstrate configurable decisions, but do not establish comprehensive access control or execution isolation.

Alternatives

The page explicitly compares ClineCore with Agent, also exported as AgentRuntime. Agent is the suggested option for browser-compatible or lightweight in-process use, custom tools, and application-controlled persistence and lifecycle.

The naming distinction concerns construction: Agent is used with provider and model identifiers, while AgentRuntime accepts a pre-built AgentModel. Direct use exposes run(), continue(), event subscription, abort(), restore() and snapshot(). The page provides no comparison with external agent frameworks.

Evidence

The evidence consists of the complete ClineCore documentation page at [https://docs.cline.bot/sdk/clinecore.md]. It contains API overviews, configuration examples and architectural descriptions, but no execution logs, benchmarks or demonstrated outcomes.

The documentation index, API references, Tools page and Hub & Spoke architecture page are linked from this source. Their contents are outside the available evidence and do not substantiate additional claims here.

Access & freshness

Costs

The page provides no SDK price, subscription terms, provider rates or example-run costs. Cost therefore remains unknown. getAccumulatedUsage(sessionId) is described as returning token and cost totals, but the calculation method, billing coverage and accuracy are not explained. Hub or remote infrastructure costs are also unspecified.

Rights

The supplied page states no SDK licence, documentation reuse licence or commercial-use terms. Permission to modify or redistribute the software, examples or documentation is not established by this evidence. The Mintlify hosting notice does not specify those rights.

Freshness

The source capture is dated 14 November 2026 at 22:29:57 UTC. The page gives no publication date, update date or SDK release version. Its model identifier is an example configuration value, not an SDK version or proof of current provider availability. Present package compatibility and maintenance status remain unknown.

Actions

Before implementation, confirm installation instructions, compatible package and runtime versions, licence terms and provider pricing. Choose ClineCore if its built-in tools and persistent sessions match the application; consider Agent when the application will supply its own tools and persistence.

Consult the linked ClineCore reference [https://docs.cline.bot/sdk/reference/cline-core.md] and Tools documentation [https://docs.cline.bot/sdk/tools.md] for exact signatures and approval behavior. In a controlled project, verify approval decisions, session restoration, cancellation and the intended backend before relying on them.

Evidence for this report

selected-page.txtselected · checked 2026-11-14