Bark notification hooks for Codex, Claude Code, and OpenClaw agents.
Project description
bark-agent-hook
Standalone Bark notification hooks for Codex, Claude Code, and OpenClaw.
Install
uv tool install git+https://github.com/qsoyq/bark-agent-hook.git
bark-agent-hook --help
Install all locally available agent plugins:
bark-agent-hook install
Install one or more specific agents:
bark-agent-hook install --agent codex
bark-agent-hook install --agent claude --agent openclaw
Uninstall plugin hooks without removing marketplace sources, environment variables, or historical audit logs:
bark-agent-hook uninstall
bark-agent-hook uninstall --agent codex
Runtime Configuration
BARK_DEVICE_KEY is required for real delivery. Missing or empty values skip notification delivery and exit successfully.
Common optional settings:
BARK_SERVER=https://api.day.app
BARK_GROUP=
AGENT_BARK_NOTIFY_GROUP_MODE=agent
AGENT_BARK_NOTIFY_HOOK_URL=
AGENT_BARK_NOTIFY_TITLE_TEMPLATE=
AGENT_BARK_NOTIFY_AUDIT_LOG=1
AGENT_BARK_NOTIFY_AUDIT_LOG_FILE=~/.bark-agent-hook/bark-agent-hook.log
The AGENT_BARK_NOTIFY_* variable names are intentionally preserved for compatibility with existing hook configuration.
Hook Commands
These are the commands installed into the companion plugins:
bark-agent-hook hook --runtime codex --event approval_needed --summary-mode extract
bark-agent-hook hook --runtime codex --event completion --summary-mode extract
bark-agent-hook hook --runtime claude --event approval_needed --summary-mode extract
bark-agent-hook hook --runtime claude --event completion --summary-mode extract
bark-agent-hook hook --runtime openclaw --event completion --summary-mode extract
Local dry-run check:
printf '%s' '{"session_id":"demo","cwd":"/tmp/demo-project"}' \
| BARK_DEVICE_KEY=device-key bark-agent-hook hook --runtime codex --event completion --dry-run
Development
uv sync --group dev
uv run pytest -q
uv run pre-commit run --all-files
uv build
This repository does not maintain generated command docs; bark-agent-hook --help is the command reference.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bark_agent_hook-0.1.1.tar.gz.
File metadata
- Download URL: bark_agent_hook-0.1.1.tar.gz
- Upload date:
- Size: 89.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d4ce6415979441f929c0a445ddf0d7d2bae156c160624c677d2f83d86ea2759
|
|
| MD5 |
c826c0f9edbc2ffcb6f676b03379f1a0
|
|
| BLAKE2b-256 |
84986507c06e2bfd3e5724d807ef0e880a426f3de19975f566757a3b20d4cd65
|
File details
Details for the file bark_agent_hook-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bark_agent_hook-0.1.1-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82a8ce746d5fc2cf957917c8b95e5e3f00b6400155b4430e11eb30dba515024b
|
|
| MD5 |
0a8ffea3ed909bdc238053ee72189f56
|
|
| BLAKE2b-256 |
2f8e399cb96749e2d7cc450dbe4518f73a18d564d39d98d73584d01ef89438d5
|