Files
clawdbot/docs
Sebastian d0a4cce41e feat: add dynamic template variables to messages.responsePrefix (#923)
Adds support for template variables in `messages.responsePrefix` that
resolve dynamically at runtime with the actual model used (including
after fallback).

Supported variables (case-insensitive):
- {model} - short model name (e.g., "claude-opus-4-5", "gpt-4o")
- {modelFull} - full model identifier (e.g., "anthropic/claude-opus-4-5")
- {provider} - provider name (e.g., "anthropic", "openai")
- {thinkingLevel} or {think} - thinking level ("high", "low", "off")
- {identity.name} or {identityName} - agent identity name

Example: "[{model} | think:{thinkingLevel}]" → "[claude-opus-4-5 | think:high]"

Variables show the actual model used after fallback, not the intended
model. Unresolved variables remain as literal text.

Implementation:
- New module: src/auto-reply/reply/response-prefix-template.ts
- Template interpolation in normalize-reply.ts via context provider
- onModelSelected callback in agent-runner-execution.ts
- Updated all 6 provider message handlers (web, signal, discord,
  telegram, slack, imessage)
- 27 unit tests covering all variables and edge cases
- Documentation in docs/gateway/configuration.md and JSDoc

Fixes #923
2026-01-14 23:05:08 -05:00
..
2026-01-10 05:14:09 +01:00
2026-01-13 04:41:01 +00:00
2026-01-15 01:12:59 +00:00
2026-01-10 20:05:22 +01:00
2026-01-13 23:59:04 +00:00
2026-01-15 02:35:20 +00:00
2026-01-15 01:06:35 +00:00
2026-01-13 08:40:39 +00:00
2026-01-04 14:38:51 +00:00
2026-01-15 01:12:59 +00:00
2026-01-13 08:40:39 +00:00
2026-01-15 02:50:03 +00:00
2026-01-09 00:34:38 +00:00
2026-01-15 01:12:59 +00:00