Toolkit
Lifecycle Hooks · Compositions
On this page6 sections
Compositions
Hooks + Project Instructions
Instructions explain the rule and remediation. A hook checks the observable invariant. Keep the language and executable test aligned from one policy source.
Hooks + Skills
A hook can recommend or route to a remediation skill after a failure. Avoid letting the hook trigger an unbounded model workflow on every event; preserve a clear operator-visible transition.
Hooks + MCP
Use hooks to log or constrain MCPUSB-C for AI — one standard plug so any agent can connect to any data source or tool.The Model Context Protocol: an open standard (Anthropic, 2024) for connecting AI systems to external tools and data without building a custom integration for each one.Full definition tool calls where the runtime exposes them. Enforce credentials, scopes, and service-side authorization at the MCP server or downstream API as well.
Hooks + Subagents
Verify whether child agents inherit hook configuration and whether events identify the originating AgentA worker you delegate to: brief it, and it takes steps on its own. A chatbot answers; an agent acts.An LLM that runs tools in a loop toward a goal — it acts, checks the result, decides the next step, and repeats until done.Full definition. A parent-only hook leaves a blind spot if children can act directly.
Hooks + Evidence Ledger
Record event type, normalized action, handler version, decision, result, timestamp, and causal run identifier. Store evidence outside the mutable agent conversation.
Hooks + Release Gate
The hook provides fast local feedback; CI repeats the check against the complete change; an independent policy layer authorizes release. This composition survives model error, local bypass, and partial telemetry.
Source register
Lifecycle Hooks sources
Primary vendor documentation reviewed on the date shown. Links may change after publication.
- Hooks reference (opens in a new tab)
Anthropic · official docs · accessed 2026-08-01
- Hooks (opens in a new tab)
OpenAI · official docs · accessed 2026-08-01
- GitHub Copilot hooks reference (opens in a new tab)
GitHub · official docs · accessed 2026-08-01