Cline SDK v0.0.89Cline SDK v0.0.89
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- Cline SDK v0.0.89は、巨大なMCP・Composioツール出力をセッション内キャッシュ経由で行単位に再取得できるようにした。
- 容量はセッション当たり16 MiBで、カスタムプロバイダーもエージェント経路で利用できるため、大きな結果と独自モデルを扱う開発者に有用である。
- Cline SDK v0.0.89 lets agents retrieve large MCP and Composio outputs by line from a per-session cache capped at 16 MiB.
- It also enables configured custom providers on the agent path, helping developers use large results and custom models reliably.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (github.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (github.com).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
巨大出力の再取得
Cline SDK v0.0.89では、サイズが大きいMCPおよびComposioのツール出力を、セッション内キャッシュから完全に再取得できるようになった。大きな結果を一度に渡すのではなく、必要な範囲を行単位で読み進められる仕組みである。
セッション内キャッシュ
Coreは巨大な出力をセッションごとのインメモリキャッシュに保存し、モデルにはサイズを制限したプレビューと「cline://cache/...」形式のURIを送る。read_filesはこのURIを使い、行範囲を指定してキャッシュ内容をページ単位で取得できる。これにより、モデルはプレビューを確認したうえで、必要な部分を選んで読み込める。
キャッシュ容量の上限はセッション当たり16 MiB。各エントリーは、読み取りがない状態でモデルの反復が5回続くと期限切れになる。元の出力は履歴とツールイベントに残る。
カスタムツール
カスタムツールも、createToolでresultPolicyに「cache-oversized」を指定することで、この巨大出力のキャッシュ処理を利用できる。MCPやComposioだけでなく、独自ツールから返される大きな結果にも、同じ取得方式を明示的に適用できる。
カスタムプロバイダー
providers.jsonまたはmodels.jsonで設定したカスタムプロバイダーは、エージェント経路で動作するようになった。従来は選択画面に表示されても、「Unknown or disabled provider "<id>"」として失敗していた。createAgentModelFromConfigがゲートウェイに組み込みプロバイダーだけを登録していたことが原因と説明されている。今回の変更により、設定済みの独自プロバイダーをエージェント経路で利用できる。
Oversized tool results
Cline SDK v0.0.89 changes how agents handle oversized MCP and Composio tool results. The update is useful for developers working with large results because agents can recover the complete output by line rather than relying only on a bounded preview.
When a result is oversized, Core stores the output in a per-session in-memory cache. It sends the model a limited preview together with a cline://cache/... URI. The read_files tool can then use that URI to page through the cached content by specifying line ranges, allowing the full result to be retrieved in portions.
Per-session in-memory cache
The cache is capped at 16 MiB for each session. Cached entries expire after five model iterations without a read, limiting how long unread oversized results remain available through this mechanism.
Caching does not replace the original record of the tool output. The original output remains in history and tool events, while the session cache provides the line-based retrieval path for oversized content.
Custom tools
Custom tools can use the same oversized-result behavior by opting in when createTool is called. Setting resultPolicy to "cache-oversized" enables the policy for those tools.
This gives custom tool implementations access to the bounded-preview and cached-retrieval approach used for large MCP and Composio outputs. The model receives the preview and cache URI, and read_files can retrieve additional line ranges from the stored result.
Custom providers
The release also enables custom providers configured through providers.json or models.json to run on the agent path. Previously, these providers could appear in pickers but fail with an “Unknown or disabled provider <id>” message.
The stated cause was that createAgentModelFromConfig registered only built-in providers with the gateway. With configured custom providers now available on the agent path, developers can use custom models alongside the updated handling for large tool results.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko巨大なツール出力を全文取り戻せて、キャッシュは1セッション16 MiBなんだね。これって大きいこと?Huge tool outputs can now be fully recovered, with a 16 MiB cache per session. Is that a big change?
- TECHガイドTECH Guide大きな結果をキャッシュに置き、モデルには短いプレビューと参照先を渡せるようになった変化だよ。The change lets the system cache large results while giving the model a bounded preview and a link to retrieve the rest.
- ポコPoko「行単位でページング」って、どうやって読むの?What does paging through it by line actually mean?
- TECHガイドTECH Guidecline://cache/...の参照先から、read_filesで必要な行の範囲を順に読む仕組みだよ。It means read_files can fetch selected line ranges from a cline://cache/... URI, one range at a time.
- ポコPoko僕なら大きなツール結果を置いて、必要な部分だけ読み返したいな。独自モデルでも使えるの?I’d cache a big tool result and revisit only the parts I need. Could I use a custom model too?
- TECHガイドTECH Guide設定済みのカスタムプロバイダーはエージェント経路で使えるよ。カスタムツールは設定が必要で、未読のまま5回進むと期限切れになるよ。Configured custom providers now work on the agent path. Custom tools must opt in, and cached entries expire after five model iterations without a read.