Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.78 KB

File metadata and controls

67 lines (46 loc) · 1.78 KB

owl + hawk-hooks Integration

Use owl's Telegram approval system with hawk-hooks as the hook manager.

Prerequisites

  1. owl installed: uv tool install owl-afk or pipx install owl-afk
  2. hawk-hooks set up: Run hawk-hooks to initialize
  3. Telegram bot configured: Run owl install to configure your bot token and chat ID (then run owl uninstall to remove standalone hooks)

Switching from Standalone Mode

If you previously used owl install (standalone mode), uninstall those hooks first:

owl uninstall

This prevents duplicate hooks running.

Installation

owl hawk install

Or equivalently:

owl hawk-hooks install

This creates and enables owl wrapper scripts in ~/.config/hawk-hooks/hooks/:

  • pre_tool_use/owl-pre_tool_use.sh - Remote approval for tool calls
  • post_tool_use/owl-post_tool_use.sh - Deliver queued messages after tool execution
  • stop/owl-stop.sh - Notify on session stop
  • subagent_stop/owl-subagent_stop.sh - Notify when subagents complete

How It Works

When using hawk-hooks mode:

  1. Same config - Uses ~/.config/owl/ for settings, rules, and storage
  2. Same features - Approve/deny, rules, chain approval all work
  3. Inline polling - Hooks poll Telegram inline during execution

Configuration

Config is stored in ~/.config/owl/:

~/.config/owl/
├── config.json      # Telegram bot token, chat ID
├── owl.db         # Rules and request history
└── mode             # "on" or "off"

To configure credentials, either:

  • Run owl install (then owl uninstall to remove standalone hooks), or
  • Edit ~/.config/owl/config.json directly with your telegram_bot_token and telegram_chat_id

Uninstall

owl hawk uninstall
hawk-hooks toggle  # Update runners