Context Lifecycle Protocol plugin marketplace
npx claudepluginhub ryannle1/clpContext Lifecycle Protocol — Zone-based context management with budget tracking, structured handoffs, and demand-loaded skills for Claude Code.
Zone-based context management for Claude Code.
CLP treats your 200K token context window as a managed resource — partitioned into zones with budget tracking, demand-loaded skills, and structured session handoffs.
| Before CLP | With CLP | |
|---|---|---|
| Baseline tokens | 60-70K at startup | <15K (kernel zone only) |
| After compaction | Vague summary, lost details | Structured JSON manifest, full state |
| New session | Re-explain everything | Auto-restore, continue immediately |
| Token visibility | Guess | Real-time zone budget in StatusLine |
| Doc loading | Everything always | Demand-loaded on trigger match |
As a Claude Code plugin (recommended):
/plugin marketplace add ryannle1/clp
/plugin install clp@clp-marketplace
/clp:setup
| Command | What it does |
|---|---|
/clp:setup | Auto-detect project, initialize CLP config |
/clp:status | Zone budget breakdown + recommendations |
/clp:plan [task] | Plan work in context-sized chunks |
/clp:checkpoint | Save structured state (decisions, tasks, context) |
/clp:handoff | Create or restore session handoff |
/clp:doctor | 21-check installation diagnostic |
/clp:reset | Clean reset (soft / hard / factory) |
Four zones with different eviction policies:
Lifecycle state machine: INIT → ACTIVE → COMPACT → HANDOFF → RESUME → ACTIVE
XML-structured prompts: All skills use XML tags as cognitive containers. 92% compaction fidelity vs 71% for prose.
Skill registry: Trigger-keyword matching loads only the docs your current task needs.
/clp:doctor # Inside Claude Code
bash tests/run-tests.sh # Standalone
Claude Code (any version with hooks), jq, bash 4+
MIT