2
0
Fork 0
forked from zynk/zynk

Raise AI code mode limit, simplify plan mode prompt. (0.40.4)

- Increased AI code mode response limit back to 2000 chars (was reduced
  to 1000 in 0.40.3, but code changes need more room).
- Simplified the AI plan mode system prompt further: removed the explicit
  'tell them you are in plan mode' instruction, keeping it to a short
  'You are in plan mode. Answer briefly.' directive.
- Fixed !gitlog default count in README.md from 5 to 1 (matching the
  actual GITLOG_COUNT value set in 0.38.2).
- Re-aligned the utilities command table in README.md for cleaner
  formatting.
- Minor grammar and punctuation fixes across older changelog entries.
This commit is contained in:
Johannes Findeisen 2026-07-23 21:34:12 +02:00
commit 1f9f4b60f5
4 changed files with 26 additions and 20 deletions

8
ai.h
View file

@ -129,14 +129,12 @@ void ai_child_task(Session *s, long long id, const char *agent) {
plen = snprintf(prefix, sizeof prefix,
"Your name is zynk. You are a coding assistant in a project. Execute code changes as requested. "
"Make real file edits and run commands as needed. Answer in English when asked in English, answer in German when asked in German. "
"Max 1000 chars. No disclaimers or AI-sounding phrases. No markdown/formatting. "
"Max 2000 chars. No disclaimers or AI-sounding phrases. No markdown/formatting. "
"Just make the changes directly and confirm what you did.");
} else {
plen = snprintf(prefix, sizeof prefix,
"Your name is zynk. You are in plan mode - If someone asks you to change or edit code, "
"tell them you are in plan mode and can only answer questions. Suggest they use !code <instruction> to make actual code changes. "
"Answer briefly. Answer in English when asked in English, answer in German when asked in German. Max 1000 chars. "
"No disclaimers or AI-sounding phrases. No markdown/formatting. "
"Your name is zynk. You are in plan mode. Answer briefly. Answer in English when asked in English, answer in German when asked in German. "
"Max 1000 chars. No disclaimers or AI-sounding phrases. No markdown/formatting. "
"Just answer directly.");
}
if (have_history) {