Provider: Cline (ships native ACP, fits the existing adapter stack) #11394
kridaydave
started this conversation in
Ideas
Replies: 1 comment
|
Main reason is that cline gives free models with generous limits for me to use :3 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Proposal: add Cline as a provider
The ask: add a Cline driver alongside Codex / Claude / Cursor / Grok / OpenCode / Antigravity.
Why Cline
Cline has restructured itself over 2025–2026 from a VS Code extension into a layered TS agent stack, and now ships a standalone CLI (
npm i -g cline, v3.x) with the same agent core. Users with Cline subscriptions or Cline account credits have no way to drive it from T3 Code today.The integration surface that matters: native ACP
Cline supports three surfaces:
cline acpspeaks Agent Client Protocol (JSON-RPC over stdio):initialize,session/new,session/loadresume,session/prompt,session/cancel, streamingsession/update, andsession/request_permission(auto-approve defaults to false in ACP mode, so edit/command approvals surface to the client). Auth: Cline account OAuth viacline auth, non-interactiveCLINE_API_KEY/CLINE_PROVIDER/CLINE_MODEL, or BYO keys (Anthropic, OpenAI, OpenRouter, Bedrock, …).@cline/sdk, ~0.0.82) — rich in-process harness, but 0.x with likely API churn, and it runs in-process rather than as an isolated subprocess.cline --json) — request/response, non-TTY runs deny approvals instead of surfacing them. Poor fit for an interactive host.ACP is the right pick, and the reason the cost is low: this repo already has the shared ACP stack (
packages/effect-acp+AcpSessionRuntime), and Grok, Cursor, and Antigravity already run on it. From the outside this looks like "one more driver on an existing pattern," not new architecture. Sessions persist and are resumable viasession/loadwhere supported.Docs: https://docs.cline.bot/usage/acp · https://docs.cline.bot/cli/cli-reference.md · https://www.npmjs.com/package/cline
Rough shape of the work
packages/contracts: aClineSettingsschema (settings form comes for free from the existing pattern).apps/server:acp/ClineAcpSupport.ts(spawn args, permission-mode mapping), a thin adapter onAcpSessionRuntime+ the shared event mappers, driver registration inbuiltInDrivers.ts. First cut deliberately minimal: sessions, streaming, permission requests; honest capability flags (no rollback/resume claims unless proven). Probe uses ACPinitializeonly — no auth as a health-check side effect.Happy to split that into small, focused PRs (contracts → server driver → web → mobile) so nothing lands as a blob.
Questions for maintainers
cline authvs aProviderAuthController)?Understood this is scope expansion, so this discussion comes before any code.
All reactions