refresh-context-rules

refresh-context-rules is a skill for Claude Code from reganomika/HighWater. It costs 58 tokens per session (727 once invoked), scanned B, original, MIT.

A skill that reloads the current global and project-specific CLAUDE.md instruction files during an ongoing chat.

In plain words
What is it for?
Use it when task boundaries or project instructions have changed and the current chat is still using older versions. It also reports the active context-check thresholds.
Why use it?
It updates the rules being followed when those files changed after the session began.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the highwater plugin — 1 skill, 1 hook shipped together

Good fit Use it when task boundaries or project instructions have changed and the current chat is still using older versions. It also reports the active context-check thresholds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/reganomika/highwater/refresh-context-rules
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.

Any agent
npx skills add reganomika/HighWater --skill refresh-context-rules
Clone the repo
git clone --depth 1 https://github.com/reganomika/HighWater

Made for: Claude Code.

Or install highwater, the plugin that ships this one along with the rest of its 1 skill, 1 hook.

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 refresh-context-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/reganomika/highwater/refresh-context-rules.svg)](https://agentmods.dev/skills/reganomika/highwater/refresh-context-rules)
Your own site
<a href="https://agentmods.dev/skills/reganomika/highwater/refresh-context-rules"><img src="https://agentmods.dev/badge/skills/reganomika/highwater/refresh-context-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 727 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00058 $0.00727
Opus 5 $0.00029 $0.00364
Sonnet 5 $0.00012 $0.00145
Haiku 4.5 $0.00006 $0.00073

Measured 7d ago against content hash 1511578a0ce2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade B, and why

refresh-context-rules scanned grade B with 1 finding 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 7d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

4. The `env` block of `~/.claude/settings.json`, if it sets any `CONTEXT_CHECK_*` key there, overrides the config file.
skills/refresh-context-rules/SKILL.md · 26 lines

What it actually says

Read right now, in full:

  1. ~/.claude/CLAUDE.md
  2. CLAUDE.md at the root of the current project, if it exists

Whatever they currently say applies for the rest of this session in place of what was in the system prompt at session start: the same rules, just re-read fresh, since these files can change after a session has already loaded and the system prompt doesn't hot-reload.

Apply this from now until the end of the session.

Don't try to judge whether anything changed compared to how you'd been behaving before: that's unreliable self-assessment, you have no accurate record of your own old system prompt to honestly compare against, and on a large accumulated context that guess easily comes out confident and wrong. Instead, always, regardless of any belief about what changed, produce a concrete checkable artifact right now, not a claim: the current, ACTUALLY ACTIVE context-check.sh thresholds in one line, window plus soft and hard marks as both percentage and raw token count (e.g. window=200000, warn=55% (110000), hard=88% (176000)).

Compute these from every layer that can override the shipped defaults (55/88/15, window 200000), in the order the script itself applies them:

  1. The script's own defaults, hooks/context-check.sh, the WARN_PCT/HARD_PCT/STEP_PCT fallback values (55/88/15).
  2. If CONTEXT_CHECK_WINDOW is set nowhere (neither config file nor env, see below), the window is auto-detected from the session's model in the transcript: 1000000 for claude-sonnet-5 or claude-fable-5 (they always run at 1M, on any plan), 200000 for anything else (Opus and others vary by plan, not detectable from the transcript).
  3. ~/.claude/hooks/context-check.conf, if it exists, overrides the script/auto-detected defaults.
  4. The env block of ~/.claude/settings.json, if it sets any CONTEXT_CHECK_* key there, overrides the config file.
  5. ~/.claude/hooks/context-check.observed.json, if it exists, can pull the hard mark earlier still: read its observed_pre_tokens and report observed_pre_tokens - 20000 as the effective hard mark whenever that's lower than what steps 1-4 computed. Say so explicitly when this is the binding number, it's easy to mistake for the configured percentage otherwise.

Note explicitly if CONTEXT_CHECK_DISABLE_WARN or CONTEXT_CHECK_DISABLE_HARD is set anywhere in that chain, since a disabled tier makes its own threshold moot. You cannot see an env var exported only in a shell profile (not in settings.json), since that's invisible to a file read; say so if you can't fully verify the chain instead of reporting a number you didn't actually confirm.

The user looks at what you produced and sees for themselves whether it matches what they expect right now, instead of trusting your claim.

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. 7d ago First seen · 26 lines · 58 tokens per session scan B 1511578a0ce2

Subscribe to this mod's changes

refresh-context-rules is a skill published in the GitHub repository reganomika/HighWater (2 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 727 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

should-i-buy

Helps the user decide on a purchase by taking the product links they're considering, asking a couple of sharp clarifying questions about their needs and circumstances, then opening each link in real Chrome via the Claude-in-Chrome extension to extract price, specs, ratings, reviews, return policy, and shipping.…

mostafa-drz/claude-skills · 184 tokens

emotional-recap

Reviews the user's past Claude Code conversations from a wellbeing perspective — sentiment, tone, emotional arc, recurring patterns — and generates a supportive, science-grounded report in both Markdown and HTML. Default lookback is 48 hours across all projects. Uses recognised emotion frameworks (Plutchik, Ekman…

mostafa-drz/claude-skills · 135 tokens

remarkable-memory

Turns handwritten reMarkable notes into a queryable semantic memory. Syncs pages from a reMarkable tablet (via the reMarkable MCP server, rmapi, or a USB/SSH bridge), renders each page to an image and reads the handwriting with Claude vision — no OCR key — then extracts each page into confidence-scored, human-editable…

mostafa-drz/claude-skills · 194 tokens

skill-creator

Create new Claude Code skills interactively, following all conventions from SKILLSGUIDE.md and the learning/configurability/feedback patterns proven in the best existing skills.

mostafa-drz/claude-skills · 5 tokens

ui-test

Runs UI tests described in plain English by driving real Chrome via the Claude-in-Chrome extension. Covers end-to-end flows (clicks, forms, assertions), visual checks (screenshot + optional baseline diff), accessibility (axe-core), performance (Web Vitals + light Lighthouse-style metrics), and an interactive --debug…

mostafa-drz/claude-skills · 190 tokens

shop-research

Researches products across Amazon, Google Shopping, and relevant specialty sites using the Claude-in-Chrome browser extension. Finds candidates matching user-specified criteria (gift, gadget, gear, home goods, etc.), captures screenshots and key data per candidate, then generates a modern 2026 HTML report with…

mostafa-drz/claude-skills · 138 tokens