A reusable open-source agent runtime now exists with durable sessions that move across surfaces, which you can build on instead of writing your own agent loop.
Key takeaways · AI-distilled
Cline says its original Agent loopA cycle in which an agent observes, decides, acts, and interprets the result.Full definition → grew inside the VS Code extension as features were added, making the runtime hard to separate, maintain or reuse, so it extracted the harness into @cline/sdk rather than adding more patches.
The SDK keeps the low-level agent loop stateless and wraps it in a durable runtime, so long-running work survives a UI restart; individual packages can be used alone, such as the provider layer for an Large language modelA model trained on large amounts of data to process and generate language.Full definition → proxy or the stateless loop for serverless.
Plugins can register tools, observe lifecycle events, and add rules and commands; they can start as a local .ts or .js module and later become a package with a cline.plugins manifest.
Provider logic lives in @cline/llms, separate from the agent loop; adding a custom provider means implementing an ApiHandler and registering it with llms.registerHandler.
In Cline-run pass@1 tests on TerminalA program that shows text and accepts typed text.Full definition →-Bench 2.0 as of May 8, 2026, Cline scored 55.1% with kimi-k2.6 versus 37.1% for OpenCode and 45.5% for Pi-Code, though glm-5.1 scored lower in Cline (49.4%) than in OpenCode (52.8%).
Terms in this piece · Glossary
Agent loop — A cycle in which an agent observes, decides, acts, and interprets the result.
Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
Terminal — A program that shows text and accepts typed text.
Large language model — A model trained on large amounts of data to process and generate language.