core/config: split agent system_prompt and tool_directives

This commit is contained in:
2026-07-21 22:55:51 +08:00
parent db7c097466
commit 30beec6600
8 changed files with 132 additions and 16 deletions
+4 -3
View File
@@ -136,10 +136,11 @@ access_key_or_token = "sk-..."
"gpt-4o-mini" = { text = true }
[agent]
# system_prompt defaults to a built-in coding-agent guide (omit to use it).
# system_prompt = "" # disable
# system_prompt = persona (omit → built-in). tool_directives = tool playbook.
# system_prompt = "" / tool_directives = "" disable each part; both "" → no system.
# Or multi-line override (prefer '''...'''):
# system_prompt = '''Your custom prompt...'''
# system_prompt = '''Your custom persona...'''
# tool_directives = '''### Workspace ...'''
confirm_destructive = true
max_context_tokens = 200000
```