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
{{ message }}
Repository navigation
Commit 9c233dd
Browse filesBrowse the repository at this point in the historyBrowse files
|`notify`| string | Full path to a task-completion notification script (e.g., Slack notification script) |
46
+
|`notify`| string | Full path to a task-status notification script (e.g., Slack notification script) |
47
47
|`webSearchTool`| string | Full path to a custom web search script |
48
48
|`deepseekSearchApiEnabled`| boolean | Use DeepSeek official web search (default `false`) |
49
49
|`mcpServers`| object | MCP server configurations (keys are service names, values are McpServerConfig objects) |
@@ -144,16 +144,16 @@ When `BASE_URL` is `https://api.deepseek.com`, enabling `filesApiEnabled` upload
144
144
145
145
Each file is limited to 64 MiB, and the upload timeout cannot exceed DeepSeek's 10-minute limit. Remote IDs are cached in `~/.deepcode/files-api-cache.json` without storing the plaintext API key. On a remote storage-quota error, only the oldest files whose names start with `deepcode-` are removed before one retry.
146
146
147
-
#### `notify` — Task Completion Notification
147
+
#### `notify` — Task Status Notifications
148
148
149
-
Set a full path to a shell script. When the AI assistant finishes a round of tasks, the script is executed automatically, which can be used to send notifications (e.g., a Slack message).
149
+
Set a full path to a shell script. When a session completes, fails, waits for user input, or waits for permission approval, the script is executed automatically to send notifications (e.g., a Slack message). After the session resumes, another notification is sent when it pauses or ends again.
150
150
151
151
The following context is injected as environment variables when the notify script runs:
152
152
153
153
| Variable | Description |
154
154
|----------|-------------|
155
-
|`DURATION`|Session duration in seconds (integer)|
|`DURATION`|Elapsed time from the start of the current execution until it pauses or ends, in whole seconds; resets when execution resumes|
156
+
|`STATUS`|Actual session status: `completed`, `failed`, `waiting_for_user` (waiting for user input), or `ask_permission` (waiting for permission approval)|
157
157
|`FAIL_REASON`| Failure reason (only set on failure) |
158
158
|`BODY`| The text content of the last AI assistant reply |
159
159
|`TITLE`| Session title (matches the resume list title) |
Copy file name to clipboardExpand all lines: docs/notify_en.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
-
# Deep Code Task Completion Notification
1
+
# Deep Code Task Status Notifications
2
2
3
-
When the AI assistant finishes a round of tasks, Deep Code can automatically execute a notification script to send task results to your chosen channel (Slack, system notifications, etc.).
3
+
When a session completes, fails, waits for user input, or waits for permission approval, Deep Code can automatically execute a notification script to send the session status to your chosen channel (Slack, system notifications, etc.).
4
4
5
5
## How It Works
6
6
7
-
Configure the `notify` field in `settings.json` with the full path to an executable script. Every time the AI assistant completes a task response, Deep Code executes that script and injects context as environment variables.
7
+
Configure the `notify` field in `settings.json` with the full path to an executable script. Each time a session enters one of these states, Deep Code executes that script and injects context as environment variables. After the session resumes, another notification is sent when it pauses or ends again.
8
8
9
9
## Injected Environment Variables
10
10
11
11
| Variable | Description |
12
12
|----------|-------------|
13
-
|`DURATION`|Session duration in seconds (integer)|
|`DURATION`|Elapsed time from the start of the current execution until it pauses or ends, in whole seconds; resets when execution resumes|
14
+
|`STATUS`|Actual session status: `completed`, `failed`, `waiting_for_user` (waiting for user input), or `ask_permission` (waiting for permission approval)|
15
15
|`FAIL_REASON`| Failure reason (only set on failure) |
16
16
|`BODY`| The text content of the last AI assistant reply |
17
17
|`TITLE`| Session title (matches the resume list title) |
|`notify`| string | Full path to a task-completion notification script (e.g., Slack notification script) |
45
+
|`notify`| string | Full path to a task-status notification script (e.g., Slack notification script) |
46
46
|`webSearchTool`| string | Full path to a custom web search script |
47
47
|`deepseekSearchApiEnabled`| boolean | Use DeepSeek official web search (default `false`) |
48
48
|`mcpServers`| object | MCP server configurations (keys are service names, values are McpServerConfig objects) |
@@ -129,16 +129,16 @@ When `BASE_URL` is `https://api.deepseek.com`, enabling `filesApiEnabled` upload
129
129
130
130
Each file is limited to 64 MiB, and the upload timeout cannot exceed 10 minutes. Remote IDs are cached in `~/.deepcode/files-api-cache.json` without storing the plaintext API key. During quota recovery, only the oldest files whose names start with `deepcode-` are removed before one retry.
131
131
132
-
#### `notify` — Task Completion Notification
132
+
#### `notify` — Task Status Notifications
133
133
134
-
Set a full path to a shell script. When the AI assistant finishes a round of tasks, the script is executed automatically, which can be used to send notifications (e.g., a Slack message).
134
+
Set a full path to a shell script. When a session completes, fails, waits for user input, or waits for permission approval, the script is executed automatically to send notifications (e.g., a Slack message). After the session resumes, another notification is sent when it pauses or ends again.
135
135
136
136
The following context is injected as environment variables when the notify script runs:
|`DURATION`|Elapsed time from the start of the current execution until it pauses or ends, in whole seconds; resets when execution resumes|
141
+
|`STATUS`|Actual session status: `completed`, `failed`, `waiting_for_user` (waiting for user input), or `ask_permission` (waiting for permission approval)|
142
142
|`FAIL_REASON`| Failure reason (only set on failure) |
143
143
|`BODY`| The text content of the last AI assistant reply |
144
144
|`TITLE`| Session title (matches the resume list title) |
0 commit comments