Skip to main content

Crate agent_hooks

Crate agent_hooks 

Source
Expand description

Unified hook adapter for AI CLI tools.

Provides the ToolAdapter trait and implementations for registering agent-hand hook scripts into various AI coding assistants (Claude Code, Cursor, Copilot/Codex, Windsurf, Kiro, OpenCode, Gemini CLI).

Structs§

ClaudeAdapter
CodexAdapter
CursorAdapter
GeminiAdapter
KiroAdapter
OpenCodeAdapter
ToolInfo
Information about a tool adapter’s status, for UI display.
WindsurfAdapter

Enums§

AdapterError
Errors from tool adapter operations.
ToolStatus
Status of an AI CLI tool on this system.

Traits§

ToolAdapter
Adapter for an AI CLI tool’s hook system.

Functions§

all_adapters
Return all known tool adapters.
auto_register_all
Auto-register hooks for all detected (but unregistered) tools.
detect_all
Detect all tools and return their status info.
get_adapter
Get a specific adapter by name.

Type Aliases§

Result