continue-enable-defaults
Optimizes Continue LLM costs by automatically enabling prompt caching defaults.
Install
mkdir -p .claude/skills/continue-enable-defaults && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11685" && unzip -o skill.zip -d .claude/skills/continue-enable-defaults && rm skill.zipInstalls to .claude/skills/continue-enable-defaults
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Continue's prompt caching is opt-in via config and off by default. Flip the default to systemAndTools.Key capabilities
- →Modify Anthropic.ts to default cachingStrategy to systemAndTools
- →Modify Bedrock.ts to auto-enable cachePoint for supported models
- →Add cache control to last two user messages
- →Document caching default change in CHANGELOG
How it works
The skill modifies the default caching strategy in Anthropic.ts and Bedrock.ts to 'systemAndTools', and auto-enables conversation message caching for models that support it.
Inputs & outputs
When to use continue-enable-defaults
- →Enable prompt caching for Anthropic models
- →Optimize LLM token costs in Continue
- →Fix prompt caching configuration defaults
- →Reduce API latency for repetitive prompts
About this skill
Continue: enable caching defaults
Target
packages/openai-adapters/src/apis/Anthropic.ts and
core/llm/llms/Bedrock.ts in continuedev/continue.
Symptom
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.
Fix (two-part)
Part A — flip the default strategy
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.)
Part B — auto-enable conversation message caching for supported models
@@
- 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.
Part C — document the change in CHANGELOG
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.
Verify
- With NO
cacheBehaviororcompletionOptions.promptCachingset in config.yaml, start a Continue chat with Claude. - Capture wire.
- Confirm outbound request body contains
cache_controlmarkers without any user config touching them. - Confirm second-turn response
usage.cache_read_input_tokens > 0.
Background
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.
When not to use it
- →When a user has already manually configured caching behavior
- →When the model does not support prompt caching
Limitations
- →Applies only to Anthropic.ts and Bedrock.ts files
- →Requires a model that declares supportsPromptCache to auto-enable conversation caching
How it compares
This skill changes the default behavior in Continue's codebase, enabling caching without requiring individual users to manually configure three separate flags.
Compared to similar skills
continue-enable-defaults side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| continue-enable-defaults (this skill) | 0 | 2mo | No flags | Beginner |
| skill-creator | 128 | 3mo | Review | Advanced |
| openrouter | 19 | 9mo | Review | Intermediate |
| skill-development | 17 | 8mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
skill-creator
anthropics
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
openrouter
rawveg
OpenRouter API - Unified access to 400+ AI models through one API
skill-development
anthropics
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
command-development
anthropics
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
agent-identifier
anthropics
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
prompt-engineering-patterns
wshobson
Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability in production. Use when optimizing prompts, improving LLM outputs, or designing production prompt templates.