council-clear-cache

council-clear-cache is a command for Claude Code from sergei-aronsen/claude-code-toolkit. It costs 16 tokens per session (398 once invoked), scanned A, original, MIT.

A command that deletes all saved results from the Council review cache. The Council is a tool that reviews plans, and the cache can replay an older review for the same request.

In plain words
What is it for?
Use it to clear cached Council reviews, force a new review, or remove cached files that are taking up space.
Why use it?
It removes stale results after a plan changes or when you need a fresh review. It also avoids confusing cached answers when comparing prompt wording.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths.

Good fit Use it to clear cached Council reviews, force a new review, or remove cached files that are taking up space.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sergei-aronsen/claude-code-toolkit/council-clear-cache
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/sergei-aronsen/claude-code-toolkit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for council-clear-cache

README.md
[![agentmods](https://agentmods.dev/badge/commands/sergei-aronsen/claude-code-toolkit/council-clear-cache/github.svg)](https://agentmods.dev/commands/sergei-aronsen/claude-code-toolkit/council-clear-cache)
Your own site
<a href="https://agentmods.dev/commands/sergei-aronsen/claude-code-toolkit/council-clear-cache"><img src="https://agentmods.dev/badge/commands/sergei-aronsen/claude-code-toolkit/council-clear-cache/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for council-clear-cache

Your own site · 80×15
<a href="https://agentmods.dev/commands/sergei-aronsen/claude-code-toolkit/council-clear-cache"><img src="https://agentmods.dev/badge/commands/sergei-aronsen/claude-code-toolkit/council-clear-cache.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 398 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00398
Opus 5.5 $0.00006 $0.00159
Sonnet 5.5 $0.00003 $0.00080
Haiku 4.5 $0.00002 $0.00040

Measured 3mo ago against content hash f644694b8926, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

council-clear-cache scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/council-clear-cache.md · 52 lines

What it actually says

/council clear-cache

Remove every cached /council result from ~/.claude/council/cache/. Use it after editing your plan when the cache is masking your changes, or when you want to force a fresh review.

Purpose

The Council caches identical requests by content hash so repeated /council "<same plan>" calls inside the TTL (default 7 days) replay the previous result without making API calls. This is great for cost control but can be confusing if you tweaked the plan slightly and want the reviewers to see the new version. clear-cache is the escape hatch.

When to Use

Situation Use /council clear-cache
Cached verdict feels stale after a rebase yes — git HEAD changed but maybe not enough to invalidate
You want to A/B two prompt phrasings yes — otherwise the second is a hit
You want a full re-review without --no-cache yes
Disk usage on the cache dir matters yes

Usage

When the user types /council clear-cache (or asks to clear the Council cache), invoke:

brain clear-cache

This empties ~/.claude/council/cache/*.json and prints the count of removed entries. Show the output verbatim.

For a one-off bypass without clearing the cache, suggest the --no-cache flag instead:

brain --no-cache "<plan>"

Notes

  • The cache directory is left in place; only the JSON files are removed.
  • Cache TTL is configurable via config.cache.ttl_days in ~/.claude/council/config.json (default 7 days).
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 52 lines · 16 tokens per session scan A f644694b8926

Subscribe to this mod's changes

council-clear-cache is a command published in the GitHub repository sergei-aronsen/claude-code-toolkit (5 stars, last pushed 3mo ago), licensed MIT. It adds 16 tokens to every session and 398 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

council-clear-cache compared with commands from other repositories

council-clear-cache next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
council-clear-cachesergei-aronsen/claude-code-toolkitCommand53mo agoMITA16Claude Code
checklistgithub/spec-kitCommand154ktodayMITA13Claude Code
clarifygithub/spec-kitCommand154ktodayMITA27Claude Code
specifygithub/spec-kitCommand154ktodayMITA13Claude Code
analyzegithub/spec-kitCommand154ktodayMITA26Claude Code
convergegithub/spec-kitCommand154ktodayMITA35Claude Code
implementgithub/spec-kitCommand154ktodayMITA14Claude Code