context-health-check

context-health-check is a skill for Claude Code, Codex from myths-labs/muse. It costs 25 tokens per session (323 once invoked), scanned A, original, MIT.

A context-window check that estimates how much of the agent's working conversation has been used and advises whether to continue or start a new conversation.

In plain words
What is it for?
Use it with /ctx or questions about remaining context, conversation limits, or whether a fresh conversation is needed.
Why use it?
It helps avoid losing important details when the conversation becomes too large for the agent to handle reliably.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it with /ctx or questions about remaining context, conversation limits, or whether a fresh conversation is needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/myths-labs/muse/context-health-check
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 myths-labs/muse --skill context-health-check
Clone the repo
git clone --depth 1 https://github.com/myths-labs/muse

Made for: Claude Code, Codex.

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 context-health-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/myths-labs/muse/context-health-check/github.svg)](https://agentmods.dev/skills/myths-labs/muse/context-health-check)
Your own site
<a href="https://agentmods.dev/skills/myths-labs/muse/context-health-check"><img src="https://agentmods.dev/badge/skills/myths-labs/muse/context-health-check/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 context-health-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/myths-labs/muse/context-health-check"><img src="https://agentmods.dev/badge/skills/myths-labs/muse/context-health-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 323 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 102
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00025 $0.00323
Opus 5 $0.00013 $0.00161
Sonnet 5 $0.00005 $0.00065
Haiku 4.5 $0.00003 $0.00032

Measured 4d ago against content hash c4f5d5ab08ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

context-health-check 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 4d 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.

skills/core/context-health-check/SKILL.md · 31 lines

What it actually says

Context health

Use metrics exposed by the current client for the exact current session. Record observation time and limitations. Model specifications, user preferences, cached or cumulative token totals do not establish current context occupancy. A recent request input is an observation, not a prediction of remaining space.

If reliable metrics are unavailable, report UNKNOWN. Do not estimate occupancy from turn counts, source-file sizes, model names, or an old static model table.

At observed 80% pressure, save meaningful current-role/Lane deltas, reduce the next read batch, compact if the client supports it, verify the current checkpoint and continue the same work. A percentage alone never triggers full Bye, a new Lane, or a new conversation. After compaction, obtain a fresh observation; prior counts are stale. Compaction does not prove that all memory survived.

Preserve decisions, user corrections, constraints, unfinished failures, relevant evidence and the next action. The agent fills the save fields; the user need not write a template. Save at least every ten interaction rounds if changes remain unsaved. Only a legacy session without a Lane uses CRASH_CONTEXT.md; never replace another Lane's state.

Stop for an actual inability to continue, failed recovery, unresolved critical state contradictions, or an explicit user handoff request. Save confirmed facts and state what is missing. Do not represent partial recovery as a complete Bye.

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. 4d ago Changed · -164 lines · -23 tokens per session c4f5d5ab08ca
  2. 12d ago First seen · 195 lines · 48 tokens per session scan A b389c124f4e6

Subscribe to this mod's changes

context-health-check is a skill published in the GitHub repository myths-labs/muse (32 stars, last pushed 5d ago), licensed MIT. It adds 25 tokens to every session and 323 once invoked, about $0.0001 per session on Opus 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-30.