-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
139 lines (137 loc) · 3.97 KB
/
Copy pathconfig.json
File metadata and controls
139 lines (137 loc) · 3.97 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
{
"task_token_budget": 500000,
"warning_threshold": 0.8,
"per_agent_max": 100000,
"output_size_max": 51200,
"global_retry_max": 10,
"api_retry_max": 3,
"api_retry_delays": [1, 2, 4],
"convergence_threshold": 0.6,
"safe_mode_consecutive_failures": 3,
"safe_mode_consecutive_successes": 3,
"agents_backup_versions": 5,
"evolution_max_change_ratio": 0.2,
"incremental_cascade_limit": 0.5,
"adaptive": {
"_doc": "自适应编排参数范围约束。LLM 在这些范围内自主决定具体值,无需人工预设。",
"skip_planner": {
"type": "bool",
"description": "是否跳过 Planner 阶段(直接 Generator → Evaluator)"
},
"skip_spec_review": {
"type": "bool",
"description": "[已废弃] 新架构中 spec 审查已由 Planner 自省机制替代"
},
"evaluator_max_tokens": {
"type": "int",
"min": 128,
"max": 8192,
"description": "Evaluator 审查时的最大输出 token 数,越大审查越详细"
},
"evaluator_review_depth": {
"type": "str",
"enum": ["surface", "standard", "deep", "exhaustive"],
"description": "Evaluator 审查深度:surface=快速扫描, standard=常规, deep=逐行, exhaustive=交叉验证"
},
"generator_max_tokens": {
"type": "int",
"min": 256,
"max": 16384,
"description": "Generator 生成代码时的最大输出 token 数"
},
"generator_retry_max": {
"type": "int",
"min": 0,
"max": 8,
"description": "Generator 失败后的最大重试次数"
},
"planner_retry_max": {
"type": "int",
"min": 0,
"max": 6,
"description": "Planner 失败后的最大重试次数"
},
"planner_detail_level": {
"type": "str",
"enum": ["minimal", "standard", "comprehensive"],
"description": "Planner 输出 spec 的详细程度"
},
"max_history_summaries": {
"type": "int",
"min": 1,
"max": 10,
"description": "上下文历史摘要的最大保留数量"
},
"linter_enabled": {
"type": "bool",
"description": "是否启用 Linter 静态检查"
},
"linter_severity_threshold": {
"type": "str",
"enum": ["error", "warning", "info"],
"description": "Linter 报告的最低严重级别"
},
"test_required": {
"type": "bool",
"description": "是否要求生成并通过测试"
},
"stages_estimate": {
"type": "int",
"min": 1,
"max": 20,
"description": "预估需要的开发阶段数"
},
"reflection_enabled": {
"type": "bool",
"description": "Generator/Evaluator 是否启用自我反思(生成后自检)"
},
"reflection_depth": {
"type": "str",
"enum": ["none", "light", "moderate", "deep"],
"description": "自我反思深度:none=不反思, light=快速自检, moderate=对照需求检查, deep=多角度交叉验证"
}
},
"llm": {
"provider": "deepseek",
"model": "deepseek-chat",
"api_key_env": "DEEPSEEK_API_KEY",
"base_url": "https://api.deepseek.com/v1",
"temperature": 0.3,
"max_tokens": 8192,
"rate_limit_window": 60,
"rate_limit_max_calls": 30,
"cool_down_base": 5,
"cool_down_increment": 5,
"cool_down_max": 30
},
"logging": {
"level": "INFO",
"dir": "logs"
},
"exec": {
"default_timeout": 120,
"max_output_size": 51200,
"allowed_commands": ["npm", "npx", "pnpm", "node", "tsc", "jest", "vitest", "pytest", "cargo", "go", "java", "javac", "dotnet"]
},
"test": {
"framework": "auto",
"timeout": 120
},
"linter": {
"enabled": true,
"auto_fix": false,
"severity_threshold": "warning"
},
"providers": {
"openai": {
"model": "gpt-4o",
"api_key_env": "OPENAI_API_KEY",
"base_url": "https://api.openai.com/v1"
},
"deepseek": {
"model": "deepseek-chat",
"api_key_env": "DEEPSEEK_API_KEY",
"base_url": "https://api.deepseek.com/v1"
}
}
}