-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathdeepcode_config.json.example
More file actions
152 lines (145 loc) · 4.23 KB
/
deepcode_config.json.example
File metadata and controls
152 lines (145 loc) · 4.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"$comment": "Single source of truth for DeepCode. Copy to deepcode_config.json and fill in at least one provider apiKey. Inline strings work; environment variable references with the dollar-brace syntax are also resolved at load time (see README).",
"agents": {
"defaults": {
"provider": "auto",
"model": "openai/gpt-5.4",
"maxTokens": 40000,
"temperature": 0.1,
"reasoningEffort": "low",
"baseMaxTokens": 40000,
"retryMaxTokens": 32768,
"maxTokensPolicy": "adaptive",
"maxToolIterations": 200,
"maxToolResultChars": 16000,
"contextWindowTokens": 65536
},
"planning": {
"model": "openai/gpt-5.4"
},
"implementation": {
"model": "openai/gpt-5.4"
}
},
"providers": {
"openai": {
"apiKey": "${OPENAI_API_KEY}"
},
"anthropic": {
"apiKey": ""
},
"openrouter": {
"apiKey": "",
"apiBase": "https://openrouter.ai/api/v1"
},
"gemini": {
"apiKey": ""
},
"deepseek": {
"apiKey": ""
},
"zhipu": {
"apiKey": ""
},
"dashscope": {
"apiKey": ""
},
"ollama": {
"apiBase": "http://localhost:11434/v1"
},
"vllm": {
"apiBase": ""
}
},
"tools": {
"defaultSearchServer": "filesystem",
"mcpServers": {
"code-implementation": {
"type": "stdio",
"command": "python",
"args": ["tools/code_implementation_server.py"],
"env": {"PYTHONPATH": "."},
"description": "Paper code reproduction tool server - file operations, code execution, search, etc."
},
"code-reference-indexer": {
"type": "stdio",
"command": "python",
"args": ["tools/code_reference_indexer.py"],
"env": {"PYTHONPATH": "."},
"description": "Code reference indexer - intelligent code reference search from indexed repositories"
},
"command-executor": {
"type": "stdio",
"command": "python",
"args": ["tools/command_executor.py"],
"env": {"PYTHONPATH": "."}
},
"document-segmentation": {
"type": "stdio",
"command": "python",
"args": ["tools/document_segmentation_server.py"],
"env": {"PYTHONPATH": "."},
"description": "Document segmentation server - intelligent document analysis and segmented reading"
},
"fetch": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-server-fetch"]
},
"file-downloader": {
"type": "stdio",
"command": "python",
"args": ["tools/pdf_downloader.py"],
"env": {"PYTHONPATH": "."}
},
"filesystem": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", ".", "./deepcode_lab"]
},
"github-downloader": {
"type": "stdio",
"command": "python",
"args": ["tools/git_command.py"],
"env": {"PYTHONPATH": "."}
}
}
},
"workspace": {
"root": "./deepcode_lab",
"maxInputMb": 100
},
"documentSegmentation": {
"enabled": true,
"sizeThresholdChars": 50000
},
"logger": {
"$comment": "Dual-layer observability. Global file rotates daily under logs/. Per-task files land in deepcode_lab/tasks/<task_id>/logs/{system,llm,mcp}.jsonl and are streamable via the /ws/tasks/{id}/logs WebSocket. Sessions are persisted to ~/.deepcode/sessions/ (override with DEEPCODE_SESSIONS_DIR).",
"level": "info",
"progressDisplay": false,
"transports": ["console", "global_file", "task_file"],
"globalFile": {
"enabled": true,
"pathPattern": "logs/server-{date}.jsonl",
"rotation": "00:00",
"retention": "14 days"
},
"taskFile": {
"enabled": true
},
"llm": {
"enabled": true,
"truncatePreviewChars": 2000
}
},
"llmLogger": {
"$comment": "Legacy block kept for backward compatibility; the active LLM recorder now lives in core.observability and writes per-task llm.jsonl directly.",
"enabled": true,
"outputFormat": "json",
"logLevel": "basic",
"logDirectory": "logs/llm_responses",
"filenamePattern": "llm_responses_{timestamp}.jsonl",
"includeModels": [],
"minResponseLength": 50
}
}