# ADR 0002: Use Native Cline SDK Integration

## Status

Accepted.

## Decision

Use the Cline SDK for Cline sessions instead of launching Cline as another PTY-backed CLI.

## Context

Cline owns provider settings, OAuth, model catalogs, persisted sessions, MCP behavior, and richer chat semantics. Treating it as only a terminal process would lose SDK-managed state.

## Consequences

- Runtime Cline boundary modules adapt SDK concepts to Zonegaze tasks.
- Browser surfaces can share a task-chat model for detail and home agent views.
- Direct SDK imports must stay constrained to the boundary layer.
- Docs must distinguish Zonegaze Flow behavior from upstream Cline capabilities.
