agentleFS
myths-labsmyths-labs/muse/skills/core/context-health-check/SKILL.md

context-health-check

Skill35 starsChanged 8 months agoMITView on GitHub

Check actual session context observations; save and reassess after compaction without forcing Bye or guessing model limits.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use metrics exposed by the current client for the exact current session.

    line 8
  2. Distinctive:

    If reliable metrics are unavailable, report UNKNOWN.

    line 13
  3. Distinctive:

    Stop for an actual inability to continue, failed recovery, unresolved critical state contradictions, or an explicit user handoff request.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.