Cline SDK — Development Reference

Quick-reference for active development. For onboarding, workspace setup, publishing, and detailed workflow see CONTRIBUTING.md. For architecture and runtime flows see ARCHITECTURE.md. For API details see DOC.md.

Package Boundaries

Published SDK Packages

Internal Package

Dependency Direction

flowchart TD
  shared["@clinebot/shared"] --> llms["@clinebot/llms"] & agents["@clinebot/agents"] & core["@clinebot/core"]
  llms --> agents & core
  agents --> core
  enterprise["@clinebot/enterprise"] --> agents & core & shared
  core --> apps["CLI / VS Code / Code App"]

Rules:

Change Routing

Route changes to the package that owns the concern:

Verifying Changes

Root commands for cross-package confidence:

bun run types       # typecheck all packages
bun run test        # run all tests
bun run check       # lint + build + typecheck + check-publish

If you touch hub/bootstrap/session flows, please update ARCHITECTURE.md.

Practical Guidance

Keep Boundaries Clean

Refactor Standard

Documentation Responsibilities