Plugin
How it works
Claude Code plugin — skills, hooks, commands, and MCP config.
The main building blocks are:
SpecInfo— One in-flight spec discovered under a workspace root.GitState— Snapshot of the worktree's git state at hook fire time.
Under the hood, this feature spans 967 source files covering:
- CLI wrapper for the
/handoffslash command. - Resume-prompt builder — single source of truth for the format.
- Shared state-discovery helpers for session-continuity hooks.
What connects to it
This feature relates to: plugin, claude-code.
Other parts of the codebase interact with plugin through these interfaces:
| Interface | Purpose | File |
|---|---|---|
SpecInfo |
One in-flight spec discovered under a workspace root. | plugin/hooks/_state.py |
GitState |
Snapshot of the worktree's git state at hook fire time. | plugin/hooks/_state.py |