Development
Hook
Hooks
What opik runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
Install
> /plugin marketplace add comet-ml/opik-claude-code-plugin > /plugin install opik@opik
Ships with opik. Installing the plugin gets these hooks.
What fires, and when
UserPromptSubmit
Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.
${CLAUDE_PLUGIN_ROOT}/scripts/opik-logger
PostToolUse
${CLAUDE_PLUGIN_ROOT}/scripts/opik-logger
PostToolUseFailure
${CLAUDE_PLUGIN_ROOT}/scripts/opik-logger
SubagentStart
${CLAUDE_PLUGIN_ROOT}/scripts/opik-logger
SubagentStop
${CLAUDE_PLUGIN_ROOT}/scripts/opik-logger
PreCompact
${CLAUDE_PLUGIN_ROOT}/scripts/opik-logger
Stop
${CLAUDE_PLUGIN_ROOT}/scripts/opik-logger
SessionEnd
${CLAUDE_PLUGIN_ROOT}/scripts/opik-logger
Ships withopik
Log Claude Code sessions to Opik for LLM observability, plus skills and agents for building observable AI applications. Opik is the open-source LLM observability and evaluation platform, built by Comet.
Get the whole plugin
Stats
23
Stars
4
Forks
Active
Maintenance
Go
Language
Apache-2.0
License
3d ago
Last commit
7mo ago
Created
Repo: comet-ml/opik-claude-code-plugin

