context-watcher
/context-watcher
Ocenia zdrowie okna kontekstu i pamięci KV, zwija stare tury, przypina ważne ograniczenia i filtruje narzędzia MCP w długich sesjach.
- Autor
- GionaGranchelli ↗
- Repozytorium
- context-watcher ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 07.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 07.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Ocenia zdrowie okna kontekstu i pamięci KV, zwija stare tury, przypina ważne ograniczenia i filtruje narzędzia MCP w długich sesjach.
Oryginalny opis (EN)
Inspect, evaluate, and surgically optimize the active LLM context window and KV cache using contextWatcher (cw). Use when the context window grows large, when stale or duplicate file reads accumulate, after a multi-turn debugging rabbit hole, or when the user asks to check context health, KV cache hits, fold turns, pin constraints, or gate MCP tools.
Jak działa
- 1. When to Self-Check & Clean Your Context
- 2. Quick CLI Commands
Podgląd SKILL.md
--- name: context-watcher description: > Inspect, evaluate, and surgically optimize the active LLM context window and KV cache using contextWatcher (cw). Use when the context window grows large, when stale or duplicate file reads accumulate, after a multi-turn debugging rabbit hole, or when the user asks to check context health, KV cache hits, fold turns, pin constraints, or gate MCP tools. --- # contextWatcher (`cw`) Skill for Antigravity (AGY) You have access to `contextWatcher` (`cw`) via both the **`contextWatcher` MCP Server (`cw mcp`)** and the **`cw` CLI**. ## 1. When to Self-Check & Clean Your Context 1. **After a Multi-Turn Debugging Loop (`cw_fold_turns`):** * Once you finish fixing a bug that took 3+ failed commands or stack traces, call `cw_fold_turns` (or `cw fold <start> <end> --summary "..."`) so the failed intermediate turns are collapsed into a single outcome summary on subsequent turns. 2. **After Editing Files You Read Earlier (`cw_evict_stale_reads`):** * Whenever you modify a file with `edit_file` or `write_file` that was read earlier in the conversation, call `cw_evict_stale_reads` (or `cw dedupe`) so older stale `read_file` blocks are replaced with lightweight pointers. 3. **Preserving Critical Invariants (`cw_pin_context`):** * Use `cw_pin_context` to pin critical architectural rules or file/line references to the high-attention tail of the prompt without invalidating the KV cache prefix! 4. **Reducing Tool Schema Overhead (`cw_gate_tools`):** * If `cw_context_status` reports `CW-L005` (MCP Tool Schema Bloat), disable unused MCP servers for the current session via `cw_gate_tools`. ## 2. Quick CLI Commands ```bash cw status # Check token fullness, KV cache hit %, and health score cw tree # View ASCII Radix Prefix Tree of current context cw lint --fix # Diagnose and auto-fix stale reads, duplicates, and cache breaks cw dedupe # Shadow-deduplicate all stale/duplicate file reads cw fold 4 9 --summary "Resolved SQLite lock contention in cw-store" cw pin "Invariant" "Never break tool_use / tool_result pairing" ```
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · GionaGranchelli/context-watcher | 100 | MIT |
| GionaGranchelli/context-watcher | 86 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki df37158072ee (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 86cw
Sprawdza i kompaktuje aktywne okno kontekstu LLM, bufor KV, nieaktualne odczyty plików i hałaśliwe wyniki narzędzi, gdy kontekst przekracza 80000 tokenów. - 100hatch3r-context-health
Monitoruje i utrzymuje zdrowie kontekstu rozmowy w długich sesjach, gdy kontekst może się degradować, po wielu turach lub przy powtarzających się błędach. - 100context-window-management
Zarządza budżetami kontekstu LLM: priorytetyzacja, streszczanie, kompaktowanie oraz decyzja, co ładować, a co tylko wskazywać, w długich sesjach, dużych repozytoriach i zadaniach z wieloma dokumentami. - 100context-budget
Zarządza oknem kontekstu agentów AI, optymalizuje jego użycie i zapobiega przepełnieniu przy dużych bazach kodu i długich sesjach. - 100doncheli-context-health
Raportuje stan okna kontekstu i zaleca kompresję lub czyszczenie, gdy kontekst się zapełnia. - 90context-window-management
Rozdziela budżet tokenów między prompt systemowy, historię i retrieval oraz kompaktuje kontekst tak, by zachować to, co ważne, w długich aplikacjach LLM i przy przepełnieniu kontekstu.