onlyterp/prompt-cache-skills/aider-cache-default-on
Claude Code and agent skill by onlyterp/prompt-cache-skills
- community
Checking that the SKILL.md file is still in the repository.
Aider's --cache-prompts is off by default. Flip it on for supported models.
Install
npx vskill@latest install onlyterp/prompt-cache-skills/aider-cache-default-onSKILL.md
Aider: default --cache-prompts to on for supported models
Target
aider/args.py in Aider-AI/aider. The --cache-prompts flag is defined here with default=False.
Symptom
Aider implements the canonical 4-breakpoint Anthropic caching pattern correctly, but --cache-prompts is off by default. Users have to know to set it (in CLI args, .aider.conf.yml, or env var) to get any cache benefit. The result is that a well-implemented caching path goes unused by most users.
Fix
Flip the default to True, with a per-model gate so it only activates for models that support caching:
The existing per-model cache_control: true|false gate in aider/models.py already prevents this from being sent to unsupporting models, so flipping the default is safe — it's just opt-out instead of opt-in.
Add a CHANGELOG note.
Verify
- Run
aider --model claude-3-7-sonnet-20250219with NO mention of
--cache-prompts on the command line and no entry in .aider.conf.yml.
- Capture wire.
- Request body should contain
cache_control: {"type": "ephemeral"}
on the 4 breakpoint locations (system, repo-map, files, current).
- Confirm 2nd-turn
usage.cache_read_input_tokens > 0.
Background
Defaults matter. The 1.25x cache-write premium is real but small, and it pays back after the second cache hit — which any multi-turn agent session clears trivially. A caching system that requires opt-in is a caching system most users won't use.
Cline / Roo / OpenCode all default-on caching. Aider being default-off is an anomaly more than a deliberate design choice.
Full audit: audits/aider.md.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/aider-cache-default-on/SKILL.md
Popularity
- Repository stars
- 114
- Repository forks
- 9
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/onlyterp/prompt-cache-skills/aider-cache-default-on)