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.
@clinebot/shared: shared contracts, schemas, path helpers, hook engine, extension registry, low-level utilities@clinebot/llms: provider settings/config, model catalogs, provider manifests, gateway contracts, handler creation@clinebot/agents: stateless agent loop, tool orchestration, hook/extension runtime, event streaming@clinebot/core: stateful orchestration, session lifecycle, storage, config watching, plugin loading, default tools, telemetry. Exposes @clinebot/core/hub for discovery, the detached daemon entry, WebSocket clients, and session/UI client adapters, plus @clinebot/core/hub/daemon-entry for launching the shared daemon@clinebot/enterprise: enterprise identity adapters, control-plane sync, managed instruction materialization, claims-to-role mapping, telemetry bridging. Composes with core but core must not depend on it. Excluded from root SDK build/version/publish flows.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:
shared stays low-level and reusableagents stays stateless — no session/storage/config concernscore owns stateful orchestration, including the shared-hub daemon, server, and client adapters under src/hub/ enterprise may depend on core, but not the reverseRoute changes to the package that owns the concern:
@clinebot/llms @clinebot/agents HubSessionClient, HubUIClient, connectToHub): @clinebot/core (hub pieces live under src/hub/)@clinebot/enterprise 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.
agents core unless it is truly shared host behaviorREADME.md: visitor-facing overview. Update when the repo story or package inventory changes.CONTRIBUTING.md: onboarding, workflow, publishing. Update when contributor setup or release process changes.AGENTS.md (this file): development reference. Update when package boundaries, dependency rules, or change routing changes.ARCHITECTURE.md: design, boundaries, runtime flows. Update when system design or architectural constraints change.DOC.md: API and behavior reference. Update when exported surfaces, lifecycle semantics, or runtime behavior changes.