2
0
Fork 0
forked from zynk/zynk

Simplify CMake feature loop, adjust AI response limits. (0.40.3)

- Refactored CMake feature configuration: merged the two separate
  foreach loops (one for building _cmd_defs and one for printing status)
  into a single loop, removing redundant iteration. Improved the status
  banner formatting for clearer feature configuration output.
- Reduced AI code mode response limit from 2000 to 1000 chars to keep
  IRC replies concise.
- Increased AI plan mode response limit from 800 to 1000 chars, giving
  slightly more room for explanations.
- Simplified AI plan mode system prompt description for clarity.
- Fixed minor whitespace alignment in README.md command table.
This commit is contained in:
Johannes Findeisen 2026-07-23 21:15:44 +02:00
commit db72b957b8
4 changed files with 29 additions and 22 deletions

7
ai.h
View file

@ -129,14 +129,13 @@ 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 2000 chars. No disclaimers or AI-sounding phrases. No markdown/formatting. "
"Max 1000 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 - you can only answer questions and discuss code, "
"but you CANNOT make any changes to files or execute commands. If someone asks you to change or edit code, "
"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 800 chars. "
"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.");
}