Opencode Hooks — Development skill for Claude Code
OpenCode plugin (V1+V2) that runs your existing Claude Code hooks natively: settings, plugin, skill and subagent hooks, with trust, timeouts, structured decisions and a compatibility doctor.
How to install Opencode Hooks
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Hamza-Abili/opencode-hooks and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Opencode Hooks does
OpenCode plugin (V1+V2) that runs your existing Claude Code hooks natively: settings, plugin, skill and subagent hooks, with trust, timeouts, structured decisions and a compatibility doctor. Zero runtime dependencies.
Alternatives in Development
- Doctor — Environment diagnostics with interactive fixes — providers, auth, RTK, hooks, token optimization 2.8k ★
- Save Session Log — Save a structured record of the current session — what was discussed, what was analyzed/built, where files wer 31 ★
- Ableton Export — Pre-export checklist before rendering audio 26 ★
README
opencode-hooks
[](https://github.com/Hamza-Abili/opencode-hooks/actions/workflows/ci.yml) [](https://www.npmjs.com/package/@hamzaabili/opencode-hooks) [](https://www.npmjs.com/package/@hamzaabili/opencode-hooks) [](https://github.com/Hamza-Abili/opencode-hooks/stargazers) [](LICENSE)
**Run Claude Code and Codex hooks natively in OpenCode V1 and V2.**
`opencode-hooks` reads the native configuration you already use — Claude Code settings, plugins, skills and subagent frontmatter, and Codex `hooks.json` — and executes it at the matching OpenCode lifecycle point. One package, two dialects, no wrapper binary, no daemon, zero runtime dependencies.
Claude Code settings / plugins / skills ─┐
├─▶ discovery ─▶ trust ─▶ execute ─▶ decision
Codex hooks.json ─┘ │
OpenCode hooks
The previous package name, `@hamzaabili/opencode-claude-hooks`, is retained for existing Claude-only installs. New installs should use `@hamzaabili/opencode-hooks`.
Why
Hooks are small, useful, and already written: block `rm -rf`, run a formatter after edits, inject project context at session start, validate a prompt, stop a turn until tests pass. Moving between harnesses should not mean rewriting them.
Most compatibility packages cover commands, agents, skills or provider auth, but not the hook runtime. This plugin is the missing layer, with the safety rails a hook runner needs: explicit trust, timeouts, output limits, environment m
Related Skills
Opus Compatibility Scanner
Free Claude Code skill that audits CLAUDE.md, AGENTS.md, subagents, settings.json, hooks, and Anthropic SDK ca
Ashlr Doctor
Diagnose an ashlr-plugin install — checks plugin path, version, MCP servers, hooks, stats, genome, and setting
Dendrite
Portable plugin marketplace for Claude Code, Codex, and Gemini — one 77-plugin catalog of agent skills, MCP se
SecondLook
BCC detector with Claude as a Grad-CAM trust layer - attention check for the doctor's final call.
All Agent Shared Memory
Zero-dependency cross-agent memory + session bridge for Claude Code, Codex, opencode and ZCode: one auditable
Opencode Claude Hooks
Run Claude Code hooks natively in OpenCode V1 and V2
Related Agents
Config Doctor
Audits and repairs Claude Code configuration, including agents, commands, hooks, settings, and project memory.
My Security Reviewer
Fresh-context security reviewer for agent tooling - skills, subagents, commands, hooks, shell/sync scripts, do
DevOps SecOps Engineer
Infrastructure and security specialist: multi-stage Dockerfiles, compatibility with the project's existing CI/