一键导入
continue-enable-defaults
Continue's prompt caching is opt-in via config and off by default. Flip the default to systemAndTools.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Continue's prompt caching is opt-in via config and off by default. Flip the default to systemAndTools.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Aider uses 5min TTL by default and works around long pauses with keepalive pings. Wire up the 1h TTL beta instead.
Aider's --cache-prompts is off by default. Flip it on for supported models.
Stop Cline from burning a cache breakpoint on the volatile current user message every turn.
Cline OpenAI native provider sends no prompt_cache_key. Add a stable per-task key so cached_tokens stops being zero.
Cline's system prompt includes a timestamp that may be recomputed per request, invalidating the system-prompt cache.
Continue inherits the Cline-family volatile-message cache bug. Same fix shape.
| name | continue-enable-defaults |
| description | Continue's prompt caching is opt-in via config and off by default. Flip the default to systemAndTools. |
| target_harness | Continue |
| target_repo | continuedev/continue |
| target_files | ["packages/openai-adapters/src/apis/Anthropic.ts","core/llm/llms/Bedrock.ts"] |
| target_commit | main (last push 2026-05-26) |
| estimated_savings | 90% input discount for every user who hasn't manually configured caching (most of them) |
packages/openai-adapters/src/apis/Anthropic.ts and
core/llm/llms/Bedrock.ts in continuedev/continue.
Continue's caching is gated on three config flags:
cacheBehavior.cacheConversation (default: false)cacheBehavior.cacheSystemMessage (default: false)completionOptions.promptCaching (default: false)A user has to know all three exist and set them in config.yaml.
Most don't. Net effect: the median user gets no caching.
Open issue #5172 ("Anthropic prompt caching doesn't work") is mostly this — users don't realize they need to configure it.
In Anthropic.ts:
--- a/packages/openai-adapters/src/apis/Anthropic.ts
+++ b/packages/openai-adapters/src/apis/Anthropic.ts
@@
- const cachingStrategy = CACHING_STRATEGIES[this.config.cachingStrategy ?? "systemAndTools"];
+ // Default to caching system + tools. Users on supported models pay
+ // the 1.25x write premium on the first call and get 0.1x on every
+ // subsequent call within 5 minutes — strict win above ~3 reads.
+ const cachingStrategy = CACHING_STRATEGIES[this.config.cachingStrategy ?? "systemAndTools"];
(systemAndTools already IS the documented default in the code path
above, but the user-facing config schema treats it as optional with
unclear default. Audit your codebase to confirm the actual fallback
behavior matches the documented one. If not, fix.)
@@
- if ((this.config.cachingStrategy ?? "systemAndTools") !== "none") {
- addCacheControlToLastTwoUserMessages(result.messages);
+ // Auto-enable for any model that declares supportsPromptCache.
+ // User can still opt out with cachingStrategy: "none".
+ const strategy = this.config.cachingStrategy ?? "systemAndTools";
+ if (strategy !== "none" && this.modelSupportsPromptCache()) {
+ // NOTE: this is currently buggy — see continue-fix-volatile-msg
+ // skill for the volatile-message fix that should land alongside.
+ addCacheControlToLastTwoUserMessages(result.messages);
}
Same change in Bedrock.ts — auto-enable cachePoint for models
with supportsPromptCache: true unless user explicitly opts out.
Users coming from older Continue versions will see bills shift (downward, but still a change). Add a CHANGELOG entry calling out that caching is now default-on for supported models.
cacheBehavior or completionOptions.promptCaching set
in config.yaml, start a Continue chat with Claude.cache_control markers
without any user config touching them.usage.cache_read_input_tokens > 0.Caching that requires a config flag to enable is caching that doesn't get used. The 1.25x write premium pays for itself after ~3 reads, which any multi-turn chat clears trivially. There's no scenario where "caching off" is the right default for an agent CLI on a model that supports it.
This skill is best applied alongside continue-fix-volatile-msg (same Cline-family copy-paste bug present in Continue too) so users don't get the cache thrash without knowing.
Full audit: audits/continue.md.