- We have a global
Settingstype defined insrc/shared/config.tsthroughSettingsSchema. - This maps to
.clawmini/settings.json. - When users send a message via the CLI or web interface, it's routed through
sendMessageTRPC procedure. - The daemon (agent loop) builds the payload and forwards to Gemini via
@google/genaior similar.
- Add
timestampPrefix: z.boolean().default(true).optional()toSettingsSchemainsrc/shared/config.ts. - In the agent loop or where the message is appended, read the setting from
getSettings(). - If
timestampPrefixis true, prefixcontentof the message from the user with[YYYY-MM-DD HH:MM Z]based on the user's or server's current timezone.
- Should the timestamp prefix apply only to the first message of a prompt, or every subsequent message?
- Should the timezone be UTC or the local server's timezone? (Defaulting to local server timezone would align with
new Date().toLocaleString()). - Does it only prefix "user" messages or also system prompts or tool responses?