Hatch3r Context Health logo

Hatch3r Context Health

Organization
hatch3r
hatch3r-context-health

Monitors and maintains conversation context health during long sessions. Use when context may be degrading, after many turns, or when experiencing repeated errors.

Overview

Publisherhatch3r
Repositoryhatch3r
Skill namehatch3r-context-health
Stars
26
Forks
7
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by hatch3r on GitHub. Read the source before you install it.

Installation

Install the Hatch3r Context Health AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-context-health
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatch3r/hatch3r.git /tmp/hatch3r
mkdir -p .claude/skills
cp -r /tmp/hatch3r/skills/hatch3r-context-health .claude/skills/hatch3r-context-health
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hatch3r Context Health in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hatch3r Context Health on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hatch3r Context Health is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Context Health Monitoring

Quick Start

Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Assess current context health
- [ ] Step 2: Identify degradation signals
- [ ] Step 3: Apply corrective action
- [ ] Step 4: Verify health improvement

Step 0 — Detect Ambiguity (P8 B1)

Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. Triggers for THIS skill: original task recall, corrective action authority at Orange/Red (delegate vs checkpoint-and-stop), scope of files to re-read, whether to post progress to platform on Red, and irreversible stop (discard unsaved work) vs preserve.

Fan-out Discipline (P8 B2)

Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Emit sub_agents_spawned: { count, rationale, task_structure } in your output.

Step 1: Assess Context Health

Run through the self-assessment checklist:

  1. Task recall: Can you state the original task, acceptance criteria, and scope boundaries without looking?
  2. Progress tracking: List what's been completed and what remains.
  3. Error check: Count recent failed tool calls or incorrect assumptions.
  4. File currency: List files you've modified — when did you last read each one?
  5. Scope check: Compare your current work to the original issue description.

Model-Aware Threshold Profiles

Default thresholds assume a large-context model. When the active model is known, apply the matching profile to adjust thresholds:

Model TierContext WindowToken WarningTurn LimitFile Staleness
Small (< 32K)~32K tokens> 60% of window> 15 turns> 10 turns
Medium (32K--128K)~128K tokens> 70% of window> 25 turns> 15 turns
Large (128K--200K)~200K tokens> 80% of window> 30 turns> 20 turns
Extended (> 200K)200K+ tokens> 85% of window> 40 turns> 25 turns

Profile resolution: read models in .hatch3r/hatch.json; default to Large if unset. A contextHealth section in hatch.json with explicit thresholds overrides the profile. Log the active profile at the start of each check: "Context health using <tier> profile (<window_size> tokens)".

Step 2: Identify Degradation

CheckHealthyDegraded
Task recallCan state requirements from memoryNeed to re-read issue
ProgressClear forward momentumCycling or stuck
ErrorsOccasional, different causesRepeated, same cause
FilesRecently read and currentStale, may have drifted
ScopeAligned with acceptance criteriaDrifted to tangential work

Step 3: Apply Corrective Action

If 0-1 checks degraded (Green): Continue normally

If 2-3 checks degraded (Yellow): Refresh

  1. Re-read the issue body and acceptance criteria
  2. Re-read all files you've modified in this session
  3. Create a progress summary of completed work
  4. Re-plan remaining steps from the refreshed context

If 4 checks degraded (Orange): Delegate

  1. Create a handoff document with all context by invoking the hatch3r-handoff-preparer agent (or the hatch3r-handoff-prepare skill directly)
  2. Spawn a sub-agent using the Task tool with the handoff
  3. Monitor the sub-agent's output
  4. Aggregate results

If 5 checks degraded (Red): Checkpoint and Stop

  1. Save all progress (files changed, tests written)
  2. Document remaining work and blockers
  3. Post progress on the issue/work item (GitHub Issue, ADO Work Item, or GitLab Issue — check platform in .hatch3r/hatch.json)
  4. Recommend fresh conversation

Step 4: Verify Improvement

After corrective action:

  • Re-run the assessment checklist
  • Confirm health is at Green or Yellow
  • Resume work on the original task

Context Poisoning Detection

During context health checks, also scan for signs of context poisoning -- stale or incorrect information that has accumulated in the conversation:

SignalDetectionAction
Outdated file contentYou reference a file's content but the file has been modified since you last read itRe-read the file before continuing
Stale assumptionsA decision was made based on information that has since changed (e.g., a function was refactored)Re-verify assumptions against current state
Contradictory contextTwo pieces of context in the conversation disagree (e.g., "the API uses REST" vs. code showing GraphQL)Resolve by reading the actual source of truth
Accumulated errorsMultiple tool calls have failed, suggesting the mental model of the codebase is wrongReset context by re-reading key files from scratch

Context poisoning is more dangerous than missing context because it leads to confident-but-wrong decisions.

Error Handling

  • Context degradation detected mid-task: If health drops to Orange or Red during implementation, stop the current task, summarize progress so far, and recommend delegating the remainder to a fresh sub-agent with the summary as input.
  • Health checks produce conflicting signals: If some checks indicate Green while others indicate Red, trust the worst signal and investigate the specific check that failed before proceeding.
  • Unable to estimate token usage: If the platform does not expose token counts, use character-based estimation (1 token per 4 characters) and note the approximation in the report.

Definition of Done

  • Context health assessed with all 5 checks
  • Context poisoning scan completed (no stale assumptions)
  • Degradation level determined (Green/Yellow/Orange/Red)
  • Appropriate corrective action taken
  • Health verified at Green or Yellow after correction

Board Pickup Integration

When board-pickup operates in auto-advance mode, context health is checked between issues. Orange completes the current issue then a fresh agent handles the next; Red mid-issue marks the issue PARTIAL and moves it back to Ready.

Related Skills & Agents

  • Command: hatch3r-board-pickup -- auto-advance mode uses context health for session management

References

Frequently asked questions

What does the Hatch3r Context Health AI skill do?

Monitors and maintains conversation context health during long sessions. Use when context may be degrading, after many turns, or when experiencing repeated errors.

Why use Hatch3r Context Health on TypingMind?

Because you install it once and use it with any model. Hatch3r Context Health is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hatch3r Context Health in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-context-health. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Hatch3r Context Health?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hatch3r Context Health?

As many as you like. As long as a model supports skills, you can use Hatch3r Context Health with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hatch3r Context Health AI skill free?

Yes. It is published on GitHub by hatch3r under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇