core/agent: configurable todo nag strategies

Add [agent] todo_nag_strategy: developer (default), system, user,
synthetic_tool (forged todo_list pair), or none. Shared inject helper
used for turn-start and end-of-turn nags; CLI wires agent config.
This commit is contained in:
2026-07-20 03:33:02 +08:00
parent a4ab11c9a2
commit f6d14ed549
8 changed files with 235 additions and 10 deletions
+3
View File
@@ -18,6 +18,9 @@ confirm_destructive = true
path_denylist = ["/secrets/", ".ssh/", ".gnupg/"]
# Soft context budget in estimated tokens (~4 chars/token when API usage missing).
max_context_tokens = 200000
# How open-todo nags are injected into model context:
# developer (default) | system | user | synthetic_tool | none
# todo_nag_strategy = "developer"
# Optional: custom compact/summarisation prompts (empty = built-in defaults).
# compact_system_prompt = ""