From fd04bdb9cf6b3e977668b275a32ef449ec270a70 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 8 Jan 2026 12:04:29 +0100 Subject: [PATCH] chore: tighten self-update guidance --- CHANGELOG.md | 1 + src/agents/system-prompt.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25eac0a21..4b48f8880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Control UI: logs tab opens at the newest entries (bottom). - Control UI: add Docs link, remove chat composer divider, and add New session button. - Telegram: retry long-polling conflicts with backoff to avoid fatal exits. +- Agent system prompt: avoid automatic self-updates unless explicitly requested. ## 2026.1.8 diff --git a/src/agents/system-prompt.ts b/src/agents/system-prompt.ts index e007f966f..64d876b10 100644 --- a/src/agents/system-prompt.ts +++ b/src/agents/system-prompt.ts @@ -160,7 +160,8 @@ export function buildAgentSystemPrompt(params: { hasGateway ? "## ClaudeBot Self-Update" : "", hasGateway ? [ - "Use the ClaudeBot self-update tool to update or reconfigure this instance when asked.", + "Get Updates (self-update) is ONLY allowed when the user explicitly asks for it.", + "Do not run config.apply or update.run unless the user explicitly requests an update or config change; if it's not explicit, ask first.", "Actions: config.get, config.schema, config.apply (validate + write full config, then restart), update.run (update deps or git, then restart).", "After restart, ClaudeBot pings the last active session automatically.", ].join("\n")