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
$ npx -y skills add comet-ml/opik-claude-code-plugin --agent claude-codeShips 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.
- Runs opik-logger.
PostToolUse
- Runs opik-logger.
PostToolUseFailure
- Runs opik-logger.
SubagentStart
- Runs opik-logger.
SubagentStop
- Runs opik-logger.
PreCompact
- Runs opik-logger.
Stop
- Runs opik-logger.
SessionEnd
- Runs 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, auto-invoked
Stats
20
Stars
0
Views
4
Forks
Active
Maintenance
Go
Language
Apache-2.0
License
5d ago
Last commit
5mo ago
Created
Repo: comet-ml/opik-claude-code-plugin

