You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -201,6 +205,51 @@ Alert-type matching applies to Claude Code notification hooks and Gemini CLI not
201
205
202
206
Agent-team and subagent workflows can be noisy if `permission_prompt` is enabled. If you only want idle pings, run `cn alerts remove permission_prompt && cn on`. Codex currently uses completion events from `notify`, so `permission_prompt` and `idle_prompt` settings do not change Codex behavior.
203
207
208
+
### Slack And Discord
209
+
210
+
Code-Notify can also send the same notification to Slack or Discord through incoming webhooks. Desktop notifications still work normally; remote delivery is an extra channel.
Webhook URLs are stored locally in `~/.config/code-notify/channels.json` and are redacted in `cn status`.
220
+
221
+
### Usage Alerts
222
+
223
+
Usage alerts are opt-in for Codex and Claude:
224
+
225
+
```bash
226
+
cn usage on
227
+
cn usage check
228
+
cn usage watch --interval 300
229
+
cn usage thresholds set 20,10
230
+
cn usage reset-alerts voice on
231
+
cn usage reset-alerts sound default
232
+
```
233
+
234
+
Code-Notify checks the daily (5h) and weekly (7d) usage windows. It sends a warning when remaining usage crosses 20% or 10%, and sends a reset notification when a window returns to 100%.
235
+
236
+
Reset alerts are intentionally separate from normal task-complete alerts. By default they use a different title, voice message, and reset sound so it is clear that tokens have refilled. The voice message identifies the window, for example `Codex token daily limit reset` or `Codex token weekly limit reset`. You can disable or customize that behavior:
Codex usage checks read `~/.codex/auth.json`. Claude usage checks read `~/.claude/.credentials.json`. Code-Notify does not launch provider CLIs, start login flows, or install a background daemon.
Copy file name to clipboardExpand all lines: docs/installation.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Code-Notify adds desktop notifications to Claude Code, Codex, and Gemini CLI. Yo
9
9
- Tasks complete
10
10
- Claude or Gemini needs your input
11
11
- Voice announcements (macOS)
12
+
- Slack or Discord webhook messages when channels are configured
13
+
- Codex or Claude usage crosses configured thresholds or resets
12
14
13
15
Codex currently exposes completion notifications through its `notify` hook. Approval and `request_permissions` prompts do not currently trigger Code-Notify through Codex.
14
16
@@ -49,6 +51,30 @@ cn status # Should show: Global notifications: ENABLED
Webhook URLs are stored locally and are redacted in status output.
63
+
64
+
### Optional Usage Alerts
65
+
66
+
```bash
67
+
cn usage on
68
+
cn usage check
69
+
cn usage watch --interval 300
70
+
cn usage reset-alerts voice on
71
+
cn usage reset-alerts sound default
72
+
```
73
+
74
+
Usage alerts currently support Codex and Claude daily (5h) and weekly (7d) windows. Low-usage warnings use normal Code-Notify delivery. Token reset alerts are separate and can use their own voice/sound controls with `cn usage reset-alerts ...`. Reset voice messages identify the window, such as `Codex token daily limit reset` or `Codex token weekly limit reset`.
75
+
76
+
They use existing local login state from `~/.codex/auth.json` and `~/.claude/.credentials.json`. Code-Notify does not start provider login flows or install a background scheduler.
77
+
52
78
### Enable Voice (macOS only)
53
79
54
80
```bash
@@ -97,6 +123,9 @@ After installation, these files are created:
97
123
-`~/.claude/settings.json` - Hook configuration on the default Claude Code path
98
124
-`~/.config/.claude/settings.json` - Hook configuration on some Windows Claude Code setups
0 commit comments