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
|User settings file |`~/.deepcode/settings.json`| Applies to all Deep Code sessions for the current user.|
21
-
|Project settings file |`<project root>/.deepcode/settings.json`|Takes effect only when running Deep Code in that specific project. Project settings override user settings.|
|`high`|Higher reasoning depth with relatively lower token usage|
61
+
|值 | 说明|
62
+
| ------ | --------------------------------- |
63
+
|`max`|最大推理深度(默认值)|
64
+
|`high`|较高推理深度,token消耗相对较小 |
65
65
66
-
#### `notify` — Task Completion Notification
66
+
#### `notify` — 任务完成通知
67
67
68
-
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).
68
+
设置一个 Shell 脚本的完整路径。当 AI 助手完成一轮任务后,会自动执行该脚本,可用于发送通知(如 Slack 消息)。
69
69
70
70
```json
71
71
{
72
72
"notify": "/path/to/slack-notify.sh"
73
73
}
74
74
```
75
75
76
-
#### `webSearchTool` — Custom Web Search
76
+
#### `webSearchTool` — 自定义联网搜索
77
77
78
-
Deep Code has a built-in, free-to-use Web Search tool. If you need custom search logic, set `webSearchTool`to the full path of an executable script:
78
+
Deep Code 内置免费可用的 Web Search 工具。如果需要自定义搜索逻辑,可将 `webSearchTool`设为一个可执行脚本的完整路径:
79
79
80
80
```json
81
81
{
82
82
"webSearchTool": "/path/to/my-search-script.sh"
83
83
}
84
84
```
85
85
86
-
The script receives a search query as an argument and outputs results in JSON format for the AI.
86
+
脚本接收一个搜索查询参数,输出 JSON 格式的结果供 AI 使用。
87
87
88
-
#### `mcpServers` — MCP Servers
88
+
#### `mcpServers` — MCP 服务器
89
89
90
-
Configuration for MCP (Model Context Protocol) servers. The value is a key-value pair, where the key is the service name and the value is a server configuration object.
> When`command`is`npx`, Deep Code automatically prepends `-y` to the arguments.
112
+
> 当`command`为`npx` 时,Deep Code 会自动在参数前补充 `-y`。
113
113
114
-
For detailed MCP usage instructions, refer to [mcp.md](mcp.md).
114
+
详细 MCP 使用说明请参考 [mcp.md](mcp.md)。
115
115
116
-
#### `debugLogEnabled` — Debug Log
117
116
118
-
Set to `true` to enable detailed debug logging (default `false`), useful for troubleshooting API calls and tool execution.
117
+
#### `debugLogEnabled` — 调试日志
119
118
120
-
## Environment Variable Priority
119
+
设为 `true` 可让程序输出详细的调试日志(默认 `false`),用于排查 API 调用和工具执行的问题。
121
120
122
-
Environment variables are a common way to configure applications, especially for sensitive information (such as api-key) or settings that may change between environments.
Environment variable priority follows the logic of “the more specific and localized the configuration, the higher the priority”, and the override rule of “env files protect existing environment by default, system variables override env files”. (The `env` object in settings.json can be thought of as a type of env file.)
125
+
### 优先级原则
127
126
128
-
Priority levels (from lowest to highest):
129
-
1.`env` defined at the top level of `settings.json` – this is a general configuration for the entire tool and all its subprocesses (global variables). Can be overridden by outer environment variables, but the environment variable KEY has the `DEEPCODE_` prefix removed.
130
-
2.`env` defined inside `mcpServers` in `settings.json` – this is the most specific configuration for a particular MCP service (local variables). Can be overridden by outer environment variables, but the KEY has the `MCP_` prefix removed.
131
-
3. Shell/system environment variables – operating system level.
0 commit comments