fix: rename ClaudeBot to Clawdbot in system prompt (#502)
This commit is contained in:
@@ -44,7 +44,7 @@ export function buildAgentSystemPrompt(params: {
|
|||||||
nodes: "List/describe/notify/camera/screen on paired nodes",
|
nodes: "List/describe/notify/camera/screen on paired nodes",
|
||||||
cron: "Manage cron jobs and wake events",
|
cron: "Manage cron jobs and wake events",
|
||||||
gateway:
|
gateway:
|
||||||
"Restart, apply config, or run updates on the running ClaudeBot process",
|
"Restart, apply config, or run updates on the running Clawdbot process",
|
||||||
agents_list: "List agent ids allowed for sessions_spawn",
|
agents_list: "List agent ids allowed for sessions_spawn",
|
||||||
sessions_list: "List other sessions (incl. sub-agents) with filters/last",
|
sessions_list: "List other sessions (incl. sub-agents) with filters/last",
|
||||||
sessions_history: "Fetch history for another session/sub-agent",
|
sessions_history: "Fetch history for another session/sub-agent",
|
||||||
@@ -129,7 +129,7 @@ export function buildAgentSystemPrompt(params: {
|
|||||||
const runtimeInfo = params.runtimeInfo;
|
const runtimeInfo = params.runtimeInfo;
|
||||||
|
|
||||||
const lines = [
|
const lines = [
|
||||||
"You are a personal assistant running inside ClaudeBot.",
|
"You are a personal assistant running inside Clawdbot.",
|
||||||
"",
|
"",
|
||||||
"## Tooling",
|
"## Tooling",
|
||||||
"Tool availability (filtered by policy):",
|
"Tool availability (filtered by policy):",
|
||||||
@@ -157,13 +157,13 @@ export function buildAgentSystemPrompt(params: {
|
|||||||
"## Skills",
|
"## Skills",
|
||||||
`Skills provide task-specific instructions. Use \`read\` to load from ${params.workspaceDir}/skills/<name>/SKILL.md when needed.`,
|
`Skills provide task-specific instructions. Use \`read\` to load from ${params.workspaceDir}/skills/<name>/SKILL.md when needed.`,
|
||||||
"",
|
"",
|
||||||
hasGateway ? "## ClaudeBot Self-Update" : "",
|
hasGateway ? "## Clawdbot Self-Update" : "",
|
||||||
hasGateway
|
hasGateway
|
||||||
? [
|
? [
|
||||||
"Get Updates (self-update) is ONLY allowed when the user explicitly asks for it.",
|
"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.",
|
"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).",
|
"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.",
|
"After restart, Clawdbot pings the last active session automatically.",
|
||||||
].join("\n")
|
].join("\n")
|
||||||
: "",
|
: "",
|
||||||
hasGateway ? "" : "",
|
hasGateway ? "" : "",
|
||||||
@@ -212,7 +212,7 @@ export function buildAgentSystemPrompt(params: {
|
|||||||
ownerLine ?? "",
|
ownerLine ?? "",
|
||||||
ownerLine ? "" : "",
|
ownerLine ? "" : "",
|
||||||
"## Workspace Files (injected)",
|
"## Workspace Files (injected)",
|
||||||
"These user-editable files are loaded by ClaudeBot and included below in Project Context.",
|
"These user-editable files are loaded by Clawdbot and included below in Project Context.",
|
||||||
"",
|
"",
|
||||||
userTimezone || userTime
|
userTimezone || userTime
|
||||||
? `Time: assume UTC unless stated. User TZ=${userTimezone ?? "unknown"}. Current user time (converted)=${userTime ?? "unknown"}.`
|
? `Time: assume UTC unless stated. User TZ=${userTimezone ?? "unknown"}. Current user time (converted)=${userTime ?? "unknown"}.`
|
||||||
@@ -251,7 +251,7 @@ export function buildAgentSystemPrompt(params: {
|
|||||||
heartbeatPromptLine,
|
heartbeatPromptLine,
|
||||||
"If you receive a heartbeat poll (a user message matching the heartbeat prompt above), and there is nothing that needs attention, reply exactly:",
|
"If you receive a heartbeat poll (a user message matching the heartbeat prompt above), and there is nothing that needs attention, reply exactly:",
|
||||||
"HEARTBEAT_OK",
|
"HEARTBEAT_OK",
|
||||||
'ClaudeBot treats a leading/trailing "HEARTBEAT_OK" as a heartbeat ack (and may discard it).',
|
'Clawdbot treats a leading/trailing "HEARTBEAT_OK" as a heartbeat ack (and may discard it).',
|
||||||
'If something needs attention, do NOT include "HEARTBEAT_OK"; reply with the alert text instead.',
|
'If something needs attention, do NOT include "HEARTBEAT_OK"; reply with the alert text instead.',
|
||||||
"",
|
"",
|
||||||
"## Runtime",
|
"## Runtime",
|
||||||
|
|||||||
Reference in New Issue
Block a user