Config Editing Guardrail
Config Editing Guardrail
- Read the current file first (JSONC-aware:
//and/* */allowed). - Preserve everything unasked; add or modify only the requested keys.
- Validate syntax before writing; keep 2-space indent where applicable.
- Report what changed + whether reload/restart is needed.
- Never touch cached/internal keys unless asked (versions, auth caches, model pickers, one-time flags).