opencode-hooks-plugin: Command for Claude Code

.opencode/commands/list-hooks.md

list-hooks is a command for Claude Code, OpenCode from romain325/opencode-hooks-plugin. It costs 8 tokens per session (361 once invoked), scanned B, original, WTFPL.

A command that lists all hooks configured in Claude settings files. Hooks are automated actions that run when specified events occur.

In plain words
What is it for?
Use it to check which Claude hooks are configured and review the automation attached to them.
Why use it?
It makes configured automation easier to inspect than searching through settings files manually.

Command for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code command (commands/*.md).

This is romain325/opencode-hooks-plugin's own configuration. It tells Claude Code and OpenCode how to work on opencode-hooks-plugin itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything opencode-hooks-plugin configures →

Reuse

Borrowing it

Nothing to install: this file belongs to romain325/opencode-hooks-plugin. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/romain325/opencode-hooks-plugin/main/.opencode/commands/list-hooks.md
Clone the repo
git clone --depth 1 https://github.com/romain325/opencode-hooks-plugin

Made for: Claude Code, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for list-hooks

README.md
[![agentmods](https://agentmods.dev/badge/commands/romain325/opencode-hooks-plugin/list-hooks/github.svg)](https://agentmods.dev/commands/romain325/opencode-hooks-plugin/list-hooks)
Your own site
<a href="https://agentmods.dev/commands/romain325/opencode-hooks-plugin/list-hooks"><img src="https://agentmods.dev/badge/commands/romain325/opencode-hooks-plugin/list-hooks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for list-hooks

Your own site · 80×15
<a href="https://agentmods.dev/commands/romain325/opencode-hooks-plugin/list-hooks"><img src="https://agentmods.dev/badge/commands/romain325/opencode-hooks-plugin/list-hooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 361 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00008 $0.00361
Opus 5.5 $0.00003 $0.00144
Sonnet 5.5 $0.00002 $0.00072
Haiku 4.5 $0.00001 $0.00036

Measured 2mo ago against content hash 7060050b8eed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

list-hooks scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Global hooks** (`~/.claude/settings.json`):
.opencode/commands/list-hooks.md · 22 lines

The source is not reproduced here

Licensed WTFPL

The repository is licensed WTFPL, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 22 lines · 8 tokens per session scan B 7060050b8eed

Subscribe to this mod's changes

list-hooks is a command published in the GitHub repository romain325/opencode-hooks-plugin (7 stars, last pushed 8mo ago), licensed WTFPL. It adds 8 tokens to every session and 361 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

list-hooks compared with commands from other repositories

list-hooks next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
list-hooksromain325/opencode-hooks-pluginCommand78mo agoWTFPLB8Claude Code, OpenCode
checklistgithub/spec-kitCommand149ktodayMITA13Claude Code
clarifygithub/spec-kitCommand149ktodayMITA27Claude Code
specifygithub/spec-kitCommand149ktodayMITA13Claude Code
convergegithub/spec-kitCommand149ktodayMITA35Claude Code
implementgithub/spec-kitCommand149ktodayMITA14Claude Code
speckit.bug.fixgithub/spec-kitCommand149ktodayMITA12Claude Code