# Context Refresh

> Use when active context is large, stale, contradictory, repeatedly reread, or no longer represents current source and task state.

- Skill: `ihabkhaled/context-refresh` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ihabkhaled/context-refresh`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ihabkhaled/context-refresh/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: ihabkhaled (https://skillmd.com/u/ihabkhaled)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ihabkhaled/context-refresh

---


# Context Refresh

## Core principle

Refresh preserves facts, decisions, blockers, and state while dropping speculation and reloading only changed authoritative sources.

## Procedure

1. Summarize goal, completed, remaining, decisions, evidence, blocker, and next action.
2. Discard abandoned hypotheses and repetitive output.
3. Check source hashes, versions, or modification evidence.
4. Reload only stale or changed sources.
5. Resolve conflicts in favor of current source.
6. Update compact task context and resume.

## Required output

Compressed state, refreshed sources, retired stale facts, and next action.

## Limits

Two identical reloads without source change trigger attention reset.

## Common mistakes

Do not reread the entire repository or trust stale summaries over source.

## Stop condition

Stop when current context is small, fresh, and sufficient for the next action.


