This page is also available in

Home › AI Agent / automation workflows › agent-event-hooks

agent-event-hooks

846652073ab-eng/agent-event-hooks

AI Agent / automation workflows Source: GitHubScore 1.328 stars/day (56 total)· First listed Dec 3, 2026

Visit the agent-event-hooks website / project page →

Verdict must be set up on a computer first;Cannot run this environment on a phone;Provides seven lifecycle event hooks

What is agent-event-hooks

Event middleware for AI coding agents, providing hooks, guardrails, delayed triggers, refusal collapsing, and other features.

Key features

  • Provides seven lifecycle event hooks, supporting before/after/observe modes. Allows insertion of custom logic without modifying the host source code.
  • Supports YAML configuration rules, executed in priority order. Enables delayed triggering of actions by round or time point.
  • Intercepts tool calls and rejects out-of-bounds commands via guard mechanism in the pre-execute stage to prevent execution.
  • Integrates a refusal collapsing filter that identifies and collapses refusals in llm/stream events. Tested F1 score reaches 0.933.
  • Implements full-chain observation with stats.byEvent for per-event counting, covering all lifecycle events.

Who it is for

Suitable for developers, researchers, and integrators who develop or use AI coding agents (such as Claude, Cursor, etc.) to add a programmable control layer, guardrails, and event handling at runtime.

Who it is NOT for

Materials do not specify who this is not for.

How to get started

  1. Visit https://raw.githubusercontent.com/846652073ab-eng/agent-event-hooks/master/llms.txt to obtain the four-step instructions for the model
  2. See the source page https://github.com/846652073ab-eng/agent-event-hooks to read the full README and rule examples
  3. After executing curl to fetch llms.txt or llms-full.txt, follow the instructions to complete the four steps: fetch, install, mount, and verify
  4. Write rules in YAML and register event handlers via hooks.register

Pricing:Not published

Compiled from public descriptions on the tool's official website / README / launch page. Pricing and user numbers have not been verified; please check the official website. Some sections were drafted with AI assistance. Written in Chinese and English.

Similar alternatives (AI Agent / automation workflows)

Get a “Featured on AI Hot List” badge · Submit a tool

← Back to “AI Agent / automation workflows” · Full hot list · Use-case lists