Hook
Runs when you submit a prompt, before the agent sees it, executing plan-mode-enhancer.ps1, user-prompt-submit.ps1, five-phase-enforcer.ps1 and session-start-plugin-check.ps1 (4 commands). From DNYoussef/context-cascade.
Context Cascade - Nested Plugin Architecture for Claude Code Official Claude Code Plugin | Version 3.1.0 | Last updated: 2026-01-09 (see docs/COMPONENT-COUNTS.json for source counts) Context-saving nested architecture: Playbooks -> Skills -> Agents -> Commands. Load only what you need, saving 90%+ context space.
Hook
Runs when you submit a prompt, before the agent sees it, executing plan-mode-enhancer.ps1, user-prompt-submit.ps1, five-phase-enforcer.ps1 and session-start-plugin-check.ps1 (4 commands). From DNYoussef/context-cascade.
Hook
Runs before the agent uses a tool for Skill, Task, Write and Edit tool calls, executing pre-skill-invoke.ps1, check-skill-mcps.ps1, skill-started.ps1, pre-task-spawn.ps1, pre-task-memory-check.ps1, pre-task-plugin-reminder.ps1, pre-coding-library-check.ps1, model-router-pretool.ps1, agent-spawned.ps1 and…
Hook
Runs after a tool call finishes for Task, TodoWrite, Skill, Write and Edit tool calls, executing post-task-spawn.ps1, post-task-memory-store.ps1, post-todowrite.ps1, post-skill-compliance.ps1, skill-completion-verifier.ps1, command-executed.ps1 and run-audit.ps1 (8 commands). From DNYoussef/context-cascade.
Hook
Runs before the context is compacted, executing pattern-retention.ps1 and pattern-retention-precompact.ps1 (2 commands). From DNYoussef/context-cascade.
Hook
Runs when the agent finishes a response, executing session-end-reflect.ps1, session-stop.ps1, ralph-loop-stop-hook.ps1, session-end-store.ps1, recursive-improvement-gate.ps1, mcp-session-cleanup.ps1 and post-reflect-store.ps1 (7 commands). From DNYoussef/context-cascade.
Hook
Runs when a session starts, executing session-start-plugin-check.ps1 and memory-trigger-patterns.ps1 (2 commands). From DNYoussef/context-cascade.