OpenCode supports a hooks feature similar to Claude Code, but with a plugin-based architecture that offers more flexibility and programmability.
| Feature | Claude Code | OpenCode |
|---|---|---|
| Primary approach | Config-based shell commands | Plugin-based TypeScript/JS |
| Hook execution | Bash scripts via JSON config | Full SDK access in plugins |