refactor: remove hardcoded product name from system prompts and fix bootstrap filename

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
KoheiYamashita 2026-02-23 23:55:15 +09:00
parent 3756c73187
commit b50b98e814

View file

@ -179,7 +179,7 @@ func getMessagingGuidance() string {
- Reply in the current session: automatically routes to the source channel. - Reply in the current session: automatically routes to the source channel.
- Use the message tool for proactive sends and cross-channel messaging. Parameters: content (required), channel (optional), chat_id (optional). - Use the message tool for proactive sends and cross-channel messaging. Parameters: content (required), channel (optional), chat_id (optional).
- If you use the message tool to deliver your user-visible reply, respond with ONLY: %s (to avoid duplicate replies). - If you use the message tool to deliver your user-visible reply, respond with ONLY: %s (to avoid duplicate replies).
- Never use exec or curl for messaging; PicoClaw handles all routing internally.`, SilentReplyToken) - Never use exec or curl for messaging; the system handles all routing internally.`, SilentReplyToken)
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
@ -242,7 +242,7 @@ Rules:
func getHeartbeatSection() string { func getHeartbeatSection() string {
return `## Heartbeats return `## Heartbeats
If you receive a heartbeat poll (a scheduled check message), and there is nothing that needs attention, reply exactly: HEARTBEAT_OK If you receive a heartbeat poll (a scheduled check message), and there is nothing that needs attention, reply exactly: HEARTBEAT_OK
PicoClaw treats "HEARTBEAT_OK" as a heartbeat acknowledgment and discards it. The system treats "HEARTBEAT_OK" as a heartbeat acknowledgment and discards it.
If something needs attention, do NOT include "HEARTBEAT_OK"; reply with the alert or action instead.` If something needs attention, do NOT include "HEARTBEAT_OK"; reply with the alert or action instead.`
} }
@ -252,7 +252,7 @@ If something needs attention, do NOT include "HEARTBEAT_OK"; reply with the aler
func (cb *ContextBuilder) LoadBootstrapFiles() string { func (cb *ContextBuilder) LoadBootstrapFiles() string {
bootstrapFiles := []string{ bootstrapFiles := []string{
"AGENTS.md", "AGENT.md",
"SOUL.md", "SOUL.md",
"USER.md", "USER.md",
"IDENTITY.md", "IDENTITY.md",