Logo de Hatch3r Context Health

Hatch3r Context Health

Organização
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.

Visão geral

Publicado porhatch3r
Repositóriohatch3r
Nome da habilidadehatch3r-context-health
Estrelas
26
Forks
7
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por hatch3r no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Hatch3r Context Health no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-context-health
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Hatch3r Context Health em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Hatch3r Context Health automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Hatch3r Context Health não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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

Perguntas frequentes

O que a habilidade de IA Hatch3r Context Health faz?

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

Por que usar Hatch3r Context Health no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Hatch3r Context Health é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Hatch3r Context Health no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-context-health. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Hatch3r Context Health?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Hatch3r Context Health?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Hatch3r Context Health com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Hatch3r Context Health é gratuita?

Sim. A habilidade é publicada no GitHub por hatch3r sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇