Repository navigation
Expand file tree
/
Copy pathcodeagent.example.json
More file actions
68 lines (68 loc) · 1.85 KB
/
Copy pathcodeagent.example.json
File metadata and controls
68 lines (68 loc) · 1.85 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
{
"provider": "openai",
"providers": {
"openai": {
"type": "openai",
"baseUrl": "https://api.openai.com/v1",
"model": "gpt-4o",
"apiKeyEnv": "OPENAI_API_KEY",
"maxTokens": 8192,
"temperature": 0.2
},
"deepseek": {
"type": "openai",
"baseUrl": "https://api.deepseek.com/v1",
"model": "deepseek-chat",
"apiKeyEnv": "DEEPSEEK_API_KEY"
},
"qwen": {
"type": "openai",
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"model": "qwen3-coder-plus",
"apiKeyEnv": "DASHSCOPE_API_KEY"
},
"ollama": {
"type": "openai",
"baseUrl": "http://localhost:11434/v1",
"model": "qwen2.5-coder:7b",
"apiKey": "ollama"
},
"hitmargin": {
"type": "openai",
"baseUrl": "https://ss2a.top/v1",
"model": "poolside/laguna-s-2.1:free",
"apiKey": "sk-14626d2dc4ea7b9ddc0e2ec0238de6927cdf2a36759b9f43de8ca764457ddd2f"
},
"anthropic": {
"type": "anthropic",
"model": "claude-sonnet-4-5",
"apiKeyEnv": "ANTHROPIC_API_KEY"
}
},
"maxToolIterations": 20,
"maxHistoryChars": 160000,
"contextWindow": 131072,
"fileAccess": "strict",
"readOnlyDirs": [],
"allowCommands": true,
"confirmCommands": false,
"commandTimeoutSeconds": 60,
"shell": "",
"saveSessions": true,
"maxSessionLogs": 30,
"streamOutput": true,
"showToolCalls": true,
"renderMarkdown": true,
"tuiAnsi": true,
"thinkingEffort": "off",
"autoCompactPercent": 0,
"defaultMode": "code",
"modes": [
{
"name": "fix",
"description": "修复模式:定位并修复 bug",
"systemPrompt": "You are CodeAgent in FIX mode. Reproduce the bug, find the root cause, apply a minimal fix, then verify with the build/tests.",
"tools": ["read_file", "glob", "grep", "run_command", "stop"]
}
]
}