mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-26 21:36:31 +02:00
Resolution order for the system prompt is now: 1. --system-prompt <text> (per-run override; highest) 2. $ZOT_HOME/SYSTEM.md (persistent user override; new) 3. built-in defaultIdentity + defaultGuidelines When SYSTEM.md exists and --system-prompt is empty, its contents replace the entire identity + guidelines block (same semantics as --system-prompt). The tool list + skill manifest + appended sections + date/cwd footer are still added on top, so the file should contain just the identity / behavior text. readUserSystemPrompt swallows file errors on purpose: a missing or unreadable SYSTEM.md falls back to the built-in default rather than crashing the run. Cached on Resolved.systemCustom so MergeExtensionTools' system-prompt rebuild path also picks up the override. End-to-end verified live: with SYSTEM.md (pirate persona): "Arrr, I be Zot, a scallywag..." without: "I'm zot, a lightweight terminal..." Documented in README's $ZOT_HOME tree + the --system-prompt flag note. |
||
|---|---|---|
| .. | ||
| agent | ||
| assets | ||
| auth | ||
| core | ||
| extproto | ||
| provider | ||
| skills | ||
| tui | ||