agents-hooks skillA
agents-hooks is agent-read markdown (skill) from vasilyu1983/ai-agents-public: Configures Claude Code hooks and Codex hooks.json/notify callbacks. Use when adding guardrails, preflight, audit trails, worktree automation, or budget enforcement..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Claude Code Hooks + Codex Notifications Use this skill when hook behavior is the main concern: Claude lifecycle hooks, runtime preflight, guardrails, async verification, worktree lifecycle checks, subagent coordination, or Codex notification callbacks. Claude and Codex are not equivalent here. Claude has a broad, stable hook system (31 events, re-verified against official docs 2026-08-15). Codex has two surfaces: the long-stable notification surface (`notify` + `tui.notifications`), and a newer lifecycle-hooks system (`hooks.json` with events including `SessionStart`, `UserPromptSubmit`, `SubagentStop`, `Stop`, `PreCompact`/`PostCompact` — see [developers.openai.com/codex/hooks](https://developers.openai.com/codex/hooks)). The Codex hooks system is less mature than Claude's and has known firing-reliability gaps (e.g. [codex#17532](https://github.com/openai/codex/issues/17532): repo-local `.codex/config.toml` hooks may not fire in interactive sessions). Prefer `notify` for anything that must be dependable; treat Codex `hooks.json` as usable-but-verify and confirm it fires on your runtime before relying on it. ## Quick Reference | Need | Event / Approach | |------|---------| …
Read the whole file at its exact version.
How to install
mdr add vasilyu1983/ai-agents-public/agents-hooks@v1.5mdr add vasilyu1983/ai-agents-public/agents-hooks@sha256:b622ca115f3e2611Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_4li4y52vdfq2xlou)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.5 latest | 2026-09-23 | 8dc5de4 | 25,565 B | A | view · diff |
| v1.5 | 2026-08-21 | 53f6cb7 | 24,956 B | A | view · diff |
| v1.5 | 2026-08-09 | da9d28f | 24,897 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (25565 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
vasilyu1983/ai-agents-public · 88 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_4li4y52vdfq2xlou GET https://markdownregistry.com/api/v1/resolve?ref=vasilyu1983/ai-agents-public/agents-hooks GET https://markdownregistry.com/api/v1/blob/b622ca115f3e2611c0d382df4bbefa65e007b87bc1665a23710484c82aeff303
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.