session-hook
OfficialCreate instant session-scoped hooks
Authorgosu-code
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Session hooks address the need to modify Claude Code behavior for a single active session without requiring a full restart, enabling rapid experimentation and debugging.
Core Features & Use Cases
- Create per-session hooks that activate immediately, scoped to the current session.
- Manage multiple hook types (json and command) with optional matchers and optional global scope.
- Use for on-the-fly context injection, temporary enforcement of workflows, and session-specific automation during active tasks.
Quick Start
Create a session hook for the current Claude Code session using the provided CLI.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: session-hook Download link: https://github.com/gosu-code/claude-plugin/archive/main.zip#session-hook Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.