Logo van Hatch3r Context Health

Hatch3r Context Health

Organisatie
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.

Overzicht

Uitgeverhatch3r
Repositoryhatch3r
Skillnaamhatch3r-context-health
Sterren
26
Forks
7
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door hatch3r op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Hatch3r Context Health in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-context-health
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Hatch3r Context Health in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Hatch3r Context Health automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Hatch3r Context Health niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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

Veelgestelde vragen

Wat doet de AI-skill 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.

Waarom Hatch3r Context Health gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Hatch3r Context Health bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Hatch3r Context Health in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-context-health. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Hatch3r Context Health gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Hatch3r Context Health gebruiken?

Zoveel als je wilt. Je kunt Hatch3r Context Health gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Hatch3r Context Health gratis?

Ja. Deze skill is door hatch3r op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇